MySQL/PHP character encoding errors (e.g. æ,ø,å) – import, connection, table encoding and html meta header

Today I’ve got four hints that usually solves the character encoding errors I encounter with MySQL and PHP (usually triggered by the special Danish vowels æ,ø,å): PhpMyAdmin import: use the official import function rather than executing crude sql inserts – because then you can specify the character encoding instead of using the default one which […]

Gnome Nautilus bookmarks/favorites backup (in Ubuntu)

Nautilus (default file manager in Ubuntu) saves bookmarks/favorites in the following file in the home folder: ~/.gtk-bookmarks or home/YOUR_USERNAME/.gtk-bookmarks You might need to make hidden files (those that starts with a .) visible by pressing CTRL+H in Nautilus in order to find the file. Just copy the file to another location to make a backup […]

False Science: The Comparative Anatomy of Eating by M.D. Milton R. Mills

I am not an expert on the topics “diets”, “anatomy” and “evolution” – but still I know how real science works and hence I can discard false science such as the article “The Comparative Anatomy of Eating” by M.D. Milton R. Mills. Creationists (Intelligent Design) have also created many such articles that claims to be […]

Install HP LaserJet M1132 MFP printer drivers at Ubuntu 11.10 Oneiric Ocelot Linux hplib hp-setup hp-plugin

UPDATE: For Ubuntu 12.04 it has become much easier to install the HP LaserJet M1132 MFP – use this guide instead if you have Ubuntu 12.04: LINK. Start your terminal by pressing: CTRL+ALT+T SKIP IF YOU ARE NOT 64 BIT USER 1. Setup 64 bit libraries for current user: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/ Make this permanent: gedit […]

Unity Dash Privacy at Ubuntu 11.10 Oneiric Ocelot

UPDATE: For Ubuntu 12.04 it has become much easier to hide a folder and in general keep things private – just go to “System Settings” and find the “Privacy” button at the “Personal” tab. If you have Ubuntu 12.04 or newer, then I will strongly recommend you to use the built-in Privacy system. However, if […]

Ubuntu 11.04 Unity Dash Privacy

UPDATE: For Ubuntu 12.04 it has become much easier to hide a folder and in general keep things private – just go to “System Settings” and find the “Privacy” button at the “Personal” tab. If you have Ubuntu 12.04 or newer, then I will strongly recommend you to use the built-in Privacy system. However, if […]

Best way to rip music from www.youtube.com in Ubuntu

Download videos: Use Video DownloadHelper extention for Firefox to download videos as .flv or .mp4. (however its conversion functionality is buggy) Rip video to mp3: sudo apt-get install ubuntu-restricted-extras sudo apt-get install ffmpeg sudo apt-get install winff Now find winff in Applications -> Sound and Video and use the GUI to rip the videos you […]

install and setup LAMP on Ubuntu for development

First install Apache2, PHP5, Mysql, Phpmyadmin in that order. WEBROOT ######################## Then lets setup ~/public_html as webroot rather than /var/www/ (because it requires root privileges to modify there which is a pain!): 1. Copy the existing website configuration (virtual directory): sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/mysite 2. Modify the following of mysite: gksudo gedit /etc/apache2/sites-available/mysite /var/www -> […]