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

26Jan/100

ImageShack Linux Uploader

Has been using imageshack for years, my only complain is the lack of desktop uploader for linux. However, few days ago, when I open up imageshack to upload some images, I stumble upon section called "More Ways to Upload". Curious, I click it and I saw list of 3rd party apps. There's an uploader for linux too!. A great feature that I find useful is, the ability to upload images into our account. So that I can delete some stuff that is no longer required. Oh, did I mention that it came in .deb? YES .DEB!

Filed under: Reviews No Comments
25Jan/100

Test Your Site on Multiple Browser Using Adobe BrowserLab

Having Ubuntu as development environment is great! But, I things get complicated when I came to testing your site on IE. Yes, we can test it using IEs4lin project. But, my experience told me that the result is not quite the same as using IE on pure windows installation.

Yesterday, I got message from colleague at California. He told me about Adobe BrowserLab. A cool service from Adobe to test how our site looks on several web browser. It display the site like Pixel Perfect plugin for FireBug. Give it a try and you'll be amazed!

Free Image Hosting at www.ImageShack.us

Filed under: Reviews No Comments
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
21Jan/101

Web Scrapping Made Easy, With YQL

Usually, when someone asked me question: "how do you scrap data from certain website?". My answer would be using some REGEXs. However, Yahoo now has something interesting on it's developer site. Instead of doing REGEX, we can just QUERY our target page with YQL and extract the data as XML or JSON.

Filed under: Tutorial Continue reading
20Jan/102

CR-Post2PingFM 0.8 Released

Just minor enhancement on admin page for Ping post template. I added 10 messages template form for you to fill it out. The plugin will randomly select non empty template for ping.fm updating purpose.

20Jan/100

Display Drupal Taxonomy Like Craiglist Does

So you have a classified site build on top of drupal. Someday, you encounter this craiglist page and though that you would like to mimic that page. Don't worry, I've been implementing in on my recent project and I would like to share it here.

Filed under: Tutorial Continue reading
18Jan/101

Bermain Tebak-Tebakan di Plurk

Kali ini pakai bahasa Indonesia saja ya. Posting ini hanya untuk pengumuman kalau sekarang sedang testing permainan tebak-tebakan di platform plurk. Model permainannya sama seperti bot yang dulu banyak beredar di IRC (entah, sekarang masih ada atau tidak, sudah lama tidak berkunjung ke IRC).

Kalau kalian ingin coba, silahkan melihat2 di website resminya. Oh iya, karena sifatnya yang masih beta, mohon maaf kalau ada beberapa gangguan (terutama typo di soal ;)) ). Terima kasih juga untuk @exblopz dan @nengbiker untuk sumbangan soalnya.

Filed under: Out Of Topic 1 Comment
13Jan/101

How To Move Apache’s Htdocs to Home Directory

For me, as developer, working with apache on home directory is the preferred way than working on default installation directory. To move your htdocs to home dir, you can follow this simple step.

  1. Create directory on your home dir, for the sake of this tutorial, let's call it wwwroot.
  2. Change htdocs location at /etc/apache2/sites-enabled/000-default to your ~/wwwroot by editing every occurence of /var/www into /home/{username}/wwwroot. Replace {username} with your own username.
  3. Change apache's running user to your username by editing APACHE_RUN_USER value to your username at /etc/apache2/envvars
  4. restart your apache server by executing sudo /etc/init.d/apache2 restart.

  5. You should now have successfully moved your htdocs into your home directory.

    Filed under: Tutorial 1 Comment
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
5Jan/101

New Post on New Year!

No, nothing special in this post!:))

Filed under: Site Updates 1 Comment