Convert PHP object to an array recursively

In PHP, you can easily convert an object to an array by typecasting it. $array = (array) $object; But if you have multi-dimensional / nested objects, this will only converts the top level of the object. So instead of looping through the object and typecasting it, just...
Offline Mode on Spotify Linux

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 mode by pressing CTRL+SHIFT+O. Make sure you already download...

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 policies, which is Hacking / Cracking content. I can’t...

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 handling of colors. So how to fix it? simply.. Change...
Page 1 of 1112345...10...Last »