A guide to publishing a successful ebook

Jan
30

I have been writing technical articles since 2004, but never really thought about monetizing my work until two years ago. I own more than a dozen websites, and it really becomes hard to maintain all of them. In the 4th Quarter of 2010, I have started selling advertisements on Web Hosting Resources, and Geolocation websites and started generating high three-figure or low four-figure passive income from them on a monthly basis.

CSS Overview

Jan
23

Rational for using CSS

Cascade Style Sheet (CSS) is designed to remove style from the HTML documents, and store them separately for portability and reusability.

A CSS rule contains at least one selector and at least one declaration within a declaration block.

  • Each selector is separated by a comma (,), and a space used to cascade specificity.
  • A declaration is made up by name/value pair, and each declaration is separated by a semicolon (;)
  • A declaration block is defined by curly braces ({}).

There are three types of style sheets.

How to mitigate from DDoS with mod_security and mod_evasive on Centos 6?

Sep
11

For smaller scale DDoS attacks, Web Application Firewall (WAF) like Mod Security and Mod Evasive will mitigate DDoS attacks. For larger scale DDoS attacks, you may need to turn to professional DDoS mitigation service provider.

1. Install Mod Security Apache Module.

Getting started with nginx on Centos 6

Sep
11

Before getting started with nginx, it is recommended that you update PHP to the latest version.

Create a /etc/yum.repos.d/nginx.repo with the following content:

[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=1

We are going to use php-fpm package to handle PHP fast-cgi.

How to install RHEL EPEL Repository on Centos

Sep
04

Keeping your Linux server up-to-date with the latest packages is no small task. One of the most popular repository for RHEL, Centos and Scientific Linux among others is EPEL, Extra Packages for Enterprise Linux. EPEL is a Fedora Special Interest Group that creates, maintains, and manages a high quality set of additional packages for Enterprise Linux.

If you wish to upgrade your PHP, MySQL and HTTP to the latest available binary packages, you may opt to install EPEL and remi repositories on your linux system.

On Centos 6.x:

How to mitigate from Apache Killer?

Sep
03

Apache is the most popular web server being used today. Apache Killer exploit which was released in August 2011, exploits a vulnerability in the Apache software by sending a crafted "Range" HTTP header. Apache Killer attack abuses the HTTP protocol by requesting URL content to be returned in a huge number of small chunks, which leads to hundreds of large memory fetches causing a server to run out of memory and crash. This vulnerability identified as CVE-2011-3192 was fixed in httpd-2.2.21.

ZF2 Example: Using headScript, inlineScript, headTitle and headMeta Helpers in the view/controller

Aug
27

ZF2 provides HeadScript and InlineScript Helpers to inject <script> elements in the template typically located inside the <head> tag, or at the very bottom of the closing </body> tag. To inject Title, Meta Keywords, Meta Description, headScript, and inlineScript in the view:

[SOLVED] Google has disabled use of the Maps API for this application

Aug
20

With Google API v2 being deprecated, the app that was working perfectly before started to spit errors on the user's screen like the one showing below:

Getting started with Doctrine 2 in ZF2

Aug
03

Using Doctrine as an ORM to persist your data significantly lowers your overhead in managing your database. However, if you're just getting started with Doctrine, you'll have to invest in moderate time to overcome learning curve. Here is some of not so obvious tricks you'll have to learn as a beginner to utilize Doctring.

Q. How do you install ZF2 doctrine modules?

Getting started with composer (composer.phar)

Jul
31

I am kicking off a new PHP project with the Zend Framework 2 (ZF2), and chose to use Doctrine as the persistence layer with ORM capabilities. Knowing that I need two Zend modules for Doctrine support, I've cloned the two modules (DoctrineModule and DoctrineORMModule) from GitHub to enable doctrine support in my ZF2 project. Oops, just installing those two Zend modules from GitHub do not make doctrine work! What am I doing wrong? Do I need a core Doctrine library from doctrine-project.org installed in addition to those two modules in order to make this work in ZF2?

Pages

Subscribe to Web Traffic Exchange RSS