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!
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!
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"]' ); ?>
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.
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.
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.
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.
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.
- Create directory on your home dir, for the sake of this tutorial, let's call it
wwwroot. - Change htdocs location at
/etc/apache2/sites-enabled/000-defaultto your~/wwwrootby editing every occurence of/var/wwwinto/home/{username}/wwwroot. Replace {username} with your own username. - Change apache's running user to your username by editing
APACHE_RUN_USERvalue to your username at/etc/apache2/envvars - restart your apache server by executing
sudo /etc/init.d/apache2 restart.
You should now have successfully moved your htdocs into your home directory.
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:
- rename xkill and move it somewhere else:
sudo mv /usr/bin/xkill /etc/init.d/llikx_hide - 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";
There you go. Everytime someone trying to execure xkill, they will see popup window.







