Deploy Flask & Python3 on Apache2 & Ubuntu

Deploy Flask, a Python 3 microframework, on Apache web server on Ubuntu.

Then you can write your own web pages in Python.

Flask is a very simple framework for writing server side applications with Python. This article shows how to deploy Flask the way it’s installed on a public server.
Continue reading

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

Run Arduino IDE on Xubuntu Live USB

You can develop your own robots and other hardware with Arduino. You can do this even when booting the computer from a USB stick.

With Xubuntu Live USB, you must use ‘newgrp dialout’ after adding yourself to the dialout group. Then Arduino IDE works normally.

Continue reading

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

Shebang Puppet – #!/usr/bin/env pup – Script to run short standalone Puppet scripts

Write and run single file Puppet scripts.
Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

Aikataulu – Prototyypin rakentaminen bus4tn007-7 alkukevät 2016


Aiemman kurssin oppilaita omat prototyypit käsissään.


Opi rakentamaan itse keksimiäsi prototyyppejä: robotteja, varashälyttimiä, kauko-ohjaimia…

Continue reading

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

Aikataulu – Linux palvelimena ict4tn003-20 ilta – keväällä 2016

Linuxin perusteet hallussa ja haasteita etsimässä? Linux palvelimena -kurssilla opit

  • Ratkomaan ongelmia viileän rauhallisesti
  • Sorminäppäryyttä Linuxissa
  • Monia kiehtovia työkaluja (ks. aikataulu)

Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , | 7 Comments

Agenda for Linux Basics dat8tf063-27 Spring 2016

Learn the basics of Linux in just 8 weeks! Linux course is teached in English in Pasila, Helsinki.

Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , | 32 Comments

Make Moodle Main Content Full Width – GreaseMonkey User Script

A theme in an installation of Moodle was broken. The content was shown in a keyhole, surrounded by large white sorrow borders.

This GreaseMonkey userscript fixes the issue. It overrides some CSS styles on target pages.

You can use it to learn how to replace CSS styles with GreaseMonkey and how to use backticks for multiline strings in JavaScript (EcmaScript 6).

Continue reading

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

Room Status Remotely with OfficeIOT – Haaga-Helia Student Project with Martela

Sami, Asa, Ilkka, Mika, Minna, Juho, Tytti - and the OfficeIOT dongle

My negotiation rooms are reserved, but is anyone actually there? What’s the utilization rate?

OfficeIOT project helps you. It senses if people are in the room and sends this information to a server in the cloud. Users can then log in with any web browser to see the room status.

OfficeIOT is a student project for Martela, on Haaga-Helia course Innovation Project.

Continue reading

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

Innovation Projects on Haaga-Helia Square

OfficeIOT - remotely follow utilization of your negotiation rooms. A working prototype with Arduino (C++), Raspbery Pi (Python), 3D printing (Blender+MiniFactory) and Linux virtual server (Ubuntu LAMP).

Some quick snapshots from Haaga-Helia Event Square. Students are showing their projects on Innovative Project -course.

Continue reading

Posted in Uncategorized | Tagged | 9 Comments

Mobiilituotekehitys

Mobiilituotekehitys -kurssin palautetta ja harjoituksia.

Continue reading

Posted in Uncategorized | 10 Comments

PGP – sähköpostin salakirjoitus

Kun salakirjoitat sähköpostisi, ulkopuoliset eivät pääse urkkimaan tietojasi. PGP on suosituin tapa salata sähköpostia, eikä suotta. Se on ilmainen ja toimii Linuxilla, Windowsilla sekä Macilla.

Continue reading

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

New PGP Public Key

Here is my new public PGP key. You can use it to send me encrypted email.

Continue reading

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

Two of My Robot Books in Humble Bundle


Two of my books are in Humble Bundle! For a short time, you can get “Make: Arduino Bots” and “Make: Sensors” for a very tempting price.



Both books have 4.5 stars in Amazon and have been translated to many languages. “Make: Arduino Bots” was category best seller for a while in Amazon.

Buy the Books on Humble Bundle. Offer ends w51 Wed 2015-12-16.

Update: The offer has ended, thanks for buying thousands more than 30 thousand of our books – in just two weeks.

Posted in Uncategorized | Leave a comment

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.

Continue reading

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

Preseed MySQL Server Password with Salt Stack

MySQL is the most popular multi-user database in the world.

When you install MySQL Server automatically, you must set database root password without asking user to type it. On Debian and Ubuntu, you can use Preseed to answer installer (apt-get) questions beforehand.

This article shows you how to use Preseed with Salt Stack configuration management.

Continue reading

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

Free SSL Certs, 50 Salt Slaves, 5 USD Raspberry Pi, Free Home Automation

Get free SSL cert for your business. Deploy and configure 50 servers to DigitalOcean. Buy RaspBerry Pi Zero for 5 USD (*actual price may vary). Automate your home. Read Ashkan’s thesis while he writes it.

Continue reading

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

Install Ubuntu Virtual Machine in Minutes with Vagrant

In two minutes, you could have an SSH connection to your new virtual Ubuntu server.

Vagrant allows you to define your virtual host in a simple text file. It can then automatically install your new virtual machine and setup automatic ssh login. Vagrant is great for testing – it’s not suitable for production servers.

Continue reading

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

Salt Master-Minion with Ubuntu 14.04 LTS – Control Your Slaves over the Internet

Would you like to control many computers (slaves, minions) from one master computer?

Salt-minions connect to master to retrieve instructions. Slaves then configure themselves to the target state: they install software, make settings and start daemons.

Continue reading

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

Implementing Package-File-Service Pattern as a Salt Stack PyObjects Function

PyObjects renderer allows you to use normal Python functions to repeat actions. In this article, we’ll implement a Package-File-Service pattern as a reusable Python function.

Continue reading

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

Salt Package-File-Service with Pyobjects

When you install Apache, the most popular web server in the world, you want to show web pages. In practice, you install the package, keep the service running and modify a configuration file. In configuration management, this is called package-file-service pattern.

Salt now includes PyObjects, a pythonic interface to state descriptions. This article shows you how to implement package-file-service pattern with Salt PyObjects.

Continue reading

Posted in Uncategorized | Tagged , , , , , , , , | 7 Comments
  • Picks

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