Source Code Beautifier

Posted on Updated on

I found that the other day and love it. It helps to nicely display code or whatever in blog posts.



Pinball Key controller

Posted on Updated on

Part of my Pinball project: Key Controller.

I am making a pinball game based on 46″ screen. I am running Pinball fx2 or Ultra Pinball.

To control the flips I made a small button interface using an Arduino due. We the Due one can easily create a USB keyboard interface using the USB host library.

Here is the program and some photos of the hardware wiring.




Fast Install Lamp on Ubuntu 15.10

Posted on Updated on

To install Lamp in Ubuntu make the use of tasksel. It is quick and easy.

sudo apt-get update
	sudo apt-get install tasksel
	sudo tasksel
    1. select with “space” bar the required options
    2. keep the option “desktop”
    3. when requested enter admin password
    4. confirm admin password

Install phpmyadmin

  1. sudo apt-get install phpmyadmin
    1. select with “space” bar the option “apache2”
    2. when requested, select “no” to Configure database for phpmyadmin with dbconfig-common


Posted on Updated on

How to install Node-Red on Ubuntu 15.10

Follow this instructions:

In terminal, run following commands

	sudo apt-get update
	sudo apt-get install nodejs
	sudo apt-get install npm
	sudo ln -s /usr/bin/nodejs /usr/bin/node
	sudo npm install -g --unsafe-perm node-red
	cd $HOME/.node-red
	sudo npm install node-red-node-serialport@0.0.5

To install other nodes, do it from the same directory /.node-red and using the command 7.

To run node-red, in terminal, launch it with the command

	sudo node-red

I am using sudo because I need the root access to serial port.