av01d
Gadgets, Computers and Nerdy Stuff
Gadgets, Computers and Nerdy Stuff
Aug 17th
Hotmail has a bad habit of breaking some email headers, when those headers are utf8-encoded. Campaign Monitor describes it in detail. After some testing, I found out that the problem only occurs with relatively long headers. For example, an email with (random) subject “婰婜孲 訬軗郲, 榃痯痻 熿熼燛 鷢黳鼶 誙 慛慖 More >
Jun 25th
The SynoExt add-on for Firefox is great for people who have a Synology DiskStation: downloading torrents on the NAS straight from the browser. Too bad the extension isn’t being maintained, and is now incompatible with new Firefox versions (everything newer than 3.6 won’t work). Turns out that there is a very More >
May 26th
At work, I am running Windows 7 (64-bit) on a Dell Optiplex 780 PC. When Internet Explorer 9 was released, I installed the 64-bit version on this PC. Right from the start IE9 was unbearably slow, pages didn’t load, or only showed after you moved the mouse (it reminded me More >
Mar 18th
While looking for compact Javascript addClass and removeClass functions, I stumbled upon http://snipplr.com/view/3561/addclass-removeclass-hasclass/.
This code allows for a few optimizations:
Feb 3rd
PHP’s date and strftime functions are great for retreiving date-related info formatting them. The only thing missing is a way to determine the quarter (Q1-Q4) for a timestamp. Here’s a very short function that will return the quarter for a timestamp:
/** * Return the quarter for a timestamp. * @returns More >
Jan 10th
In PHP, if you JSON-encode a string that contains accented characters, the result contains unicode sequences (for example: \u00e9 represents the é character).
<?php $string = 'åbcdéfg'; print json_encode($string) . "\n"; ?>
Running this gives the following output:
"\u005e5bcd\u00e9fg"
If you want to replace the unicode sequences back to their character representation, here’s what More >
Mar 28th
Enabling SSH on a DiskStation is easy. Download and install the Synology “Enable SSH” patch. Install it via the DiskStation manager (via System -> Firmware Update).
Voila: you should now be able to SSH to your DiskStation. But SCP does not work yet. When you try to SCP to the DiskStation, you More >
Mar 20th
Mounting shares (called “Shared Folders” on the DiskStation) in OSX is very easy. In Finder, click Go -> Connect to Server. Depending on whether your share is available as AFP (Apple Filing Protocol) or SMB (Samba), you enter afp://192.168.1.2 or smb://192.168.1.2 respectively.
Click Connect, then select the shares you want to share. Easy.
However, More >
Mar 20th
The Synology DiskStation comes with the Apache webserver. The “Web Station” functionality allows you to host a website. You can even run multiple virtual hosts. These “default” virtual hosts, however, cannot be configured in detail.
But it is very well possible to host multiple websites on a single DiskStation, while still More >
Mar 6th
How much power does an iMac 27 use in a real world scenario? I decided to find out. I have the iMac 27, with the Intel Core i5 quad core processor, and 4GB RAM. Apple does not offer SSD drives in the iMac, something I really don’t understand. First thing More >