PHP stdClass to Array and Array to stdClass – stdClass Object

Updated by on Jun 17, 2011 in Featured, PHP, Programming | 10 comments

I think every PHP coders have come accross Arrays and stdClass Objects (belongs to PHP Predefined Classes). Sometimes it’s very...

Read More

nginx, PHP 5.3 and FastCGI on CentOS 5.5, Fedora 13, Red Hat RHEL 5.5/6

Updated by on Nov 16, 2010 in CentOS, Featured, Fedora, Linux, Programming, Red Hat (RHEL), Server Guides, SQL | 9 comments

This is guide howto install nginx, PHP 5.3 and FastCGI webserver with MySQL and/or PostgreSQL and Memcache support on Fedora 12 and Fedora...

Read More

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

Updated by on Oct 15, 2010 in PHP, Programming | 3 comments

BitLy (bit.ly) is a service which allows users to shorten, expand, share and track URLs (links). bit.ly can be accessed through bit.ly...

Read More

Delete files securely on Linux – Journaled file systems

Updated by on Oct 16, 2010 in Command Line Guides, Linux | 0 comments

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...

Read More

Twitter hacked? Not really, only Twitter DNS records compromised

Updated by on Jan 22, 2010 in Security | 1 comment

I before post ‘Twitter Hacked by Iranian Cyber Army’, but actually just Twitter DNS records was hacked. I think even...

Read More

Twitter Hacked by Iranian Cyber Army

Updated by on Dec 18, 2009 in Uncategorized | 1 comment

Twitter site is hacked by Iranian Cyber Army. Here is some screenshots and full info about page. Screenshots Server info and full html...

Read More

Delete files permanently with shred command in Linux – Remove absolutely

Updated by on Dec 18, 2009 in Uncategorized | 0 comments

Sometimes need to delete files whose contents should disappear absolutely, completely and safely. Linux command rm just remove file and it...

Read More

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

Updated by on Oct 15, 2010 in Featured, PHP, Programming, Uncategorized | 1 comment

Simple PHP function that formats the bytes to the desired form. Possible unit options are: Byte (B) Kilobyte (KB) Megabyte (MB) Gigabyte...

Read More

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

Updated by on Sep 7, 2010 in SQL | 9 comments

This article compares the speed and performance of queries between partitioned and non partitioned PostgreSQL tables. However, it is...

Read More

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

Updated by on Oct 15, 2010 in PHP, Programming | 6 comments

This is very easy way loop through dates (from date to date) with PHP strtotime() function. This example only echo dates, but of course...

Read More

PHP Script to Generate PostgreSQL Table Partitioning (Part 2)

Updated by on Sep 7, 2010 in Programming, SQL | 1 comment

As Part 1 (Howto create PostgreSQL table partitioning) shows, making of PostgreSQL partitioning needs a lot of SQL commands. So this Part 2...

Read More
Bear