Salt State with Multiple SLS Files

One salt state can have multiple SLS files. Other files are included from init.sls, so you can just use folder name to run the whole multi file state.

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

txvars – Start X Applications from Long Living Screen Sessions

Do your ‘screen’ sessions last for a week or a month? Do you like to start your X applications from the command line? You might need txvars. This article requires fluency with command line interface.

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

USB MIDI keyboard on Linux – Akai LPK25

Akai LPK 25 Professional USB MIDI keyboard works on Ubuntu Linux. Keypress velocity, multiple keys and octave up/down all work as expected.

Posted in Uncategorized | Tagged , , , , , , , , , , , , | 1 Comment

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

Update: Fix forgotten MariaDB password on Ubuntu 18.04 and newer. Update: This method does not work on Ubuntu 16.04, and I have not tested it with newer versions either. Forgot MySQL server root password? It’s trivial to change it in … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , | 2 Comments

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 , , , , , , | 2 Comments

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
  • Recent Posts

  • Picks

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