The Android Search Framework PRO

The android platform provides us with a search framework that helps us implementing search mechanism in our application. We can allow the user to enter the searched term either through a search dialogue shown on top of the screen or through a search view widget. When developing an application that includes a searching mechanism we […]

Comparing Arrays in PHP PRO

PHP allows us to compare two arrays using the == and the === operators. The following code sample together with the video clip that follows explain the way each one of these two operators work. <?php //$a = [‘a’=>’avodado’,’b’=>’bamba’,’c’=>’calco’]; //$b = [‘b’=>’bamba’,’a’=>’avodado’,’c’=>’calco’]; $a = [123,455,323]; $b = [323,123,455]; if($a==$b) { echo “a and b equal”; […]

The list Construct in PHP PRO

The list construct in PHP allows us an easy assignment of values that belong to array into variabels in our code. The list construct is highly useful when developing code that works with a relational database. The following code sample shows a simple usage for the list construct. <?php $vec = [2=>”dave”,1=>”ron”,0=>”chen”,3=>”ran”]; list($a,$b,$c) = $vec; […]

The usort Function in PHP PRO

The usort function allows us to specify the criteria by which the array will be sorted. The following code sample includes the definition of the class Student and the creation of an array that its values are references for objects instantiated from Student. Using the usort function we can sort the students according to their […]

PhoneGap Jump Start for iOS PRO

You can find a detailed jump start tutorial for doing the first steps at docs.phonegap.com. In order to assist developers when following this jump start tutorial I chose to create a short video clip in which I create a simple phone gap hybrid application for the iOS platform.

JavaScript is the new Java PRO

Looking forward into a future of endless small software pieces embedded all over it is clear that javascript is most likely the only programming language that can deliver the promise of writing once and running everywhere. As of 2013 JavaScript is most likely the new Java!

Routing in AngularJS PRO

AngularJS allows us to develop code running on the client that supports routing in a way similar to code running on the server. Using AngularJS support for routing the development of a one page web application becomes much simpler. The following code sample include a simple HTML file that refers a JavaScript file, where the […]

Address Book Code Sample in AngularJS PRO

AngularJS supports data binding. The view is updated whenever the model changes and vice versa. Thanks to AngularJS support for data binding we can avoid writing code in JavaScript that manipulates the DOM. The behavior behind the DOM elements is modeled into controllers. AngularJS allows us to express this behavior in a clean readable form […]

Hello World in AngularJS PRO

AngularJS is a JavaScript library that provides us with a clear separation of our code into views and controllers. The development of AngularJS is promoted by Google. The following code sample is kind of a simple Hello World. Browsing this code sample we will see two text fields we can consider as models binded with […]

Jump Start (Free) Lectures in HIT INFO

During April 2013 I will deliver four free lectures: HTML Jump Start, WordPress Jump Start, PHP Jump Start and Android Jump Start. The lectures will take place in Holon Institute of Technology during the evening hours. The number of seats is limited and there is a need to register in advance.

Skip to content Update cookies preferences