When you update Drupal core, the .htaccess file is overwritten with the latest version. This also means that any www redirects in that file are lost, and you have to re-apply them, which is annoying, and a problem if you forget to do it after updating. The reason why it is important to only show URLs with OR without www. in front of them, is to avoid what Google considers duplicate content.

Tool for removing a broken off cable head from inside a Shimano gear shifter

The rear gear cable on my bike snapped while I was biking on it today. Luckily I had a replacement cable with me, so I thought I could replace it right away. But it turned out that the cable head inside the gear shifter was jammed, and impossible to get access to and remove.

Change Firefox default search engine behaviour in the location bar

If you type some keywords in the address bar (also known as location bar) in Firefox and press enter, it will perform a search for these words.

To change search engine, or configure the behaviour, type about:config in the location bar, and search for keyword.URL, update to match your needs.

To use the DuckDuckGo search engine:
https://duckduckgo.com/?q=

Use Google, with "I feel lucky" effect, going directly to the best matching result:
http://www.google.dk/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=

Just go to the Google result page:

Installing Gnome 3 on Ubuntu 12.04

From your terminal, run this command:

sudo apt-get install gnome-shell

Reboot your computer, click on the little Ubuntu icon next to your login name and select select 'Gnome Classic (No effects)'.

Spell-check in LibreOffice in Ubuntu

To install the Danish dictionary, run this command, from your terminal: sudo apt-get install hunspell-da

Restart LibreOffice, and from Writer, choose Tools -> Options... click Language Settings -> Languages in left menu. Under 'Default languages' - 'Western' select 'Danish'.

Hard boil an egg the right way, use salt.

To boil an egg without the egg sticking to the shell when you peel it, all you need is one extra ingredient in the water and plenty of it: salt. Sometimes when I made hard boiled eggs in the past, the shell would stick to the white part of the egg when I peeled them. But after I began adding 2-3 tablespoons of salt, this is a problem of the past, and the egg shells just slide right off.

Speed up Drupal with the Boost module

The Boost module works by caching static versions of pages, and serving them to anonymous users. Because Boost caches pages in flat HTML files and the server doesn't hit your database, pages are sent to the users much faster, sometimes in as little as 200-300 milliseconds, which will seem almost instantly. From the Boost module page: "If you are on shared hosting this is your best option in terms of improving performance."

Install LAMP web server and Drupal 7 in Ubuntu

Installing a web server is very easy in Ubuntu, just enter a few lines in the terminal: There is no need to install and configure each part of a LAMP (Linux-Apache-MySQL-PHP) installation individually. You can also install other programs this way. The downside is that all components are installed automatically, and not reviewed by you. But as long as you only use the web server locally (localhost or 127.0.0.1), and don't open up for access from the Internet, it should be safe.

Replacing the gear shifting system on a Trek 4100 MTB

The mechanical parts on my Trek 4100 mountainbike were getting old and worn out, so I replaced the bottom bracket, front chainwheel, multiple freewheel, rear derailleur and bike chain.

It isn't that difficult, and the process is a lot of fun! On top of that you save a lot of money, in stead of letting your bicycle repair shop do it.

Installing and recording music with Ubuntu Studio

If you want to record music with the Ubuntu GNU/Linux system, Ubuntu Studio will make the installation of the programs needed much easier, and get you started with just a few clicks. As well as audio programs, video and graphics programs are also part of Ubuntu Studio.

Apart from a computer, the music programs installed with Ubuntu Studio and an instrument, you will need something to interface between your instruments and the computer and an external USB sound card can do just that.