Friday, June 20, 2008

DownThemAll

In the post below, i talked about DownThemAll as an extension for Firefox, well... now i will explain what i like on it:
  • Context menu's integration on firefox;
  • Reg Ex download filter for both embebed and linked contents of a page;
  • Batch Download (this one could be improved);
  • Download Accelerator (if server supports it);
  • Pause support (if server supports it);
  • Auto rename option;
  • Queueing options;
About batch download: I think it could be taken to the next level by adding variables to the sintax, my idea? An example below: Imagine you have several images in a server, they are organized in years folders like this: .../2007/2007-01-01-001.jpg .../2007/2007-01-01-002.jpg .../2008/2008-01-10-001.jpg .../2008/2008-02-23-001.jpg Or some similar organization. Now you wish to download them all to your computer, you don't have FTP access or similar, only HTTP, with DownThemAll you could say: .../[2006:2008]/[2006:2008]-[01:12]-[01:31]-[001:030].jpg This raises a problem... first batch tag and second should have the same value, but this way such propriety is lost, thus increasing the size of download list with files that don't exist for sure. The solution? Add some extra syntax, nothing very complex, just something like this: .../[$1=2006:2008]/[$1]-[01:12]-[01:31]-[001:030].jpg I think this enhancement would be awesome, well... if any DownThemAll developer sees this: "Add it to your TODO list!" The first solution will generate a list with 100440 files to download! The proposed solution generates a list with 33480 files... a third! Of course this could be applied in many ways (and enhanced even further with math formulas and conditionals), but this sample explains it quite well i think. PS: Woot! 2nd post today!

Browser's War!

Edit: Portuguese: Desculpem não ter isto em português ... mas é pra toda a gente entender ^__^; So... you know (or not) that there are many browsers out there, and now FF3! Here goes my review over them: IE4 (yes, it is still used!): Very very old, if you have it, you may consider buy a new computer. Quite insecure, it is used on WM2003 and prior for handheld devices (not as insecure in those when compared to desktop versions). It's very light and lack many functionalities on modern browsers. IE5.5 (quite old, i actually have it on my oldest computer): If you're using this old one you should update it ... really... you may say it is identical to version 6, but ... it isn't. IE6 (you know it): We all know it, is slugish but kinda light (well it lack many features). IE7 (shiny!): Completely new, shiny buttons to match Windows Vista look and feel, tabs were the major inovation, but since it still has activeX controls support (well at least you have some extra security) i really don't like it, make a mistake and you'll have nice spyware/adware popup's every minute or so... Firefox 2: Still my favorite, i'm just waiting for some crucial extentions to be supported on version 3, it has some memory leaks (i have lot's of ram so i rarely notice it), but the support for extensions is quite awesome. My favorite extensions are: Firebug, FireCookie, GreaseMonkey, ABP (AdBlock Plus) and DownThemAll. With those i can automate and fully control my browsing experience (stop ad's, mess with running JS, run my own JS, mess with cookies, make batch downloads and speed up my downloads) Firefox 3: Awesome, lighter, safer and more stable than the previous versions, i just miss Firebug on it, currently is the browser i use. Edit: FireBug Beta works pretty well ^__^ Opera 9.5: Ok... a friend told me opera has been updated, so i went check, it looks quite good, i may say it's the fastest browser that you can have, their widgets are not as productive as the one found in Firefox, but download manager, torrent support, irc and other advanced features that are quite rare, make serious damage in competition. On development side, i really like Dev Tools (until firefox 3 has firebug avaliable) Safari: Mac users... you guys are really lucky, your OS features a really nice (light, fast and safe) browser. I don't have much more to say because the windows version has quite some issues (last time i update it, it stop working :( ). Konkeror: Well... same as safari... but applied to KDE users :p Conclusion:
  • If you use IE7 ... please change to opera, you will thank me;
  • If you develop websites, you may have to use all of them (to check compatibility), but Firebug really helps so FF2 is the choice for you (and make sure you check everything on IE);
  • If you use a Linux distro... any browser is good :p quite likely you use Konkeror or Firefox already (i don't think you can use IE - Emulation is not the answer, ok?);
  • Mac users, your browser is nice, but test firefox 3 or Opera 9.5, see what you like more;
  • If you want to do everything with you're browser, well ... Opera 9.5 might be the right choice, firefox does what Opera does and more, but each extension makes it heavier.
By the way, according to may personal experience the fastest JS interpreter belongs to Opera 9.5, followed by Safari and Konqueror, then Firefox 2 (i'm not sure about version 3), and the really sluggish browser is IE... and most of the time it doesn't support most of advanced features of modern browsers! On HTML/CSS support, Opera, Firefox and Safari (Konqueror is like safari i believe) are awesome. An example? If you use embebed base64 images on CSS or HTML, they will work fine, on IE you can forget! Same goes to Canvas tag, rounded borders, PNG's with alpha channel (IE7 supports this one now i believe), and others. If you develop webpages you know what problem is to make things work in IE.... (and you are already aware of all the problems it carries) IE has it's own interpretation of HTML/CSS/DOM that goes (many times) against W3C specifications and other entities that specify internet stuff, so i ask you to stop using IE and make life easier to Web developers/designers, thank you in advance. :3

Sunday, June 1, 2008

O que é um PNG...

Chunk: Lenght: 4 bytes Chunk Type: 4 bytes Chunk data: 4 bytes (If needed) CRC: 4 bytes ----------------------------- PNG Sig: 89 50 4e 47 0d 0a 1a 0a ----------------------------- IHDR Chunk: Lenght: 00 00 00 0d = 13 bytes Chunk Type: 49 48 44 52 = IHDR Chunk Data: Width: 00 00 00 02 = 2 pixel Height: 00 00 00 02 = 2 pixel Bit depth: 08 = 8 bits per color Colour Type: 02 = Truecolour Compression: 00 = Default Filter: 00 = Default Interlace: 00 = No interlace CRC: fd d4 9a 73 = OK! ----------------------------- IDAT Chunk: Lenght: 00 00 00 19 = 25 bytes Chunk Type: 49 44 41 54 = IDAT Chunk Data: zlib CMF: 08 = CM = deflate, CINFO = 256bytes window size zlib FLG: 1d = FCHECK = 11101 0x081d½31=0 OK!, FDICT = 0, FLEVEL =00 deflate header:01 = BFINAL = 1b last block, BTYPE = 00b no compression deflate lenth: 0e 00 = 00 0e = 14 bytes nlenght: f1 ff = OK! filter: 00 = none line: ff ff ff 00 00 00 = white,black filter: 00 = none line: 00 00 00 ff ff ff = black,white check value: 29 e4 05 fb = OK! CRC: 9b f9 bb 0a = OK! IEND Chunk: Lenght: 00 00 00 00 = No Chunk Data Chunk Type: 49 45 4e 44 = IEND CRC: ae 42 60 82 = OK! ----------------------------- Isso é um PNG sem compressão, a imagem é um quadrado 2x2 com um padrão xadrez.