Friday, 24 November 2017

Ci-Snippets2 for Visual Studio Code

 My First Snippets Extension for CodeIgniter PHP Framework now available to download from Visual Studio Marketplace
as an opensource project any one can contribute on Github repo
"" .

Change : Updated new version 1.0.0 with some Bug fixes and added table in for refrance.

Thursday, 23 November 2017

My Vim Setup

Vim is most powerful text editor when i am working on Linux distro i just like to use VIM as default text editing work. That's why its included in my Must have application in Ubuntu list. but slowly slowly for work related environment i started using Windows and then come notepad plus plus yes notepad++ is also great text editor but i am missing some great features and easy productivity text editing which i develop for me when i am using vim on Linux dirtro.

Now when my personal environment i started using MacOS and again start using Vim as great text editor services in my Mac. then now for my Personal (MacOS), Work(Windows) and Development (Linux) environments Vim is Best text editor i found to use.

The following are my Twick and setting in Vim to get most out of Vim to get my work done productive, fast and efficient way.

Vim in Linux : By default vi is inbuilt in unix like OS for vim and for enviorment you can download using package manager example for
Ubuntu like distro : sudo apt-get install vim vim-common -y
Fedora like distro : sudo yum install vim-enhanced

Mac Download Package:
Mac HomeBrew : brew install macvim

Windows download exe from :

Customization Vim :For me or every vim user like to customize vim as per there requirement.

vimrc file : to find or open vimrc file any environmental just type following.
Find Location: in Normal Mode ":echo $MYVIMRC" it will outfut the file path.
Open vimrc :  in Normal Model ":e $MYVIMRC" makesure vim run on higher rights to allow changes.

Settings as attached simple with some font changes, number and linespace

This will active post as i am going to update my vimrc as per my requirements and customization needs.

Thursday, 2 November 2017

My Visual Studio Code Settings

When i work on web project my preferred text editor choice is Visual Studio Code 

VSCode runs on all platform Windows, Mac and Linux. as mix environment where for my primary development is Mac but in client side i need to work on windows and some times on Linux distros.

Previously i tried different Text Editors Like Atom (Memory Hungry) crashes often.

 Sublime Text (Not Free).

Atom i like that editor but it crashes often on my mac and heavy process and memory require to run this editor. so when there is no option i started using NetBeans IDE see my Codeigniter plugin for netbeans. yes its also heavy IDE but at least not crash while working. Netbeans is Good IDE but for webproject work i think its very heavy to use Total IDE solution.

So when VS Code is arrived i thought why not give it Try. And i start Like it simple and powerful for web projects and python projects.

when i started using this there are some customization and plugin i like to use in my set of VS code which is i like to share.

Font Size
in Preference (Ctrl + ,)
 "editor.fontSize": 18,

Emmet Trigger
 new VS Code emmet Tab expend is off so in setting
"emmet.triggerExpansionOnTab": true

Workbench Preview
for me its annoying when i click an page its open as preview and if i navigate other page tab currently opened preview page is closed. to change setting
 "workbench.editor.enablePreview": false

Now in Extension market place

CodeIgniter My own Snippets Pack

Working of Laravel Projects
Laravel Blade Snippets

Working on HTML css support

When Working Codeigniter Project or vice versa its better to disable unwanted extensions for that specific work-space.

PHP Intelephense works great with laravel project auto import and class functionality.

Monday, 3 July 2017

Simple Note All in one note taking

This video demonstrate how to install simple note client on windows, android, Mac and IOS devices with basic note taking functionality on the go in my previous blog post. I covered why i switch from Evernote to One note and due to some lagging in  network sync in one note i migrated my notes to all in one free software called simplenote which can be downloaded from website.

Thursday, 27 April 2017

CodeIgniter Post Dump

Some times at a time of developing form we find some difficulties what are the data POST from form action to verify we can use following var dump array to view the data.

        $post = array();
            foreach ( $_POST as $key => $value )
                $post[$key] = $this->input->post($key);

Tuesday, 11 April 2017

BootIgniter Project

As web developer i need to use frameworks to help my web application coding should be easy task i prefer to use CodeIgniter Framework its very easy to understand and use for PHP base project now days every website integrate with bootstrap, but in codeigniter its simple small ready to user nature the following bootstrap framework is not inbuild and there are some simple rules need to follow to integrate with codeigniter i have created an basic template that include bootstrap framework and simple template which is ready to user codeigniter as not need to start every project from scratch.

What's Include in Bootigniter.

  • CodeIgniter Version 3.1.4
  • Bootstrap v3.3.7
  • JQuery v 3.1.1.
The following Project can be fetch from following github repo URL.

Tuesday, 24 January 2017

Some Cisco Command for vlan

The following is short notes configuring vlan in cisco as cheetsheet.

* To view vlan following command

#sh vlan or #sh vlan brief

* To delete vlan

(config)# no vlan (number) Eg. (config)# no vlan 8 
(Note The following command can be delete some of the Router/Switch configuration which is impact network stability)

* To delete interface vlan

(config)# no interface vlan (number) Eg. (config)# no interface vlan 8
(Note The following command can be delete some of the router configuration which is impact network stability or Router/Switch connectivity)

* Creating interface vlan

(config)# interface vlan (number) Eg. (config)# interface vlan 8
The following command creates new interface which we can assign IP for communicate or routing network.

* Assign IP using following IP

(config-if)# ip address (Address) (subnet mask) Eg ip address
In vlan interface the following command is assign subnetted ip address to that particular interface.

* Assign Helper Address

(config-if)# ip helper-address (address) (subnet mask) Eg. ip helper-address
In vlan interface the following command help to set helper address

* Assigning Portfast command.

(config-if)# spanning-tree portfast
In vlan or Port interface the following command help to assign portfast command.

* Assign Name to VLAN

As default Vlan in network devices always as number so to refer the vlan is related to its better to assign name for example if you created vlan 3 and want to use for voice communication user following command.

(config)# vlan (number)  Eg. (config)# vlan 3
(config-vlan)# name name Eg. (config-vlan)# name Voice

Saturday, 21 January 2017

Customize Netbeans IDE for CodeIgniter

I always prefer to use Netbeans IDE for coding if i says it right the primary program for web designing also yes some times back i tried to use Atom text editor for web development yes it is one of the best editor and with plugin it can extend next level as we can thing but because i grow with netbeans even for netbeans some of autocomplete suggestions with inbuilt project its very hard to autocomplete in atoms if you not open the particular CSS file or i can say PHP code.

So i decided to go back on netbeans for PHP web development and i prefer to use CodeIgniter because its simple and good documented framework what i love to do code with it, its my personal choice if i want to use Framework instead of CMS.

In this blogpost i am going to cover how i customise Netbeans to work with CodeIgniter and with CI Commands Integrated and autocomplete functions.

So let start....

First of all you need to activate PHP module in netbeans. if you not installed Complete package of netbeans IDE bundle to just goto Tools>Plugins

in Available plugin modules

Search and Install PHP  module also activate from Installed Panel.

Now to work with Code Igniter we need to add Framework which can available on following repository nb-ci-plugin ( Just download the suitable Plugin from for me its 8.2 so i downloaded

after downloading nbm file from GitHub repo just import it into netbeans by going to Preference > Import and selecting that nbm file.

The work is not finished we can import skeleton of CodeIgnitor Base Framework so whenever we create new project we can just choose the CI framework and it will create rest for us to perform this option you need to download the CI framework zip file from ( click on download option.

after download goto preference > PHP > Frameworks & tools > CodeIgniter > Base Files Click on add zip select the zip file which you downloaded from CodeIgnitor site and give names in my case i use CI 2.x in some of my old project and future extendibility training to use CI 4 Alpha release test so i downloaded and load 3 zip as following image.

Kindly Note its better to start with stable version project as alpha and other version is not stable in production environments.

Now whenever you want to work with new project using CodeIgniter framework Just click on File > new Project

 Click on Next > Set name of Project and Location of Files

Click next Select Running configurations for example we can use Installed PHP only environment with netbeans or as my previous Youtube video tutorial installed XAMPP or WAMP services Click on Next Select PHP Frameworks which you like to integrate with your project as following stable Release Selected.

Click Finish.
The following will help us to create CodeIngniter Framework Integration with netbeans.

After Complete setup you can use your CI with new Project also for your Old Projects you can Right Click on project goto properties .

the following options will help us to perform autocomplete CI task but it would be cool if we can use keybinding for ci commands which i am going to cover in my next blogpost so stay tuned.....

Ping your blog