Hello World Python3, Bash, C, C++, Go, Lua, Ruby, Java – Programming Languages on Ubuntu 18.04

Hello world! All programs start with a hello world. It tests that your environment is working, so that you can run your code. This is how you install and run the most important languages on Linux: Python 3, Bash, C, … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , | Comments Off on Hello World Python3, Bash, C, C++, Go, Lua, Ruby, Java – Programming Languages on Ubuntu 18.04

Biometrics in Haaga-Helia – eye tracking, pupil size, galvanic skin response, facial expressions, heartbeat

See how listener’s emotional reactions are synced to mine. I pitched my doctoral thesis subject for one minute. Graph shows GSR (galvanic skin response) for both me and the listener. We also measured pupil size, facial expressions, heartbeat, eye fixation … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , | Comments Off on Biometrics in Haaga-Helia – eye tracking, pupil size, galvanic skin response, facial expressions, heartbeat

Forgot MariaDB Password – Fix: sudo mariadb -u root

Forgot your MariaDB password? Luckily, you don’t need password for administrative access. $ sudo mariadb -u root

Posted in Uncategorized | Tagged , , , , | Comments Off on Forgot MariaDB Password – Fix: sudo mariadb -u root

PHP Database SELECT and INSERT Example – php-pdo

LAMP is probably the most popular web stack in the world. It powers Wikipedia, and it powered Facebook for years. To access your MariaDB database from PHP server side scripts, use PHP-PDO. Remember to use library functions to put user … Continue reading

Posted in Uncategorized | Tagged | Comments Off on PHP Database SELECT and INSERT Example – php-pdo

Install MariaDB on Ubuntu 18.04 – Database Management System, the New MySQL

MySQL/MariaDB is probably the most popular multi-user database in the world. Since Ubuntu 18.04, you should install mariadb-* packages to use this database.

Posted in Uncategorized | Tagged , , , , , , , | Comments Off on Install MariaDB on Ubuntu 18.04 – Database Management System, the New MySQL

CPU Usage Percent – Python One-Liner for Load Average per CPU

Processor usage is 88%. But how do I get a number like this? For gurus, this Python one-liner prints CPU usage $ python3 -c “print(‘{:.0f}%’.format( float(‘$(cat /proc/loadavg)’.split()[0]) / float(‘$(nproc)’)*100 ) )” 12% The rest of us can read on how … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , | Comments Off on CPU Usage Percent – Python One-Liner for Load Average per CPU

sshfs – Securely Mount Filesystems over the Internet – Survive Suspend and Network Down

Sshfs allows you to browse your own folders over the Internet. It’s a real mount, a directory on your computer, so any program can access the files. And it uses SSH, making it very secure. $ sshfs -o reconnect,ServerAliveInterval=5,ServerAliveCountMax=3 tero@example.com:/ mnt/tero/

Posted in Uncategorized | Tagged , , , , , | Comments Off on sshfs – Securely Mount Filesystems over the Internet – Survive Suspend and Network Down

Aikataulu DigiStartUp dig4tn024-3002 – syksyllä 2018 – molemmat 1p ja 2p – 10 op

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 , , , , , , , , , , | 33 Comments