Codes
Source Code Beautifier
I found that the other day and love it. It helps to nicely display code or whatever in blog posts.
Enjoy.
Pinball Key controller
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
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
- select with “space” bar the required options
- keep the option “desktop”
- when requested enter admin password
- confirm admin password
Install phpmyadmin
- sudo apt-get install phpmyadmin
- select with “space” bar the option “apache2”
- when requested, select “no” to Configure database for phpmyadmin with dbconfig-common
Node-Red
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.