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 […]

PHP Profiling using Zend Studio PRO

Zend Studio allows us to profile the code we write in PHP using an easy to use profiler it already includes. The following video clip shows how simple it is.

Node.js on Cloud9 Jump Start PRO

Node.js is a platform built on top of JavaScript v.8, Google’s JavaScript runtime engine. Node.js enables us to develop web applications that excellent in their performance. The following code sample is a simple HTTP web server developed using node.js that returns the hello greeting back to the client from which the HTTP request arrives. var […]

Log4j Jump Start PRO

Log4j is an open source project developed and maintained by Apache. It is part of a bigger open source project known as the Apache Logging Services. The following code sample shows how to use Log4j in its basic configuration. package il.ac.hit.samples; import org.apache.log4j.BasicConfigurator; import org.apache.log4j.Logger; public class SimpleLoop { static Logger logger = Logger.getLogger(“SimpleLoop”); public […]

The Zend Framework Zend_Log Component PRO

Using the Zend_Log component we can easily write log messages tracking the execution of our code. We can write these messages to various destinations, such as a plain text file or a database. //writting log message $logger = new Zend_Log(); $writer = new Zend_Log_Writer_Stream(‘zfapp.log’); $logger->addWriter($writer); // attaching formatter to the writer $format = ‘%timestamp%: %priorityName%: […]

Android Resources Names PRO

Each resource has an ID number held in a static variable that belongs to one of the static inner classes in R. The name of that static variable is the very same name we specify as the name of the resource. It can be name of the string (string resource), the name of the image […]

Facebook PHP SDK Jump Start INFO

The Facebook PHP SDK is composed of two files: facebook.php and base_facebook.php. The first includes the definition for the Facebook class. The second includes the definition for the BaseFacebook class, which is a parent class for Facebook together with few more classes. You can easily download the Facebook PHP SDK at https://github.com/facebook/facebook-php-sdk. The following video […]

Nexus Q Introduction INFO

The Android 4.1 new feature that turns NFC connectivity into bluetooth makes device connectivity into a much simpler process and sets the foundation for new creative products. Nexus Q is one of them.

Pausing & Resuming Java Script Execution in Web View PRO

When executing code written in Java Script in our web view we would like to pause it when the user moves to another activity and resumes it when he returns. The following code sample includes two activities. The first activity includes a web view that executes code written in Java Script. The second activity is […]

XML DOM Parsing in Java PRO

JAXP (Java API for XML) provides us with the capability to parse XML documents using a DOM parser. The following code sample shows a simple parsing using the JAXP DOM parser. package com.abelski.samples; import java.io.IOException; import java.net.URL; import java.io.InputStream; import java.net.HttpURLConnection; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import org.w3c.dom.Document; import org.w3c.dom.Node; import org.w3c.dom.NodeList; import org.xml.sax.SAXException; […]

Update cookies preferences