Categories

Links

License

Creative Commons License

Unless otherwise expressly stated, all original material of whatever nature created by and included in this weblog is licensed under a Creative Commons License.

21.02.2008

Too much time for party

Horaire 2008

13:40 | Misc | Permalink

15.02.2008

Some Links II

08:53 | Coding | Permalink

14.02.2008

Python Webserver in 1 or 15 lines

Python Webserver in 1 line:

python -c "import SimpleHTTPServer; SimpleHTTPServer.test()"

Python Webserver in 15 lines:

import BaseHTTPServer



class WebRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):

    def do_GET(self):

        if self.path == '/foo':

            self.send_response(200)

            self.do_something()

        else: 

            self.send_error(404)

            

    def do_something(self):

        print 'hello world'

        

server = BaseHTTPServer.HTTPServer(('',80), WebRequestHandler)

server.serve_forever()

via

21:10 | Coding | Permalink

11.02.2008

Some Links

10:00 | Coding | Permalink

04.02.2008

Biking to work was much more fun in California

Cold weather

20:30 | Misc | Permalink

Pancake Man

20:14 | Misc | Permalink