Getting Started with OpenLayers and OpenStreetmap

Add a free, interactive map on your homepage. Just plain HTML5 and JavaScript, no special server needed. Live demo with source. No API keys needed. And if you really like it, you can later download planet vector data for free! … Continue reading

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

PuppetMaster on Ubuntu 12.04

Control a whole network of computers from PuppetMaster. Wikipedia uses puppet for servers, Google uses puppet for OSX laptops. With this article, you can use puppet with Ubuntu servers and desktops. Prequisites To follow this article, you should be fluent … Continue reading

Posted in Uncategorized | Tagged , , , , , , | 17 Comments

Puppet Reading List

*Starting documents are marked with asterisk “*” and bold. Getting Started with Puppet Hello Puppet – on Ubuntu 12.04 LTS* Learning Puppet Master and Slave PuppetMaster on Ubuntu 12.04* Modules Learning Puppet: Modules and Classes (Part One) Learning Puppet: Parameterized … Continue reading

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

Windows and Buttons in Python – Ten Lines of PyGTK

It’s easy to write grahical user interface with python. Write twindow to a text file, then run it. $ nano twindow.py $ python twindow Do you see a window? Does it print some text to command line when you click … Continue reading

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

Short HTML5 page

Start writing your HTML5 page with this “Hello world”. Test your page with validator.w3.org. Charset is needed for scandics and other special characters. Short valid HTML page <!doctype html> <html> <head> <title>Tero’s Test Page</title> <meta charset=”utf-8″ /> </head> <body> <h1>Tero’s … Continue reading

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

Static Advantage – Could WordPress Be 400 Times Faster?

Apache served static pages 400 times faster than dynamic WordPress pages. Could caching bring this speed advantage to WordPress? I measured pages with Apache benchmark tool “ab”, using 10 simultaneous connections. I used a powerful desktop as a server on … Continue reading

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

Android Cheatsheet for Beginners

Also check out Boxing Clock for Android (and MABG), search Stack Overflow, read Android Developers Guide and Reference. Toast private void tToast(String s) { Context context = getApplicationContext(); int duration = Toast.LENGTH_SHORT; Toast toast = Toast.makeText(context, s, duration); toast.show(); } … Continue reading

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

Write Moodle Quiz Quickly – Import Plain Text GIFT Format

Write your whole Moodle quiz in plain text, then upload. Which on of the following is correct: a, b or c? A simple quiz is a quick way to test simple stuff. But creating a quiz using Moodle web interface … Continue reading

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

Update All Your Computers with a .DEB Repository

Let all of your computers update your software automatically. Once you’ve packaged your scripts, put them in your own repository. Your workstations and servers can then automatically install latest versions of your programs. Prequisites: Packaging, Apache web server, Command line, … Continue reading

Posted in Uncategorized | Tagged , , , , , , , | 5 Comments

32 bit Linux can see 8 GB of memory

In some operating systems, you can only see a little under 4 GB of RAM with a 32 bit OS. It’s a common myth that this would be the case with Linux too. In Linux, you can see your whole … Continue reading

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