-
Replied To a Post in Things I hate about TV shows
I haven't watched TV since my granddaughter (almost 2 years old) came over and pressed just about every button and combination of buttons on my remote control. I was told … -
Replied To a Post in The future!
Some folks will do anything to get fresh milk. -
Replied To a Post in Random Facts
Most men in the early west carried a jack knife made by the Buck knife company. When playing poker it was common to place one of these Buck Knives in … -
Replied To a Post in Jokes
Newspaper Headlines: Miners Refuse to Work after Death. Red Tape Holds Up New Bridge. Kids Make Nutritious Snacks. Man Kills Self Before Shooting Wife and Daughter. -
Replied To a Post in Jokes
Notice in a farmer's field: THE FARMER ALLOWS WALKERS TO CROSS THE FIELD FOR FREE, BUT THE BULL CHARGES. -
Replied To a Post in What are you eating/drinking right now?
I am not fasting for a blood test, so I ate a leftover piece of fruity Easter cake with my usual mug of coffee. -
Edited Minimize the surface area of a can (Python)
Let's assume you would have to design a 500 ml (about 1.1 pint) food/beverage container like a can and use the least amount of material. Here is a Python program … -
Created Minimize the surface area of a can (Python)
Let's assume you would have to design a 500 ml (about 1.1 pint) food/beverage container like a can and use the least amount of material. Here is a Python program … -
Replied To a Post in What are you eating/drinking right now?
The Easter Bunny left two red eggs in the yard, so I ate them. -
Replied To a Post in Google Go OOP
Comparing C/C++ and Go types: +--------------------+------------------+ | C/C++ type | Go type | +--------------------+------------------+ | bool | bool | | char | byte | | signed char | int8 | … -
Replied To a Post in Random Facts
If you eat meat in any country in the European Union, or even in China or Russia, you don’t have to worry about getting a dash of ractopamine with your … -
Marked Solved Status for python get drive letter / mount point
In python if I know the volume label of a USB mass storage device is there a way to get its. Drive letter Windows Mount Point Linux Mount Point OSX … -
Marked Solved Status for Python Formated List
I have a list in python that I am printing to the screen. The current format is Option Key: [0, 3, 6, 8, 8, 5, 2, 0, 7, 1, 9, … -
Replied To a Post in How can I add Add \x ?
Here is an example where I knew the codec (latin_1) ... # a simple byte string bs = b'\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef' # decode Python3 byte string to a string s = bs.decode("latin_1") … -
Replied To a Post in How can I add Add \x ?
Unless you know the codecs these are not printable characters ... """ byte_string_test102.py see also Python module codecs """ # byte string in 4 parts to show it better bs1 … -
Replied To a Post in How can I add Add \x ?
What you want is a byte string like sb1 = b"\xf0\xcb\xf2\x60\xe0\xca\x8e\xc2\x43\x10\x89\xfb\x39\x3a\x1c\x29" -
Marked Solved Status for check if raw_input equals a predefinded string
!using python 3! first of all, i am a rather noobish python coder, so please dont make the answers too hard to understand. I was trying to get an input … -
Replied To a Post in check if raw_input equals a predefinded string
Your code is Python2 code and would give you lots of errors in Python3. -
Revoked Solved Status for check if raw_input equals a predefinded string
!using python 3! first of all, i am a rather noobish python coder, so please dont make the answers too hard to understand. I was trying to get an input … -
Replied To a Post in How can I add Add \x ?
Another way using the slice operator ... s = "f0cbf260e0ca8ec2431089fb393a1c29513aaaa5847d13e8be84760968e64dc6" sx = r"\x" + r"\x".join(s[n : n+2] for n in range(0, len(s), 2)) print(sx) -
Replied To a Post in Python Formated List
Another concept of Python is slicing ... mylist = [0, 3, 6, 8, 8, 5, 2, 0, 7, 1, 9, 5, 0, 7, 7, 4, 2] s = "".join(str(n) for … -
Replied To a Post in Problem Help me
Using the Standard Template Library (STL) vector might make your life easier. -
Replied To a Post in What are you eating/drinking right now?
After the media scared us with the high arsenic content of California wine, I am drinking beer again. -
Replied To a Post in Net neutrality, and its father
Eventually security issues will make the web more restrictive. -
Replied To a Post in Jokes
A young man goes into a drug store to buy condoms. The pharmacist says the condoms come in packs of 3, 9 or 12 and asks which the young man … -
Replied To a Post in So. Does anyone have any good programming/computing jokes?
There were computers in Biblical times. Eve had an Apple. -
Replied To a Post in Google Go OOP
Here is the Go code I was working with, a nice example of concurrent computing ... // sieve.go // a concurrent prime sieve // the prime sieve: Daisy-chain Filter processes … -
Replied To a Post in Google Go OOP
@iamthwee A screenshot of LiteIDE, the open source, cross platform Go IDE from: https://github.com/visualfc/liteide  -
Replied To a Post in What is the most powerful programming language?
When you write large programs, compile time can be an issue. A language like Go has been developed to minimize compile time by orders of magnitude. The joke has it … -
Replied To a Post in Google Go OOP
Go was developed to drastically improve compile times and to address the modern computing environment. So it will find its use in large programs, cloud computing and the like. Go … -
Replied To a Post in Random Facts
Guns per 100 Residents (2014): +---------------+------+ | Country | Guns | +---------------+------+ | United States | 90.0 | | Serbia | 69.7 | | Yemen | 54.8 | | Switzerland … -
Replied To a Post in Anyone using Google's Go language?
Go was developed to speed up compile time, and to address the modern computing environment. C++ has this nightmare of headerfiles themselves including headerfiles that leads to much redundancy and … -
Replied To a Post in Random Facts
"April Fool" stems from people who refused to adopt the Gregorian calendar in favor of the older Julian calendar when it was established in the 16th century Europe. While most … -
Replied To a Post in python get drive letter / mount point
Also notice that the information returned resides in named tuples. -
Replied To a Post in PyQt reloading and updating the application code
subprocess.call() might do -
Replied To a Post in So. Does anyone have any good programming/computing jokes?
Starting today, we are shifting to a two-tiered service: Everyone can use our basic service, Twttr, but you only get consonants. For five dollars a month, you can use our … -
Replied To a Post in QA Session
Q: "Why did the bunny cross the road?" A: "It was the chicken's day off." -
Replied To a Post in Amateur Astronomer's Thread
Have you seen any "dark matter" lately? Actually you can only see the "dark matter effect" as it distorts light through gravitation. When two galaxies collide their shape will change, … -
Replied To a Post in Google Go OOP
Go is very strict on data types, even though it has the **:=** operator that can infere data type. Python makes some old time programmers uneasy because it uses inference … -
Replied To a Post in What are you eating/drinking right now?
High fiber cereal, mandarin slices, grapes with cashew milk. -
Replied To a Post in What Music Do People Like?
Of course there is ... Queen Carlos Santana Peter Maffey Kraftwerk Tina Turner Clouseau Sometimes I listen to the beat of my own drummer. -
Replied To a Post in Jokes
Think of how stupid the average person is, and realize half of them are stupider than that. -
Replied To a Post in "Hello World" Fun
Using module base64 ... import base64 encoded = "SGVsbG8gV29ybGQ=" try: # Python2 decoded = base64.decodestring(encoded) except TypeError: # Python3 decoded = base64.decodestring(encoded.encode("utf8")).decode("utf8") print(decoded) -
Replied To a Post in Jokes
Canadian: Almost like an American, but without the gun. -
Replied To a Post in Memorable Quotations
"There is no reason anyone would want a computer in their home." ... Ken Olson, president, chairman and founder of Digital Equipment Corp.,1977. -
Replied To a Post in how to dynamically add keys to python dictionary
What have you coded so far? -
Replied To a Post in What are you eating/drinking right now?
Well, there is one less chocolate Easter Bunny around. -
Replied To a Post in QA Session
Q: "What do you call ten rabbits marching backwards?" A: "A receding hareline." -
Replied To a Post in There is an elephant on the loo!
The voices of Bugs Bunny, Daffy Duck, Elmer Fudd, and Porky Pig were all done by one man, Mel Blanc. -
Replied To a Post in Python Formated List
Without thinking ... mylist = [0, 3, 6, 8, 8, 5, 2, 0, 7, 1, 9, 5, 0, 7, 7, 4, 2] s = "" n = 1 for ix, …
The End.