sneekula 969 Nearly a Posting Maven

If you just want to stick part B to a widget on an assembly line, I agree that you could do that for the rest of your life without much education. The problem is that sooner or later all the simple stuff will be automated. Your simple job is gone and they are looking for folks with a skill in automation, and it will not be you they are looking for.

sneekula 969 Nearly a Posting Maven

You could do one on volumes and surface area calculations of boxes, cylinders, spheres, or cones.

sneekula 969 Nearly a Posting Maven

You may want to let folks know what ASD is.

sneekula 969 Nearly a Posting Maven

I wouldn't want to drive across a bridge that was built by a contractor who had to make large political contributions to get the job.

sneekula 969 Nearly a Posting Maven

If you start to die in an elevator, be sure to push the Up button.

sneekula 969 Nearly a Posting Maven

Child: "Mom, why do you have strands of grey hair mixed in with your dark hair?"

Mother: "Every time you disobey, I get one strand of grey hair. If you want me to stay pretty, you better obey."

Child after some thinking: "Mom, why is Grandma's hair all grey?"

sneekula 969 Nearly a Posting Maven

I have an aunt that religiously watches the many church channels on American TV. She donates half her meager pension to these TVangelists. She believes that she will get a spot in Heaven that way. It's her belief, and I am not going to argue with her.

Maybe your aunt isn't that far out in right field. US Televangelist Benny Hinn bases his ministry on Faith Healing. You can watch his show on TV, where he will bring out a cripple on crutches, put his hands on top of the wretched person's head, utter a short prayer and the person will throw away the crutches and dance with joy! Pastor Hinn raises at least 100 million Dollars a year from taxexempt donations. It's all too real, I have watched it!

Last year he has been able to install an all Italian marble bathroom next to his private office that costs $24,000. Now that is success and obviously has God's blessing.

sneekula 969 Nearly a Posting Maven

that always happens in history. Crusades anyone?

Crusades have come and gone, except maybe the Iraq war will last another 95 years, but with the introduction of more and more powerful weaponry, there could very well be a final crusade in our life time.

As you most likely know, the reborn Christians belief in a gigantic bloodbath in the Middle East with everybody but themselves going to hell. It's in the Bible! Any questions, ask Jimmy Carter.

sneekula 969 Nearly a Posting Maven

Please use code tags with your code to preserve the indentations. Otherwise the code is very difficult to read and not too many folks will help.

[code=python]
your Python code here

[/code]

This code will not work:

if response == "yes" or "OK" or "Yes" or "ok":

I has to be recoded to:

if response in ["yes", "OK", "Yes", "ok"]:
sneekula 969 Nearly a Posting Maven

Please use code tags with your code to preserve the indentations. Otherwise the code is very difficult to read and not too many folks will help.

[code=python]
your Python code here

[/code]

sneekula 969 Nearly a Posting Maven

I believe that the end of the world will come when people believing in different beliefs start to kill each other on a massive scale.

Something like my God is better than your God. Most likely, my God told me to kill all nonbelievers with this divine arsenal of nuclear weapons.

Salem commented: Yes, the well armed zealot is always a problem +16
sneekula 969 Nearly a Posting Maven

Wealth consists not in having great possessions, but in having few wants.
~~~ Epicurus, one of the many ancient Greek philosophers

sneekula 969 Nearly a Posting Maven

Have you recursed today?

sneekula 969 Nearly a Posting Maven

If cursing is bad, so should recursing.

Give until it hurts!

sneekula 969 Nearly a Posting Maven

perhaps it would read: OMG RLY?

OMG RLY?

That could be a winner!

sneekula 969 Nearly a Posting Maven

America's infrastructure needs at least $1.6 trillion in investment over the next five years. Unfortunately, we're spending so much of our money in Iraq that we don't have the moola to spend here at home.

One example, of the 600,000 bridges in America 156,000 have received a failing grade from Federal inspectors. We need to spend at least some money on signs like this:
"Unsafe bridge, the next car that catapults off the collapsing bridge could be yours."

sneekula 969 Nearly a Posting Maven

I just read the this year the Arctic will be ice free in the summer for the first time in 50 million years.

sneekula 969 Nearly a Posting Maven

oh my god, really?

Interesting bumper sticker!

sneekula 969 Nearly a Posting Maven

Procrastinate Now!

sneekula 969 Nearly a Posting Maven

Yay are you back? havent seen you in ages Christina

Who is Christina? Why do you see her?

sneekula 969 Nearly a Posting Maven

When I grow up I would like to be more like my hero, the actor and writer James Earl Jones. I have to practice on my deep voice though.

sneekula 969 Nearly a Posting Maven

I grew up in a very poor neighborhood and went to a very poor public school in the Detroit area. Most of my education I got from my uncle who was a professor at the University of Detroit. This way I didn't have to learn to squirt milk out of my eyes to make a living in a freak show.

sneekula 969 Nearly a Posting Maven

If General Electric would purchase Alitalia airlines, would the new company be called Genitalia?

sneekula 969 Nearly a Posting Maven

YahSoft

Very clever, but MicroHoo has a better ring to it.

sneekula 969 Nearly a Posting Maven

Nursing, love, God.

Good for you, going to church to save your soul is very important! God bless you!

sneekula 969 Nearly a Posting Maven

Remember, Ginger Rogers did everything Fred Astaire did, but backwards and in high heels.

sneekula 969 Nearly a Posting Maven

While men die doing stupid things to satisfy the demands of their spouces, our nursing homes are filling up with feeble old biddies, barely a man in sight. Yes, women live longer than men.

sneekula 969 Nearly a Posting Maven

Maybe the US is destined to waste itself away in endless wars, just like the Roman Empire did? If that is our destiny then John McCain is the best choice.

sneekula 969 Nearly a Posting Maven

The average US household spends about 10% of its income on food. In Poland its 22% and in Egypt it is 40%.

sneekula 969 Nearly a Posting Maven

It's getting tough, Hillary just announced that she is willing to whipe all of Iran of the map.

I was contemplating selling my car so I could buy petrol for it. Now John McCain promisses to lower the price. I will vote for him!

sneekula 969 Nearly a Posting Maven

Going to work for a large company is like getting on a train - Are you going sixty miles an hour or is the train going sixty miles an hour and you're just sitting still?

sneekula 969 Nearly a Posting Maven

If every crime committed were prosecuted to the full extent of the law, 39 percent of North Americans would be incarcerated.

sneekula 969 Nearly a Posting Maven

I assume that livewires is just a wrapper for Python and Tkinter using a different syntax. The syntax might be easier to understand for youngsters, but simply adds another layer of potential errors. I don't think very many folks use this module. I am not even sure where to get it?

For instance, does read_number() read an integer or a float, or does it use eval() for both?

sneekula 969 Nearly a Posting Maven

I too think your lambda is not corrct. Try this:

import tkHyperlinkManager #external lib
from Tkinter import *

i = 0
li_all = [0, 1, 2, 3, 4] #dynamic list

root = Tk()
root.title("Test")

text = Text(root)
text.pack()

hyperlink = tkHyperlinkManager.HyperlinkManager(text)

def call(x):
    print x

while i <= 3:
    text.insert(INSERT, "this is a ")
    q = li_all[i]
    text.insert(INSERT, "link test", hyperlink.add(lambda q: call(q)))
    text.insert(INSERT, "\n\n")
    print li_all[i]
    i = i + 1

mainloop()

Since call() does not return anything, nothing adds to hyperlink.add()

sneekula 969 Nearly a Posting Maven

Nice solution Mitko, can even be made mildly simpler:

listsorted = sorted(listunsorted, key=lambda x: x[0])
sneekula 969 Nearly a Posting Maven

Create Crisis
Raise Prices

sneekula 969 Nearly a Posting Maven

Welcome Pope Benedict XVI!
He is rich, he is powerful and guess what ladies, he is single!

sneekula 969 Nearly a Posting Maven

Oops, I should have said empty desk.

Would you give your right arm to be ambidextrous?

sneekula 969 Nearly a Posting Maven

A countryman between two lawyers is like a fish between two cats.
~~~ Benjamin Franklin

sneekula 969 Nearly a Posting Maven

The difference between the short tax form and long tax form is simple:

If you use the short form, the government gets your money.

If you use the long form, the accountant gets your money.

Aia commented: Putting salt in the wound ;) +7
sneekula 969 Nearly a Posting Maven

Ronald Reagan joined the military, but was so nearsighted that he could only take office or PR jobs. Most of the US Presidents after FDR served in the US Navy.

sneekula 969 Nearly a Posting Maven

Pizza may be one of America's favorite fast foods but was invented long long before the Americas were discovered.

... and so was apple pie! Maybe the Chinese did it!

Not quite sure what would be America's most popular food, a slice of pizza, a hot dog, a taco, or a hamburger?

sneekula 969 Nearly a Posting Maven

Well behaved children bring joy to life.

sneekula 969 Nearly a Posting Maven

Well, you are calling the read_number() function twice, so it will pop up twice. I don't have the livewires module, so I have to guess:

from livewires import *

rn = random_between(1,15)
rn1 = random_between(1,15)
print 'what is', rn , 'times', rn1, '? ', 
answer = read_number() 

if answer == ( rn * rn1 ):
    print 'well done'
else:
    print 'wrong, the answer is ', rn * rn1
sneekula 969 Nearly a Posting Maven

One of the ways to do this would be:

s = "WordOneWordTwo"

new_s = ""
for ix, c in enumerate(s):
    # skip start of string s
    if c.isupper() and ix != 0:
        new_s += " "
    new_s += c
    
print new_s  # Word One Word Two
sneekula 969 Nearly a Posting Maven

There is a forum for just this kind of stuff at DaniWeb:
http://www.daniweb.com/forums/forum38.html

This way you don't need the scare the rest of us with Windows Vista!

sneekula 969 Nearly a Posting Maven

LOL

LOL to you too!

Wow, this blog is a real good take on AH (artificial humour).

sneekula 969 Nearly a Posting Maven

Let's see if I understand that right:

A  |:---------------|
Bb |-[]-------------|
C  |----------------|
Db |---:------------|
D  |----[--]--------|
Eb |--------::------|
E  |----------::----|
F  |------------::--|
Gb |----------------|
G  |----------------|

Where the ':' is a certain instrument from a wave file would play that note?

sneekula 969 Nearly a Posting Maven

Use replace():

s = "word one word two"
# replace space with no-space
ms = s.replace(' ', '')
print ms  # wordonewordtwo
sneekula 969 Nearly a Posting Maven

In your case I would worry a lot. If your wife gets interested in computer programming, she could turn into a 'computer nun' and totally neglect you!

BTW, your wife wouldn't be a chain saw enthusiast, would she?