The Pixastic.js JavaScript Library PRO

The Pixastic JavaScript library allows us to perform various operations on images we use in our code. The following code sample shows how simple it is to use this JavaScript library in our code. <!DOCTYPE html> <html> <head> <title>pixastic.js demo</title> <script src=”pixastic.core.js”></script> <script src=”glow.js”></script> <script type=”text/javascript”> function changepix(img) { var newpix = Pixastic.process(img, “glow”, {amount:0.2}); newpix.onmouseout […]

The List.js JavaScript Library PRO

The List.js JavaScript library allows us to manipulate lists, tables and other similar structures in our code. Using this library we can easily filter, sort and allow the user to perform the basic CRUD operations. The following code sample shows how simple it is to use this JavaScript library. <!DOCTYPE html> <html> <head> <title>pixastic.js demo</title> […]

Debugging in Slim Framework PRO

The Slim framework allows us to enable a debugging mode. Once doing it, each time an exception is thrown the Slim framework will generate a detailed debugging message. The following code sample shows how to do it. <?php namespace Com\LifeMichael\Samples; require ‘Slim/Slim.php’; \Slim\Slim::registerAutoloader(); $application = new \Slim\Slim(array(‘debug’ => false)); $application->get( ‘/dbg’, function () { $temp […]

Logging Messages in Slim Framework PRO

The Slim Framework provides us with the Log object. Writing logging messages involves with calling various functions on that object. <?php namespace Com\LifeMichael\Samples; require ‘Slim/Slim.php’; \Slim\Slim::registerAutoloader(); $application = new \Slim\Slim(); $logger = $application->log; $logger->setEnabled(true); $logger->setLevel(\Slim\Log::DEBUG); $environment = \Slim\Environment::getInstance(); $application->get( ‘/simplelogs’, function () { GLOBAL $logger; $logger->info(“i m now starting the get handling function”); echo “<data>response</data>”; […]

Creating Filters in AngularJS PRO

The AngularJS allows us to create new filters and use them in our code for filtering data we hold in arrays. The following code sample shows how to create a simple filter. The sample includes three files. The following is the HTML file that includes a SCRIPT element for using the AngularJS library, a LINK […]

Simple Navigation Menu in AngularJS PRO

The AngularJS allows us to create navigation menus in one page web applications in a very simple way. The following code sample shows that. The following is the HTML file that includes a script element that refers the AngularJS library on Google servers. <!DOCTYPE html> <html> <head> <script src=”http://ajax.googleapis.com/ajax/libs/angularjs/1.0.4/angular.min.js”></script> <link rel=”stylesheet” href=”design.css” type=”text/css” /> <title>simple […]

The Slim Framework PRO

Slim Framework is a tiny framework that assists us with the development of REStful web services in PHP. The growing popularity of web applications that include multiple clients implementations (hybrid and native applications for touch screen devices, hybrid and native applications for desktops and one page websites) require us to implement our server side as […]

Mongoose.js Jump Start PRO

Mongoose.js JavaScript library provides us with an object oriented interface for using the MongoDB database in our node.js web applications. You can easily install this JavaScript library using the npm utility. The npm utility is available once you install node.js on your desktop. If you are not familiar with node.js and the npm utility you […]

Developing Simple node.js Web Application on Our Desktop PRO

We can easily set up an up and running HTTP server on our desktop that runs a web application developed in node.js. We just need to write our code in a separated JavaScript file and execute it. var http = require(‘http’); var server = http.createServer(function (req, res) { res.writeHead(200, {‘Content-Type’:’text/plain’}); res.end(‘Hello World!\n’); }); server.listen(1400,’127.0.0.1′); The following video clip […]

Installing node.js Modules PRO

Using the npm utility we can easily install new modules into our node.js development environment. There are two modes for using the node.js package manager, also known as npm. The local mode is the default one. In order to use the global mode we should add the -g flag when using the npm command. Using the npm utility we […]

Skip to content Update cookies preferences