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

9.10.2008

Unicode Snowman

via

15:50 | Misc | lien permanente

4.09.2008

Use EPFL Exchange on the iPhone / iPod touch

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:

  • E-Mail: firstname.lastname@epfl.ch
  • Server: ewa.epfl.ch
  • Username: studentsusername
  • Password: ********************

19:59 | Misc | lien permanente

21.08.2008

Disc of this Summer: La Phaze - Miracle

La Phaze - Miracle

06:31 | Musique | lien permanente

9.08.2008

Opera 9.25 vs Safari JavaScript syntax error forgiveness

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.

01:15 | Coding | lien permanente

2.08.2008

Fast disk upgrade for my MacBook Pro

Here's how to upgrade the disk of a MacBook Pro in 45 minutes while keeping all your data/settings/applications:

  1. Uninstall rEFIt and make sure your MBP restarts with the Apple 'default' bootloader
  2. Follow the iFixit Guide to replace your disk
  3. Put the old disk in a SATA-to-USB case (they are available for $7.89 from Newegg.com)
  4. Connect the old disk to your MBP and turn the MBP on. (The MBP automagically recognizes the old system and runs it)
  5. Open the Disk Manager and partition your new disk.
  6. Select your new 'system' Volume and open the "Restore" tab.
  7. Drag your old 'system' Volume to the "Source" field and your new 'system' Volume to the "Target" field. Click on "Restore", the contents of your old disk are now copied to the new disk.
  8. After the restore process finishes, shutdown your MBP.
  9. Disconnect your old disk and turn on your MBP.
  10. Voilà. You are booting from the new disk and all your data/settings/applications are there too!

07:58 | Mac | lien permanente

19.07.2008

Handy Photos

  • handy-scaled-0.jpg
  • handy-scaled-1.jpg
  • handy-scaled-12.jpg
  • handy-scaled-23.jpg
  • handy-scaled-34.jpg
  • handy-scaled-42.jpg
  • handy-scaled-43.jpg
  • handy-scaled-44.jpg
  • handy-scaled-45.jpg
  • handy-scaled-46.jpg
  • handy-scaled-2.jpg
  • handy-scaled-3.jpg
  • handy-scaled-4.jpg
  • handy-scaled-5.jpg
  • handy-scaled-6.jpg
  • handy-scaled-7.jpg
  • handy-scaled-8.jpg
  • handy-scaled-9.jpg
  • handy-scaled-10.jpg
  • handy-scaled-11.jpg
  • handy-scaled-13.jpg
  • handy-scaled-14.jpg
  • handy-scaled-15.jpg
  • handy-scaled-16.jpg
  • handy-scaled-17.jpg
  • handy-scaled-18.jpg
  • handy-scaled-19.jpg
  • handy-scaled-20.jpg
  • handy-scaled-21.jpg
  • handy-scaled-22.jpg
  • handy-scaled-24.jpg
  • handy-scaled-25.jpg
  • handy-scaled-26.jpg
  • handy-scaled-27.jpg
  • handy-scaled-28.jpg
  • handy-scaled-29.jpg
  • handy-scaled-30.jpg
  • handy-scaled-31.jpg
  • handy-scaled-32.jpg
  • handy-scaled-33.jpg
  • handy-scaled-35.jpg
  • handy-scaled-36.jpg
  • handy-scaled-37.jpg
  • handy-scaled-38.jpg
  • handy-scaled-39.jpg
  • handy-scaled-40.jpg
  • handy-scaled-41.jpg

15:42 | Misc | lien permanente

25.06.2008

helloworld.c

void main(){puts("Hello World.n");}

21:40 | Coding | lien permanente

9.05.2008

YYYYYEEEEESSSSSSSSSSSSSSSSSSS

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)

17:52 | Musique | lien permanente

4.05.2008

Vim links

08:23 | Linux | lien permanente

2.05.2008

Sleep deprivation - Sat Rocks On The Second Floor

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

15:25 | Misc | lien permanente

30.04.2008

Seems people don't read enough books

Coding Horror: Programmers Don't Read Books -- But You Should

14:23 | Coding | lien permanente

28.04.2008

Gigabyte U7000 USB DTV DVB-T and Ubuntu (8.04)

  1. sudo apt-get install kaffeine dvb-utils mercurial linux-headers-$(uname -r) build-essential
  2. hg clone http://linuxtv.org/hg/v4l-dvb
  3. cd v4l-dvb
  4. sudo make
  5. 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.

DVB-T screenshot

20:45 | Linux | lien permanente

Musikverwaltung unter Linux

Pro-Linux: Musikverwaltung unter Linux, ein Vergleich verschiedener Programme

11:01 | Linux | lien permanente

23.04.2008

Python (S60) links

00:12 | Coding | lien permanente

21.04.2008

ImageFlow

ImageFlow, CoverFlow mit JavaScript. (via)

21:31 | Webdesign | lien permanente

Mibbit.com - Web-IRC-Client

Mibbit.com provides an IRC webinterface, so you can hang around in your favorite channels with your iPhone/PDA/fridge/whatever.

21:21 | Networking | lien permanente

15.04.2008

Ten Thousand Cents

http://www.tenthousandcents.com/

21:18 | Misc | lien permanente

25.03.2008

Using the X11 clipboard on the commandline

XSel gives easy commandline access to the X11 clipboard (primary & secondary).

14:27 | Linux | lien permanente

23.03.2008

Unix Toolbox

Unix Toolbox, a nice collection of Unix/Linux/BSD commands, may be useful for advanced users.

16:36 | Linux | lien permanente

5.03.2008

CHALLENGE

Don't ask.

00:00 | Misc | lien permanente

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

24.01.2008

UNIX tips

22:29 | Linux | aucune commentaire

19.01.2008

How to brick your Mac

  1. Install Mac OS X 10.4
  2. Install rEFIt
  3. Install Linux
  4. After some time decide to upgrade to Mac OS X 10.5 and at the same time make the partition bigger (e.g. by merging with a FAT32 partition which was originally intended to contain some Windows)
  5. Use the GNU Parted utility to delete the Mac OS X and FAT 32 partitions and create a new bigger partition for Mac OS X 10.5.
  6. Restart your Mac.
  7. Cheer that now you can no longer boot from the harddisk or a CD/DVD nor from anything else!

And now, how to un-brick it again:

  1. Call Apple support
  2. Find out that you are lucky and have some warranty left (6 days in my case!!!).
  3. Bring your Mac to an Authorized Service Provider.
  4. Get it back with a new harddisk :-)

00:32 | Mac | aucune commentaire

12.01.2008

Embed Flash into valid XHTML documents

<object type="application/x-shockwave-flash" data="flash.swf" width="100" height="200">
<param name="movie" value="flash.swf" />
</object>

17:12 | Webdesign | aucune commentaire

9.01.2008

How to enable IPv6 on your Debian Linux server in 3 easy steps

  1. Compute your 6to4 IPv6 address (2002:uuuu:vvvv::1) from your IPv4 address (a.b.c.d):
    printf "2002:%02x%02x:%02x%02x::1\n" a b c d
  2. Add a SIT (IPv6-in-IPv4) interface in /etc/network/interfaces:
    auto sit0
    iface sit0 inet6 static
            address 2002:uuuu:vvvv::1
            netmask 64
            gateway ::192.88.99.1
  3. ifup sit0

Now you can also add AAAA DNS records with 2002:uuuu:vvvv::1 for your domain(s).

16:00 | Networking | aucune commentaire

6.01.2008

Breakout Game written in sed

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)

arkanoid.sed

17:18 | Linux | aucune commentaire

2.01.2008

7 Habits For Effective Text Editing 2.0

I really, really should have known the * command earlier.

10:40 | Coding | lien permanente