Freelancer's Playground! Learn Programming, The Freelancer's Way

20Jul/100

Quickly Switch Window Manager With Compiz Fusion Icon

Having compiz (ubuntu's rich desktop experience) activated does increase my desktop experiences as well as the usability. However, having it activated complicate stuff all the time, when it come to gaming.

28Jun/102

Fixing WordPress’s Maintenance Mode Caused By Broken Update

WordPress upgrade tools is way AWESOME! It help us upgrade core system, plugins, and themes easily. However, as with many other human products, failed is one of it's features.

25Jun/100

Search Stackoverflow Right From Your Google Chrome

I just recently realized that you can search any content on stackoverflow, right from your chrome's OmniBar. How you do that? We'll you can follow this simple steps:

5Feb/100

Reset File Association in Linux From Nautilus

If you have ever experienced, for example, installing an application that turned out change the way how a file is opened. For example, to open a txt file in gnome, gedit is used. But, at a time, you install, geany or mousepad. When you want to open the txt file again, instead of calling gedit, system will call mousepad to open it.

24Jan/105

Loading Contact-Form-7 Plugin Outside Post/Page/The_Loop

Hi, just want to share little snippet. I was developing wordpress site for my client and I want to use Contact-Form-7 (CF7) to speed-up my development time. I need to add form (custom form) outside the loop / post / page content. From CF7's documentation, there's no single text explaining how to do it.

So, I guess I have to get my hand dirty by crawling the code. Here's how I do that.
From anywhere on wordpress theme files, put this code to display your CF7 form:

<?php echo do_shortcode ( '[contact-form 2 "Banquet Inquires"]' ); ?>

Filed under: Tips N Trick 5 Comments
11Jan/100

How To Prevent Someone From Executing xkill

From wikipedia entry:

Xkill is a utility program distributed with the X Window System that instructs the X server to forcefully terminate its connection to a client, thus "killing" the client.

Some one at id-ubuntu mailing list asked how to prevent someone from executing xkill. After reading this, my evil mind popped a solution >:).

My strategy is rather simple, you rename that xkill and move it somewhere else and put a script in place of xkill. Here's the run down:

  1. rename xkill and move it somewhere else: sudo mv /usr/bin/xkill /etc/init.d/llikx_hide
  2. put a script in place of xkill:
    sudo touch /usr/bin/xkill
    sudo chmod 555 /usr/bin/xkill
    sudo nano /usr/bin/xkill
    

    Put this script:

    #!/bin/bash
    
    logger "I'm trying to execute xkill";//logger will automatically save user who execute logger
    zenity --info --text "What are you doing?\nxkill execution is locked and logged\!" --title "Operation failed";
    
  3. There you go. Everytime someone trying to execure xkill, they will see popup window.

Filed under: Tips N Trick No Comments
10Nov/090

Multiple Boot Partition Tips

Yesterday, I had a chance to install ubuntu 9.10 'karmic koala' on my laptop. Having read several online reviews made me rethink my strategy. Previously, whenever there's new ubuntu release, I will always do fresh install. Now, several minor but annoying bug appeared in reviews where I had similar hardware :(. Kind of annoying, but, I'll still try it.

9Nov/090

Using Dropbox For Easy File Sharing

I share docs with my colleague every now and then. Previously, I would have sent it as email attachment or upload it somewhere. But, from the moment I use dropbox, sharing documents has never been this easy!

3Nov/095

Wrapping get_post_meta() with default value

As wordpress developer, we will almost always use get_post_meta(). There's a catch in using it though, as there will be situation where we want to get a meta value on a non initialized meta. Something thing we expected to be present but not created yet.

28Oct/090

Nautilus Hidden Feature: Directory Note

Directory notes, is a little hidden feature of nautilus. Using it, you will be able to write down a note about anything you want to write in particular directory. To access it, all you have to do is: