851 Posted Topics
Re: [B]Is England Vanishing?[/B] [B]Foolish question, it would be very tough to hide![/B] | |
Larry Craig, the US Senator from Idaho, flew all the way to Minnesota to fullfil his perverse sexual fantasies in a public men's room there. A smelly public men's room, the guy has no class! I did not realize that that state has a reputation for this kind of thing. … | |
Re: Interesting story! Interesting that it worked, maybe there is an economical application of religious ceremonies in aircraft maintenance. To be really safe, each passenger should sacrifice a goat before boarding the plane. | |
Re: "My sister bought a house 25 years ago in southern CA for $120,000 and sold it a year ago for $850,000." That just about takes care of inflation, taxes and fees. Off topic: "Let's keep politics out of the Olympics!" | |
Re: Come on folks, this sort of thing is going on all the time. It's perfectly safe! | |
Re: I can barely wait until Sinkula brings up the third amendment! In the meantime roll up your sleeves, bare your arms, and go to work! | |
Re: Sounds very much like the guy in the apartment below ours. | |
Re: That database and tattooing a large number on everyones forehead should just about eliminate much of the lower class crimes in your country. | |
Re: In a similar vain, there have been attacks of seniors by teenagers who wanted to ride their fancy motorized wheelchairs. If you are an old phard riding a segway, watch out! | |
Re: ... the person above me is the greatest person ever! | |
Re: I thought this was the Geek's Lounge (geeks have a brain), but it sound like it is more and more the "John Birch Society" Lounge! | |
Re: We also have a Department of Energy and are dependend on oil more than ever! Do we need to get rid of them too? | |
Re: Just another ho-hum politician who hopes that abortion will be the main issue in the elections. | |
Re: I watched it and it was great! An almost religious experience! | |
Re: Dan, it sounds to me like you are suggesting new places for the terrorist to commit their evil deads! Thanks for scaring the rest of us! Money talks! Stick a bundle of hundred Dollar bills in an envelope, freezer ready, wrapped in saran wrap, and hand it to a politician … | |
Re: [quote=Ancient Dragon;423794][URL="http://www.youtube.com/watch?v=hSg4Uummafs"]Humerous[/URL][/quote]Not very patriotic, but you proved that even a Programming Guru can have a sense of humor! | |
Re: When I was in Canada, they put mayonaise on everything, it even replaced ketchup. | |
Re: Wow, 666 great contributions to menkinds' knowledge base! Got to go and P! | |
Re: [quote=lasher511;421746]Do you know any xhtml, javascript, sql, PHP-ajax?[/quote]I have a goodly knowledge of cobalt! | |
Re: Take a look at: [URL]http://www.daniweb.com/code/snippet414.html[/URL] It allows you to designate a sine wave to the sound frequency to play. | |
CIA and FBI computers have edited entries in the online encyclopedia Wikipedia on topics including the Iraq war and the Guantanamo prison, according to a new tracing program. [URL]http://news.yahoo.com/s/nm/20070816/wr_nm/security_wikipedia_dc_3;_ylt=AisUcvnBVjtrxa9lateIsEIE1vAI[/URL] Here I though that Fox News was handling that sort of thing for them! | |
Re: I find jwenting's comment disgustingly uninformed, he (or she) did obviously not listen to the interview, but just mouthed off a typical O'Reiley line! | |
Re: Is the sudden attention of our moronic press to the death of a small number of coal miners a product of global warming? | |
Right now I have a mixed list of different types of elements: [code=python]mixed_list = [1, 0.5, 0, 3, 'a', 'z'] print max(mixed_list) # shows z, but would like it to be 3 [/code]How can I find the maximum numeric element of the list? | |
Can I display animated images like an animated GIF file using Python code? | |
Re: Congratulations [URL="http://www.daniweb.com/forums/member84473.html"]darrenw89[/URL] your post is the only funny story so far!!! vbmenu_register("postmenu_402935", true); ![]() | |
Re: I guess Bush's new poodle is now Brown instead of Blair. Well, at least he is sticking with the B word! | |
I would like to reverse a sentence. I have this: [code=python]sentence = "a doctor kills your ills with pills and you with bills" print sentence[::-1] # sllib htiw uoy dna sllip htiw slli ruoy sllik rotcod a [/code]However, I would like the sentence reversed like this: bills with you and … | |
Re: I had the same problem until I figured out that the Text widget width is in characters and the height in text lines. Makes it easier for text, but harder for overall sizing. | |
Re: To save and load a whole object like a list, you have to use the module pickle: [code=python]import pickle myList = [1,2,3,4] # save/dump the list as an object file = open("myList.dat", "w") pickle.dump(myList, file) file.close() # read/load the list as an object file = open("myList.dat", "r") myList2 = pickle.load(file) … | |
Re: Can you run any wxPython code, even just a small program? | |
Re: I would have used something like [INLINECODE] int pos = st.IndexOf(data); [/INLINECODE] | |
Re: [quote=addicted;340960]:rolleyes: I need some one to define prime numbers for me A full definition, I am trying to write a program to determine wether a number is prime, print all prime numbers in a specific range ... e.t.c so i need a full definition of prime numbers, i know prime … | |
Re: You cannot use C to solve this problem. The highest integer value it can use is: unsigned long (32 bits) goes from 0 to 4,294,967,295 max. There are other languages that can handle very large integers easily. | |
| |
Re: Now we have all seen that our moderators are less than perfect: [code]// typical example for seeded random integers in a given range #include <stdlib.h> #include <stdio.h> #include <time.h> // time() int main(void) { int i, min, max, rn; srand(time(NULL)); // random seed on most compilers min = 1; max … | |
Re: Python uses 'while True' for the endless loop. [code=python]# this will loop until the user enters # either 'yes' or 'go away' while True: quest = raw_input("Are you ready?") if quest == 'yes': break elif quest == 'go away': raise SystemExit # more code here to be executed after break … | |
Does anyone know of anyplace/anybody that teaches C# at the highschool or college level to get students used to a programming language? | |
Re: Doesn't look like tcl knows how to handle the higher ascii characters properly, even with adding encoding strings to the code. | |
Re: [quote=iamthwee;332847]Not 100% fool proof. Like I said you have to code your own me thinks.[/quote]Nothing is 100% fool proof, it depends on the fool! I would say go with pygmalion's solution, unless "know-it-all" iamthwee produces code. | |
Re: Also take a look at this site, it's IDE is much smaller and faster than the hughely swollen MS Express C# deal. SharDevelop is a free IDE for C#, VB.NET and Boo projects on Microsoft's .NET platform. It is open-source, and you can download both sourcecode and executables from this … | |
I found this code, but can't find the needed module: [CODE] # display the info of a list, dictionary and tuple # needs apihelper.py from apihelper import info # create a list (or other container) li = [] # now display the available inormation print info(li) print "-------------------------------------------" # create … | |
Re: I am a little confused with the 'string.split(s)' I thought it was more like s.split(): [code]s = "Just a test string" words = s.split() print words [/code]Are there different versions of Python floating about? | |
I have for instance this function I wrote and want to assure that the argument is a number when I call the function. [code]def hypotenuse(n): "return the length of the hypotenuse of an isosceles triangle" return (n*n + n*n)**0.5 sides = 3.7 print hypotenuse(sides) [/code]Any ideas how to do this? | |
Re: What module do you use to get a radiobutton? |
The End.