Introducing TinyPop
TinyPop is a lightweight (1.5 KB minified) JavaScript for Growl like notifications. It can be used as an alternative to jGrowl when you don't want to use jQuery for a simple task.
Lightweight Javascript inline editing
Update 2: Core methods rewritten for compatibility with browsers. Check change log for details
Update 1: Script updated considerably
There are many excellent scripts to edit something inline using javascript (like jeditable), but not many that work standalone. If you hate wanting to include a 50 KB library just for this simple functionality, you are in the right page. This script is tiny (1.7 kB minified) and works on most modern browsers
Steps:
1) Include the editable.js file in your page
2) Add the attribute class="editable" to a division, paragraph or table cell <td>
3) Click on the element for it to turn into a text box. Update the value, and press enter to save. Press tab or click anywhere on the page to discard updates and revert to the old value
Changelog
Version 0.2
- Support for all major browsers
- Table cell editing more robust
- Added support for IE 7 and 8. Uses ie.js for support for getElementsByClassName
Initial Release
- The editable box now fits to the size of the original element. You can see that in the demo
- Support for inline table cell editing is now included (Proper layout/orientation only work in FF for now. Horribly out of place in other browsers and will be fixed later)
- Editing of an element with other HTML tags now works better
Gotchas:
1) Only one element is editable at any instant (I wanted this specific feature for a project I'm working on)
2) The text box doesn't fit to the size of the original element (will be fixed)
Tested On:
Windows - Firefox 3.6, IE 7 & 8, Chrome
Mac - Firefox 3.6, Safari 4, Chrome
Terms:
Free to use for personal or commercial purposes, but please give credits
Notes:
I know it can always be better, and I'm just a beginner. So comments, suggestions always welcome!
MAC/IP address using Linux shell script
Ever wanted to get the MAC/IP address of your computer in a Linux shell script? The following two commands should work on most flavours of Linux/Unix
Note: It retrieves the address of eth0 interface by default. Make necessary changes as required.
IP:
/sbin/ifconfig | grep '\<inet\>' | sed -n '1p' | tr -s " " | cut -d " " -f3 | cut -d ":" -f2
MAC (H/W address)
/sbin/ifconfig | grep 'eth0' | tr -s " " | cut -d " " -f5
Ubuntu’s Karmic Koala
So begins the battle between the Operating Systems again. And this time a much fierce battle I guess. With Microsoft Windows 7 and Apple's OS X Snow Leopard 10. 6 already rumbling in the arena, there enters Ubuntu 9.10 codenamed Karmic Koala.
Ubuntu's 9.10 promises to be faster and friendly to use (no more scarry text scrolls) and also is introducing newest version of- Linux kernel - Version 2.6.31
GNOME - Version 2.28
Firefox - Version 3.5.3
Software Center - graphical utility for package management
GRUB2 as the new default bootloader
Ext 4 filesystem default
But, the best part of Karmic Koala is Ubuntu One, a new web sync feature that gives you 2 GB of free online disk space and also allows you to syndicate and synchronize contacts, notes and share files between several computers. Yes! I know! I can already see people ruminating from Windows. Wait! There's still more to come.
You can chat to your friends and your office colleagues through Empathy which integrates: Yahoo, Gmail, MSN, AOL, Jabber and many more. There is F-Spot for you through which you can manage and upload your photos to photo-sharing sites like flickr, facebook, picasa and what not!
Create your presentations, documents with Open Office v 3.0 which is quite compatible with all other available office applications including the most famous Microsoft Office. Access Last.fm, Internet Radio portal directly using Rythmbox.
Cannonical COO Jane Silber quotes "Ubuntu 9.10 gives users more reasons than ever to seriously consider Linux at a time when many are thinking again about their operating system options. We are delivering a platform for users interested in an easy-to-use, great-looking, web-friendly operating system".
The average boot time is about 26 seconds with the Xorg showing up around 15th second. The eventual goal is to deliver a 10 second startup. Probably, we can find one such thing happening in 10.04. Software Center has an excellent selection of software, revamped audio framework improves sound control across multiple applications and many new and improved features.
At the core of the Ubuntu philosophy is the belief that computing is for everyone and whatever your circumstances.
Why Symfony is THE PHP Framework to work with
I've spent the last few days fruitfully, searching and comparing the most popular and promising of PHP frameworks. Before I get started, I know the automatic follow up will be PHP bashing, and hailing RoR as the savior of the world. This post isn't about a rails vs PHP comparison, though I intend to write on that shortly.
