sneekula 969 Nearly a Posting Maven

It was a conspiracy by the folks who make plastic tamper-proof seals :P

Right on! They are also called 'senior proof seals'.

sneekula 969 Nearly a Posting Maven

I find the amount of people I meet that simply won't vote for Obama because he is half black alarming. There are also many people that have read the republican smear-mail and believe he is a muslim. Bigotry is live and well in this country!

sneekula 969 Nearly a Posting Maven

It is possible that the smallest forms of life like a virus or even sublife like a misfolded protein or prion (Mad Cow) will do away with larger life forms eventually. Call it God's will.

sneekula 969 Nearly a Posting Maven

It would be nice to have an actual example of the HTML source code or at least the web site's URL. As Jeff said, the BeautifulSoup module (an HTML scraper) is great, but a has a steep learning curve. An interesting project, so let us know any progress.

sneekula 969 Nearly a Posting Maven

There are a few things the frame builder does not do, you have to do those in the Boa editor yourself. Here is an example:

#Boa:Frame:Frame1

import wx
import wx.grid

def create(parent):
    return Frame1(parent)

[wxID_FRAME1, wxID_FRAME1GRID1, 
] = [wx.NewId() for _init_ctrls in range(2)]

class Frame1(wx.Frame):
    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Frame.__init__(self, id=wxID_FRAME1, name='', parent=prnt,
              pos=wx.Point(366, 256), size=wx.Size(400, 250),
              style=wx.DEFAULT_FRAME_STYLE, title='Frame1')
        self.SetClientSize(wx.Size(384, 214))

        self.grid1 = wx.grid.Grid(id=wxID_FRAME1GRID1, name='grid1',
              parent=self, pos=wx.Point(8, 8), size=wx.Size(368, 200), style=0)
        self.grid1.Center(wx.VERTICAL)

        # you have to add this in the editor!!!
        # grid has 8 rows and 5 columns
        self.grid1.CreateGrid(8, 5)

        # you can als add some simple cell formatting
        self.grid1.SetColSize(3, 200)
        self.grid1.SetRowSize(0, 25)
        self.grid1.SetCellValue(0, 0, "First cell")
        self.grid1.SetCellValue(1, 1, "Another cell")
        self.grid1.SetCellValue(2, 2, "Yet another cell")
        self.grid1.SetCellValue(3, 3, "This cell is read-only")
        self.grid1.SetCellFont(0, 0, wx.Font(12, wx.ROMAN, wx.ITALIC, wx.NORMAL))
        self.grid1.SetCellTextColour(1, 1, wx.RED)
        self.grid1.SetCellBackgroundColour(2, 2, wx.CYAN)
        self.grid1.SetReadOnly(3, 3, True)
        
        

    def __init__(self, parent):
        self._init_ctrls(parent)


if __name__ == '__main__':
    app = wx.PySimpleApp()
    frame = create(None)
    frame.Show()

    app.MainLoop()
sneekula 969 Nearly a Posting Maven

Since this is a political year and religious folks vote right, I wonder if John McCain believes in the theory of Evolution or the edict of Creationism.

sneekula 969 Nearly a Posting Maven

The last completed nuclear power plant in the US was TVA's Watts Bar 1, it was started in 1973 and took 23 years to complete with massive cost overruns.

Investor Warren Buffet wanted to build a nuclear power plant in Payette, Idaho. However his financial experts ran the numbers and could not make economic sense of it.

sneekula 969 Nearly a Posting Maven

2012 may not be the end of the world, but has been mentioned as the year when demand for oil will exceed possible new exploration for oil resources. A situation oil folks call the "Peak Oil".

sneekula 969 Nearly a Posting Maven

I am not smart enough to take this test, so I will never know if I am stupid.

sneekula 969 Nearly a Posting Maven

Analyzing humor is like dissecting a frog. Few people are interested and the frog dies of it.

sneekula 969 Nearly a Posting Maven

sadly all of them are Jehovah's witnesses :)

I think you are right! Oops, there is a knock at the door, got to go!

thunderstorm98 commented: LOL +4
sneekula 969 Nearly a Posting Maven

It is impossible to defeat an ignorant man in argument.
~~~ Markus Emphire

sneekula 969 Nearly a Posting Maven

People were as foolish 5 thousand years ago as they are now. My proof that there is no evolution.

sneekula 969 Nearly a Posting Maven

If you haven't got charity in your heart, you have the worst kind of heart trouble.

sneekula 969 Nearly a Posting Maven

Obligatory elephant: The French hated the Eiffel tower - the common complaint was "They have only erected the framework of this monument, It has no skin"

Well, we all know the French like skin.

Here is a popular elephant:
The flow of water over the Niagara falls is equivalent to the flow of gasoline into US cars.

sneekula 969 Nearly a Posting Maven

I have never seen Carl Rove on Fox News, but he should fit right into the motley crew of characters there. With a face like that what would you expect to come out of it!

I watch the Fox News Channel, get my laughs, and leave before permanent brain damage sets in.

sneekula 969 Nearly a Posting Maven

After Bush's lipservice 3 years ago to build more nuclear powerplants in the US, and congress donating $18 billion of taxpayers' money to the cause, not a single nuclear powerplant has even made it through the planning stage.

The main reason, none of the wall street investors are interested in risking the money.

Once past the planning stage and approved by the nuclear regulators, it still takes up to 10 years to complete construction. Looks like nuclear power is not the solution.

sneekula 969 Nearly a Posting Maven

Strangely enough the Iron Lady had a PhD in Chemistry. Maybe that's why a lot of things she did actually made sense.

sneekula 969 Nearly a Posting Maven

There a re so many pretty girls knocking at my door all the time, I would like 24 hours without them.

sneekula 969 Nearly a Posting Maven

Welcome to the often childish world of Vista's enhanced security.

The latest stable release (build 210) is dated September 22, 2006, most likely pre Vista.

You could post this question on:
http://python.net/crew/mhammond/win32/FAQ.html

sneekula 969 Nearly a Posting Maven

rJ[i,1] is a float and most like never exactly equal to zero, but within a narrow range of zero.

sneekula 969 Nearly a Posting Maven

Python has a module csv that will make your life easier handling csv files.

sneekula 969 Nearly a Posting Maven

Inflation is on a rapid rise in the US, thanks to the Federal Reserve ludicrous credit spending on banks and hedge funds that have made major mistakes during years of loose lending and lackadaisical regulation.

The offical government rate of inflation is the Consume Price Index (CPI) that is reported to be 4%. The CPI was changed during the Clinton administration to make it look more optimistic. If the government wouldn't have changed the CPI and would use the former Alternate CPI, our inflation rate would be 13% now. Which more closely reflects the prices the average consumer pays.

sneekula 969 Nearly a Posting Maven

NRCC, is that the national rifle thingy?

sneekula 969 Nearly a Posting Maven

A slenderizing dress, absolutely good for most any mom!

sneekula 969 Nearly a Posting Maven

Google and Yahoo top executives had a good time at Israel's 60th birthday celebration. Not sure if MS was there?

sneekula 969 Nearly a Posting Maven

If you are using Windows you can do this:

# get the character of a key pressed (no return key needed)
# works only in the command window and with Windows OS
from msvcrt import getch

print "press a char key (escape key to exit)"

while True:
    z = getch()
    # escape key to exit
    if ord(z) == 27:
        break
    print z,

There is also a way to do it with Tkinter running in the background.

sneekula 969 Nearly a Posting Maven

Your initial problems stem from the fact that you are mixing tabs and spaces in your indentations. It really loused up the code on my editor. Stick with spaces (4) only!

Also, when you click the stop button during sleep(1), it most likely will not respond. You may need to use Tkinter's after().

sneekula 969 Nearly a Posting Maven

You are not the only one, python-forum.org comes up sickly and unusable. Judging from past periods of administrative neglect, this may take a long time to fix.

Wonder where 7stud went to?

sneekula 969 Nearly a Posting Maven

If your code gets a little longer and more complex, you need to establish a namespace for the different imported functions. It helps you understand the code better and avoids collisions. For instance Tkinter and PIL both have Image.

For example, to save on typing I always use:

import Tkinter as tk
import pygame as pg
import visual as vs
sneekula 969 Nearly a Posting Maven

Usually ignored victims of a war:

About 300,000 troops returning from Iraq and Afghanistan suffer from Post-traumatic stress disorder (PTSD). PTSD results from wartime trauma such as receiving wounds or witnessing others being hurt or killed. Symptoms include irritability, outbursts of anger, sleep difficulties, trouble concentrating, extreme vigilance, and an exaggerated startle response.

Many of these people start to withdraw and isolate themselves and are unable to hold down a job. Medication that is normally prescribed for depression does not work well in these cases.

sneekula 969 Nearly a Posting Maven

Only 43 percent of all U.S. adults can correctly distinguish between "one billion" and "one million." Remember, many of those folks that can't distinguish will vote for the big spenders!

sneekula 969 Nearly a Posting Maven

yeah but dani doesnt count, she made it and has been here longer.

Very odd logic!

I am getting so close, I can smell it! Just another month and it shall be 1000.

"Fickle Finger of Fate", is that also known as "Polish Number One".

sneekula 969 Nearly a Posting Maven

There's a knob called 'brightness' on my TV, it doesn't seem to work, the programs are just as dim-witted as before.

sneekula 969 Nearly a Posting Maven

Is it true we have gravity because the earth sucks?

sneekula 969 Nearly a Posting Maven

Personally, I don't think there's intelligent life on other planets. Why should other planets be any different from this one?

sneekula 969 Nearly a Posting Maven

Actually the way I heard it was more like this - Why do married men die younger? They want to!

(And before anyone complains, yes, I am married, and no, I don't feel that way personally).

KDoiron, welcome to DaniWeb! I remember it was you that introduced me to Cole's Law.

sneekula 969 Nearly a Posting Maven

Did anyone else notice that McCain just barely got 54% of the Repube primary votes in Ohio even though, technically, no one was running against him?! Does this bode well?

The Conserves are conserving their vote for the real thing. Obama bashing is more important right now!

sneekula 969 Nearly a Posting Maven

The Simpsons are the best cartoons ever. Not the newer ones however, seasons 1-10 are the best.

I have to agree with that! They are not in the poll?

sneekula 969 Nearly a Posting Maven

The ultimate result of shielding men from the effects of folly is to fill the world with fools.
~~~ Herbert Spencer

sneekula 969 Nearly a Posting Maven

Yes, there are millionaire dogs in the world, 29 of them as of this time. While all of these canines have their funds managed in trust, they are the legal benefactors.

sneekula 969 Nearly a Posting Maven

The Flintstones and Jetsons were neat, looking into the past and the future as only cartoons could do. Love those reruns and old DVDs.

sneekula 969 Nearly a Posting Maven

If you were a file I'd hit delete.

Very nice quotation indeed!

For the folks who believe that there is no God, please tolerate those of us that need God in our life. A simple request.

sneekula 969 Nearly a Posting Maven

It could be as simple as this:

text = """\
Hello all.  I have a text file which has a number of links ...
"""

html = "<title></title><html><body>" + text + "</body> </html>"

print html

fout = open("test_html.htm", "w")
fout.write(html)
fout.close()
sneekula 969 Nearly a Posting Maven

This is how you would build up your encrypted phrase (simplified example):

phrase = 'hello'

shiftby = 1
new_phrase = ""
for c in phrase:
    # create shifted char
    new_c = chr(ord(c) + shiftby)
    # build up new phrase
    new_phrase += new_c

print phrase       # --> hello
print new_phrase   # --> ifmmp

Also abc does not have to be a list it can simply be a string like this:

import string

#help(string)
abc = string.ascii_letters
print abc  # abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
sneekula 969 Nearly a Posting Maven

You are commiting one of the cardinal violations in Python when you mix tabs and spaces in your indentations. Many editors do not match the correct amount of spaces with your tabs, now you have a mess on your hand. Please use the customary 4 spaces only, avoid tabs!

sneekula 969 Nearly a Posting Maven

Somewhere in your loop you have to build up your encrypted phrase. Also, a phrase will contain spaces, so you need to take care of that.

sneekula 969 Nearly a Posting Maven

A couple, desperate to conceive a child, went to their priest and asked him to pray for them.

"I'm going on a sabbatical to Rome," he replied, "and while I'm there, I'll light a candle for you."

When the priest returned three years later, he went to the couple's house and found the wife pregnant, busily attending to two sets of twins. Elated, the priest asked her where her husband was so that he could congratulate him.

"He's gone to Rome, to blow that candle out" came the wife's reply.

sneekula 969 Nearly a Posting Maven

Despite the commonly held belief that all calico cats are female, a blue-eyed calico has an 86.4 percent chance of being male.

sneekula 969 Nearly a Posting Maven

Come on, AD - give it up! We want a hint - I think the standard is book - chapter - line(s) (zeke 12: 13-69).

Apocalypse 16:13-16
13 And I saw from the mouth of the dragon, and from the mouth of the beast, and from the mouth of the false prophet, three unclean spirits like frogs.
14 For they are the spirits of devils working signs, and they go forth unto the kings of the whole earth, to gather them to battle against the great day of the Almighty God.
15 Behold, I come as a thief. Blessed is he that watcheth, and keepeth his garments, lest he walk naked, and they see his shame.
16 And he shall gather them together into a place, which in Hebrew is called Armagedon.

Educate yourself further at:
http://www.theworkofgod.org/armagedn.htm

If in doubt, contact former President of the US Jimmy Carter.