bumsfeld 413 Nearly a Posting Virtuoso

Nearly 50% of all bank robberies in the US take place on Fridays. source = FBI

bumsfeld 413 Nearly a Posting Virtuoso

Oven roasted turkey Spam on Ritz whole wheat crackes (see ritzcrackers.com for some fun graphics).

bumsfeld 413 Nearly a Posting Virtuoso

More people have attended Star Trek conventions than have given blood.

Note:
I am not surprised, I myself would rather go to a Star Trek convention than give blood

bumsfeld 413 Nearly a Posting Virtuoso

If you're going to reference that, then please get the point right. One, it wasn't an apple, and two, Eve ate it first. Adam's crime was that he knew what it would do, and he neither stopped Eve, nor refused it himself.

Here I thought that Eve ate Adam's apple. That would hurt!

I don't like folks that drive their vehicle without a muffler.

bumsfeld 413 Nearly a Posting Virtuoso

It's not-in-jail older folks with bad morals that teach younger folks bad habits.

bumsfeld 413 Nearly a Posting Virtuoso

I like wine, for refreshing drink I mix red table wine with fruit juices.

bumsfeld 413 Nearly a Posting Virtuoso

You can do it with label and use spaces of the desired background colour. Here is example:

# Tkinter progress bar experiment
# using label and string of spaces

import Tkinter as tk

root = tk.Tk()
# width 300 and height 100, no offsets
root.geometry("300x100+0+0")

space = " "
s = ""
label = tk.Label(root, text=s, bg='blue')
label.pack(anchor='nw')

for k in range(80):
    s += space
    # increments every 100 milliseconds
    label.after(100,label.config(text=s))
    label.update()  # needed

root.mainloop()
vegaseat commented: nice and polite +7
bumsfeld 413 Nearly a Posting Virtuoso

Also, if you work with wxPython Gui Toolkit you need to use False in this line:
app = wx.App(False)
This way the error actually shows up in the cmd window or editor's designated display window.

The default is True and the error shows up (flickers up) in small window created by wxPython.

bumsfeld 413 Nearly a Posting Virtuoso

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 will put your error message into the cmd window:

# took Jeff's code to create error

import wx

class KeyEvent(wx.Frame):
    def __init__(self, parent, id, title):
        wx.Frame.__init__(self, parent, id, title)
        self.panel = wx.Panel(self, -1,size=wx.Size(100,100))
        self.button = wx.Button(self, -1, label="click me")

        self.sizer = wx.BoxSizer(orient=wx.VERTICAL)
        self.sizer.Add(self.panel)
        self.sizer.Add(self.button)
        self.SetSizer(self.sizer)
        self.Fit()
        # self.PanelLeftUp is intentionally misspelled for error
        self.panel.Bind(wx.EVT_LEFT_UP, self.PanelLeftU)
        

    def PanelLeftUp(self, event):
        print "left click occured"

app = wx.App(False)  # <---- note the addition of False to show error in cmd window
k = KeyEvent(None, -1, 'keyevent.py')
k.Show()
app.MainLoop()
bumsfeld 413 Nearly a Posting Virtuoso

Use something like the DrPython IDE, that one has its own output window. Also editors like ConText have option that allow you to keep the cmd window open.

bumsfeld 413 Nearly a Posting Virtuoso

> I have to test the limits to know where they are.
Or you could just read the rules page to know what they are :)

I can feel for Lardmeister. It's like writing software, you know the rules, but you still need to test it. Sorry, just young age thinking. My Mom could tell you lots about this here rebel. Eventually, when we get old and stale it will stop.

bumsfeld 413 Nearly a Posting Virtuoso

Jeff's suggestion is modern Python. Make sure that your number is iterated as string:

squaredigits = lambda x: sum([int(i)*int(i) for i in str(x)])

print squaredigits(442)  # -->  36

Note: filter(), map() and reduce() will go away with Python30

# add this to future code
try: filter and map and reduce
except:
    def filter(f, s): return [x for x in s if f(s)]
    def map(f, *s): return [f(*x) for x in zip(*s)]
    def reduce(f, s, i=None):
        r = i
        for x in s:
            r = f(r, x)
        return r

Part of the reason is that list comprehensions are simply so much faster than using defined function call. Also reduce() isn't used much. Good news is that lambda will stay.

bumsfeld 413 Nearly a Posting Virtuoso

Pull the power cord, wrap clear tape around one of the prongs, plug it back in. About 67% of the users will never figure it out.

bumsfeld 413 Nearly a Posting Virtuoso

I would stick with the Lichtenstein bankers, they are more secretive.

They administer hundreds of tax deductable foundations that you can donate money to, but in reallity is simply your own account. Just imagine, you donate and later can get your money back with a nice gain. It's the perfect tax heaven for thousands of the richest folks in Europe.

bumsfeld 413 Nearly a Posting Virtuoso

Camembert cheese on French bread with one glass of blushed cabernet.

bumsfeld 413 Nearly a Posting Virtuoso

Take me to your lizzard!

Very funny!

Could be: "Where is the head computer?"

bumsfeld 413 Nearly a Posting Virtuoso

Fille chaude! Rachel Maddow, very attractive, very energetic and very smart (doctorate in political science). One of the few persons who stands up to the ever so loud and boring conservatives.

bumsfeld 413 Nearly a Posting Virtuoso

"Bumsfeld" in the oil exploration business is a field of oil wells with a large content of natural gas.

bumsfeld 413 Nearly a Posting Virtuoso

Apparently three out of four people make up 75 percent of the population.

(Not too many people know that!)

bumsfeld 413 Nearly a Posting Virtuoso

EnderX, please provide evidence that this is not fake.

bumsfeld 413 Nearly a Posting Virtuoso

Very romantic find! Only the Dude can come up with great stuff like that!

bumsfeld 413 Nearly a Posting Virtuoso

A great test!

bumsfeld 413 Nearly a Posting Virtuoso

I love the New York Rangers.

bumsfeld 413 Nearly a Posting Virtuoso

any old way yeah

My sentiments too!

bumsfeld 413 Nearly a Posting Virtuoso

Twenty-five percent of the people who live in North Africa have never seen any rainbow.

bumsfeld 413 Nearly a Posting Virtuoso

What this world really needs is one dust powered vehicle. Hehe, I could power it up in my room.

bumsfeld 413 Nearly a Posting Virtuoso

Half full bottle of Beaujolais, will be empty soon.

bumsfeld 413 Nearly a Posting Virtuoso

Back to the topic at hand:
Félicitation Serunson from South East England!

bumsfeld 413 Nearly a Posting Virtuoso

So long as you rob Peter to pay Paul, you'll have Paul's support.
>> Lamar Longfellow

bumsfeld 413 Nearly a Posting Virtuoso

Don't you know you can't buy your way to heaven ?

It all depends what you belief! Martin Luther spoiled it all.

I would establish city on the moon for scientists, dreamers and poets.

bumsfeld 413 Nearly a Posting Virtuoso

Obama campaign HQ in Texas

This Fox News fake has Karl written all over it. He is working for them now.

I guess Obama should have had this picture on the wall:

bumsfeld 413 Nearly a Posting Virtuoso

Import module os and use os.path.getsize(filename) to check if file is empty.

bumsfeld 413 Nearly a Posting Virtuoso

Is it February already? Damn...

I like your dry sense of humour! Glad to see you moderate here!

bumsfeld 413 Nearly a Posting Virtuoso

Whoever jbennet is, Girl come before God in the dictionary. Also, God made Man first and then perfected his efforts to make Girl. You just got to love 'em!

bumsfeld 413 Nearly a Posting Virtuoso

But then you lose any credibility and you will become not liked, at least by me. You must be joshing.

bumsfeld 413 Nearly a Posting Virtuoso

escargot :)

bumsfeld 413 Nearly a Posting Virtuoso

Wow.. I think that post proves that you are a young, naive fool.

Mon dieu, if Lardmeister is one fool than what are you? How low can you go?

joshSCH commented: The french are a bunch of pussies -2
Sulley's Boo commented: -_- nevermind him .. +5
bumsfeld 413 Nearly a Posting Virtuoso

The French used torture tactics in Algeria extensively and still lost the war.

bumsfeld 413 Nearly a Posting Virtuoso

Light travels faster than sound. This is why some people appear bright until you hear them speak.

bumsfeld 413 Nearly a Posting Virtuoso

Can you give more details about Kexi?

bumsfeld 413 Nearly a Posting Virtuoso

Python is high level language and can be used for most any application.

Rashakil Fol commented: A useless answer. -1
bumsfeld 413 Nearly a Posting Virtuoso

Another winner!

bumsfeld 413 Nearly a Posting Virtuoso

Neat thread! Some cards make me chuckle!

bumsfeld 413 Nearly a Posting Virtuoso

My hometown is loaded with Italian restaurants, I am surprised no one has voted Italy yet!

Most of those treaded frozen TV dinners are some kind of Italian fare. Quite a turn-off!

bumsfeld 413 Nearly a Posting Virtuoso

I don't know how you find these gems? You are the best!

bumsfeld 413 Nearly a Posting Virtuoso

I think that us Catholics have the best sense of humour.

bumsfeld 413 Nearly a Posting Virtuoso

Don't you just love those arcade games, could play them for many hours.

bumsfeld 413 Nearly a Posting Virtuoso

Hey thanks, just what I was looking for!

bumsfeld 413 Nearly a Posting Virtuoso

Anti-Christ-ina could be anyones heart-throb.

bumsfeld 413 Nearly a Posting Virtuoso

We all need Emotional Support! Happy Thanksgiving!