vicheatsheet

Basic vi Commands

General Startup To use vi: vi filename To exit vi and save changes: ZZ or :wq or : x To exit vi without saving changes: :q! To enter vi command mode: [esc] Counts A number preceding any vi command tells vi to repeat that command that many times. Cursor Movement …

php

Building PHP extensions with C++ the easy way

Here is an easy way to build a PHP extension with C++ and default PHP packages on a Ubuntu system. I use SWIG to wrap C++ code to the Zend API. When using loops and recursion intensively, porting a few functions to C++ can give you some extra power. First, …

terminator2

Ubuntu Terminator Useful Shortcuts

  Ctrl+Shift+X – Toggle between showing all terminals and only showing the current one. Ctrl+Shift+O – Split terminals Horizontally. Ctrl+Shift+E – Split terminals Vertically. Ctrl+Shift+Right – Move parent dragbar Right. Ctrl+Shift+Left – Move parent dragbar Left. Ctrl+Shift+Up – Move parent dragbar Up. Ctrl+Shift+Down – Move parent dragbar Down. Ctrl+Shift+W – Close …

sql2008

Understanding NULLIF and ISNULL

Introduction One of my friends wants to know about two functions NULLIF and ISNULL. In this article I am trying to discuss about that. Understanding NULLIF First we look at the syntax of the NULLIF The syntax is: NULLIF(Expression, Expression) Return type: Return type is the same type of the …

linuxlogo3

The Search Path

It may happen that you know there is a program by a particular name on the system, but when you try to start it from the command line, you are told that the file is not found. Because you just ran it yesterday, you assume it has gotten removed or you …

CPlusPlus

A Brief History of C++

Nowadays computers are able to perform many different tasks, from simple mathematical operations to sophisticated animated simulations. But the computer does not create these tasks by itself; these are performed following a series of predefined instructions called computer languages. A computer language is a set of instructions and a series …

linux_file_permissions

Linux ls command

This command of Linux lists the contents of a directory. By default current directory. -a Shows you all files, even files that …

class

Static Classes

A static class is basically the same as a non-static class, but there is one difference: a static class cannot be instantiated. …

Data_Mining_Cartoon

What is Data Mining?

Overview Generally, data mining (sometimes called data or knowledge discovery) is the process of analyzing data from different perspectives and summarizing it …

PMPi

PMIism

General PMI-isms:  The project manager puts the best interests of the project first, not his or her own interests.  The …