Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

/prog/ mobile

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:
<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.

Name: Anonymous 2009-08-19 22:28

sagefaulted from my iphone

Name: Anonymous 2009-08-19 22:43

give me the fucking code asshole

Name: Anonymous 2009-08-20 1:29

>>3
code that does not exist is the non-existent code
the is the tao of vaporware

Name: Anonymous 2009-08-20 2:58

It's not like this would be that difficult to write.

Name: Anonymous 2009-08-20 3:51

i dont even need internet to access /prog/

Name: Anonymous 2009-08-20 4:07

perl -MCGI=:html -MLWP::UserAgent -e'($r = (new LWP::UserAgent)->get("http://dis.4chan.org/prog/subject.txt", Range => "bytes=0-3000"))->is_success and print(header CGI, start_html("Prog mobile"), (map {@F = split /<>/; @F > 4 && a({href => "http://dis.4chan.org/read/prog/$F[3]"}, $n++.". $F[0]"), br} split(/\n/, $r->content)), end_html)'

Name: Anonymous 2009-08-20 7:43

You should've done this with XSLT for real enterprise-grade quality.

Name: Anonymous 2009-08-20 11:19

>>5
It wasn't.

Name: Anonymous 2009-08-20 12:40

/prog/ looks just fine on my phone, and when I say ''just fine'' I really mean ``as shitty as usual".

Name: Anonymous 2009-08-20 13:03

SOURCE RIGHT NAOW

Name: Anonymous 2009-08-20 13:16

>>1
Are you serious? I have written this as my first exercise in PHP.

Name: Anonymous 2009-08-20 13:27

>>12

this is what PHP developers actually feel proud of

Name: Anonymous 2009-08-20 13:30

Mobile sites are only necessary for idiots who use Wap or Opera.

_______
Sent from my iPhone

Name: Anonymous 2009-08-20 13:32

>>14
that's why we have shit like http://iphone.facebook.com/ and http://books.google.com/m, right?

Name: Anonymous 2009-08-20 13:39

>>13
I'm not proud, for fuck's sake. It's just so basic that I could write it and fibs simultaneously with my eyes closed.

Name: Anonymous 2009-08-20 14:16

I'm not proud, for fuck's sake.
Then why the fuck did you post it?

Name: Anonymous 2009-08-20 14:25

>>17
To tell OP that what he made is nothing special!!!

Name: Anonymous 2009-08-20 14:30

>>18
back to your shitty blog, please, FrozenFaggot.

Name: Anonymous 2009-08-20 15:08

More to the point than the difficulty of writing it is the usefulness of it. And without published code, that usefulness is nil.
Show your work, >>1.

Name: Anonymous 2009-08-20 15:10

>>20
It's useless anyway.  Why would you want to click through every single thread instead of skimming the front page?

Name: Anonymous 2009-08-20 15:13

>>21
did you even read the thread?

Name: Anonymous 2009-08-20 15:30

>>22
Yes, and it's useless.

Name: OP here 2009-08-20 16:06

>>21
My script only makes a better front page for cell phones, it doesn't cycle through thread by thread.

>>20
Point wasn't for it to be useful for everyone, only useful for me, and I found it pretty useful.  Not all code is free, gnu hippie.

Name: Anonymous 2009-08-20 16:12

>>24 Our civilization is built on the principle that shared knowledge advances science and technology.
Has nothing to do with GNU or hippies. Has to do with values; which apparently your parents never taught you. Pity.

Name: Anonymous 2009-08-20 16:24

Not all code is free, gnu hippie.
Not all code is useful and neither is you're face.

Name: Anonymous 2009-08-20 16:38

>>26
SO WHAT IF HE IS FACE!?!?!?

Name: Anonymous 2009-08-20 16:59

HE MIGHT BE FACE BUT WHO WAS PHONE

Name: Anonymous 2009-08-20 17:15

>>24
all gnu hippie code is Not free.

Name: Anonymous 2009-08-20 22:12

>>24
All GNU hippie code is Stallman's. Not free.

Name: Anonymous 2009-08-21 1:55

>>24
Point wasn't for it to be useful for everyone, only useful for me, and I found it pretty useful.
So post about it on your Livejournal instead of using /prog/ as your blog, then.

Name: Anonymous 2009-08-21 10:25

>>29,30
Cool story bro.

Name: Anonymous 2009-08-21 10:33

>>32
Please try to ignore troll posts. They're just jealous that they're not allowed to publish the derivative of free software as proprietary software.

Name: Anonymous 2009-08-21 16:16

>>32
Please try to ignore troll posts. They're just mad that you're destroying humanity by inhibiting collective intellectual progress.

Name: Anonymous 2011-02-04 17:47

Name: Anonymous 2013-01-18 23:46

/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.

Don't change these.
Name: Email:
Entire Thread Thread List