jingda commented: That's why you are so successful +0
e-papa commented: Thanks +1
... you think you know it all.
"Failure is simply an opportunity to begin again, this time more intelligently."
— Henry Ford
"Anyone who stops learning is old, whether at twenty or eighty. Anyone who keeps learning stays young."
— Henry Ford
Henry Ford
"Thinking is the hardest work there is, which is probably the reason so few engage in it."
everyone should us this more often:
gigo --> garbage in garbage out
The problem with the public school system in the US is that it has to teach to the least common denominator. In other words, students that don't want to be taught.
I like to hike in the mountains, take pictures with my camera, and do some hand drawn sketches.
A good workout in the morning helps me think better all day!
Maple pecan cereal with blueberries and milk.
A nice tuna fish sandwich and a root beer.
Any seeds of today may contain the flowers of tomorrow.
We have no right to assume that any physical laws exist, or if they have existed up to now, that they will continue to exist in a similar manner in the future.
-- Max Planck
Science cannot solve the ultimate mystery of nature, for in the final analysis we ourselves are part of the mystery we are trying to solve.
-- Max Planck
I like coffee better than tea.
Scrambled eggs, hash-browns and mug of strong java.
Organized religion is used (wrongly) for terrorist acts!
Are you thinking along the line of a record structure?
You can easily set those up with a Python class.
Write a star drawing program using the Tkinter GUI toolkit that comes with Python, or another GUI toolkit if you want to.
I see a lot of rather sick retired old folks in my line of work. I would say
retirement is hell
Your brain is most active when you sleep.
The smarter you are, the more you dream.
Despite its often amazing computational power the brain only requires about 10 watts of power to operate.
"I can accept failure, everyone fails at something. But I can't accept not trying."
>> Michael Jordan
Soul food and rooibos tea
Take a quick look at:
http://www.daniweb.com/software-development/python/threads/191210/867414#post867414
I remember the days when restaurants used to serve chicken liver. Now most folks throw the stuff away.
Actually, I feel sorry for the mechanic that has to do the separation. :)
You got that wrong, it's a mecanic, not a mechanic.
Give me liberty or give me death
The past and future is all but an illusion.
All that matters is NOW.
A classical product of the "ME ME NOW" generation!
Sizzler, beans and red wine.
Veal Italian style and some red wine.
On online dating services men lie about their income and height the most. Women lie most about their weight and hair color.
The average American eats about one ton of food each year.
Scallops with peas and mushrooms
I like one-liners but jureslak one-liner for third pseudo is not good for readability and maintainance
:)
I agree, also one-liners can be very slow.
Hint
common letter frequency orders:
English --> 'ETAOIN SHRDLU'
I give my vote to Amanda Peet
Honey Bunches of Oats with strawberries and cream
By logic deduction:
Heaven is a gated community.
What happens to a string that should contain a newline character?
Maybe she wanted a Wii?
what i can say is this:
that every time you come in our Geeks Lounge to sig spam us, i will track you down in your preferred forum and neg-rep you.
-- The Geeks Lounge. Don't fuck with us, cause we're a gang.
.
Yeah, and we might stick our tongues out too!
Well, better late than ever!
Congratulations and good luck root
family guy and grey's anatomy
You must be from Chicago is a great show.
Bikinis were worn as early as 2000 BC in Sicily.
An egg salad sandwich and a side of sauteed mushrooms, cup of hot mint tea.
"If you live to be a hundred, I want to live to be a hundred minus one day, so I never have to live without you."
-- Winnie the Pooh
3D Tic Tac Toe is free
Russia & China.
It must be nice to have brains!
Are you still using tabs for indentations?
Here is a typical example of multiple radiobuttons using the Tkinter GUI toolkit:
# exploring multiple Tkinter radio buttons
# radio buttons only allow one item to be selected/checked
# ene
try:
# Python2
import Tkinter as tk
except ImportError:
# Python3
import tkinter as tk
def rb_selected():
# show checked/selected radio button item
ix = rb_v.get()
label['text'] = 'you selected %s' % mylist[ix]
root = tk.Tk()
# used by the radio buttons as index
rb_v = tk.IntVar()
mylist = [
'apple',
'orange',
'banana',
'pear',
'apricot'
]
# list(range()) needed for Python3
rb = list(range(len(mylist)))
for ix, text in enumerate(mylist):
# command is optional and responds to any rb changes
rb[ix] = tk.Radiobutton(root, text=text, value=ix,
variable=rb_v, command=rb_selected)
rb[ix].grid(row=ix, column=0, sticky='w')
label = tk.Label(root, width=20)
label.grid(row=ix+1, column=0, pady=5, sticky='w')
# you can preset one radio button
# default is first button (ix=0)
rb_v.set(2)
# show initial selection
rb_selected()
root.mainloop()
I am sure you can adapt it to your purposes easily. Just play around with the code a little.
Change
branch = "%s" % lines[0][1].strip(': ')
to
branch = "%s" % lines[0][1].strip()
to get rid of the newline character
Mister Bush wasn't very bright either, and he made a darn good president. At least he didn't increase the taxes like his dad did.
Does Mr. Forbes think that online magazines will replace printed magazines in the next ten years.