#!/usr/bin/python
"""
Upset Zelda fags by adding proxies to the list then running. Repost with as many proxies as you can find. Also try using Tor (tor.eff.org) as this has been proven to be rather effective.
"""
proxies = [
'http://localhost:8118/';,
]
import urllib2
backspaces = 0
for i, proxy in enumerate(proxies):
proxies[i] = [proxy, 0, 0]
for i, proxy in enumerate(proxies):
proxy_handler = urllib2.ProxyHandler({'http': proxy[0]})
opener = urllib2.build_opener(proxy_handler)
opener.addheaders = [('User-agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)')]
urllib2.install_opener(opener)
while 1:
voted_page = urllib2.urlopen('http://www.gamefaqs.com/poll/index.html';, data='opt=2&poll=2875')
if 'A vote from this IP address has already been submitted. This is likely because you share an IP address with others, so you may want to register for a GameFAQs account to enable yourself to vote in this and future polls.' in voted_page.read():
proxy[1] += 1
else:
proxy[2] += 1
failed = sum([proxy[1] for proxy in proxies])
succeeded = sum([proxy[2] for proxy in proxies])
progress_text = 'Proxy %s/%s (%s), Failed %s, Succeeded %s' % (i, len(proxies), proxy[0], failed, succeeded)
print '\x08' * backspaces + progress_text,
backspaces = len(progress_text) + 1
if failed > succeeded > 10:
break
print "Ran out of proxies. All proxies were getting a higher rate of failure than success."
>>2
No, this is not going to become a discussion of werecows.
Name:
Anonymous2007-09-15 14:51 ID:QlL954cp
Look at it this way.
On most browsers, you can bring up your browsing history by pressing Control-H. (No, this is not going to become a discussion of werecows.) On Firefox, this brings up a sidebar that shows up on the left side of the window. If you put your mouse over the edge of the sidebar, the cursor will turn into a different kind of arrow. By clicking and dragging it, you can move the edge of the sidebar back and forth. You are, to put it another way, manipulating the border between the normal window and the history window. By moving the mouse, you can increase the portion of the window devoted to either part. In a more extreme view of this situation, you're increasing or decreasing the amount of existence the sidebar has.
Now, let's apply this idea to something more abstract. Look out your window. If you don't live in a highly urbanized area, you should be able to see the horizon. Think of this as the border between the land and the sky. The land and sky are obviously distinguishable thanks to this boundary. Now, if you were to "drag" the sash between the sky and the land, or to manipulate the border between land and sky, you would end up causing the sky to become larger and the land to become smaller, or vice versa. An effect of this might be to cause something that was just on the ground to suddenly be hundreds of feet in the air. Truly a frightening situation to be in. So, look at it this way - manipulating the border between two physical things shifts whatever balance there is in the interaction between those things. Alternatively, by manipulating the border between two things, you can change the manner in which they exist.
Still, this isn't *that* abstract, since it's still dealing with real things in the real world. Many believe that in this world, there are those things that are true, and those that obviously aren't. This divides reality into two extremes: truth and falsehood. But, since we have two extremes, logically one can imagine a boundary between those two extremes - the border between truth and lies. If one were to manipulate this border, suddenly things that were pure fantasy (flying pigs, for the sake of argument) have become reality - or things from reality have ceased to exist. This is how Yukari is said to have invaded the moon - by manipulating the border between truth and lies, as applied to the reflection of the moon on a pond, she was able to make the reflection of the moon into a manifestation of the actual moon, and so send her youkai army onto it. This is what's truly amazing about Yukari's power - the ability to manipulate the border between completely abstract concepts allows her to fundamentally change reality as we know it (at least in terms of two abstract concepts).
Name:
Anonymous2007-09-15 14:55 ID:i8y72SBj
Ugh. This is why I think Python is fucking ugly. A nice big hunk of text. GvR required indentation, but then leaves out end block delimiters.
>>4
Ugh. This is why I think Touhou is fucking ugly. A nice big wall of bullets. ZUN required bombs, but then leaves out end boss patterns.
Vertical bullet patterns, do you use it?
Name:
Anonymous2007-09-15 15:02 ID:2+IroGem
>>5
Python is not fucking ugly. >>1's Python code is fucking ugly the say way people who don't know how to indent C's code is fucking ugly.
Name:
Anonymous2007-09-15 15:08 ID:i8y72SBj
>>7
Except that a great deal of the Python code I used to see on a daily basis looked like that. It seems unpythonic to know what the fuck a code paragraph is.
GvR required indentation. Probably not a bad idea. Then he removed end block delimiters (zOMG FORCED VERTICAL WHITESPACE OF CODE). That's pretty fucking retarded, really.
Name:
Anonymous2007-09-15 15:15 ID:2+IroGem
>>8 Except that a great deal of the Python code I used to see on a daily basis looked like that.
That doesn't mean that is how Python should be written. I think that a forced vertical whitespace of code would've been a good idea, though.
It seems unpythonic to know what the fuck a code paragraph is.
Most of Python example code on the web written by non-idiots (particularly people involved in development of Python) follows at least the most rudimentary typogragphic conventions.
Name:
Anonymous2007-09-15 15:15 ID:j9q7FihT
Just use pass instead of end then
Name:
Anonymous2007-09-15 15:26 ID:i8y72SBj
That doesn't mean that is how Python should be written
I'm always wary of this kind of argument. C++ and PHP weenies say something like this a lot.
Most of Python example code on the web written by non-idiots (particularly people involved in development of Python) follows at least the most rudimentary typogragphic conventions.
Unfortunately, from anecdotal experience, they're the minority.
Most people seem to know how to indent in any language, but there's something about a lack of an end delimiter that causes them to go stupid. Lisp seems to be afflicted with this too to some degree, maybe because they cluster the closing parens at the right.
Name:
Anonymous2007-09-15 15:39 ID:2+IroGem
>>11 I'm always wary of this kind of argument. C++ and PHP weenies say something like this a lot.
I think your argument is a bit misplaced here.
Most people seem to know how to indent in any language, but there's something about a lack of an end delimiter that causes them to go stupid. Lisp seems to be afflicted with this too to some degree, maybe because they cluster the closing parens at the right.
You may be right. Probably the problem is that when they come from C-like languages, they may even acquire the different viewpoint required to write (Lisp|Python|Haskell|whatever), but being the unartistic geeks they are, they never even consider the completely different aesthetics of code.
Name:
Anonymous2007-09-15 16:20 ID:qv4so8IB
end delimiters is not an issue. vertical space is.
>>17
No, this is not going to become a discussion of werecows.
Name:
Anonymous2007-09-15 22:00 ID:9F5QtuhB
Okay fine. No longer whitespace impaired + more proxies + the crappiest threads ever (seriously though, if you want to tell me where I'm going wrong with them I'm all ears). Unfortunately this doesn't seem to work at the moment, probably because GameFAQs have sussed out the combination of headers that this is sending and is blocking them or the like. Again, fixes welcome as I'm finally going to get some kip.
#!/usr/bin/python
"""
Upset Zelda fags by adding proxies to the list then running. Repost with as many proxies as you can find. Also try using Tor (tor.eff.org) as this has been proven to be rather effective.
"""
proxies = [
'http://localhost:8118/';,
]
import urllib2
import threading
import time
proxy_page = urllib2.urlopen('http://www.freeproxy.ru/download/lists/goodproxy.txt').read()
proxy_page = proxy_page.split('<random_number> <proxy_server_name> : <proxy_port_number>\n\n')[1]
for proxy_line in proxy_page.split('\n'):
proxies.append(proxy_line.split()[-1])
for i, proxy in enumerate(proxies):
proxies[i] = [proxy, 0, 0]
def progress_thread():
backspaces = 0
while 1:
failed = sum([proxy[1] for proxy in proxies])
succeeded = sum([proxy[2] for proxy in proxies])
progress_text = 'Failed %s, Succeeded %s' % (failed, succeeded)
print '\x08' * backspaces + progress_text,
backspaces = len(progress_text) + 1
time.sleep(10)
threading.Thread(target=progress_thread).start()
for i, proxy in enumerate(proxies):
if threading.activeCount() > 10:
time.sleep(15)
else:
threading.Thread(target=proxy_thread, args=(i, proxy)).start()
while 1:
if threading.activeCount() == 1:
# Not really sure if I need to do this but hey.
break
print "Ran out of proxies. All proxies were getting a higher rate of failure than success."
Name:
Anonymous2007-09-15 22:09 ID:nko8y6NB
Rofl, you can't win newfag. Just give it up already.