Recent blog posts
rsync is probably the most common solution for backup on Linux. rsnapshot offers advanced functionality, using rsync and perl.
January 24th, 2016 15,386
Upgrading to a minor version is done through the upgrade process of Debian. For major versions, the process is much more complex.
September 7th, 2015 18,778
Criteria for selecting the right SSL Certificate. Detailed instructions on how to setup the certificate in a Debian server. Validate your certificate.
A guide to upgrade a server machine from Debian 7 Wheezy to 8 Jessie using apt-get. Remember to create a full backup before.
Dedicated server setup, using Debian 8 Jessie step by step. It is a Hetzner EX40 server. Apache, php, MySQL, memcached. Basic monitoring and security tools.
Simple steps to enable and configure mod-security Apache module on Debian Wheezy, using Core Rule Set (CRS)
Debian 7 Wheezy with Xfce4 is a lightweight desktop environment, fast and user friendly. Support for sound, Flash, Nvidia and networking "out of the box".
Detailed guide to create OpenVPN server on Debian. Manage VPN users. Connect from any operating system.
Avoid reverse DNS errors when sending mail from a machine without public IP or domain available. Adjust exim4 to use SMARTHOST.
How to Install PostgreSQL 9.1 or the latest PostgreSQL version 9.3 on Debian 7 Wheezy. Basic settings after installation.
Recent tech tips
Use needrestart to determine if some services need restart or system reboot is required after Debian or Ubuntu update
When you prompt user to input text (e.g. username, lastname etc), you may use Regular expressions to sanitize User Input
If you want to start a youtube playlist from random video, just add: &index=random_number to the src attribute of the embed code.
Php has functions to easily get basename and file extension. In some cases using of regular expression is necessary.
December 9th, 2013 15,823
A good solution is to use immutable disks. When a virtual disk marked as immutable, it becomes read-only and differences will be stored in differencing disks
December 9th, 2013 24,000
It is useful to prevent direct access of AJAX calls (from browser address bar). A solution could be the following simple function check_is_ajax()
November 4th, 2013 34,510
Date manipulation is a common and useful development task. It was never easy with PHP, until PHP5 and DateTime class. Take a look at date_convert() function
November 4th, 2013 13,124
Sometimes you want to check if a string represents a valid timezone. Using PHP versions greater than 5.2, timezone_identifiers_list() would be a solution.
October 2nd, 2013 138,189
Browser (and browser version) detection is an "all time classic" development requirement. jQuery.browser WAS an excellent solution, but it was removed