• Setting .git Repository on Private Server With One Go Shell Script

    First, set your details in global config. git config –global user.name “Trevor D.B.”   I’ve found this very useful. Basically it create production and hub repository on the server.

  • Remove all .git files, recursively.

    When we use .git in a project some times we need to do a fresh start or abandon the project we definitely need to delete all hidden git repository files.

  • iOS Swift Programming Patterns: Singleton

    iOS Swift Programming Patterns: Singleton

    What is Singleton Pattern? The Singleton pattern is class which initiated once itself and give global access to this created instance. As it has a unique instance, class variables and methods are shared in entire application/namespace. To understand better let’s check where we can use this pattern.

  • iOS Swift Custom Navigation Bar Color

    iOS Swift Custom Navigation Bar Color

    In Swift to change the text or top navigation are colour is not the same as UIBotton methods. The quick example below shows how to set them.

  • Favorite Password Forever On-Line | Off Line | Web Application

    Favorite Password Forever On-Line | Off Line | Web Application

    Today I’m glad to release very first version of “Favorite Password Forever” ! What is Favorite Password Forever? Favorite Password Forever is an on-line / off-line / web application for creating many password for many website from your unique/one/favorite  password.

  • After OS X El Capitan Upgrade Necessary Java Update

    After OS X El Capitan Upgrade Necessary Java Update

    Today, I upgraded my OS X from Yosemite (10.10.5)  to El Capitan (10.11) with a big excitement cause this upgrade was promising performance improvements more than new features. First impression was good, everything was working correctly then I’ve started to try some applications need Java VM/Library/SDK. As I’m developer I run Aptana Studio (this is…

  • Symfony2 Fondamental Terminal Command List

    List of Routers $ php app/console debug:router   Create Database $ php app/console doctrine:database:drop –force $ php app/console doctrine:database:create   Create Entity Class $ php app/console doctrine:generate:entity   Generating Getters & Setters $ php app/console doctrine:generate:entities AppBundle/Entity/Product   Generating Entities in Namespace # generates all entities in the AppBundle $ php app/console doctrine:generate:entities AppBundle #…

  • Symfony2 New Web Project Creation On OS X

    Once symfony installer installed # Linux, Mac OS X $ symfony new project_name After doing this; new project will be created with fresh download from source.

  • Symfony2 Fresh Install On OS X

    There are many method exists, (check on official web site) for me easiest way was writing this lines on OS X terminal. $ sudo curl -LsS http://symfony.com/installer -o /usr/local/bin/symfony $ sudo chmod a+x /usr/local/bin/symfony  

  • Add Virtual Host On OS X

    Add Virtual Host folder into apache config file by editing terminal command; sudo nano /etc/apache2/extra/httpd-vhosts.conf Like; <VirtualHost *:80> ServerName myproject.dev ServerAlias www.myproject.dev DocumentRoot “/Users/USERNAME/Sites/myproject” ErrorLog “/private/var/log/apache2/mypriject.dev-error_log” CustomLog “/private/var/log/apache2/myproject.dev-access_log” common ServerAdmin web@somedomain.com </VirtualHost> Save document, exit.

  • Bulk Image Resize By Using OS X Terminal Command

    Mac OS X some times fascinating me! Isn’t it fantastic to able to resize a folder of image (jpg, png etc.) with a single line of command!?

  • PhpMyAdmin Installation On Laravel Homestead (Vagrant)

    Laravel Homestead with VirtualBox and Vagrant is wonderful server environment. But PhpMyAdmin is not included out of the box, so let’s install with 3 basic steps.