Posts

Showing posts with the label Web

(က) Polpetta, any folder is served spiced

The quick version is: have you ever thought about using node.js to make any folder as a web-server and in a PHPish way where .njs files are required and executed runtime as node modules ? Oh well, I did, and this is the result in Github: polpetta ... enjoy!

What's localStorage About

I've read even too many articles recently talking about storing anything you want in the localStorage ... and I believe this is wrong in so many levels. First of all, localStorage is not a database , 'cause if you consider it a database you should have considered a database document.cookie before ... As Simple As That document.cookie has been there, problematic as it is, since ever.The limit of this technique has always been the 2Mb on average across different browsers. Have you ever asked yourself what the hell is document.cookie doing and how comes it's instantly available? Well, it's about storing some stuff in your hard disk or your browser (SQLite) database, so that every single request will send this file loads of key/values pairs through the HTTP request. The side effect of this technique is that more you pollute cookies in your site to remember stuff, the more the interaction will be slower, specially on mobile, since all these info have to be sent to the se...

wru, unit tests have ever been that easy

Do you remember my good old wru project ? It has been refactored , readapted for both client and server side environment such node.js and Rhino and, most important, it landed in github ;) Please spend few minutes to read the documentation and you'll realize why I chose this title for this post. Have fun with JavaScript Unit Tests!

The Status of Mobile Browsing

In this year I have done more tests than ever over all these tiny and shiny portable devices and I'd like to share with the Web community the result of my experiments at the end of this 2010. " why not before xmas, ffs? " ... because whatever you bought as present for you or your relatives, will hopefully be updated soon with latest systems and related browsers :) The Dedicated WebKit ... Nightmare! As ppk mentioned already in Front Trends conference, we have basically only 5 browsers in our desktop PCs/Macs/Linuxes machines. Much more fun comes when we think we are dealing with a single browser, a generic WebKit based one, and we discover that there's no browser similar to another one, every bloody device has its own implementation with few exceptions represented by Safari Mobile, almost the same in iPad, iPod, and latest iPhone. WebKit and CSS(3) Even if the CSS engine is basically the same for every single specific implementation, the number of supported, and ...

Web Terminator Salvation - Google Chrome Frame

Google Chrome Frame Bookmark , if you are surfing for whatever reason in IE, right click in precedent link, add to favorite and save as: FINALLY THE WEB , or simply copy this code and past in the website url you are surfing with IE // corrected via kangax javascript:void(location.href='cf:'+location.href)); It's the beginning of a Web Revolution , it's the dream of every Web developer, it's the annihilation of the most slow, problematic, non-standard, engine ever: the whatever version inside Internet Explorer! It's the " Say Fucking What? Buggy Flash Player Yes For Ages And Chrome Frame No? " era, it's something I've been trying for ages without that direct switch, provided by this plug-in, able to forget Internet Explorer except its frame (weird choice about the name though, Google) ... it's the new stats where IE could increase again it's market share who fuckin' care as long as we can finally develop real web applications , is ...

I Would Simply Like To Support iPhone But I Cannot

Update Before other silly flame/blame will start, I have already twitted that my next laptop will be a netbook. Here the related tweet . let me summarize the story: at that time I had a girlfriend with an iPhone so I though why on earth shouldn't I buy an Android instead? If I need some test online I'll have both to test it , and I've rarely been that wrong. Wanna Develop for iPhone? Buy a Mac As marketing strategy sounds " cool " except I do not want to develop iPhone application, the present and the future is online, why on earth should I learn another programming language from the scratch, Objective-C, to develop something that will be relatively soon replaceable via WebKit and a good host? Wanna Develop Web for iPhone? Buy a Mac Again!!! Unbelievable, there is not such a thing: online iPhone tester , everything I found Googling was about a silly image with an iframe just to test the iPhone size ... are you kidding me ? It's like put IE inside an iframe ins...