Search Results

Showing results 1 to 40 of 1000
Search took 0.09 seconds.
Search: Posts Made By: scru
Forum: Geeks' Lounge 2 Days Ago
Replies: 14
Views: 300
Posted By scru
Guess I know whom you voted for.
Forum: Geeks' Lounge 2 Days Ago
Replies: 13
Views: 650
Posted By scru
This isn't really a problem, but if it were, it would be quite a nice one to have.
Forum: Python 14 Days Ago
Replies: 2
Views: 150
Posted By scru
Ooh. didn't notice you were already using the book that I recommended (Incidentally the one I learned Python with). Have you tried the official Python tutorial?
...
Forum: Python 16 Days Ago
Replies: 12
Views: 344
Posted By scru
Whoa hey I did not even notice that! Yeah dude, to make methods in python Classes, set self as the first argument of every routine. To call a method from any method within the same class, do...
Forum: Python 16 Days Ago
Replies: 12
Views: 344
Posted By scru
Well, it's bad OOP.

Not that I actually think that everything has to be OOP mind you (some small programs are just better off without it), but take for example your methods list. Why is your...
Forum: Python 17 Days Ago
Replies: 12
Views: 310
Posted By scru
Sure, C++ is difficult for a beginner, but I recommend you go with it first *if* it is the only one being offered at your school. You will have the benefit of face to face support from your...
Forum: Python 23 Days Ago
Replies: 7
Views: 253
Posted By scru
Convert them all to lower case before using ord: l = l.lower()
Forum: Python 23 Days Ago
Replies: 6
Views: 257
Posted By scru
Not really sure what exactly you're trying to do...
Forum: Python 30 Days Ago
Replies: 7
Views: 265
Posted By scru
locals_dict = locals()
for i in range(1, 10):
var_name = "POS" + str(i)
if i == POS:
locals_dict[var_name] = "->"
else:
locals_dict[var_name] = " "


discalimer:...
Forum: Python 32 Days Ago
Replies: 4
Views: 311
Posted By scru
If you a using a GUI/event-driven framework, then yes, it's possible. If you are using console python, then no.
Forum: Geeks' Lounge 32 Days Ago
Replies: 179
Views: 8,361
Posted By scru
I say just ignore the thing until it crawls back under the bridge. It cannot be reasoned with.
Forum: Geeks' Lounge 33 Days Ago
Replies: 179
Views: 8,361
Posted By scru
(emphasis mine)
I actually just read this. It might as well have been:


I'm pretty sure GM wasn't raking in billions (yes, that's a b) in profits 6 years ago.

But you'd love MS to fail...
Forum: Geeks' Lounge 33 Days Ago
Replies: 179
Views: 8,361
Posted By scru
Where to start, where to start...

You simply aren't going to fool anyone by claiming "most techies use Linux". Your own poll proves you wrong. Perhaps "most people who enjoy tinkering around in...
Forum: Geeks' Lounge 33 Days Ago
Replies: 179
Views: 8,361
Posted By scru
Okay, I didn't read much of what was said (I tend not to pay much attention to fanboys). But anybody who says things like "Anyone who has a good understanding of operating systems in addition to...
Forum: Geeks' Lounge 34 Days Ago
Replies: 179
Views: 8,361
Posted By scru
I can tell already that you won't have much luck with Linux.
Forum: Python 34 Days Ago
Replies: 3
Views: 208
Posted By scru
Huh? You've said what you've done, but not what you're trying to do...
Forum: Python Sep 26th, 2009
Replies: 4
Views: 357
Posted By scru
Thanks for the suggestion. I've been able to use wisent for what I want.
Forum: Python Sep 22nd, 2009
Replies: 4
Views: 308
Posted By scru
http://tronche.com/gui/x/xlib-tutorial/
Forum: Python Sep 22nd, 2009
Replies: 7
Views: 457
Posted By scru
Forum: Python Sep 22nd, 2009
Replies: 4
Views: 308
Posted By scru
You'd think that before trying to write a desktop environment, one would actually learn up a bit about xlib and how it works. I can answer your question, but I don't want to. Feels a bit like fanning...
Forum: Python Sep 21st, 2009
Replies: 4
Views: 357
Posted By scru
I could use the intepreter to evaluate, but that's not what I want. I want to parse the expressions into data structures that I can easily inspect in code.

So... this question is still open.
Forum: Python Sep 21st, 2009
Replies: 4
Views: 357
Posted By scru
Is there an open source (lgpl, bsd, mit) math parser/lexer library available out there? Has anybody ever written one by themselves (with support for variables, exponents, grouping) and have some...
Forum: Python Sep 20th, 2009
Replies: 13
Views: 578
Posted By scru
I'd like to see you try to implement one of the existing encryption algos, much less to coming up with your own.

Thought so.
Forum: Python Sep 20th, 2009
Replies: 5
Views: 697
Posted By scru
Where is the cTurtle website? Do they have a .tar.gz source distribution? If they do try downloading, untarring and running python setup.py install. Also, make sure that you are running the correct...
Forum: Python Sep 12th, 2009
Replies: 6
Views: 307
Posted By scru
bytes, as they exist in Python 3.1 are conceptually new to Python (starting with version 3). This isn't to say that 8-bit strings didn't exist before in the form of regular text strings. Note the...
Forum: Python Sep 12th, 2009
Replies: 6
Views: 307
Posted By scru
I happen to think this behavior is consistent (with indexing and slicing rules).

Here's why it makes sense:

bytes and str are not the same. They aren't even conceptually the same.

A bytes...
Forum: Python Sep 11th, 2009
Replies: 5
Views: 645
Posted By scru
You actually think that is more exotic? Wow.
Forum: Python Sep 11th, 2009
Replies: 6
Views: 307
Posted By scru
No. b'\x01\x02' Is a byte string in python. The expression bs[x] means that you want the byte at position x in the bytestring x, while bs[a:b] means that you want the part of the byte string from a...
Forum: Python Sep 6th, 2009
Replies: 3
Views: 555
Posted By scru
Just a few of my no-gos/failed projects:

1. Implement an open hashing or encryption algorithm
2. Write an IM program that encrypts the messages that it sends. (HINT: each user has a public...
Forum: Python Sep 6th, 2009
Replies: 12
Views: 547
Posted By scru
Sigh.

No, python doesn't have clear screen.
Forum: Python Sep 6th, 2009
Replies: 15
Views: 513
Posted By scru
(emphasis mine)

No, they won't. You see, there's no good reason anybody would want to do that. I guarantee you that anybody wanting to do this has a totally different underlying problem to which...
Forum: Python Sep 6th, 2009
Replies: 12
Views: 547
Posted By scru
Python.org supposedly loves spam anyway, so long as you include some eggs.
Forum: Python Sep 6th, 2009
Replies: 4
Views: 257
Posted By scru
Look, not to be harsh or anything, but given you previous posts I think you would be better off reading a book or a wiki or even just a tutorial on Python OOP and maybe Python in general. Really.
Forum: DaniWeb Community Feedback Sep 6th, 2009
Replies: 74
Views: 4,229
Posted By scru
Huh. Now I can see profiles again.
Forum: Geeks' Lounge Sep 6th, 2009
Replies: 46
Views: 3,049
Posted By scru
Definition of "own" (http://www.google.com.vc/search?q=define%3A+own&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a)
Defintion of "use"...
Forum: DaniWeb Community Feedback Sep 6th, 2009
Replies: 74
Views: 4,229
Posted By scru
Whenever I try to view anyone's profile I get: (see attachment)
Forum: Python Sep 5th, 2009
Replies: 15
Views: 513
Posted By scru
Okay, I will, but first give me one reasonable use for this technique.
Forum: Geeks' Lounge Sep 2nd, 2009
Replies: 46
Views: 3,049
Posted By scru
Forum: Python Sep 2nd, 2009
Replies: 3
Solved: Python goto
Views: 12,323
Posted By scru
Somewhere out there a unicorn just got mauled by a puppy.
Forum: Python Aug 27th, 2009
Replies: 6
Views: 428
Posted By scru
Well they actually really are dlls. It's just that the routines inside are built on the python C API.

To use them, just import them like any other module.
Showing results 1 to 40 of 1000

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC