Posted by sharpstyle on April 12, 2007
Consider the following code
var a = new Date();
var b = new Date(a.toUTCString());
alert(b – a);
My expectation that it will return 0, but it was consistently returning negative values as if b was an earlier date than a.
How is that possible? toUTCString() drops milliseconds, which essentially makes b an earlier date than a.
~Mike
Posted in JavaScript | 1 Comment »
Posted by sharpstyle on April 10, 2007
http://amb.vis.ne.jp/mozilla/scrapbook/
ScrapBook is a Firefox extension, which helps you to save Web pages and manage the collection. Key features are lightness, speed, accuracy and multi-language support. Major features are:
- Save Web page
- Save snippet of Web page
- Save Web site (In-depth Capture)
- Organize the collection in the same way as Bookmarks
- Highlighter, Eraser and various page editing features
- Full text search and quick filtering search
- Text edit feature resembling Opera’s Notes
- See Features (1)
- See Features (2)
- See Features (3)
What I liked:
- Light
- Feature rich
- Ability to edit DOM, highlight text and add notes before saving the page (Screencast Demo)
- Combining multiple pages
Other tools:
~Mike
Posted in Uncategorized | 2 Comments »
Posted by sharpstyle on April 9, 2007
It is not often that I find software where in the first 5 minutes of using it, I know that it will save me a lot of time. Meet Firebug:
Firebug integrates with Firefox to put a wealth of web development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page.
Think of Firebug as Web Developer extension on steroids. Here are some of the features:
- Live editing of HTML, JavaScript, CSS with immediate result
- Visual representation of the layout for each element including margin, border and padding — this will certainly save me a lot of time
- Monitor network activity
- Debug and profile JavaScript
- Powerful JavaScript console
Make sure to read documentation as there are a number of keyboard shortcuts and console macros that will save you time

Firebug is open source.
If you are looking for similar functionality in IE, there are a number of options:
~Mike
Posted in Development, JavaScript, Web Development, ajax | 1 Comment »