Search Results

Showing results 1 to 40 of 1000
Search took 0.10 seconds.
Search: Posts Made By: sneekula
Forum: Geeks' Lounge 13 Days Ago
Replies: 13
Views: 939
Posted By sneekula
Yeah, I have heard enough of my fellow students brag about the amount of disk space on their brand new notebooks. I have never bought anything but a used notebook computer, so I have to be happy...
Forum: Geeks' Lounge 13 Days Ago
Replies: 143
Views: 8,833
Posted By sneekula
Everybody has been young before, but not everybody has been old before.
~~~ An African Proverb
Forum: Geeks' Lounge 13 Days Ago
Replies: 5
Views: 411
Posted By sneekula
Wow, recursion in action! Very geeky too!
Forum: Geeks' Lounge 13 Days Ago
Replies: 17
Views: 923
Posted By sneekula
Oh my God! This is just too funny! Nice find AD!
Forum: Geeks' Lounge 13 Days Ago
Replies: 1,376
Views: 146,705
Posted By sneekula
A DiGiorno pizza and a Leinenkugel beer. The best combination to watch the Northwestern Wildcats football game on a Saturday.
Forum: Python 13 Days Ago
Replies: 8
Views: 216
Posted By sneekula
Okay, this might even be mildly better:
import string
a = list(string.ascii_lowercase + "!@#$%^&*()-+={}|\/?><,.'") + range(1, 10)

print a
For Python3 change to list(range(1, 10)). Oh, the...
Forum: Python 13 Days Ago
Replies: 7
Views: 198
Posted By sneekula
What do you mean with "WxGlade does not show value"?
Is it WxGlade or your program you wrote using WxGlade?

Just a note on the smart side of things. If you have a problem for others to look at...
Forum: Python 13 Days Ago
Replies: 126
Views: 45,811
Posted By sneekula
Just testing wxPython's wx.TextCtrl widget used as an edit field for input and output of text based data:
# testing wxPython's
# wx.TextCtrl(parent, id, value, pos, size, style)
# a widget used...
Forum: Python 13 Days Ago
Replies: 8
Views: 216
Posted By sneekula
Also the OP didn't want a zero in the digits part. :)
Forum: Python 13 Days Ago
Replies: 3
Views: 239
Posted By sneekula
It's always good to use a few test prints:
import operator

OPERATORS = {
'+': operator.add,
'-': operator.sub,
'*': operator.mul,
'/': operator.div,
}
Forum: Python 13 Days Ago
Replies: 7
Views: 6,298
Posted By sneekula
Ah, the pros and cons on posting on an old thread.
If you are interested in a regex solution, I would start a new thread and put regex in the title.
Forum: Python 20 Days Ago
Replies: 5
Views: 398
Posted By sneekula
Well, you could do something like this:
# File_lister2.py
# create a list of all the files and sizes in a given direcory
# and optionally any of its subdirectories (Python2 & Python3)
# snee
...
Forum: Python 20 Days Ago
Replies: 206
Views: 95,666
Posted By sneekula
Here is a simple number project:

Prime numbers are positive integer numbers that are only divisible by itself or one. For example 2, 3, 5, 7, 11, 13, 17, are prime numbers, by convention 1 is not...
Forum: Python 20 Days Ago
Replies: 8
Solved: simple question
Views: 292
Posted By sneekula
You could do:
for c in "Hello World":
print c ,
In Python2 the comma puts in a space and keeps it on the same line.
Forum: Python 21 Days Ago
Replies: 6
Solved: Using Functions
Views: 218
Posted By sneekula
You are somewhat confused about functions.
Forum: Geeks' Lounge 21 Days Ago
Replies: 13
Views: 1,217
Posted By sneekula
Rugby could become a sport, if they ever show it on the tele in the US.
Forum: Geeks' Lounge 21 Days Ago
Replies: 7
Views: 2,887
Posted By sneekula
Google gives you 3,870 hits for "Binary To Denary Program", much of it Visual Basic.
Forum: Geeks' Lounge 21 Days Ago
Replies: 143
Views: 8,833
Posted By sneekula
"The hardest thing in the world to understand is the income tax."
~~~ Albert Einstein
Forum: Geeks' Lounge 21 Days Ago
Replies: 1,376
Views: 146,705
Posted By sneekula
An apple turnover and a cup of hot chocolate.
Forum: Geeks' Lounge 21 Days Ago
Replies: 13
Views: 640
Posted By sneekula
I went to the C++ forum, but nothing happened. :)
Forum: Geeks' Lounge Oct 10th, 2009
Replies: 1,376
Views: 146,705
Posted By sneekula
I have a handful of cherry granola cookies with my coffee.
Forum: Python Sep 21st, 2009
Replies: 9
Views: 384
Posted By sneekula
I made an attempt on user friendly data entry with just such a simple temperature converter program, see:
http://www.daniweb.com/forums/post992595.html#post992595
Forum: Python Sep 21st, 2009
Replies: 194
Read Me: Starting Python
Views: 85,299
Posted By sneekula
The ultimate user friendly Temperature Converter program. If you put an 'F' or 'f' on the end of the temperature you enter it will give you Celsius. Otherwise it simply assumes you entered a...
Forum: Python Sep 21st, 2009
Replies: 4
Views: 350
Posted By sneekula
As a beginner use for loops first, later on 'list comprehensions' become more natural.
Forum: Python Sep 21st, 2009
Replies: 10
Views: 365
Posted By sneekula
Looks like one of the 638 web pages is not available. You should use a try/except trap for this case.
Forum: Python Sep 21st, 2009
Replies: 4
Views: 289
Posted By sneekula
At first, I would adopt consistent indentations! Very important in Python. Most people use 4 spaces.
Forum: Python Sep 21st, 2009
Replies: 4
Views: 615
Posted By sneekula
And don't forget to use self to turn those functions into methods for the instance, like
def moveup(self):
Forum: Python Sep 21st, 2009
Replies: 6
Views: 300
Posted By sneekula
Something like that might do. I avoided the use of float() until the end to keep time-stamp and port info from turning into floats:
raw_data = """\
501 0 0.932 0.933 0.931 0.931 0.929 0.933...
Forum: Geeks' Lounge Sep 20th, 2009
Replies: 1,376
Views: 146,705
Posted By sneekula
Rice Pudding with Cinnamon
Forum: Geeks' Lounge Sep 20th, 2009
Replies: 1,376
Views: 146,705
Posted By sneekula
Bottom Round Steak, pink inside, with cauliflower.
Forum: Python Sep 20th, 2009
Replies: 7
Views: 357
Posted By sneekula
With wxPython code you can give py2exe an XML based manifest to force it to adopt the Windows XP theme.
Forum: Python Sep 20th, 2009
Replies: 10
Views: 379
Posted By sneekula
To make more sense you should have written your class this way:
class Animal:
def __init__(self, legs):
self.legs = legs

cow = Animal(4)
chicken = Animal(2)
octopus =...
Forum: Python Sep 20th, 2009
Replies: 7
Views: 396
Posted By sneekula
Now I am curious, did that work for Python26?
Forum: Python Sep 20th, 2009
Replies: 5
Views: 822
Posted By sneekula
Works fine on my Ubuntu machine. I copied the Python25/26 source from the webpage and saved it as cTurtle.py in my working directory. The module has a number of demos built in that look great and...
Forum: Python Sep 20th, 2009
Replies: 7
Views: 321
Posted By sneekula
Nice, looks like Python3 has bit your fancy.
Sooner or later we all have to follow your example.
Forum: Geeks' Lounge Sep 19th, 2009
Replies: 58
Views: 3,078
Posted By sneekula
Which Computer Language would you like to know more about, or even start to learn?
Forum: Python Sep 19th, 2009
Replies: 9
Views: 392
Posted By sneekula
As you start coding larger projects with Python, remember to go in small steps, test each step, ask question here. Python can be fun!

Python is in many ways more advanced and modern than some of...
Forum: Python Sep 19th, 2009
Replies: 0
Code Snippet: Recursion Benchmark
Views: 531
Posted By sneekula
If you own a stopwatch, here is your chance to benchmark the various versions of Python on recursion performance. The Ackermann function gives the old computer quite a workout.
Forum: Geeks' Lounge Sep 19th, 2009
Replies: 672
Views: 75,030
Posted By sneekula
Phyllobates terribilis (the Golden Poison Frog or the Golden Dart) is the most poisonous frog. A tiny fraction of a drop, 0.00000007 ounces, of its skin secretion is enough to kill a person.
Forum: Geeks' Lounge Sep 19th, 2009
Replies: 32
Views: 1,881
Posted By sneekula
Plato
> Is <
Boring
Showing results 1 to 40 of 1000

 


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

©2003 - 2009 DaniWeb® LLC