sneekula 969 Nearly a Posting Maven

Every dream I've ever had in life has come true ten times over.
-- Steve Wozniak

What a dreamer, after all he turned an apple somebody had taken a bite out off into a computer.

In my dream last night I went through someones very large home and unclogged all the toilets. Maybe I should be a plumber and be rich.

sneekula 969 Nearly a Posting Maven

"Today (Jan 22, 2008) I have withdrawn my candidacy for president of the United States," Fred Thompson, a former Tennessee senator and Hollywood actor, said in a statement.

Any other Hollywood actors to replace this good and honest man?

sneekula 969 Nearly a Posting Maven

Management sign over a workplace lavatory sink:
THINK!
Next day a worker's sign over the soap dish:
THOAP!

sneekula 969 Nearly a Posting Maven

People who act their age.

sneekula 969 Nearly a Posting Maven

A human not be born as a looser

There are a million suckers born every day!
Your golden opportunity to be a winner!

sneekula 969 Nearly a Posting Maven

Republicans sleep in separate beds, sometimes in separate rooms. That's why there are more Democrats.

The good news is that those newly created Dems are the Dems that don't vote

sneekula 969 Nearly a Posting Maven

I heard it before, at that time, laugh a lot, but now...

I dislike folks that tell me that they heard this or that joke before! Laugh with all the others and be quiet!

If you don't have anything nice to say, then it had better be funny.

sneekula 969 Nearly a Posting Maven

The USA makes new Dollar bills at such a giant rate that a few billion from NK would just be a drop in the bucket. Yes they are thiefs, more like stealing a candy bar from a large store.

Most money is made on the markets, like the stock market.

sneekula 969 Nearly a Posting Maven

nuts when watching tv

Hate those food commercials on TV, they make me hungry and add to my waist.

sneekula 969 Nearly a Posting Maven

Milk tea.

My kind of person! I still like milk and sugar in my tea.

sneekula 969 Nearly a Posting Maven

I would not equate the freedom to polute with puffing your smoke into somebody's face in public. That is just plain old rude, just the way farting in a restaurant would be!

sneekula 969 Nearly a Posting Maven

Just look at the huge amount of pollution generated by the old socialist countries of the east block!

sneekula 969 Nearly a Posting Maven

You have the freedom to rob my house ... ?
Dear, that's not a freedom, but a crime!

Children are required to be in school ... ?
Sorry, that does not imply an education! Lots of kids graduate that can barely write their name or figure out change at the cash register.

sneekula 969 Nearly a Posting Maven

The average CEO in the US gets paid about 100 times the wages of an average worker, and is very well worth it!

Strong managers who make tough decisions to cut jobs provide the only true job security in today's world. Weak managers are the problem. Weak managers destroy jobs. After all, the team with the best players wins.
~~ Jack Welch (former GE CEO)

sneekula 969 Nearly a Posting Maven

Hey, you could get laser vision like a super hero!

sneekula 969 Nearly a Posting Maven

~~
Considering the options seem to be 'fuel guzzlers' vs 'safety hazards', I think I'll risk the guzzling. Generally, the heavier/sturdier a car is, the safer it is, and the more fuel it uses. This applies to single-vehicle incidents (collision with a wall, a light post, a tree, etc.) as well as for multiple-vehicle incidents. If it comes to a case where I'm betting my safety and wellbeing against my pocketbook, I'd like you to guess which one comes to the surface.
~~

With your reasoning everyone should drive a Mack Truck! If a Mack truck hits your pickup, you are mulch like the rest!

America is about freedom, the freedom to be uneducated, the freedom to arm themselves, the freedom to belong to a church group, the freedom to work or not to work, the freedom to guzzle gas and polute the air, all is included in the word. Any politician doubting these sacred principles is on the losing end, as far as the average voters are concerned.

sneekula 969 Nearly a Posting Maven

The 'for loop' is the standard iteration loop in Python. Here are some simple examples:

# iterate through the characters of a string
for c in 'string':
    print c

"""
my result --->
s
t
r
i
n
g
"""


# iterate through the elements of a list
for n in [1, 2, 3]:
    print n

"""
my result --->
1
2
3
"""

# or since range(1, 4) --> [1, 2, 3]
for n in range(1, 4):
    print n

"""
my result --->
1
2
3
"""

# to get key, val pair of a dictionary use iteritems()
for key, val in {'Bob': 49, 'Fred': 35, 'Bill': 19}.iteritems():
    print "%s is %d years old" % (key, val)

"""
my result --->
Bob is 49 years old
Bill is 19 years old
Fred is 35 years old
"""
sneekula 969 Nearly a Posting Maven

Shepard's Pie. Too much shepard's pie.

Is that mutton stew covered with mashed potatoes? I think I had that once at an English Pub in the small resort town of Saugatuck Michigan. I thought it was real good together with some draft English Ale!

sneekula 969 Nearly a Posting Maven

INSERT takes care of that, for example:

import Tkinter as tk

root = tk.Tk(className = " Text")

# text entry field, width=width chars, height=lines text
text1 = tk.Text(root, width=70, height=20)
text1.pack()

str1 = "First string"
str2 = "Second string"

text1.insert(tk.INSERT, str1)

text1.insert(tk.INSERT, str2)

root.mainloop()

To get the whole content of the Text widget and store it in a variable use:

# get the text from beginning to end
# line starts with 1 and column with 0
my_text = text1.get(1.0, tk.END)
Racoon200 commented: This post was very helpful, it answered the question just as planted. +2
sneekula 969 Nearly a Posting Maven

I have a dictionary of chemical symbols and names, to look up the symbol and get the name is easy, but to find the symbol of a given chemical name seems to be more akward. Am I missing something here?

# small dictionary of chemical symbols
symbol_dic = {
'C': 'carbon',
'H': 'hydrogen',
'N': 'nitrogen',
'Li': 'lithium',
'Be': 'beryllium',
'B': 'boron'
}

# show the name of a symbol
symbol = 'N'
print symbol_dic[symbol]  # nitrogen
Ene Uran commented: great question +4
sneekula 969 Nearly a Posting Maven

Milk and oatmeal cookies.

sneekula 969 Nearly a Posting Maven

The US dollar comes, in part, from North Korean printing presses.

To bail out the realestate speculators and flippers, the government is printing money in overtime. They may thave asked the North Koreans to help out.

sneekula 969 Nearly a Posting Maven

The critical words may be:
Just purchased, tweaked by pros, been flawless so far.

sneekula 969 Nearly a Posting Maven

Money comes from working hard enough not to get fired, and getting paid enough not to quit!

sneekula 969 Nearly a Posting Maven

You don't know what you can get away with until you try.
~~ Colin Powell

sneekula 969 Nearly a Posting Maven

A few nice sayings from George Carlin:

Dusting is a good example of the futility of trying to put things right. As soon as you dust, the fact of your next dusting has already been established.

Fighting for peace is like screwing for virginity.

Frisbeetarianism is the belief that when you die, your soul goes up on the roof and gets stuck.

Have you ever noticed that anybody driving slower than you is an idiot, and anyone going faster than you is a maniac?

"I am" is reportedly the shortest sentence in the English language. Could it be that "I do" is the longest sentence?

I have as much authority as the Pope, I just don't have as many people who believe it.

I recently went to a new doctor and noticed he was located in something called the Professional Building. I felt better right away.

I think people should be allowed to do anything they want. We haven't tried that for a while. Maybe this time it'll work.

I was thinking about how people seem to read the Bible a whole lot more as they get older; then it dawned on me - they're cramming for their final exam.

I went to a bookstore and asked the saleswoman, "Where's the self-help section?" She said if she told me, it would defeat the purpose.

I would never want to be a member of a group whose symbol was a …

sneekula 969 Nearly a Posting Maven

Don't sweat the petty things and don't pet the sweaty things.

sneekula 969 Nearly a Posting Maven

A steaming mug of Nestle rich chocolate.

More info at nestleusa.com

sneekula 969 Nearly a Posting Maven

Kids. They're not easy. But there has to be some penalty for sex.
(a mild hint for the origin of babies uttered by Bill Maher)

sneekula 969 Nearly a Posting Maven

Even the hardest of hearts can be softened by a simple smile.

sneekula 969 Nearly a Posting Maven

Some people find the Lord and then go to jail, after they kill their family out of compassion.

sneekula 969 Nearly a Posting Maven

No other than the famous Stephen Hawking also said:
"It is not clear that intelligence has any long-term survival value!"

Sorry, I would not use intelligence as the reason to switch to Vista.

Sounds like Vista is a girl's OS.

sneekula 969 Nearly a Posting Maven

We used the DrPython IDE at school too. I like it.

sneekula 969 Nearly a Posting Maven

Too many cooks spoil the soup.

sneekula 969 Nearly a Posting Maven

Advice from the cook:

A watched pot never boils.

If you can't stand the heat, stay out of the kitchen.

sneekula 969 Nearly a Posting Maven

Hot water and a slice of toast.

sneekula 969 Nearly a Posting Maven

Electricity can be produced many different ways, be it fission, fusion, solar, hydro, wind, tidal, coal, bio gas, oil, geothermal and so on. Some of that fuel will never (well almost never) run out. Electricity is just a way to store, move energy, and power something more or less cleanly.

Yeah, an electric car would be a nice, stenchfree, and quiet transportation.

You have a point here, electricity is about the most universally useful form of energy. It can power anything from your computer, your house, your handy, to your car. The use as mobile power like for a car needs lots more work and ideas.

sneekula 969 Nearly a Posting Maven

There are still many parents that punish their children for being left handed. They think that the devil is left handed.

sneekula 969 Nearly a Posting Maven

Still have a nasty cold and it will be low salt chicken noodle soup out of a can.

sneekula 969 Nearly a Posting Maven

~~~
The information superhighway has no rest stops available.

Wasn't the information superhighway a brainchild of Al Gore? Rest stops must be environmentally unfriendly to him.

sneekula 969 Nearly a Posting Maven

The USA is a very large country and home prices are regional. Right now you can get a three bedroom home in Detroit (depressed Michigan) for $50,000 and in San Diego (sunny California) a similar home will cost you $500,000.

sneekula 969 Nearly a Posting Maven

Perfection takes practice.

sneekula 969 Nearly a Posting Maven

The Western part of Michigan is loaded with Bible huggers. I am surprised that Huckabee didn't do better.

Michigan has a female Dem as a governor, after a really bad male Rep governor, that might explain Hillary's vote.

sneekula 969 Nearly a Posting Maven

Last night I dreamed that I went to my old highschool and couldn't find my way out. Goofy, met all the teachers I never really liked too!

sneekula 969 Nearly a Posting Maven

I wasn't referring to the cost, but rather the agent of delivery (as in you rang up the hospital to have one delivered to your home) :P

Hehehe! That could be a pretty funny call to the local hospital! You are a fine person with an even finer sense of humour.

I guess I will have to simply walk up to a person pushing a stroller and ask where they got that baby from.

sneekula 969 Nearly a Posting Maven

It's possible to lead a cow upstairs, but not downstairs.

sneekula 969 Nearly a Posting Maven

I read that they have buses in Switzerland that go from station to station using energy stored in a flywheel coupled to an electric motor/generator.

sneekula 969 Nearly a Posting Maven

graphics.py is a simple wrapper for Tkinter written by the author of a Python book. It mostly contains renamed canvas routines.

I would stick with Tkinter itself. You get more help this way since only a few folks know about this Zelle wrapper.

sneekula 969 Nearly a Posting Maven

There is an old Python to C conversion program (2001):
http://sourceforge.net/projects/py2cmod/

Another program is this Python to C++ converter (2007):
http://sourceforge.net/projects/shedskin/

Also a Python for Delphi program exsist (2007):
http://mmm-experts.com/Products.aspx?ProductId=3
These are the folks that wrote the PyScripter IDE.

sneekula 969 Nearly a Posting Maven

My dad wants to revive McHale's Navy in an Iran war setting.