Name: Anonymous 2009-08-19 22:14
sup /prog/
I like you /prog/. You amuse me. I like lurking and trolling all over you. Only problem is, when I'm on the bus, at work, or at a friends house, I can't be with you! I tried using my phone but the main page looks and acts like shit, and it eats up my data time! Wtf /prog/. Luckily I'm an expert in python so I invented /prog/ mobile.
/prog/ mobile is a python script that basically creates a proxy you view the main page from. It uses no server modules except socket(lol) so it's basically a specialized single purpose web server. When you access the server, it gets subjects.txt, picks the top few, and shits out an html page like this:
I can't be arsed to do a cache or mysql thing to the text file, so it have to download it every time. It's not that much of a performance drop as you think, only half a second. Not enough for me to care. Besides only I'm going to be the one using it.
The python code looks like shit so I'm not releasing it, but you can see from the html code it looks nice and is cell phone friendly. Each thread links to the real /prog/ so you can see all the bbcode and crap, but it shows only the first post, and the last 15 posts in the thread, so it still saves data and loads quick.
Just thought I let you know about this little project and I'll post updates if I choose to continue it.
I like you /prog/. You amuse me. I like lurking and trolling all over you. Only problem is, when I'm on the bus, at work, or at a friends house, I can't be with you! I tried using my phone but the main page looks and acts like shit, and it eats up my data time! Wtf /prog/. Luckily I'm an expert in python so I invented /prog/ mobile.
/prog/ mobile is a python script that basically creates a proxy you view the main page from. It uses no server modules except socket(lol) so it's basically a specialized single purpose web server. When you access the server, it gets subjects.txt, picks the top few, and shits out an html page like this:
<html><head><title></title></head><body bgcolor=#efefef><h3>/prog/ mobile</h3><a href="http://dis.4chan.org/read/prog/1250635703/">11: fucking bash (17)</a><br><a href="http://dis.4chan.org/read/prog/1250720231/">12: Thread list (4)</a><br><a href="http://dis.4chan.org/read/prog/1250683883/">13: IT'S OVER, MICROSOFT IS FINISHED (11)</a><br><a href="http://dis.4chan.org/read/prog/1250667037/">14: IRL /prog/ experiences (14)</a><br><a href="http://dis.4chan.org/read/prog/1250676260/">15: Please, /prog/, avoid my errors! (9)</a><br><a href="http://dis.4chan.org/read/prog/1247362211/">16: BTRON (48)</a><br><a href="http://dis.4chan.org/read/prog/1250670402/">17: Summer of GOTO (11)</a><br><a href="http://dis.4chan.org/read/prog/1250684172/">18: Ruby on Rails (13)</a><br><a href="http://dis.4chan.org/read/prog/1239439150/">19: Choose one! [Serious thread!] (424)</a><br><a href="http://dis.4chan.org/read/prog/1250666836/">20: Ajax get binary data (9)</a><br><br><center><a href="page?1">prev</a> | <a href="page?1">index</a> | <a href="page?3">next</a></center><br>page 2<br><br><br><br></body></html>I can't be arsed to do a cache or mysql thing to the text file, so it have to download it every time. It's not that much of a performance drop as you think, only half a second. Not enough for me to care. Besides only I'm going to be the one using it.
The python code looks like shit so I'm not releasing it, but you can see from the html code it looks nice and is cell phone friendly. Each thread links to the real /prog/ so you can see all the bbcode and crap, but it shows only the first post, and the last 15 posts in the thread, so it still saves data and loads quick.
Just thought I let you know about this little project and I'll post updates if I choose to continue it.