Unicode Snowman
☃
☃
As EPFL is migrating all its E-Mail services to Exchange, lets use the Exchange functionalities of the iPhone/iPod touch.
Here's the configuration to make it work:
The following definition of an Array works without problems in Safari (and probably Firefox too), but triggers an (legitimate) error in Opera 9.25:
var myArray = [ 1.2, 2.3, 3.4, ];
The error is triggered by the superfluous comma after the last element of the Array. It may be argued for both behaviors, but I would prefer all Browsers accepting such an Array definition also since in other languages (C, Python, PHP) such a redundant comma does not cause any trouble.
Here's how to upgrade the disk of a MacBook Pro in 45 minutes while keeping all your data/settings/applications:
void main(){puts("Hello World.\n");}
Qu'en est-il de Noir Désir?
On s'est remis au boulot. On projette d'enregistrer un album durant l'hiver prochain… C'est court, mais on a besoin d'une échéance pour se structurer.
(via)
Right after two nights with 4 hours of sleep in total (Sat Rocks On The Second Floor!), I stumble over this article: Sleep deprivation is not a badge of honor. :-)
Coding Horror: Programmers Don't Read Books -- But You Should
sudo apt-get install kaffeine dvb-utils mercurial linux-headers-$(uname -r) build-essential
hg clone http://linuxtv.org/hg/v4l-dvb
cd v4l-dvb
sudo make
sudo make install
If you're using another flavor of Linux or Ubuntu you may be missing the firmware file, you can get it here.
Mibbit.com provides an IRC webinterface, so you can hang around in your favorite channels with your iPhone/PDA/fridge/whatever.
XSel gives easy commandline access to the X11 clipboard (primary & secondary).
Unix Toolbox, a nice collection of Unix/Linux/BSD commands, may be useful for advanced users.
Don't ask.
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()
And now, how to un-brick it again:
<object type="application/x-shockwave-flash" data="flash.swf" width="100" height="200"> <param name="movie" value="flash.swf" /> </object>
printf "2002:%02x%02x:%02x%02x::1\n" a b c d
auto sit0 iface sit0 inet6 static address 2002:uuuu:vvvv::1 netmask 64 gateway ::192.88.99.1
ifup sit0
Now you can also add AAAA DNS records with 2002:uuuu:vvvv::1 for your domain(s).
Instead of learning for the exams, I mess around with strange things:
arkanoid.sed is a breakout-game written entirely in sed. Download the sed-file and use sed -f arkanoid.sed
to start the game. (via)
I really, really should have known the * command earlier.