≡ Menu

Typically you’ll see .php as the extension for PHP files that are served by a webserver.

Sometimes you might also have a php file that has an extension other than .php, and in those cases, the webserver might not be able to serve that file.

For discussion purpose, let us assume that you have written PHP server side coding in a file with “.myext” extension. For some reason, you want to keep the file extension this way for testing purpose, without having to rename it to .php
[continue reading…]

The set {1, 2, 3, …} is known as the set of natural numbers, they are usually signed as N numbers.

This tutorial is about prime numbers. So what are prime numbers?

Let us take number 15, which could be represented as shown below. This is not a prime number.
15 = 1 * 3 * 5
[continue reading…]

How to Create Filesystem Snapshots using Snapper Command on Linux

Snapper is a Linux command-line tool to create and manage snapshots of your filesystems.

Using snapper command, you can create read-only snapshots. You can use these snapshots to restore specific files or all files during any disaster situation.

You can also use it to compare multiple snapshots and revert back to a specific old snapshots.
[continue reading…]

Few GDB Commands – Debug Core, Disassemble, Load Shared Library

GDB is an essential tool for programmers to debug their code.

This article explains how you can use gdb to debug a program with the core file, how to display assembly language instructions of your program, and how to load shared library programs for debugging.
[continue reading…]

AppArmor is a Mandatory Access Control or MAC system.

It uses Linux Security Module to restrict programs. AppArmor sets up a collection of default application profiles to protect Linux services.

You can also protect any other applications running on your system by creating profile files yourself.

In Ubuntu, AppArmor is installed and enabled by default. The apparmor profiles get loaded when system starts.
[continue reading…]

When you migrate from MS SQL to MySQL, apart from migrating the data, you should also migrate the application code that resides in the database.

Earlier we discussed how to migrate MS SQL to MySQL database using the WorkSQL Workbench tool.

As part of the migration, it will only convert tables and copy the data, but it will not convert triggers, views and stored procedures. You have to manually convert these over to MySQL database.
[continue reading…]

Fibonacci was an Italian mathematician who introduced this subject to European mathematics, but the similar array was mentioned even before his time.

There are two definitions of Fibonacci numbers with slight variation. Both are pretty similar but little different at the same time.
[continue reading…]

Subversion is an open source version control system, it manages files and directories over time. It is like an ordinary file server, which records each and every change made to it.

The central repository has all the data in predefined format i.e. a tree structure , this allows the user to see all the changes made to it any time. And also user can recover any previous version of that project code.

This tutorials explains everything you need to know about SVN merge. This explains the basics of merging, how to merge two branches, how to merge with trunk, and reintegrating a branch using examples.
[continue reading…]