Howto create a real multi-resolution favicon

Most favicons are created in a single resolution only, which by default is 16x16 pixels. This is often fine, but low resolution 16x16 favicons look pixelated when seen in some browsers and when used for bookmarking and application icons in e.g. IOS. Some browsers expects favicons in different sizes e.g. 16x16, 32x32, 48x48, 64x64, and 128x128. Most browsers can deal with favicons. GIF, JPG, PNG formats, and Microsoft Icon format (.
2 minutes to read

Fast Static Sites with Ruby on Heroku/Cedar

Recently I needed a simple and fast way for serving a basic static website. I ended up with a simple Ruby and Rack/Thin-based application, suitable for deploying to Heroku. Which means more or less no maintenance and it supports SSL - which is good in this case. For even simpler free HTML cloud hosting check out GitHub Pages. For SSL support Rack::SslEnforcer is used. {% gist 4181366 %} Run it locally $ rackup
One minute to read

Pretty Printing XML with xmllint

Yesterday I was doing some tests towards Visa 3-D Secure test directory url, which responds in XML format. curl -s -X POST -d @vereq.xml –cert visa.crt –key visa.key https://dropit.3dsecure.net:8443/PIT/DS The raw response looked like this: 1.0.2YA0fTY+pKUTs3A4AjhdYQ+g==https://dropit.3dsecure.net:9443/PIT/ACS ThreeDSecure I used xmllint to pretty print the raw response: xmllint -format veres.xml –output - and the pretty printed looked like this: 1.0.2 Y A0fTY+pKUTv+96d4nonZQA== https://dropit.3dsecure.net:9443/PIT/ACS ThreeDSecure
One minute to read

Install R on Ubuntu

The statistical analysis and data mining package R is given its single letter name quite difficult to find help for in Google. What is R R is an open source programming language and software environment for statistical computing and graphics. The R language is widely used among statisticians for developing statistical software and data analysis. How to Install R sudo apt-get install r-base How to use R You can start R simply typing R (case sensitive) on your command line x2q@x2q:~$ R
One minute to read

Mac OS X Drivers for the HP Color LaserJet 1600

Currently there is no a official driver available for the HP Color LaserJet 1600, however there is a simple work-around. First download and install the HP Printer Drivers v.2.12 for OS X - from Apple Support. Next install the HP Color LaserJet 1600 using the “HP Color LaserJet 2600” from the dropdown list in the config section as the driver for the HP Color LaserJet 1600. Confirmed to work for OS X Mountain Lion, OS X Lion and Mac OS X v10.
One minute to read

Howto: Install a Brother MFC-9970CDW on Ubuntu

I got a Brother MFC-9970CDW printer, a multifunction device with wired/wireless network. For unknown reasons the driver are not available in Ubuntu and as as user you are not able to find them using the printer configuration search tool. Thereby you need to download the drivers yourself. Download Drivers Go to Brother Linux Driver Downloads and download the LPR driver and the cupswrapper driver. Install the Drivers sudo mkdir /var/spool/lpd sudo dpkg -i mfc9970cdwlpr-1.
One minute to read

Howto: Mount Bin/Cue in Linux

Mounting a bin/cue image isn’t possible straight away. It requires a simple convertion using bchunk to convert a bin/cue file set into an ISO file. binchunker converts a CD image in a “.bin / .cue” format (sometimes “.raw / .cue”) to a set of .iso and .cdr tracks. The bin/cue format is used by some popular non-Unix cd-writing software, but is not supported on most other CD burning programs. A lot of CD/VCD images distributed on the Internet are in BIN/CUE format, I’ve been told.
One minute to read

Ubuntu 12.10 Review: Nearly perfect

When I last upgraded to Ubuntu 12.04 , I was quite disappointed. Mostly because it was a LTS release and though you do not expect buggy and unpolished components. Back to Ubuntu 12.10. Installation The installation is simple and for the first time ever my girlfriend was able to install Ubuntu without my support. During the installation she even mentioned that is was incredible easy and straight forward. The best thing about the installation is the fact that you don’t waste time during the installation process.
3 minutes to read

EMONCMS: SPIII Solar Controller & Current Cost

My father has got a solar water heater system with a SPIII Solar Water Heater Controller. The controller itself is some crappy closed source with a bad interface (non-standard compliant HTML interface) - however it works. In order to collect all environmental data from the house we decided to buy a Raspberry PI and a few Arduino devices. So far we are able to collect data from the SPIII Solar Water Heater Controller using curl and from the Current Cost device (via cosm.
One minute to read

Ubuntu: Sudo without password

Sudo is a program that allows users to run programs with the security privileges of another user (normally the superuser, or root). The /etc/sudoers file allows listed users access to execute a subset of commands while having the privileges of the root user. Use visudo to edit /etc/sudoers. It can be edited manually, but it is recommended to use visudo to encure that the syntax is correct. sudo visudo Add Single User Add this line at the end (change x2q to your username):
One minute to read