woooee 814 Nearly a Posting Maven

Add some print statements to self.search_capture() to see where the append to the list is happening incorrectly, as obviously the length never equals zero. Note that in "right" and "left" either the row or the column should be the same, and you add/subtract from both. I would suggest that you make each move a separate function, that you pass a color to, and test each one individually.

woooee 814 Nearly a Posting Maven

I recently went into a Rite-Aid. They take your old "rewards" card and sign you up for a Plenti card, asking for your email because you have to confirm the card through email. That email account went from almost no spam to 5-10 spams per day. Almost all are some variation of the Nigerian scams. You want to have a throw away email account for just this reason. I am increasingly shopping at stores that do not require rewards cards.

woooee 814 Nearly a Posting Maven

Some turtles can breathe through their butt. A turtle/s ribs are used for the shell so they can not expand and contract their chest to breathe. http://news.discovery.com/animals/why-do-some-turtles-breathe-out-of-their-butt-140617.htm

woooee 814 Nearly a Posting Maven

What else could it be?

woooee 814 Nearly a Posting Maven

"result" has not been declared so the line below will error. Note that "list" is a reserved word, i.e. Python already uses it, so you should use another variable name.

if word not in result and letter in word:

Your function returns words for one found letter. Use a loop to send each baseline letter to the function, then catch the return word(s), and print all of the words after the additional loop executes. I would suggest that you include a word that has multiple descender letters in it to the test the program's findings.

woooee 814 Nearly a Posting Maven

Two 14 years boys "cracked" an ATM machine by reading the online manual. The default password had not been changed allowing them to get in on the first try. http://www.cbc.ca/newsblogs/yourcommunity/2014/06/winnipeg-atm-hacked-by-14-year-olds-using-manual-found-online.html

woooee 814 Nearly a Posting Maven

And I didn't post that if you are still having problems, I can post some sample code on how to do this. But I use multiprocessing, not threading.

woooee 814 Nearly a Posting Maven

In a recent infomercial type commercial all of the "satisfied users" had faces with way too much plastic surgery (oh no they aren't actors reading from a script). Perhaps the product only appeals to people who have had plastic surgery. Or they "ordered now" and got a second one free (just pay shipping and handling), saving enough money so they could get a face lift.

woooee 814 Nearly a Posting Maven

And threads may be overkill here. You could call one function periodically (Tkinter's after method) that does or does not read each port depending on the value of a variable(checkbutton_variable.get) associated with that port.

woooee 814 Nearly a Posting Maven

No it's not April 1st. Technicians from the University of Wisconsin-Madison, in collaboration with the Department of Agriculture Forest Products Laboratory (FPL), have demonstrated the feasibility of replacing the substrate of a computer chip with cellulose nanofibril (CNF), a flexible biodegradable material made from wood.

http://www.theregister.co.uk/2015/05/28/wooden_computer_chips_invented_er_really/

woooee 814 Nearly a Posting Maven

New York, Phoenix, DC, and Utah have eliminated much of their homeless problem by providing them with homes. The retention rate is 84+ percent. New York was spending $40,500 per year on every homeless person with mental issues (those with mental or physical disabilities who are homeless for longer than a year or have experienced four episodes within three years). “People thought this was crazy,” said Tsemberis (who came up with the original study), who today runs Pathways to Housing. “They said, ‘You mean even when someone relapses and sells all the furniture you gave them … [to pay for] drugs, you don’t kick them out?’ And I said, ‘No, we do not.'” http://www.washingtonpost.com/news/inspired-life/wp/2015/05/06/meet-the-outsider-who-accidentally-solved-chronic-homelessness/

woooee 814 Nearly a Posting Maven

The Farmers’ Almanac (not the Old Farmer's Almanac) predicted a new Ice Age to begin in January, 2014. Based on planetary positions, sunspots and lunar cycles, the almanac’s secret formula is largely unchanged since founder David Young published the first almanac in 1818, but no mention of a polar vortex.

woooee 814 Nearly a Posting Maven

Today's compilers are optimal, meaning comments don't make it into the final code, so you can just comment those lines, i.e. the if statement and everything beneath it. It is almost a certainty that you will want them again. The input will change or the program will have to be changed and you will want to know what is happening at those check points, so you can then uncomment them.

BustACode commented: The reason I wrote it is that some of the programs were rendered unreadble, even by me later. So it gets rid of the detritus. +0
woooee 814 Nearly a Posting Maven

It takes between 2 million and 10 million bee trips to make a pound of honey, depending on who's counting. And about 50,000 miles.

woooee 814 Nearly a Posting Maven

I am assuming that your question was already answered here http://stackoverflow.com/questions/30137630/open-frame-from-button

Statements like this say that you are indeed confused by the inheritance.

    for F in (PageSTART,PageSELECT,PageZS,PageARH,PageSET,PageHLP):
        frame = F(container, self)
woooee 814 Nearly a Posting Maven

Mother's Day was founded for mourning women to remember fallen soldiers and work for peace.

About 80% of Mother's Day cards are purchased by women. (Just a little surprising)

According to the Pew Research Center, there are consistently more phone calls made on Mother's Day than any other day of the year. (Not at all surprising)

woooee 814 Nearly a Posting Maven

The zippo lighter was named to sound similar to the zipper, which was a hit in 1933 when the first zippo was made.

Zippo has trademarked the phrase “It works or we fix it for free” and reportedly will fix any broken lighter regardless of age.

woooee 814 Nearly a Posting Maven

There is no way to tell which "position_start" to use in the following code, as there are two with the same name in the for() statement. As for the problem, print the list(s) on the line before the for() statement to see what it contains. Finally, you should check that all lists are the same length before executing the for() loop.

for position_start, position_top, program_width, program_height in zip(position_start, position_top, program_width, program_height):

    pos_start = int(float(position_start))
mark103 commented: ty this is the answer i'm looking for +2
woooee 814 Nearly a Posting Maven

First, try it with "shell=True" (see the link below). And post which version of Python and the OS you are using.

You can capture the output and write it to a file yourself so you know if you are getting that far or not. See the Python Module of the Week's "capturing output" http://pymotw.com/2/subprocess/index.html#capturing-output (and subprocess.call should work just fine for calling/running the program).

The code you posted has one error that I can see, although we can not run it because we don't have the perl script. There a missing slash for the directory at the beginning of the output file i.e. should be "> /Input/tokenization/Eng-hin.translation.tok.en"

woooee 814 Nearly a Posting Maven

This spring Hyundai will begin leasing a fuel cell version of its Tucson crossover in the U.S. and when it goes on sale, drivers in Southern California will be able to power their cars using processed sewage. Yes you read that right, a new process in Orange County converts human waste into a fuel that can power hydrogen fuel
http://inhabitat.com/hyundais-2014-tucson-hydrogen-fuel-cell-vehicle-runs-on-human-poo/ You probably don't want to tailgate one of these.

woooee 814 Nearly a Posting Maven

Already posted this once elsewhere

To tell you the truth (how long have you been lying)

Anything that requires a "but" i.e. I don't want to interrupt but...

woooee 814 Nearly a Posting Maven

There also has to be a button that is pressed, or some other event trigger, to tell the progam when to get the value from the input GUI.

woooee 814 Nearly a Posting Maven

What do 2 porcupines say when kissing? Ouch, ow, ow.

woooee 814 Nearly a Posting Maven

Take a look at the following thread in Daniweb https://www.daniweb.com/software-development/python/threads/452441/tkinter-entry-value-problem There are more examples under the "Python GUI Programming" thread at the top of the python page.

woooee 814 Nearly a Posting Maven

A small village in the Indian state of Rajasth plants 111 trees every time a girl is born. The village has planted over 250,000 trees so far. The tradition was started by Shyam Sundar Paliwal in memory of his daughter, Kiran, who passed away. They collect Rs. 21,000 ($339) from villagers, and Rs. 10,000 ($161 in 2015) from the girl's father and invest the money in a 20 year government bond to help insure the financial security of the girl. http://www.onegreenplanet.org/environment/village-in-india-plants-plants-trees-every-time-a-little-girl-is-born/

woooee 814 Nearly a Posting Maven

Gerald Ford served as Vice-President and President of the US but was not elected to either office.

woooee 814 Nearly a Posting Maven

You're not my type.

woooee 814 Nearly a Posting Maven

Eight-year-old Evan reviews toys on his youtube channel, EvanTubeHD, and rakes in an estimated more than $1 million annually.

woooee 814 Nearly a Posting Maven

Sping gets shorter every year by about 30 seconds to a minute, due to astronomical quirks, researchers say. Summer gets longer. Similarly winter gets shorter and autumn gets longer.

The main reason spring is getting shorter is that Earth's axis itself moves, much like a wobbling top, in a type of motion called precession. Spring ends at the summer solstice, and because of precession, the point along Earth's orbit where the planet reaches the summer solstice shifts slightly.

Spring will be shortest in about the year 8680, measuring about 88.5 days, or about four days shorter than this year's spring

http://www.nbcnews.com/science/space/why-spring-gets-about-30-seconds-shorter-every-year-n327286

RikTelner commented: "Leap half-minute" ? :D +0
woooee 814 Nearly a Posting Maven

On Sunday, March 15, 2015, the first dot.com ever registered will be 30 years old. It is www.symbolics.com and, yes, the domain still works to this day (even though the company is now defunct). It took roughly two years to reach 100 domains, and today there is a new dot.com registered, on average, every second.
http://www.piercepioneer.com/happy-birthday-dot-com/38898

woooee 814 Nearly a Posting Maven

Pi is the circumference of a circle whose diameter is 1, and is the first letter of the Greek word perimeter."

woooee 814 Nearly a Posting Maven

You ignore spaces in the encoded message and insert a space at the appropriate number, ie. is in "key".

def decode(message, key):
    output=[]
    for ctr, ltr in enumerate(message):
        if ctr in key:
            output.append(" ")
        if ltr != " ":
            output.append(ltr)
    print "".join(output)

decode("HELLO WORLDT HISIS SOC OOL", [5, 11, 16, 19, 21])
woooee 814 Nearly a Posting Maven

And obviously those 2 things are related.

woooee 814 Nearly a Posting Maven

In Alaska it is illegal to whisper in someone’s ear while they’re moose hunting.

woooee 814 Nearly a Posting Maven

Ostriches can run faster than horses, and the males can roar like lions.

woooee 814 Nearly a Posting Maven

Everyone who "dies" has their eyes open.

woooee 814 Nearly a Posting Maven

Why do we cook bacon and bake cookies? What was the greatest thing before sliced bread?
Simply Delicious Shower Thoughts with Cookie Monster
https://www.youtube.com/watch?v=wBNJ0BH3Dgs

woooee 814 Nearly a Posting Maven

It something like this happens to you, a credit freeze is better than credit monitoring, at least in the US. This stops any new attempts to access your credit report, so unless a lending institution issues credit cards or loans without checking, nothing can be obtained in your name.

From http://www.consumer.ftc.gov/articles/0497-credit-freeze-faqs

Contact each of the nationwide credit reporting companies:
Equifax — 1‑800‑525‑6285
Experian —1‑888‑397‑3742
TransUnion — 1‑800‑680‑7289

You'll need to supply your name, address, date of birth, Social Security number and other personal information. Fees vary based on where you live, but commonly range from $5 to $10.

After receiving your freeze request, each credit reporting company will send you a confirmation letter containing a unique PIN (personal identification number) or password. Keep the PIN or password in a safe place. You will need it if you choose to lift the freeze.

woooee 814 Nearly a Posting Maven

FreedomPop announced unlimited wifi for $5 per month with 25 million hotspots expected http://techcrunch.com/2015/01/21/freedompop-wifi/

Google is interested in entering the wireless phone and/or internet market http://www.pcmag.com/article2/0,2817,2475602,00.asp

Google provides internet service for Starbucks, one of the hotspot providers for FreedomPop. Both announcements come within days of each other. Coincidence...or is it?

woooee 814 Nearly a Posting Maven

Good point. Am assuming from "lastnight" that titles don't contain spaces. And if they do, the concept is still the same.

woooee 814 Nearly a Posting Maven

You split them and add a newline so they are on new lines. We don't know what type of variable favorite_movies is so there is no way to give an exact answer, but it is something along the same lines as

favorite_movies="spiderman lastnight matrix"
print favorite_movies
print "\n".join(favorite_movies.split())
woooee 814 Nearly a Posting Maven

Not without knowing what argv contains. Print it and see for yourself.

print argv
print len(argv)
woooee 814 Nearly a Posting Maven

Capt Kirk never said "Beam me up Scotty". The closest was "Scotty beam me up" but usually it was "3 to beam up Scotty" unless one of the crew going down to the planet was a new guy and then it was "2 to beam up Scotty".

woooee 814 Nearly a Posting Maven

First you have to define the limits of the character set. Are you using English/ASCII as other character sets have an extended range?

Do you want to encode special characters as well, @. ?. $ etc.

For your purposes, ASCII goes from decmal 32, space, through decimal 126, ~.

You can ask for an input from the user to get the offset. After the offset is applied, you then have to test if the resulting decimal value is < 32 or > 126 (for ASCII) depending on if it is encrypting or decrypting, and asjust accordingly. If it is < 32 then you possibly want to increase it by 95, which is the range of decimals used in the above example, 32...126.

Use the code tag in the header to paste your code here. It is not a good idea for us to go to some other site provided by a new poster as it can contain spam or worse.

Also, see "String to Integer" for typecasting the input string into an integer http://en.wikibooks.org/wiki/Non-Programmer's_Tutorial_for_Python_2.6/Revenge_of_the_Strings

second is that I dont know if I should be using a while loop there

Don't know what "there" means, but generally a for loop is used if you mean traverse the string
for character in input_string:

woooee 814 Nearly a Posting Maven

BERLIN (AP) — Police in Germany are looking for a missing pigeon, and any finder could be in line for a 10,000-euro ($12,250) reward.

Duesseldorf police said Tuesday that the 6-year-old male homing pigeon, named AS 969, was stolen at some point on Saturday night from a locked aviary in the city's suburbs.

They say the light gray bird is valued by its owner at 150,000 euros ($184,000) and police suspect the thief or thieves were "connoisseurs" as it was the most valuable in an aviary full of other homing pigeons.

woooee 814 Nearly a Posting Maven

Radio and TV are advertising mediums. The only reason there are shows is to get people to watch the ads. Remember that there is an off button, and exercising your right to choose can force improvement.

woooee 814 Nearly a Posting Maven

Since each increment is 4 times the previous, you should be able to divide the size by 1024 and use that. But to use the form you posted, you first want to traverse the directory(s) once only instead of every time the function is called, and store the numbers in a list. This is more straight forward and flexible IMHO, but you will have to decide if you like it better or not.

def update_list(file_size, sizes_list):
    """ return from function when correct size is found
    """
    for ctr in range(len(sizes_list)):
        if file_size < sizes_list[ctr][0]:
            sizes_list[ctr][1] += 1
            return sizes_list
    ## larger than largest test
    return sizes_list

def file_Dist(path, sizes_list):
    for path, subdir, files in os.walk(path):
        for r in files:
            this_size=os.path.getsize(os.path.join(path,r))
            sizes_list=update_list(this_size, sizes_list)
    ## all processing complete
    previous=1
    for size, ctr in sizes_list:
        print "%d to %d = %d" % (previous, size-1, ctr)
        previous=size

sizes_list=[]
num=1
for ctr in range(8):
    sizes_list.append([num*1024, 0])  
    num *= 4
print sizes_list

file_Dist(path, sizes_list)
woooee 814 Nearly a Posting Maven

To execute a string you can use subprocess.call("string to execute", shell=True) See Doug Hellmann's subprocess explanation for additional info http://pymotw.com/2/subprocess/index.html#module-subprocess

woooee 814 Nearly a Posting Maven

Someone is locked in the closet and the locking mechanism is on the outside. You would use a key on the inside of the closet?? First, most closets don't have locks. Second, even if it is a supply closet that you want locked, you would use a key to get in from the outside.

Also, they forget to check the person(s) going into the closet for a key that would enable them to get out. I can't tell if the key has to be a mirror image to work from the inside.

woooee 814 Nearly a Posting Maven

I searched and searched and couldn't find an answer for this question.

There are no answers to be found in a video game