Mount Shared Folder to Ubuntu if auto-mount doesn’t work

I had some issues with mounting shared folders with Virtual Box because they don’t appear anywhere. I finally figured out that the Shared drive is already there, it’s just not showing anywhere. Before continuing, making sure you have installed the latest version of Guest Additions and your user is added to the vboxsf group. First, […]

Read More »

Create a Zend Framework 2 Module for Composer

I am sure everyone has been using Zend Framework 2 (ZF2) modules created by many others via Packagist, but it can be a little tricky when it comes down to creating your own ZF2 modules to work with Composer, especially when using your own private VCS repository. I found the documentation for setting this up […]

Read More »

Configure AngularJS server

In the Start an Angular project with Yeoman (Ubuntu 13.4) article (please read this one first or you may have problem following this article), I explained how to start an angular project with Yeoman as well as using Grunt to manage the work flow of your application. However you may wonder when making http requests to the […]

Read More »

Start an Angular project with Yeoman (Ubuntu 13.4)

This guide uses Yeoman to scaffold  an Angular Application. It should get you started in no time. ————————– Please note that DO NOT use sudo to run any of the npm commands. npm will try to use the ~/tmp folder to create temporary files, this folder should belong to the user currently logged in, it […]

Read More »

Ant returns code 137

I had this problem at work when running php unit tests on Jenkins (CI server) and it took the whole team ages to figure out this problem. I thought it’s something worth sharing. We use Jenkins to run ant which invokes our unit tests and to speed up the process we are running all the […]

Read More »

Debian Zero To Hero Guide (best for PHP developers)

Took me quite a while to pull all these information together. This guide should install most basic packages you will need to get started with PHP Development. *This was tested with Debian 7.1.0 Before we start, please launch a root terminal to save typing a million sudo commands. Short cut key: Alt + F2, search […]

Read More »

Prevent Cross Site Scripting (XSS) attacks from Rich Text Editors

I believe most developers already know the importance of converting / escaping special HTML characters when displaying their content on a Website to prevent XSS attacks.  In PHP, this can be simply done by calling htmlspecialchars([dangerous data]).  However I haven’t seen many articles talking about how to do this when you need to use a […]

Read More »

MySQL Integer Types

When declaring an integer in MySQL the number after the integer does not have any bearing on the size of the information in the database or the range of possible values.   INT(1) uses the same space as INT(11)   If you want to specify a smaller / different data size, this can be done […]

Read More »

Ubuntu Zero To Hero Guide (best for PHP developers)

Took me quite a while to pull all these information together. This guide should install most basic packages you will need to get started with PHP Development. *This was tested with Ubuntu 13.04 but most things should also work on Ubuntu 12. Java First #remove open jdk and install oracle jdk sudo apt-get purge openjdk* […]

Read More »

Install PHPUnit

Firstly, run: sudo pear channel-discover pear.symfony.com sudo pear install pear.symfony.com/Yaml Then run: sudo pear channel-discover pear.phpunit.de //this may take a while depending on your internet speed sudo pear install –alldeps pear.phpunit.de/PHPUnit p.s. http://pear.phpunit.de/ is the most up to date official PHPUnit site. If you install it from the default pear package, it will be version 3.4 or 3.5 which […]

Read More »