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 all of the songs on your playlist.


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 understand, i have NO hacking / cracking content on this site. I only posted something related to Linux or Programming, and sometimes any jokes or simple articles, but NOT hacking or cracking.
I already run this website since 2006. Have no posting since 2010, and my last post is last month about Olympic 2012 Youtube channel.
Then suddenly on August 15th, Google sent me email that i have hacking / cracking content, When my unpaid earnings reached $93.58!

How’s that possible?
If i have a hacking content, why they email me now? why not alert me on 2010 after my last post? or months before when i posted many articles. Or maybe posting their own Youtube channel is prohibited?? and they called it a hacking??

I already sent an appeal request regarding this issue, and asked them to tell me which of my post contain any hacking / cracking content. But they replied that my site is still in violation, without describing any further detail which one!

So, to resolve this i deleted many of my posts which has the lowest page view, and leave the highest rated posts.

If Google still think that i still have a violation content, well.. i don’t have any clue, maybe i’ll delete my Adsense account, and never use it again!


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 memory id…” or “Shared memory invalid…”, something like that. Especially when we’re using a webcam.
After googling, i found some solutions for this. First, increase the shared memory, and second, edit file.

1. Increase shared memory maximum

Open the file “/etc/sysctl.conf”, and paste this 2 line at the bottom of the file.

# Increase the maximum shared memory
kernel.shmmax = 167772160

save, and restart your machine.
If still no luck, continue to the next step:

2. Edit

We need to edit zoneminder source to point the video driver.
Open file ” /usr/bin/” (the location on some machine, might be different)
and add this code, right before the “my @daemons =….” (about line 64).

$ENV{LD_PRELOAD} = ‘/usr/lib/libv4l/’;


*UPDATE!* added by ldp

Also work:
$ENV{LD_PRELOAD} = ‘/usr/lib/libv4l/’;

check your /usr/lib/libv4l or /usr/lib64/libv4l directory for other files to preload

save, and restart your zoneminder.

it works like charm…