Read MySQL database with PHP – php-pdo

Install LAMP web development stack, and write a simple PHP program to read MySQL database.

Continue reading

Posted in Uncategorized | Leave a comment

Ubuntu 16.04 Xenial Guest on Vagrant – vagrant init bento/ubuntu-16.04

Vagrant can install a virtual guest system in two minutes. Vagrant also configures guest SSH server automatically.

To use latest Ubuntu 16.04 LTS Xenial, you should use box bento/ubuntu-16.04.

$ vagrant init bento/ubuntu-16.04
$ vagrant up
$ vagrant ssh

That’s it, you’re now connected to your new, headless box with SSH.

Continue reading

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

Instant Firewall – sudo ufw enable

Firewall prevents access to all ports, except the ones you allow.

Ubuntu ‘ufw’ command makes it easy to set up a firewall on Ubuntu.

It only takes two commands to set up a firewall:

$ sudo ufw allow 22/tcp
$ sudo ufw enable

Continue reading

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

Simple Line Graph with Plotly.js

Draw a simple line graph with Plotly.js.

With Plotly, drawing a line graph is just a single line of code.

Continue reading

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

Johnny Graves is on Steam – Congratulations!

Johnny Graves is on Steam. Congratulations Stupid Stupid Games!

I can still remember when you started the game in one of my courses.  (Innovaatioprojekti, in Finnish)

If you like their work, go buy the game and give it a thumbs up review.

Johnny Graves is on Steam

Screenshot of the game advertisement from StupidStupidGames homepage.

Posted in Uncategorized | Leave a comment

Aikataulu – Innovointiprojekti bus4tn004-7 – alkusyksy 2016

Ideoi, toteuta ja julkaise oma projekti ryhmäsi kanssa.

Viimeinen toteutus alkaa w34 maanantaina 2016-08-22 kello 12:00 luokassa 3007. Uusi opetussuunnitelma tuo uudet kurssit.

Continue reading

Posted in Uncategorized | Tagged , , | 1 Comment

Offline References for HTML5, jQuery, CSS, Python, C++, Apache, PostgreSQL and others

Are you flying? Are you on a summer cottage far, far away? Internet working only on full moon?

Download free offline references for developers. Including HTML5, jQuery, CSS, Python, C++, Apache, PostgreSQL and others.

Update: direct link to download the dictionaries.

Continue reading

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

HTML5 Skeleton with Bootstrap CSS and jQuery 3 Document Ready

This skeleton template allows you to quickly write a web page.

It includes the boilerplate you would write anyway: Bootstrap CSS and an inline style; jQuery and a document ready function; and some text wrapped in a div.container.

Continue reading

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

Internet of Things in Lapland – Demo Day

In just four days, students have designed and built their own Internet of Things devices.

I’m teaching a workshop with Kimmo Karvinen. We’re with Art & Design students in University of Lapland, Rovaniemi.


Continue reading

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

Disable touchpad when typing – syndaemon

Does your palm hit your touchpad when you type?

Syndaemon momentarily disables touchpad when typing, with many extra features.
Continue reading

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

Arvioitava laboratorioharjoitus – Linux palvelimena ict4tn003-19 loppukeväällä 2016

Tämä on kurssin Linux palvelimena ict4tn003-19 (loppukevät 2016) arvioitava laboratorioharjoitus.

Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Prefer IPv4 on Ubuntu 16.04 LTS xenial – /etc/gai.conf

New Ubuntu 16.04 LTS Xenial prefers IPv6 connections. In some networks, this breaks software updates.

You can easily fix this by making Ubuntu prefer IPv4 connections over IPv6.

Continue reading

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

Short Bash prompt – export PS1=”\W\$ “

You can have a nice, deep directory stucture – and still keep your prompt short and tidy.

Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

When files change, take action – inotify-hookable

Automatically compile your program when you save a file. Or load the new code to a web server.

Running a command on save can make development faster and easier. Inotify-hookable makes this simple. It can recursively watch directories, ignore specific files and run any command.

Continue reading

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

Cache Ubuntu deb packages – squid-deb-proxy-client

You can install and upgrade large network of Ubuntu Linux computers very fast. Just use proxy for deb packages.

Continue reading

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

Publish Your Project with GitHub

Git is the most popular version control system. With Git, you can easily work as a team with your friends, have automatic backups on multiple machines and learn a tool you can use at work. GitHub is a proprietary, free-as-in-beer service for publishing your work.

This article shows how a beginner can start a new project on GitHub. After the initial setup, you only need one command line

$ git add . && git commit; git pull && git push

Continue reading

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

Arvioitava laboratorioharjoitus – Linux palvelimena ict4tn003-20 ilta keväällä 2016

This is the final lab test of Linux palvelimena 20, an advanced Linux course. Tools: live USB, empty computer, Internet. The lab task itself is in Finnish.

Continue reading

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

Final Lab Exercise of Linux Basics dat8tf063-27 Spring 2016

Build and test systems for the imaginary company. You have just the empty computer in front of you (no operating system yet) and a Linux Live USB. Feel free to browse the public Internet.

No luck needed, just show us your skills. This is the final lab exercise of Linux Basics 27.

Continue reading

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

Machine Vision, Robots & Fish Food

My embedded course was just finished.

Student projects included (some reports are in Finnish)

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

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