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

Shared Folder with chmod SetGID

How do you share a folder in Linux? Especially, how can you get write permission to files other users have created? You should know command line before starting with this article. Knowing the basics of chmod (or see ‘man chmod’) … Continue reading

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

Create deb metapackage in 5 minutes

How to install your 200 favourite programs automatically? Latest versions with bug fixes, please. Create a metapackage. Install requirements $ sudo apt-get update $ sudo apt-get -y install equivs Create source file Create a skeleton file. Use only small caps … Continue reading

Posted in Uncategorized | Tagged , , , , , , , | 6 Comments

Command Line Basics

// < ![CDATA[ // < ![CDATA[ // < ![CDATA[ // < ![CDATA[ < ![CDATA[showTocToggle("+","-") // ]]>Table of Contents Command Line Basics Moving and looking around Relative and Absolute Path File Manipulation SSH Remote Control Help History and Guessing Usefull commands … Continue reading

Posted in Old Site | Tagged , , , | 38 Comments

Install Apache Web Server on Ubuntu

// < ![CDATA[ // < ![CDATA[ < ![CDATA[showTocToggle("+","-") // ]]>Table of Contents Install Apache Web Server on Ubuntu Install Apache Test it User homepages Enabling Userdir on Server Test homepages Install Apache Web Server on Ubuntu This step-by-step howto shows … Continue reading

Posted in Old Site | Tagged , , , | 30 Comments

Commands for Admin

< ![CDATA[showTocToggle("+","-")]]>Table of Contents Commands for Admin Sudo – Give a Single Commands with Root Priviledges Package Management – Installing Software Notes on Nethack Commands for Admin Some of the most important commands for admin. This article is a work … Continue reading

Posted in Old Site | Tagged , , | 32 Comments

Control Many Computers with SSH

Control Many Computers with SSH Once you have automated login to target computers with ssh public key authentication, it is easy to run the same command on all of them. Consider three computers, 172.28.1.219, 172.28.2.9, 172.28.2.14, each with account tero … Continue reading

Posted in Old Site | Tagged , , , , | Leave a comment

Making Preformated PRE Text Warp in CSS3, Mozilla, Opera and IE

Making preformated <pre&gt text wrap in CSS3, Mozilla, Opera and IE Code snippets and poems often use spaces for indenting text. Pre-tag is used to display preformatted text on webpages. This makes indenting visible, but has the annoying side-effect of … Continue reading

Posted in Old Site | Tagged , , , | Leave a comment
  • Picks

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