English in Finland on Ubuntu

Use English with modern units, such as meters. Updated for Ubuntu 12.04 LTS. English is the common language of computers. But why does it come with obsolete units, such as feet instead of meters? English in Denmark en_DK.UTF-8 is the … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , | Leave a comment

Change MySQL Password on Ubuntu – dpkg-reconfigure mysql-server-5.1

Forgot MySQL server root password? It’s trivial to change it in Ubuntu and Debian. $ sudo dpkg-reconfigure mysql-server-5.1 To get the version of your package, just type ‘sudo dpkg-reconfigure mysql-server-5″ and press tab a couple of times. It simply asks for … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , | Leave a comment

Lifecycle Code Example for Android – onCreate(), onPause(), onResume()

In Android lifecycle, methods are automatically called. This simple example toasts a message each time this happens. Create a new project SimpleStuff, package com.botbook.simplestuff. Run your program and see the states change. Press home button to stop the program. Hold … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

Print PDF from Command Line – cups-pdf, lpr -P PDF

After installing cups-pdf, you can print to file with ‘lpr -P PDF’. Install PDF printer $ sudo apt-get -y install cups-pdf List printer names that lpr can understand $ lpstat -p -d printer deadtree is idle.  enabled since 2011-06-22T08:09:05 EEST … Continue reading

Posted in Uncategorized | Tagged , , , , , , | Leave a comment

Fix Android Build Problem with main.out.xml and strings.out.xml

When you edit an Android XML file in Eclipse, build fails and main.out.xml is created. Fix it by disabling XSL transformation build and set to always build the last build. Eclipse: Window: Preferences: Run/Debug: Launching: Launch Operation -> Always Launch … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , | Leave a comment

View & Kill – Processes in Linux

Better to kill one bad process than let the whole system crash. Catch the hogs and let your uptimes grow!

Posted in Uncategorized | Tagged , , , | Leave a comment
  • Picks

  • Boxing Clock for AndroidOcton8 Diving T-ShirtsShaking Tower Panda Android GameLearn Chinese with Android
  • Student projects