Deleting Some Posts
A few days ago Google sent me email, notifying me that they have disabled my Google Adsense ad serving on this website. They said my website is not currently in compliance with their AdSense program...
View ArticleReset Mysql Root Password
Terrible, just setup a new server, then i forgot root password for mysql database. So i need to reset the root password. This is the way i do: 1. Login to our server machine as root (system...
View Articlefixing monitor problem on zoneminder
After installing Zoneminder, some people (including me) reported that they had a problem with monitor. A black screen, or even no picture / video at all. From logs, it’s usually said: “Can’t get shared...
View ArticleRestore Ubuntu Boot Loader
To repair your Ubuntu GRUB, you need Ubuntu LiveCD, boot from this CD, and open a terminal. Be a root, by typing “sudo su” and enter your password. Find the partition which your Ubuntu system is...
View ArticleCreate Permanent Static Route with Two Lan Card
I want to create routing for my two Lan Card. First Lan Card (eth0) for Internet access, and second Lan Card (eth1) for my Intranet. So when i access internet, it will route to my eth0 by default....
View ArticlePHP-GD: Create Image from Text
Some people want to hide their text into image for any reason. As example, to avoid spambot steal their email address, or to generate dynamic images content. Its simply done with PHP and GD Library....
View ArticleAge of Empire II color issue on Windows 7
There’s a color issue with Age of Empires 2 on Windows 7. You will get a corrupted color in game. Its not a driver issue or some directx compatibility. I think its just because of the Aero theme’s poor...
View ArticleCreate ISO Images from CD/DVD and Folder Files
With Ubuntu, you can create ISO disk Images directly from CD/DVD and folder files. Then create MD5 Checksum files. Assumed that the CD/DVD device is located at /dev/cdrom/ Turn a CD/DVD into an .iso $...
View ArticleMysql String Functions
Name Description ASCII() Return numeric value of left-most character BIN() Return a string representation of the argument BIT_LENGTH() Return length of argument in bits CHAR_LENGTH() Return number of...
View ArticleGoogle has change the Google Search Favicon
Baru sadar, waktu lagi nyari sesuatu di Google, ada yang beda pada tampilan halaman Google. Favicon Google berubah. favicon itu yang ada disebelah alamat URL pada address bar, dan juga biasanya ada di...
View ArticlePHP-GD: Resize Transparent Image PNG & GIF
By default, you will get black background if you resize a transparent image. To fix it, you need set alpha channel imagecolorallocatealpha to 127. With imagecolorallocatealpha, it will allocate a color...
View ArticlePHP-MySql: Select previous row and next row from current ID
During the dark age, the simplest way to get previous row from current ID was using this query: SELECT field1 FROM tablename WHERE id = ($currentId – 1) and to get next row: SELECT field1 FROM...
View ArticleOffline Mode on Spotify Linux
Unlike other desktop version, Spotify Linux version doesn’t have Menu to toggle to offline mode (at least until this post written). But if you use 1.0.47 or later, you should be able to toggle offline...
View ArticleWordPress Error: The plugin generated 1 characters of unexpected output...
This problem gave me a headache for a couple hours, just to found out that there was a white space before <?php. Next time you have this error too, check if there’s a white space before or after the...
View ArticleConvert PHP object to an array recursively
PHP: How to convert multi-dimensional / nested objects into an associative array recursively
View Article