Test your code online on 10 different programming languages


Yesterday we got nice tip on irc channel for this site: http://eval.in/

You can write your test code in the browser and execute it in 10 different programming languages.

iMX233-OLinuXino WEB-IO


Dimitar Gamishev wrote small demo code which allow iMX233-OLinuXino-Maxi GPIOs to be configured as inputs or outputs, to be read or to toggle their state with single mouse click.

Dimitar places his project on GitHub so everyone can download, check and adopt for their own use: https://github.com/hehopmajieh/olinuxino-web-io

To use WEB-IO you need web server and PHP to be installed, Dimitar decided to use lighttpd,  mod_fastcgi and php-cgi from the Angstrom feeds.

Sample lighttpd configuration : In /etc/lighttpd.conf, uncomment mod_fastcgi in server.modules section:

server.modules = (

# “mod_setenv”,
# “mod_proxy”,
# “mod_simple_vhost”,
# “mod_webdav”,
“mod_accesslog” )

And add php configuration to mod_fastcgi :

fastcgi.server = ( “.php” => ((
“bin-path” => “/usr/bin/php-cgi”,
“socket” => “/tmp/php.socket”

Restart lighttpd :

root@olinuxino:~# /etc/init.d/lighttpd restart

now you must have working php.

Installing OLinuXino Web IO Get olinuxino-web-io sources :

git clone https://github.com/hehopmajieh/olinuxino-web-io.git

Install GPIO init script :

cd oliniuxino-web-io/init
update-rc.d gpio defaults

Copy oplinuxino-web-io files to www root directory :

cp -a oliniuxino-web-io/web/* /www/pages

you can view the GPIO initialization script at: https://github.com/hehopmajieh/olinuxino-web-io/blob/master/init/gpio

and the web page content at: https://github.com/hehopmajieh/olinuxino-web-io/tree/master/web/io

iMX233-OLinuXino-Maxi is still connected to this IP so you can play with it

here are some pictures with GPIOs toggled:


and with some GPIOs defined as inputs (by click on direction text):