All posts by Web Monkey

BitLy ( PHP Class – Shorten and Expand URLs (and Hashes) with BitLy API

BitLy ( is a service which allows users to shorten, expand, share and track URLs (links). can be accessed through website and a robust and open API. Example:Shorten url ->

Using Online Social Networking To Reinforce Offline Networking

I’ve been attending quite a few different networking events and groups lately, to expand both my business and social circles and so I’ve been thinking about how social networking happens on and offline. For me,

Known Integration Issues inside of 11.25

As most of you probably know, we released 11.25 to our RELEASE branch this week.  This is a major change to cPanel/WHM which presents some issues with integration.  I have been trying to track as

10 Tips For Integrating Social Media Into Your Marketing Mix

Small Business CEO has published my guest post: 10 Tips For Integrating Social Media Into Your Marketing MixThere’s a lot to be said on this topic but these are some initial thoughts and considerations if

Delete files securely on Linux – Journaled file systems

Few days ago I write about shred, which work fine for old systems, like EXT2, but not so nice with journaled file systems. Modern file systems need something more robust, like dd and srm (a


Twitter hacked? Not really, only Twitter DNS records compromised

I before post ‘Twitter Hacked by Iranian Cyber Army’, but actually just Twitter DNS records was hacked. I think even server headers and tracepath to servers simply prove this, because they are completely different

Twitter Hacked by Iranian Cyber Army

Twitter site is hacked by Iranian Cyber Army. Here is some screenshots and full info about page. Screenshots Server info and full html content lynx -mime_header HTTP/1.1 200 OK Date: Fri, 18 Dec 2009

Delete files permanently with shred command in Linux – Remove absolutely

Sometimes need to delete files whose contents should disappear absolutely, completely and safely. Linux command rm just remove file and it is still possible to dig out from the disk. Fortunately for Linux can be

Format bytes with PHP – B, KB, MB, GB, TB, PB, EB, ZB, YB converter

Simple PHP function that formats the bytes to the desired form. Possible unit options are: Byte (B) Kilobyte (KB) Megabyte (MB) Gigabyte (GB) Terabyte (TB) Petabyte (PB) Exabyte (EB) Zettabyte (ZB) Yottabyte (YB) Function takes

PostgreSQL: Partitioned Table vs Non Partitioned Table (Part 3)

This article compares the speed and performance of queries between partitioned and non partitioned PostgreSQL tables. However, it is important to remember that the PostgreSQL tables partitioning has also another benefits, than the better performance

The Girl Effect And Viral Video Marketing

The Girl Effect is a viral video demonstrating the premise  that investing in girls in developing countries has the potential to change the world. There are lessons to be learned from how they executed the

Mashable’s 8 Tips for Managing a LinkedIn Group

This is a great read from Mashable and I think the general principles apply not only to LinkedIn, but to running a group or community on any platform. If you thought just engaging in social

PHP: Loop through dates (from date to date) with strtotime() function

This is very easy way loop through dates (from date to date) with PHP strtotime() function. This example only echo dates, but of course this model can be used more complicated situations. <?php // Set

Flickr Marketing Tips From Open Forum

While the last thing this country, businesses or individuals need is to buy more stuff with fake money – yes, I mean credit (hee hee) – American Express, in a smart attempt to get people

PHP Script to Generate PostgreSQL Table Partitioning (Part 2)

As Part 1 (Howto create PostgreSQL table partitioning) shows, making of PostgreSQL partitioning needs a lot of SQL commands. So this Part 2 explains how SQL commands for PostgreSQL partitioning can be made with a

How to trace the cPanel API

At this point, cPanel’s APIs are not 100% documented.  We are working on it and hope to have complete API docs up in a few months.  I’ve written a CustomEventHandler that will print every API call

Firefox Turns Five

Yesterday marked five years since the release of version 1.0 of the Mozilla Firefox web browser. Five years down the road, its success has surely played an important role in the ongoing development of web

What Is An Online Marketing Strategy?

What is an online marketing strategy? Sometimes people’s eyes just glaze over when I talk about online marketing strategy. Perhaps they’re thinking ‘I have a website and I’m on Twitter, what else is there?’ Or

Create PostgreSQL Table Partitioning (Part 1)

PostgreSQL supports partitioning via table inheritance. So the partitioning is made in such a way that every child table inherits single parent table. Parent table is empty and it exists just to describe the whole

Partitioning PostgreSQL Tables – Handle Millions of Rows Efficiently

PostgreSQL table partitioning means splitting one large database table into smaller logical pieces. PostgreSQL table partitioning will be worthwhile only when a table would be very large. Here are a few benefits of what can