Some time ago CSS “frameworks” were growing out of the ground like mushrooms after rain. Now we have at least a dozen, and the number is growing.
I have always wondered what similarities/differences they have, who knows, i might use one of them in the future. The answer comes from Eric Meyer, who has made some comparisons recently, which was summed up Jeremy Keith in this article. A good reading if you have two minutes.
…so recently i was playing with SVG, and i wanted to embed an older version of this map of Europe into my html . Currently it is about 500 KB, but as far as i remember, it was even heavier. Pretty bad, if you want to inline it, and your visitors have to download it. So how did i reduce the size to one tenth of it?
gzip?
Yes, gzipped version of SVG exists, but not when you inline it, so its a no-go in my case.
If you like Ext JS, the new 2.2 version brings out some nice features for you. No question Ext is a great library and worth to play with, despite the recent disputes around the license change from LGPL to GPL.
My only frustration with Ext was only a few days ago, when i was about to make modifications in an open source project that had an earlier Ext 2.0 bundled, but not fully!
…so you were a good programmer and you have added javadoc style comments in front of your javascript functions/classes/methods? Good boy! Now lets see what you can do with them. Solutions in order from worst to best (just to keep you entertained):
Javascript Documentor (JSD)
It is java based what would be super useful in ant scripts, however it expects me to write comments like:
1
2
3
/// <name>MyFunction</name> /// <param name="param1">The first parameter passed in.
I was thinking recently how to speed up in an intelligent way the creation of image maps with my online utility. Often users try to map images like this:
The user will select “Home” and try to map it, giving it an url, adding an alt attribute. Now what if we could prefill the alt attribute with the text “Home”? Optical character recognition (OCR) in javascript? Wow, that would rock!
…so i was about to profile a web application written in php, and as all of us does when doing so, i scattered the code around echoing microtime differences. (Ok, ok, some of you might use log instead.)
To my greatest surprise the part where the application showed significant slowdown in some cases, was a simple echo statement. Well, i wont be able to optimize that, will i? Why can this be happening?
…ok, so i was doing some database tuning recently to speed up one of our deployed instance of SugarCRM, when i became alert of an interesting phenomenon.
The table accounts not only had a primary key(id), which is normal, but also had a composite key(id, deleted) named idx_accnt_id_del. Now wait a minute! Even if you perform a query with id AND deleted criteria, id already points to a single record in the table, since it is a unique primary key.