- Strength to Increase Rep
- +11
- Strength to Decrease Rep
- -2
- Upvotes Received
- 150
- Posts with Upvotes
- 122
- Upvoting Members
- 55
- Downvotes Received
- 8
- Posts with Downvotes
- 8
- Downvoting Members
- 7
Re: Time just keeps on going! Procrestinate now and slow it down a little! | |
| |
| Re: Watched "Dan in Real Life" and "Crazy, Stupid, Love" on DVD at a friend's house. Kind of romantic and funny. Will not drink cocktails with a straw after that. |
Re: You better take a look at: [url]http://www.daniweb.com/forums/post104865-4.html[/url] | |
Re: The integral from -infinity to infinity of e^(-x^2) is sqrt(pi). "Heads, she wins! Tails, you lose!" ¿umop apisdn upside down? | |
Re: Once you learn which statement blocks belong together, then indentation makes more sense. Just think about it. It's all rather logical: # Jason Edgel # Program to find max value def function_max(value1, value2): if value1 > value2: return value1 else: return value2 # get the two integer values value1 = … | |
Re: An application was for employment A program was a TV show A cursor used profanity A keyboard was a piano. Memory was something that you lost with age A CD was a bank account And if you had a 3-inch Floppy You hoped nobody found out. Compress was something you … | |
Re: Here is the modification of vegaseat's code that will work with both Python27 and Python32: # create a sound file in AU format playing a sine wave # of a given frequency, duration and volume # vegaseat code modified to work with Python27 and Python32 from struct import pack from … | |
Re: The tiny calculator is a great start of a fancier calculator. Thank you! | |
Re: A code snippet is an example of working code that brings up an interesting aspect of Python programming. An English language string is given and then tanslated into several other languages. The translated string is printed out. You could apply the concept to one of your programs. You need to … | |
Re: Just survived the "Pineapple Express" that gave large parts of California nine inches of rain. | |
Re: Sometimes you just have to clear the display screen when you work with the Python command shell. This little function does that in both Windows or Linux: [code=python]def clear_screen(): """ clear the screen in the command shell works on windows (nt, xp, Vista) or linux """ import os os.system(['clear','cls'][os.name == … | |
Re: Here is an easy one. Create a list of integers between 1 an 100 that are not divisible by 2 or 3. | |
Re: My dad has a large collection of Benny Hill shows. Sometimes when I visit him we sit down and watch some of them and laugh a lot. Benny Hill is a very funny man! I remember when he tells how he and his buddies drag the dead circus elephant upstairs … | |
Re: Select multiple items from a Tkinter list box: # a simple Tkinter Listbox example # press the shift or ctrl key to select multiple items try: # for Python2 import Tkinter as tk except ImportError: # for Python3 import tkinter as tk def get_list(): """ function to read the listbox … | |
Re: A code snippet to search a folder full of of C code files for a given keyword/searchword. Maybe add some wildcard options. | |
Re: vegaseat, this must be the commented out test version replace **#@Memoize** with **@Memoize** to get the working version | |
Re: Your code tells me that you are using Python2. Where is your start? | |
Re: New words: tup = ('ello World','uello World') print('\n'.join(chr(n)+tup[chr(n)=='Q']for n in range(66, 91))) | |
| Re: Creative answering machine messages: "You have reached the CPX-2000 Voice Blackmail System. Your voice patterns are now being digitally encoded and stored for later use. Once this is done, our computers will be able to use the sound of YOUR voice for literally thousands of illegal and immoral purposes. There … |
Re: The code from james.lu.75491856 (James Lu) can easily be cracked with character frequency analysis, since the most common characters in the English language (or any other language) will still be assigned the same sub characters. | |
Re: My guess is that the folks at Sony wish they used ProtonMail. | |
Re: I gave **enki** a try, but it failed the simple `name = input("Enter your name: ")` test using it on Python34 and Windows7. | |
Re: Don't you feel important with all those emails? | |
Re: Oh wow, I didn't know about the magic dragon's demise. What a tragedy! | |
Re: A slight modification of vegaseat's original code to take care of whole words: ''' re_sub_whole words.py replace whole words in a text using Python module re and a dictionary of key_word:replace_with pairs tested with Python273 ZZ ''' import re def word_replace(text, replace_dict): ''' Replace words in a text that match … | |
Re: "If your bank uses Java applets, you should not use their online banking system at all, especially not under Windows." -- Mike How do you find out if your bank uses Java applets? | |
Re: I am not sure why science has such a bad stigma amongst US teenagers. Maybe because our only heroes are military or sports/entertainers. | |
Re: Windows 10 will have to be successful since about 90% of desktop and laptop computers worldwide use Windows. Apple iOS/OSX follows with 7% and Linux with about 2%. I doubt that many of those Windows users will switch and waste their time learning a different OS. Servers are also dominated … | |
Re: Microsoft is "too big to fail". Just like the big banks, the US taxpayer would have to bail them out. Without Windows the whole governmental bureaucracy would be in jeopardy. |