Quantcast
Channel: Miaz Akemapa | Sense of Life
Browsing latest articles
Browse All 31 View Live

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 Article


Reset 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 Article


fixing 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 Article

Restore 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 Article

Create 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 Article


PHP-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 Article

Age 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 Article

Create 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 Article


Mysql 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 Article


Google 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 Article

PHP-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 Article

PHP-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 Article

Offline 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 Article


WordPress 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 Article

Convert PHP object to an array recursively

PHP: How to convert multi-dimensional / nested objects into an associative array recursively

View Article

Browsing latest articles
Browse All 31 View Live