Consider you have an array or list of objects and wanted to sort it based on one attribute of objects. If the array consists of integer, it is very easy to sort it ascendingly using sort() function, otherwise if the array consists of objects, you have to create custom sorting function which is passed to the PHP usort() function. Here is an example on how to manually sort array of Continue reading
Ruby was come preinstalled on Mac OS X Mountain Lion, so for you who want to develop application using Ruby this one will come in handy. To check the Ruby version installed on your Mac, fire up the Terminal, and type: ruby -v For other OSes please refer to this article in downloading and installing Ruby on Mac, Linux, and Windows.
All Code is Guilty Until Proven Innocent - http://net.tutsplus.com/ Even good programmers make mistakes. The difference between a good programmer and a bad programmer is that the good programmer uses tests to detect his mistakes as soon as possible. The sooner you test for a mistake the greater your chance of finding it and the less it will cost to find and fix. This explains why leaving testing until just before Continue reading
PHP and MySQL were long a couple in web development. Both of them has a same string manipulation function called substr() which has the same functionality to cut the specified string into various sub-string.
Most of web-based application development todays were developed using database. The most popular one is using PHP and MySQL. When developing using MySQL most of beginners were using phpMyAdmin as their power tools in database CRUD (Create-Read-Update-Delete) as well as databases/tables creation and manipulation. PhpMyAdmin supports encryption feature which enables database developers to raise their application security bar in database. In order to use encryption feature in PHP, phpMyAdmin need Continue reading
It’s easy to check whether your installed RDBMS MySQL on your computer is currently running or not. If you don’t have any GUI to show your MySQL server service status, then the command prompt is the fastest replacement tool.
Arduino has become one of the easiest microcontroller platform to develop and therefore it is open source. In this post I’m trying to write down my experiment in using Arduino as 7-segment digital clock display controller driver.
Almost every Andoid application has many activities, a screen that interact with user. On desktop based operating system, this screen is usually called by a “form”. It is very common that it is required to switch between one activity onto another activity in user interaction. In this post I will try to explain how switching between activities and passing variable into it can be done.