4,305 Posted Topics

Member Avatar for brainchief
Member Avatar for MidiMagic
0
723
Member Avatar for The Dude

Red wine for me! I find that the only red wine where the price makes quite a difference is a "Merlot", their distinguishing fruity taste can suffer from cheap. My favorite red wine is most any California "Cabernet Sauvignon", where actually the cheaper ones taste better to me, and seem …

Member Avatar for sneekula
0
216
Member Avatar for sneekula

[QUOTE=Ancient Dragon;498084]The most offensive TV ads are about [URL="http://en.wikipedia.org/wiki/Erectile_dysfunction"]ED[/URL]. I don't know what happened but just a few years ago those ads would not have been allowed on TV. ... [/QUOTE]Not so many years ago ED wasn't treatable. I am amazed how many folks have troubles with it. Maybe it's …

Member Avatar for Serunson
0
153
Member Avatar for peter_budo

Mudslide in a fancy glass. Looks good and tastes good. Happy New Year!

Member Avatar for Jx_Man
0
75
Member Avatar for GRaymer

Here is a quick way (written with the Boa Constructor) to do this ... [code=python]#----------------------------------------------------------------------------- # Name: Test2.py # Purpose: Spinbutton with label that allows values to be # incremented or decremented by other than 1 # # Author: <your name> # # Created: 2007/12/31 # RCS-ID: $Id: Test2.py $ …

Member Avatar for vegaseat
0
84
Member Avatar for sneekula

Hello Sneekula, glad to see you back and still using Python for your chemistry problems. Your problem is a bit more hairy, since you have to parse the string with a look ahead so you can separate it into something useful, like a list of (element, number) tuples. You can …

Member Avatar for sneekula
0
118
Member Avatar for The Dude

I would recommend honesty. Cheaters are simply too easy to detect, even without software.

Member Avatar for invisal
0
363
Member Avatar for maslak

You mean something like this ... [code=python]a = 1 b = 2 c = 3 my_list = [a, b, c, a + c] # test it print my_list # [1, 2, 3, 4] [/code] ... or ... [code=python]my_list = [1, 2, 3, 4] a, b, c, d = my_list # …

Member Avatar for sneekula
0
136
Member Avatar for Ene Uran
Member Avatar for kakilang

Now it gets hairy! You are talking GUI programming and need to bind with winmm.lib or such, or perhaps load winmm.dll. BCX makes that easy and has a sample! Dev-Cpp has something like like libwinmm.a in the \lib directory. Maybe we have to wait till Narue wakes up, he knows …

Member Avatar for Salem
0
1K
Member Avatar for scru

[QUOTE=scru;498054]Well I must have been naughty. My gifts suck.[/QUOTE]Did you get a gift that you gave the previous year? Happened to me once. I was too nice to say something appropriate.

Member Avatar for sneekula
0
126
Member Avatar for Lardmeister

Interesting story jwenting, so what kind of government label should be attached to each government purchase order (or employee) to prevent this waste?

Member Avatar for GrimJack
1
413
Member Avatar for scru
Member Avatar for mccarthp

Try this code, I think it's the one I posted on the "Starting Python" sticky here. [code=python]# if you are on the internet you can access the HTML code of a # given web site # using the urlopen() method/function from the module urllib2 import urllib2 urlStr = 'http://www.python.org/' try: …

Member Avatar for jrcagle
0
517
Member Avatar for Jishnu

[QUOTE=MidiMagic;496709]Murphy's original laws: 1. It's never as easy as it looks. 2. Everything will take longer than you think it will. 3. If anything can go wrong, it will. 4. When left to themselves, things go from bad to worse. 5. Nature always sides with the hidden flaw. Fitznik's corollary …

Member Avatar for vegaseat
1
506
Member Avatar for Roadphantom13

Just a note: The library (graphics.py) is a wrapper for the Tkinter GUI toolkit and is designed to make it very easy for novice programmers to experiment with computer graphics in an object oriented fashion. It is written by John Zelle for use with the book "Python Programming: An Introduction …

Member Avatar for jrcagle
0
114
Member Avatar for darkagn

I know this dates me, but SimCity and Railroad Tycoon were neat games in the early days of gaming. I still like to play a mean game of Age of Empires II (Age of Kings), must be my second childhood!

Member Avatar for Jicky
0
254
Member Avatar for Serunson

Watch out, Serunson passed his drivers test. I am glad I don't have to drive around in merry old England then. Couldn't get used to the left-hand driving anyway.

Member Avatar for jbennet
0
332
Member Avatar for GrimJack
Member Avatar for Ancient Dragon

I think England has a fine man here. Girlfriends of Gordon Brown called him interested in only politics, even at an early dating age. He shares many ideas with President Bush, is pro Iraq war, pro Israel, pro nuclear and somewhat dour. Gordon drives a 4.2 litre Jaguar XJ V8 …

Member Avatar for nav33n
0
545
Member Avatar for Jicky
Member Avatar for tomoconnell

I am not sure if you are working correctly with the module shelve. For an example see Starting Python post: [url]http://www.daniweb.com/forums/post490861-110.html[/url] Remember shelve behaves like a 'persistent to file' dictionary.

Member Avatar for vegaseat
0
502
Member Avatar for ithelp
Member Avatar for briansmall
0
250
Member Avatar for The Dude

Out here in the high desert wellwater comes from great depths and is loaded with minerals. Drinking that stuff directly will give you the trots. I am using a reverse osmosis unit on it or get bottled water, like water from Big Bear Mountain in California.

Member Avatar for sneekula
0
397
Member Avatar for Ancient Dragon

Nice post AD! Catching music and lyrics. Like your new avatar too.

Member Avatar for scru
0
72
Member Avatar for Agentbob

The easiest way to do this is to modify turtle.py (usually found in C:\Python25\Lib\lib-tk\turtle.py) by adding a method write_font() and saving the modified module as turtle1.py (in this case in C:\Python25\Lib\lib-tk\turtle1.py). Here is turtle1.py (click on "Toggle Plain Text", select, copy and paste into your editor, then save) ... [code=python]# …

Member Avatar for vegaseat
0
1K
Member Avatar for The Dude

To me dessert is the most important part of the holiday meal. My sister usually brings a "killer chocolate layer cake" ala "death by chocolate" that is absolutely scrumptious. This year that won't happen, so I have to come up with something different. Maybe a brandy and fruit kind of …

Member Avatar for sneekula
0
163
Member Avatar for joshSCH

Statistics can be full of bias. My suggestion, go out and meet some educated black folks, you will enjoy them!

Member Avatar for happygeek
0
783
Member Avatar for The Dude

I used to be a smoker when I was in the military. I quit smoking cold right afterwards, took a real nice girl to convince me of that. Since then I can't stand second hand smoke. Just a note, this was in the days when most girls simply didn't smoke. …

Member Avatar for Ezzaral
1
158
Member Avatar for LarZ

Just replace the 1 with a zero in Add() ... [code] box.Add(panel1, 0) box.Add(panel2, 0) [/code]

Member Avatar for vegaseat
0
831
Member Avatar for jimFan

There is a small code snippet on DaniWeb on how to manipulate Excel data from within qbasic. Your friend might not be so far off!

Member Avatar for miketillman
0
1K
Member Avatar for Jicky

Move to the desert! I haven't heard or seen one of those buggers for the last 10 years.

Member Avatar for sneekula
0
410
Member Avatar for jonnim

For multiple entries you can use lists or tuples. The class as written can add additional records by simply writing code like this external to the class ... [code]frank = fwpolicy(...your normal record data for Frank here...) frank.additional_record = 'blah' [/code]It is customary in Python to start a class name …

Member Avatar for vegaseat
0
101
Member Avatar for mathijs

I haven't tested it fully, but you could do something like this ... [code=python]def einde(): # these are the winner positions win_pos = ((0,1,2),(3,4,5),(6,7,8),(0,3,6), (1,4,7),(2,5,8),(0,4,8),(2,4,6)) for q in win_pos: if q[0]==q[1]==q[2]=="x": print "jij wint" einde2() if q[0]==q[1]==q[2]=="o": print "de computer wint" einde2() [/code]

Member Avatar for mathijs
0
108
Member Avatar for dreddick4

[QUOTE=QwertyManiac;482609]Why is there no indentation at all? This. Is. Madness![/QUOTE]for Python on Daniweb: Please use the [b][noparse][code=python][/noparse][/b] and [b][noparse][/code][/noparse][/b] tag pair to enclose your python code. Also read: [url]http://www.daniweb.com/forums/announcement114-3.html[/url] further: look at the light gray message in the post entry field for the forum I made a few modifications to …

Member Avatar for vegaseat
0
104
Member Avatar for im_desperate

for Python on Daniweb: Please use the [b][noparse][code=python][/noparse][/b] and [b][noparse][/code][/noparse][/b] tag pair to enclose your python code. Python code uses proper indentation as part of its code. Presenting unindented Python code forces the person that may want to help you to do this and discourages many.

Member Avatar for im_desperate
0
127
Member Avatar for sneekula

[QUOTE=Ancient Dragon;481074]Miracle on 34th Street (the original version, not the updated piece of trash).[/QUOTE]Dito, that one makes me feel real warm around the old heart. On the other hand I like Chevy Chase too, classic present day americana.

Member Avatar for vegaseat
0
166
Member Avatar for GrimJack

[QUOTE=Lardmeister;478197]I feel like I am in Iran. The only proof I have was Bumsfeld's post which has been deleted by jwebting. Bumsfeld already e-mailed me that he will never go back to DaniWeb. Don't bother answering this, this will be my last visit to DaniWeb!!!!!!!!!![/QUOTE]That is a little harsh, isn't …

Member Avatar for GrimJack
0
273
Member Avatar for outdatedtech

[QUOTE=outdatedtech;474068]I gave a intro and now I'm just wandering the board. To bad there's no beer.[/QUOTE]Welcome to our forum. I know a place that has lots of used beer.

Member Avatar for karoke
0
116
Member Avatar for Sturm
Member Avatar for rectifier
0
488
Member Avatar for outdatedtech

Look at it this way, even in WW2 the shooting stopped for a short moment. Christmas is a celebration of a wonderful event, that is more important than the silly credit card shopping.

Member Avatar for MidiMagic
0
171
Member Avatar for monkhead

Actually quite an interesting assignment. One way to solve this is to assign a rank number to each species. Start out with the same rank for each and then loop though a number of times (let's say 2 times the length of the species list) using your rules. Transform your …

Member Avatar for vegaseat
0
92
Member Avatar for The Dude
Member Avatar for vegaseat
0
49
Member Avatar for Salem

[QUOTE=jbennet;478524]theyve just admitted theyve lost more[/QUOTE]Do I smell a cover-up? You have to forgive them, most of these fellows have the basic instincts of politicians.

Member Avatar for vegaseat
0
158
Member Avatar for yelpy

Some people learn best by using examples. Try and experiment with some of the examples in the "Starting Python" sticky here at: [url]http://www.daniweb.com/forums/thread20774.html[/url]

Member Avatar for vegaseat
0
172
Member Avatar for Roadphantom13

[QUOTE=jice;479156]You should look at Tkinter (available in the normal python distrib) - It would be much simpler than reinvent the wheel. [url]http://www.ferg.org/thinking_in_tkinter/index.html[/url][/QUOTE]Thanks for the nice Tkinter GUI kit reference. Actually graphics.py was written by John Zelle for use with the book "Python Programming: An Introduction to Computer Science" (Franklin, Beedle …

Member Avatar for vegaseat
0
167
Member Avatar for vegaseat

Things are getting quiet around the shop, seems like all the coding is done in foreign lands. Any way, let's get a thread started, a multilingual coding spree showing how to display "Hello World! (computer language used)". The code has to be a full program! Make sure you have the …

Member Avatar for sgssergio
0
1K
Member Avatar for Salem

[QUOTE=bumsfeld;469426]I don't think that a stupid filter will ever work. The stupid folks are just too smart for that.[/QUOTE]... and this sub forum proves it?

Member Avatar for vegaseat
0
75
Member Avatar for Lardmeister

The best way to win at a poker game is to play stupid. That is what our fearless leader is doing. Make no mistake about it, George Bush is very smart, a lot smarter then many of those constipated leaders of European countries that have fallen for the old poker …

Member Avatar for Lardmeister
0
531
Member Avatar for Seagull One

Are you using Inigo's Python recipe at: [URL]http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/93025[/URL]

Member Avatar for jrcagle
0
226

The End.