4,305 Posted Topics
Re: 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 … | |
Re: [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 … | |
Re: Mudslide in a fancy glass. Looks good and tastes good. Happy New Year! | |
Re: 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 $ … | |
Re: 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 … | |
Re: I would recommend honesty. Cheaters are simply too easy to detect, even without software. | |
Re: 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 # … | |
Re: 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 … | |
Re: [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. | |
Re: Interesting story jwenting, so what kind of government label should be attached to each government purchase order (or employee) to prevent this waste? | |
Re: 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: … | |
Re: [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 … | |
Re: 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 … | |
Re: 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! | |
Re: 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. | |
Re: See you after inventory then. Happy holidays anyway! | |
Re: 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 … | |
| |
Re: 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. | |
Re: It depends what is relevant to your space, in an economic space PRICE would be a dimension. | |
Re: 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. | |
Re: Nice post AD! Catching music and lyrics. Like your new avatar too. | |
Re: 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]# … | |
Re: 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 … | |
Re: Statistics can be full of bias. My suggestion, go out and meet some educated black folks, you will enjoy them! | |
Re: 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. … | |
Re: Just replace the 1 with a zero in Add() ... [code] box.Add(panel1, 0) box.Add(panel2, 0) [/code] | |
Re: 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! | |
Re: Move to the desert! I haven't heard or seen one of those buggers for the last 10 years. | |
Re: 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 … | |
Re: 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] | |
Re: [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 … | |
Re: 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. | |
Re: [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. | |
Re: [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 … | |
Re: [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. | |
Re: 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. | |
Re: 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 … | |
Re: [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. | |
Re: 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] | |
Re: [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 … | |
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 … | |
Re: [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? | |
Re: 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 … | |
Re: Are you using Inigo's Python recipe at: [URL]http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/93025[/URL] |
The End.