communities
Communities Meet, Interact, and Evolve! I continuously learn new technologies and maintain my knowledge by staying up-to-date with recent developments. I chose to share my up-to-date knowledge through the online communities I maintain on Meetup, Facebook, and Linkedin. You can find the life michael community I run on Meetup at https://www.meetup.com/lifemichael. I […]
XAMPP, MAMP & MongoDB
In order to execute code in PHP that interacts with the MongoDB server you should install the MongoDB driver in your PHP execution environment. Using MAMP, I spent lots of hours finding out that MAMP doesn’t come will all source code files of PHP in order to allow you building the mongo.so file. The mongo.so […]
My Coming Professional Courses
The enrollment to my four coming courses (Android, PHP, Node.js and HTML5) has started. I strongly recommend to avoid waiting till the last minute. Sometimes the enrollment is closed before the course starts. The Android Java Applications course starts on September 7th 2015. The Software Engineering in PHP course starts on December 22th 2015. The […]
JavaScript API Documentation using JSDoc
When developing a new library in JavaScript it would make things simpler for others if we also create a document that explains how to use the library we developed and how to use each and every function it includes. Such document, also known as API Documentation, can be easily created using the JSDoc tool. The […]
Cross-site HTTP requests
Cross-site HTTP requests are HTTP requests at URL addresses other than the domain of the resource making the request. The CORS specification allows the server side (that returns the resource we try to retrieve using the XHR object) to serve the resource to requests coming from resources that were served from other domains. According to the CORS specification the server side […]
HttpOnly Cookies Overview PRO
When the server side sends back to the client HTTP headers that instructs the client to create a new cookie (or update a cookie that already exists), the cookie on the client side can be accessed using code written in JavaScript. HttpOnly cookies cannot be accessed using code written in JavaScript. In order to create a […]
Introduction to Git Free Course PRO
I have recently completed to upgrade my Introduction to Git course. Its free community version is available at http://www.abelski.com/moodle/course/view.php?id=175. The new version includes five topics: Introduction, Git Basics, Distributed Word, GitHub Jump Start and Git Logs. The new version of this course includes more than 20 video clips on specific topics. You can find the slides, […]
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>”; […]
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 […]