Tutorials around the web
-
Recent Posts
Recent Comments
Tags
My moretweet userscript for twitter
I don't go visit twitter.com that often, so whenever I visit twitter, I'd like to see more entries displayed on the home page. So i thought I needed something to trigger the click event on the "More" link automatically
And the natural choice is GreaseMonkey . (There's a nice tutorial about...
Read More Apache virtual server in Ubuntu
I re-install my Ubuntu box every now and then, and every time, i often forgot how to config my virtual servers in apache. There's many tutorials out there but they seem overly complicated when using sites-available folders. So here's the steps:
1. cd /etc/apache2 and copy mods-available/rewrite.load to mods-enabled
2. Note that...
Read More My first javascript game
This is the game I developed a long time a go while learning about jquery ui drag & drop
http://clu3.com/jquery/game/index.php
The rule is simple: Try to upload an image (not too large, I'm using shared server. size <500K is the best ), and the program will cut the image into square pieces...
Read More My top favorite eclipse – Zend Studio shortcut keys
Shortcuts I can't live without
Move between files
Ctrl + E: List of opened files
Ctrl + F6: Same as Ctrl + E, but faster for switching between 2 files continously
Alt + Left Arrow: Previous edited file. Similar for Alt + Right Arrow
Ctrl + Pageup|Pagedown : Tab on the left|right of the current...
Read More How to turn ZendFramework’s ActionStack’ evil to goodness?
The short answer is : Use a mini request, or what ever you might like to call it, maybe internal request or light-weight request. You will get it once you've read this.
OK, so ActionStack is evil. I agree with Ryan's post on "Why ZF ActionStack is evil" but not with...
Read More floating & clearing? What’z up CSS?
Ok, i never liked CSS before, probably mainly because of the differences between different browsers but now that I have more time to learn about it, I'm getting excited.And this has always been a *myth*: CSS boxes floating around, overlapping and boxes broken, overflown.... Totally outta control.
But not anymore, I...
Read More Jquery coding’s best practices
- Use the 'var' keyword where appropriate
- Cache queries by storing the result in a variable
- Use event delegation, especially when you have lots of elements
- Create plugins if possible, and follow the following Mike Alsup's suggestions:
1. Claim only a single name in the jQuery namespace
2. Accept an options argument...
Read More url shortener? Try my new kid on the block
OK, enough of tinyurl. It's tiny? Look ma, I'll break my fingers typing those 11 characters (tinyurl.com) on my ifone
I needed something shorter and here you go: z.pe. Find out more ... ...
Read More Installing new fonts in Ubuntu
For pre-8.04 versions of Ubuntu, open the dir font:/// with nautilus
$ nautilus font://
and copy the .ttf files there.
For Ubuntu 8.04 or later, you can just copy the .ttf files to your $HOME/.fonts/ folder (If the folder doesn't exist, just create it).
If you install the font file from somewhere trusted on...
Read More