Warning: mysql_connect() [function.mysql-connect.php]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/waterwav/public_html/weblog/includes/weblog.php on line 44

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/waterwav/public_html/weblog/includes/weblog.php on line 337

Warning: Invalid argument supplied for foreach() in /home/waterwav/public_html/weblog/includes/functions.php on line 66

Warning: in_array() [function.in-array.php]: Wrong datatype for second argument in /home/waterwav/public_html/weblog/includes/functions.php on line 87

Warning: Invalid argument supplied for foreach() in /home/waterwav/public_html/weblog/includes/functions.php on line 92

Warning: reset() [function.reset.php]: Passed variable is not an array or object in /home/waterwav/public_html/weblog/includes/functions.php on line 101

Warning: Variable passed to each() is not an array or object in /home/waterwav/public_html/weblog/includes/functions.php on line 111
x-log: Archive

Thèmes

Liens

License

Creative Commons License

Unless otherwise expressly stated, all original material of whatever nature created by Andreas Jaggi 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 | lien permanente

15.02.2008

Some Links II

08:53 | Coding | lien permanente

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 | aucune commentaire

11.02.2008

Some Links

10:00 | Coding | aucune commentaire

4.02.2008

Biking to work was much more fun in California

Cold weather

20:30 | Misc | aucune commentaire

Pancake Man

20:14 | Misc | lien permanente