Tag Archives: Programming

Arduino the Open Source hardware

If you are a thinker, a mad scientist in the making or just a curious ADD person like me, the Arduino boards are just what you are missing in life.

Arduino Uno BoardArduino is an open-source physical computing platform based on a simple micro controller board, and a development environment for writing software for the board.

Arduino can be used to develop interactive objects, taking inputs from a variety of switches or sensors, and controlling a variety of lights, motors, and other physical outputs. Arduino projects can be stand-alone, or they can be communicate with software running on your computer .

Arduino hardware can be used in Windows, Mac or Linux. The boards can be assembled by hand or purchased pre-assembled and the open-source IDE (programming environment) can be downloaded for free.

There’s a great starting guide at http://arduino.cc/en/Guide/HomePage, but I have also been recommended this book:

30 Arduino Projects for the Evil Genius

This guide shows you how to program and build a variety of projects with the Arduino microcontroller development system. Covering Windows, Mac, and Linux platforms, it gets you up to speed with the simplified C programming you need to know–no prior programming experience necessary.

You can find more books and arduino boards and components on here.

Examples of what one can accomplish with Arduino:

 

 

 

 

Technorati Tags: , , , , , , , , , , , ,

Android to iPhone Apps with XML

Why has no one thought of it before….. ? You may ask. But someone now has.  The XMLVM project was created by Arno Puder and his team at San Francisco State University.  What it does is provide a bridge between disparate compile-time and run-time environments — in a word cross-compiling, as described by  Frank Ableson on the Linux Magazine website

XMLVM serves as an umbrella for several projects. For all projects, a Java class file or a .NET executable is first translated to an XML-document. Based on the XML-document generated by the front-end, various transformations are possible. (extracted)

The possibilities are immense, but I think it will really take off in the mobile market with Applications being able to run cross-platform from Android to iPhone and so on.

Technorati Tags: , , , , , ,

OpenSuse Factory

On June 18th 2009 The OpenSuse Project announced that its development factory has been made more accessible to package contributors.  Joe Brockmeier’s post at opensuseNews states…

 “we’re making it easier for contributors to take responsibility for packages and to contribute directly to openSUSE. This means contributors will be able to be directly responsible for packages, without having to go through a Novell employee to make changes.

Read more on OpenSuse News site.

Technorati Tags: , , , , , ,

Automatically display form data with PHP

This is a simple PHP  script to automatically display (dump output)  data submited from a html form.

The form setup

  • all inputs (form fields) need to have the same name with [] at the end to turn it into an array,  e.g <input type=text name=formdata[]>

formq.html content

<form method=post action=showme.php>
Name: <input type=text name=formdata[]><br>
Email: <input type=text name=formdata[]><br>

<input type=submit value=ok>
</form>

The Script setup

showme.php content

<?php
$data = $_POST[‘formdata’]; # get value from the form fields

foreach ( $data as $key => $value ) { # loop through array collecting the results

echo  “$value<br>”;  # output the data  – print to page
}
?>

Technorati Tags: , , , ,

PHP 5.2.8 Avaliable fixed the security bug on 5.2.7

the PHP version 5.2.7 was removed from distribution due to a bug that caused a security hole in some configurations. The bug was related to the magic_quotes_gpc which will be deprecated in version 2.6.

The PHP development team has officially announced the immediate availability of PHP 5.2.8. This release addresses a regression introduced by 5.2.7 in regard to the magic_quotes functionality, that was broken by an incorrect fix to the filter extension. All users who have upgraded to 5.2.7 are encouraged to upgrade to this release, alternatively you can apply a work-around for the bug by changing “filter.default_flags=0” in php.ini.

Technorati Tags: , , , ,