Jeditable – Edit In Place Plugin For jQuery

I want to recommend this awesome plugin to you called Jeditable. Imagine you have a text field you want to let your users make changes to and then save it. Won’t you need a text field and a save button? How nice if the user can click on some text and edit it from there. Um… it’s hard to describe what that looks like, you will have to try out the demo yourself! ...

February 8, 2012 · 1 min · birdchan

To disable form fields in jquery

I don’t think the current jquery syntax to enable/disable form elements is intuitive. But here it is: $("#my_element").attr("disabled", "disabled"); // to disable $("#my_element").removeAttr("disabled"); // to enable

February 4, 2012 · 1 min · birdchan

Steve Jobs - 2007 iPhone Presentation

[youtube &w=640&h=360] I don’t know what brought me to this video, but I am just amazed that things which I do on my iphone everyday were a major breakthrough in 2007. In just 5 years of time, iphone has become part of our lives. It’s very hard to imagine if I don’t have google map on my phone these days, would I print out the driving directions instead? Um… ...

February 3, 2012 · 1 min · birdchan

Tooltip

If you are looking for nice tooltip libraries, I recommend trying qTip2. It’s a jquery plugin. And it’s got most of the pop-up tooltip features you can imagine. I personally like this feature, that you can assign different behaviors (by different actions) to the same element. See below: // Create our first tooltip $('.selector').qtip({ content: 'Mouse entered', show: { event: 'mouseenter', solo: true // Only show one tooltip at a time } }) // Remove the previous tooltips data .removeData('qtip') // Create our second tooltip .qtip({ content: 'Click', show: { event: 'click', solo: true // Only show one tooltip at a time } }); With the above code, you can have a specified mouseover preview tooltip, and a detailed view upon a mouse click. Very handy! ...

February 1, 2012 · 1 min · birdchan

Patriot Black PBO Core Box Office

Recently I went on newegg and bought this “Patriot Black PBO Core Box Office All-in-one 1080p Full HD Media Player with HDMI PCMPBO25”. (such a long name…) Simply put, a media box that streams to your TV with hdmi. Just in case I didn’t do justice, you got to take a look at its supported video format list: - MPEG-1: MPG/MPEG/DAT support up to 1080p - MPEG-2: MPG/MPEG/VOB/ISO/IFO/TS/TP/M2TS up to 1080p - MPEG-4: MP4/AVI/MOV support up to 1080p - DivX 3/4/5/6/7, Xvid: AVI/MKV/ support up to 1080p - H.264, AVC: TS/AVI/MKV/MOV/M2TS support up to 1080p - WMV 9: WMV support up to 1080p - FLV support 352x288 - ISO image - Real Video 8/9/10: RM/RMVB support up to 720 ...

January 31, 2012 · 4 min · birdchan

rounded corners

An ordinary div Row 1 A div with rounded corners Row 2 The second div looks so much more fun and professional at the same time! As it turns out, all you need is one or two extra lines in order to add these rounded corners. See code below: #my_div { border-radius: 15px; } If you want more fine-tuning, try the following. The first parameter is the horizontal radius of the rounded corner, the second the vertical. ...

January 31, 2012 · 1 min · birdchan

Leading Change Together

[youtube &w=640&h=360] How do you lead a healthy team dynamic? In this episode, Bill Hybels and Jim Mellado revisit a classic interview with Carly Fiorina at The Global Leadership Summit. During the interview, Bill asked her about the dynamics within her board. Bill and Jim then identify the dynamics involved in healthy teams. ...

January 28, 2012 · 1 min · birdchan

Happiness

Don’t Seek Happiness. If you seek it, you won’t find it, because seeking is the antithesis of happiness - Eckhart Tolle

January 28, 2012 · 1 min · birdchan

PHP array delete an item

Say, you have an array like the following, how to delete “three”? $arr = array("one", "two", "three", "four", "five"); PHP has this function called unset, with which you can do: unset($arr[2]); But… yea… there is no direct way to do something like array_delete_value(“three”)… I don’t understand why there is no easy way to do deletion by value… You will need to get the array index first, whenever you want to delete by value. We will use array_search to get the index or key. ...

January 26, 2012 · 1 min · birdchan

Displaying non ascii characters in html

This happens very often. We have some non ascii characters to display on a webpage. Without properly encoding, we see funny latin letters or squares displayed instead. This is not an “international” issue. Even in the US, when users copy and paste content from a word document, that content often contains non-ascii characters, say the bulletin points. After such content gets inserted in the db, that content often simply gets blindly displayed onto a webpage along with other well-behaved data. So we see the funny characters again. ...

January 21, 2012 · 1 min · birdchan