sneekula 969 Nearly a Posting Maven

My kind of girl!

sneekula 969 Nearly a Posting Maven

Want to become a Dollar Trillionaire?
Move to Zimbabwe where inflation has pushed the Zimbabwean Dollar (ZWD) to the point where it takes more than 1 trillion ZWD to buy a loaf of bread.

sneekula 969 Nearly a Posting Maven

There are plenty of folks who drive 20 miles out of their way to fill up their gas (petrol) tank at a station that sells the stuff for 2 cents less.

sneekula 969 Nearly a Posting Maven

Rice pudding with cherries.

sneekula 969 Nearly a Posting Maven

Why are most pencils coated with yellow paint?

sneekula 969 Nearly a Posting Maven

Overheard in a bar in Montana:"If the Texans don't shut up about how much better they are than anyone else - we will split Alaska into 2 states and make Texas the third largest state."

That won't shut them up, because they simply are so much better!

Everything is bigger, louder and faster in Texas. That does include ego.

sneekula 969 Nearly a Posting Maven

I can feel for you. You are fighting MS and its urge for doing it their way, the path to a monopoly. BTW, this is the venting forum

sneekula 969 Nearly a Posting Maven

Beauty vs. the Beast?
Most voters are not smart enough to figure the questions out themselves. Sarah can answer with whatever she wants, as long as she does it with her usual charm!

sneekula 969 Nearly a Posting Maven

Great!! Thanks! One more question. Is there a way to use this, but make the 1 1 standard, and be able to pass an argument over? So, I type subprocess.py, it runs with 1 1, but if I want to do it with 2 2, I could tpye that on a command line and parse it over.

One word of caution, don't use filenames for your source code that match import module names. Python's PYTHONPATH will look in your working folder first, import it's own source code and you are in the BS house.

sneekula 969 Nearly a Posting Maven

I would rewrite your code like this:

import os
import zipfile
import datetime

today = datetime.date.today()
yesterday = (today + datetime.timedelta(days=-1))

zfilename = "c:\\crunchtime\\CT" + yesterday.strftime('%m%d%y') +".zip"
# test it
print zfilename

tFile = zipfile.ZipFile(zfilename, "w")
directory = "c:\\crunchtime"
files = os.listdir(directory)
for file in files:
    if os.path.isfile(file):
        fullpath = os.path.join(directory, file)
        tFile.write(fullpath)
sneekula 969 Nearly a Posting Maven

Just some initial observations:

How are you importing pylab?
Do you have module numpy installed?
Pylab needs that internally.

Where does finTempNum come from?
If it's a list then use:
etemp = finTempNum

sneekula 969 Nearly a Posting Maven

Two IT guys were walking across the park when one said, "Where did you get such a great bike?"

The second IT guy replied, "Well, I was walking along yesterday minding my own business when a beautiful woman rode up on this bike. She threw the bike to the ground, took off all her clothes and told me to take what you wanted."

The first IT guy nodded approvingly, "Good choice, the clothes probably wouldn't have fit."

sneekula 969 Nearly a Posting Maven

Pretty bad music, but I got 3 right by just clicking at random.

sneekula 969 Nearly a Posting Maven

Phil Gramm had to repeat one of his school grades three times. No wonder he became a politician.

sneekula 969 Nearly a Posting Maven

Can you imagine, a state twice the size of Texas and almost no Texans in it?

The Texas State Flower is the Bluebonnet
The Texas State Sport is _____________

Hmmmm, my guess is eating barbecue or chili con carne.

I looked it up on the internets:
Rodeo is the official state sport of Texas, though High School Football is more popular.

sneekula 969 Nearly a Posting Maven

The average American voter:

Did he miss hitting his 1,800 lb moose?

sneekula 969 Nearly a Posting Maven

Something simple for a change, some Python code to use Newton's method to approximate a square root:

# use Newton's method to get the square root of a
a = 144

# any initial approximation
x = 4.0
while True:
    print x
    # Newton's square root approximation
    y = (x + a/x) / 2
    # with floats it's safer to compute the absolute value
    # of the difference between them rather then using y == x
    # make delta something small
    delta = 0.000000001
    if abs(y - x) < delta:
        break
    # now asign y to x and go again
    # the approximation gets closer with every loop
    x = y

"""
my output --->
4.0
20.0
13.6
12.0941176471
12.0003662165
12.0000000056
12.0
"""
sneekula 969 Nearly a Posting Maven

Not really cartoons, but funny political bumper stickers:

sneekula 969 Nearly a Posting Maven

This one survived the floods:

sneekula 969 Nearly a Posting Maven

Not really a bumper sticker, but a nice wholesome picture to stick on the computer.

sneekula 969 Nearly a Posting Maven

Danny Funderbunk, the ultra brave mayor of Fort Mill, South Carolina, has been very busy forwarding everybody emails about whether that colored fellow Barack Obama is perhaps some creature sent by the Devil to have a mythological war with Jesus, you know, perhaps he may just be the Anti-Christ!

I have seen the Anti-Christ, and he looks more like one of those many greedy investment bankers that lives in his huge private estate in Connecticut.

sneekula 969 Nearly a Posting Maven

A client who felt his legal bill was too high asked his lawyer to itemize costs. The new statement included this item:
"Was walking down the street and saw you on the other side. Walked to the corner to cross at the light, crossed the street and walked quickly to catch up with you. Got close and saw it wasn't you. --- $150.00."

sneekula 969 Nearly a Posting Maven

A man and a woman who have never met before find themselves in the same sleeping carriage of a train.

After the initial embarrassment they both go to sleep, the woman on the top bunk, the man on the lower.

In the middle of the night the woman leans over, wakes the man and says, "I'm sorry to bother you, but I'm awfully cold and I was wondering if you could possibly get me another blanket."

The man leans out and, with a glint in his eye, says, "I've got a better idea... just for tonight, let's pretend we're married."

The woman thinks for a moment. "Why not," she giggles.

"Great," he replies, "Get your own damn blanket!"

sneekula 969 Nearly a Posting Maven

In Heaven all the interesting people are missing.
~~~ Friedrich Nietzsche

sneekula 969 Nearly a Posting Maven

I think I could go for a taste of this.

I just went for one of these! Nice impartial but super funny website!

sneekula 969 Nearly a Posting Maven

It will be an interesting vice debate. I think God is on Sarah Palin's side, since Biden is not totally against abortion.

sneekula 969 Nearly a Posting Maven

You need to ask this sort of thing in the Tech Talk forum.

sneekula 969 Nearly a Posting Maven

Many times ignorance is bliss, but common sense is a must.

sneekula 969 Nearly a Posting Maven

If you don't mind learning regex, which is almost another language, but used by many popular computer languages for text manipulation:

import re

p = re.compile(r'[;,.]')
s = 'hi;your,face.is;on,fire'
print p.sub('_', s)  # hi_your_face_is_on_fire
sneekula 969 Nearly a Posting Maven

Looks like all of those packages use Microsoft's COM and are then not under the jurisdiction of the ever so efficient Python memory manager. In other words, you are running an external program from Python.

sneekula 969 Nearly a Posting Maven

This code example uses the wx.lib.scrolledpanel.ScrolledPanel() widget to show off wxPython's list of colours by name, #RRGGBB hexstring, and then a small panel of the actual colour:

# show the colours in wxPython's wx.lib.colourdb
# use a wx.lib.scrolledpanel.ScrolledPanel and wx.GridSizer

import wx
import wx.lib.scrolledpanel
import wx.lib.colourdb

class MyScrolledPanel(wx.lib.scrolledpanel.ScrolledPanel):
    def __init__(self, parent):
        # make the scrolled panel larger than its parent
        wx.lib.scrolledpanel.ScrolledPanel.__init__(self, parent, wx.ID_ANY,
            size=(600, 450), style=wx.TAB_TRAVERSAL|wx.SUNKEN_BORDER)
        # scroll bars won't appear until required
        # default is SetupScrolling(scroll_x=True, scroll_y=True)
        self.SetupScrolling()
        self.SetBackgroundColour("white")

        wx.lib.colourdb.updateColourDB()
        # create a list of all the colours in the colour data base
        #colours = wx.lib.colourdb.getColourList()
        colours = wx.lib.colourdb.getColourInfoList()

        # main sizer
        vsizer = wx.BoxSizer(wx.VERTICAL)

        # wx.GridSizer(rows, cols, vgap, hgap)
        gsizer = wx.GridSizer(len(colours), 3, 2, 2)

        n = 1
        for line in colours:
            #print line,  # eg. line = ('SNOW', 255, 250, 250)
            hexstr = "#%02X%02X%02X" % tuple(line[1:])
            s = "%3d  %s" % (n, line[0])
            t = wx.StaticText(self, wx.ID_ANY, s)
            gsizer.Add(t, 0, wx.ALL, border=2)
            t = wx.StaticText(self, wx.ID_ANY, hexstr)
            gsizer.Add(t, 0, wx.ALL, border=2)
            p = wx.Panel(self, wx.ID_ANY)
            p.SetBackgroundColour(hexstr)
            gsizer.Add(p, 0, wx.ALL|wx.EXPAND, border=2)
            n += 1

        # now add the whole thing to the main sizer and set it
        vsizer.Add(gsizer, 0, wx.ALL|wx.EXPAND, 10)
        self.SetSizer(vsizer)


app = wx.App(0)
# create a frame, no parent, default ID, title, size
caption = "all the colours in wx.lib.colourdb"
frame = wx.Frame(None, wx.ID_ANY, caption, size=(600, 450))
MyScrolledPanel(frame)
frame.Show(True)
app.MainLoop()
sneekula 969 Nearly a Posting Maven
Ancient Dragon commented: great stuff :) +36
sneekula 969 Nearly a Posting Maven

Since anyone of us main street beings knows more about the real economy than 400 Wall Street kissing economy professors combined, here is a look how to present the state of the economy:
http://www.thedailyshow.com/video/index.jhtml?videoId=186052&title=clusterf#@k-to-the-poor-house

sneekula 969 Nearly a Posting Maven

I know - I was expecting it. That is an example of why you do not use magnesium as the base for a paint. There was a pretty thorough examination of the catastrophe - the 2 main results were the flames were the wrong color to be hydrogen burning and the skin of the Hindenburg almost completely burned up and the fragments that survived were coated with Mg.

Current hydrogen explosion picture.

There we go, let's store the extra daytime energy as magnesium.

sneekula 969 Nearly a Posting Maven

McCain has fun with Bill's wife:
http://www.youtube.com/watch?v=dnLCK3knuY8&NR=1

sneekula 969 Nearly a Posting Maven

That is not hydrogen burning that you see in the rocket picture, it is ammonium perchlorate from the boosters.

sneekula 969 Nearly a Posting Maven

I looked up Hoover Dam, it has a capacity of 2,000,000 kw and could potentially charge 40,000 electric cars.

sneekula 969 Nearly a Posting Maven

Consider this: Where I live we make electricity with a dam. The dam was built in the 1950s and has been delivering current for over 50 years. Do you think it's paid for by now?

So why do I still have to pay for electricity? And at a much higher rate than ever?

Elementary Watson, supply and demand.

Besides, a little old dam wouldn't supply enough energy to drive even a thousand electric cars. To put this into the proper context, just in the Los Angeles area alone there are over a million cars on the road at any given time. Those poor folks suffer from an overloaded electrical system and brownouts already.

A one hour commute would use up at least 50 kwh of electricity. At the usual 110 volt supply and a 75% battery efficiency you would have to charge your car with a current of 30 amps for 20 hours. At the present $0.10 per kwh it would cost you about $7.

sneekula 969 Nearly a Posting Maven

Do you trust the Phone Companies?
After all they all too easily went along with the Bush/Chainy 'spy on your customer game'. They could intercept your signal and change it to vote Republican all the way!

sneekula 969 Nearly a Posting Maven

With Chrysler and GM coming out with plugin electric cars by 2010, I wonder how high the price of electricty will go? The oil companies have set a price gauging model to follow.

I read that with the Chevy Volt the Lithium-Ion-Battery alone will cost around $25,000 and most likely will need to be replaced in 3 to 4 years of use.

sneekula 969 Nearly a Posting Maven

Lost all my savings with Lehman Brothers failed investment bank. So all I can afford is Macaroni and Cheese sauce.

sneekula 969 Nearly a Posting Maven

To the tune "If you spend all your time making love..."

If you spend all your time making money, you might spend all your money doing time..."

Just ask the execs at Fanny Mae, Lehman, Merrill, etc. how they're feeling right now talking to the FBI!!

zeroth

Don't worry about those folks, they will get a slap on the wrist at the most. Just like Neil Bush, Charles Keating and John McCain got on the Savings and Loan scandals a few years back.

sneekula 969 Nearly a Posting Maven

700 Billion Dollars with no strings attached.
More giant taxbreaks.
Easier ways to send my loot to the Caymen Island Banks.
Politicians that give discounts to frequent influence buyers.

Hehehe!
If you find those kind of presents under the tree, you will turn into a Republican!

sneekula 969 Nearly a Posting Maven

Hmmm, Bush and McCain sound so much alike, kind of fun to see and hear:
http://www.youtube.com/watch?v=sa20q2s2BRs&feature=related

sneekula 969 Nearly a Posting Maven

Our local drugstore was robbed of 500 bottles of Viagra.

The suspect is known to be a hardened criminal!

sneekula 969 Nearly a Posting Maven

I enjoy your sense of humor Dude!

sneekula 969 Nearly a Posting Maven

Very apropos to the current Wallstreet mess:
"Make money your God and it will plague you like the Devil."

sneekula 969 Nearly a Posting Maven

Q: "What's the difference between a bankrupt attorney and a pigeon?"
A: "The pigeon can still make a deposit on a Mercedes."

sneekula 969 Nearly a Posting Maven

Well, you know, I think the American people are sacrificing now. I think they're waiting in airport lines longer than they've ever had before.
(UU)

sneekula 969 Nearly a Posting Maven

Drinking a bottle of beer a day helps to reduce the chance of kidney stones by 40%.

Nick Evan commented: hooray! +10