Responsive Web Design

“Responsive Web Design” or RWD or a hashtag #rwd on Twitter has become a great plague in web design just like AJAX technologies which arise a few years ago. Almost all people uses AJAX to run their website. Nowadays, people are talking Responsive Web Design rather than CSS3 media queries technology like people are talking jQuery rather than the AJAX technologies itself. What is Reponsive Web Design? Responsive web design (often Continue reading Responsive Web Design

Sorting Array of Objects using Ruby and Python

From my previous post, I had explained on how to sort an array consists of objects by object’s attribute using PHP. While on PHP sorting by object’s attribute requires additional function other than sorting itself, Ruby and Python has it’s own array of object sorting syntax. For example in Ruby, the following one line syntax will sort an array named population by comparing it’s objects length property (attribute) ascendingly without Continue reading Sorting Array of Objects using Ruby and Python

Sorting Array of Objects Using PHP

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 Sorting Array of Objects Using PHP

Hello, Ruby!

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.

CSS Starter Snippets

Below is CSS starter to reset CSS properties which are predefined by web browsers. html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, Continue reading CSS Starter Snippets

Start Apache HTTP Server Service on Mac OS X Mountain Lion

Apache HTTP Server (httpd) was included out of the box of Mac OS X Mountain Lion (10.8) if you don’t know already. Prior to Mac OS X 10.8 (Mountain Lion) can simply turn on “Web Sharing” to start Apache Web Server service, but from 10.8 onward you’ll need to use command line to start the Apache web server. osxdaily.com mentioned here that we can use apachectl command to start and stop Continue reading Start Apache HTTP Server Service on Mac OS X Mountain Lion

Easy Install PHP Mcrypt Extension on Ubuntu Linux

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 Easy Install PHP Mcrypt Extension on Ubuntu Linux

Untrack Local Files in Git

Sometimes we require to untrack files or folders that have already been added to a git repository. The following git command will stop tracking specified files or folders but keep the file in a git repository intact. This is good for files or directories that have auto generated files or need to be customized often (e.g configuration files). So everytime you do a git commit, you don’t have to commit Continue reading Untrack Local Files in Git