Geeks In Asia Use Clever Hacks To Get Slashdot 154
Daedius writes "My comrade Hugh Perkins is living in Asia and he has been without reliable internet connectivity for many days. He uses l33t hacks to get his daily dose of Slashdot in desperate times." From the posting: "The Taiwan earthquake has brought telecommunications in the Taiwan/Hong Kong region to a standstill. I am living in Shenzhen and am unable to read Slashdot directly for several days. Gmail and Google have privileged bandwidth and local servers and both continue to work perfectly from the region. Could there be some way to use Google or Gmail to read Slashdot? A solution was to upload an executable to my web hosting in America that would receive zipped executables by email, execute them, then email me the results."
Google Translate? (Score:4, Interesting)
Or..... (Score:2, Interesting)
Clearly an over-complication (Score:2, Interesting)
Overly Complicated? (Score:2, Interesting)
#!/usr/bin/env python
import os, urllib
MAIL = "/usr/bin/sendmail"
header = """To: user@china.com
From: server@usa.com
Subject: Slashdot
"""
slashdot = urllib.urlopen("http://www.slashdot.org").read()
p = os.popen("%s -t" % MAIL, 'w')
p.write(msg)
p.close()
Sendmail code referenced from Sending email in Python [thinkspot.net]
web to mail portals (Score:5, Interesting)
Re:Too bad... (Score:1, Interesting)
Re:Elegance, Windows, UNIX (Score:5, Interesting)
Slashdot is filled a diverse group of people, Good Programmers who know they are good programmers, Bad Programmers Think they are the Best Programmers out there, Good Programmers who who think they are Bad programmers so (the tend to keep their mouth shut), Bad Programmers who know they are Bad Programmers, and Good programmers who think themselves as the Best programmers, and Bad Programmers who think them as actually good programers.
The most vocal are those who think they are the best programmer out there, some may point to some award that they won in college (that a Lot of students didn't compete in) or show all the great stuff they made. These are also ones the most easily get get threatened by an other programmers code and find ways of knocking it down. Making sure the designer of the code fells as crummy as possible, so the guy can still keep the place in his mind that he is #1!
The Good/Bad Programers who know/think they are Good normally may give a couple of corrections in the code just to make it work a little better of efficiently, or just admit that that isn't quite the same approach they would use, in there style they may accomplish the same task differently and make it more easier for them to read threw.
The ones who think they are bad programmers will try to learn about the code hoping it will make them better programmers or just ignore it as a programming thing.
As for my take on the solution, it does seem a bit overkill, but you need to keep in mind that