Arvioitava laboratorioharjoitus – Linux palvelimet ict4tn021-5 torstai – alkusyksy 2017 – 5 op

This is the evaluated lab exercise for Linux Server Administration course, 50% of grade. Student had a Live USB stick and an empty computer, and he could use the public Internet. No other tools were allowed. Course feedback was excellent … Continue reading

Posted in Uncategorized | 3 Comments

Arvioitava laboratorioharjoitus – Linux palvelimet ict4tn021-4 tiistai – alkusyksy 2017 – 5 op

This is the evaluated lab exercise for Linux Server Administration course, 50% of grade. Student had a Live USB stick and an empty computer, and he could use the public Internet. No other tools were allowed. Course feedback was excellent … Continue reading

Posted in Uncategorized | Tagged , | 4 Comments

Acute 0.2.2 – Integrate Help Commands to Single Interface – pydoc3, puppet describe and man in GoldenDict

Access all documentation commands and dictionaries trough a single interface. Acute(1) suppresses output if it’s just “documentation not found”, so your interface stays clean. With GoldenDict and acute, you can see real time queries to help commands along offline programmer’s … Continue reading

Posted in Uncategorized | Leave a comment

Print Special Characters as Backslash Escapes – Python3 One-liner with Unicode Support

Let’s find that weird or invisible character that breaks your code $ echo “Hello in Finnish: Päivää”|python3 -c ‘import sys; s=sys.stdin.read(); print(s.encode(“unicode_escape”));’ b’Hello in Finnish: P\\xe4iv\\xe4\\xe4\\n’

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

Commands in GoldenDict – Offline Dictionary of man, grep, pupppet help and your commands

NEW: There is a new, better version of this article and program. Add Python reference, man pages and your own commands to dictionary. This example shows how to add commands as dictionaries to GoldenDict. Commands show information for the exact … Continue reading

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

pydoc3 str – Python Reference in Your Command Line – Airplane & Cottage Entertainment

You can read Python documentation offline with pydoc3. It’s installed automatically with Python, and it always shows documentation for the version of Python you have installed. $ pydoc3 str You can see reference for a library ‘pydoc3 re’ or a single … Continue reading

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

Python RegEx One-Liner in a Pipe – Remove Hard Line Wrapping – No Perl

Just put Python in your pipe and let Perl rest in peace. Python can be used as a one-liner in a pipe. Replacing text with a regular expression used to be the last holdout of perl, but now you can … Continue reading

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

Interactive Map on Your Web Page – with Markers – Leaflet.js and OpenStreetMap

Create an interactive map on your web page. Using Leaflet.js, it can be a static web page on any server. With OpenStreetMap.org tiles, you can start using it without any API keys and without registration. Includes live example.

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

Your JavaScript in Thunderbird – Manipulate Shown Email Contents with Developer Console

You can run Javascript interactively in Thunderbird. It containts a developer toolbox, similar to Firefox F12 console. In this short example, we change some text on the message being viewed. With Firefox, I have used similar content manipulation to fix … Continue reading

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

Database Connection from Python Flask to Postgre, Using Plain SQL

Create a website with database. Use the simple popular Python framework, Flask. Apply your existing SQL skills. This short program creates a new PostgreSQL database and inserts some records. If database and sample records already exist, initialization is skipped. Finally, … Continue reading

Posted in Uncategorized | Leave a comment

First Steps on a New Virtual Private Server – an Example on DigitalOcean and Ubuntu 16.04 LTS

These short notes list example first steps when manually configuring a new virtual private server on DigitalOcean and configuring a DNS name on NameCheap. Always use good passwords. Only good passwords. Good passwords every moment.

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

Teaching Puppet Configuration Management in The National Library of Finland

I’m very happy to get a change to talk about Puppet in the National Library of Finland. Working with experienced professionals makes an interesting day. I have used their Finto ontology to create one of the largest free Finnish-English dictonaries … Continue reading

Posted in Uncategorized | Tagged , , , , , , , | 3 Comments

From Empty Computer to Guest OS in 5 min – Install Vagrant and VirtualBox on Ubuntu 16.04.3 Live USB

With VirtualBox, you can run guest operating systems – Linux, Windows, OSX – under Linux. Vagrant makes it easy to create a new headless guest system and connect to it with SSH. It’s very fast: less than five minutes to … Continue reading

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

Raspberry Mirror Shows Weather and News

Walk in front of a mirror, and it shows you the weather. Kuvastin is a Raspberry Pi based magic mirror with news feeds and weather. Half year course Monialaprojekti has just started, so I’m pretty happy to see students already … Continue reading

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

Hello Flask Web App – Python 3 Flask Development Server Install on Ubuntu 16.04

You can create web apps with Python and Flask. This short “Hello World” tutorial shows you how to install development server for Python 3 and Flask. There are two very successful Python web frameworks. Flask is the simple one, Django … Continue reading

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

Aikataulu – Monialaprojekti Infra pro4tn001-3 – syksy 2017 – 10 op

English: Complete a project with a company as a client. Work with students from different tracks and backgrounds. Course in Finnish. Tee projekti yritysasiakkaalle ryhmässä, jossa on opiskelijoita eri aloilta.

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

Aikataulu DigiStartUp digt4tn024-2 syksy 2017

English: Create your own digital product and find paying customers. Real customers, actual money. Course is in Finnish. Luo digitaalinen tuote ja hanki sille maksavia asiakkaita. Siis oikeita asiakkaita, joilta saa oikeaa rahaa.

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

Aikataulu – Linux palvelimet ict4tn021 4-ti ja 5-to – alkusyksy 2017 – 5 op

English: Learn to manage your own Linux server – in 8 weeks. Beginners welcome. Course is in Finnish. Both groups have completed their final lab tests. Congratulations to those who finished this demanding course. Final lab test for group 4-Tuesday. … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , | 107 Comments

Self Balancing Robot, an Apple or a Banana? Prototype Workshop Demo Day

From self balancing robots to sun seeking solar panels, prototype workshop had it all. Feedback was excellent 4.8 out of 5. Thanks! Also check the free text feedback.

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , , | 18 Comments

Presenting in Doctoral Colloquium, University of Westminster, London

Annual Doctoral Colloquium was arranged in Marylebone Campus, Westminster University, London. Thanks to organizers and presenters for an interesting day.

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

Kill Stalled Command After One Second – timeout 1 cat

To automatically kill stalled command after one second, put ‘timeout 1′ before the command. $  timeout 1 cat

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

Photos from IEEE ICIM2017 China

ICIM2017 is now behind. It was an interesting week. On my invited speech, I talked about the BotBook.com method for rapid prototyping, the same method used in my books and some of my workshops. BotBook method was developed with Kimmo … Continue reading

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

Hello Go world – Install and Run Go in Less Than a Minute on Ubuntu 16.04 LTS

Go is a new programming language. It’s similar to C++, but aims to be simpler, safer and tries to support parallel operations better. Installing Go and running “Hello world” takes less than a minute. This short tutorial shows you how … Continue reading

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

Speaking in ICIM2017, an IEEE conference in China

I’m participating ICIM2017 as invited speaker and session chair. I’ll also present a paper I co-authored with Shuliang Li. If you’re participating, you can catch my speech on Saturday at 11:30.

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

Aalto 2 has left Earth atmosphere

Aalto 2 satellite left Earth atmosphere today. It is Finland’s first own satellite. Aalto 2 navigation subsystem uses the same code for the sun sensor as Aalto 1. We created a prototype for the sun sensor using of the shelf … Continue reading

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

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