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.

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