Posts

Showing posts from December, 2006

[PHP] New version of GzOutput class

I've just updated my recent GzOutput.class.php (more recent than last file published on Ajaxian :D) and tested successful on many browsers. The difference from other cache-manager files, functions or classes is that GzOutput is totally indipendent from folders or page type, You could use them to increase JSON responses (using text/plain as Content-Type) as well as XML, (X)HTML, CSS or every kind of document You need. You could combine this class with a JavaScript compressor (to improve download speed) and you don't need to care about output changes because ETag is based on sha1 and not on every mktime of each file (it means better server performances). The only think that You need to remember is that You don't need to write everything before to use this class (empty spaces, some char or pages can't be write before its usage). Four public methods are really simple to use: create , sending an output string and a Content-Type type to use cache if it's available (if no

PHP API Manager for Notepad++

I've used fantastic Komodo IDE to develop for a lot of time my Python/PHP web/desktop applications but now that my portable PC "has been regenerated" from SONY I'm spendig a lot of time to re-install everything I need. My first favourite editor was ConTEXT , a fantastic, fast and powerful editor for every kind of program language but "my last love" has been Komodo that I've won on phpclasses.org. Difference is amazing but there's just a problem .... Komodo is too much powerful and wants a lot of resources (I've not an extremely powerful VAIO) then I've choosed to install ConTEXT one more time but I've found, inside a forum, another famous editor as Notepad++ is and I don't know why I didn't try them before. It's exactly what I need, a fast, simple, scite based, auto-completition enabled editor , then it's fantastic because I can write PHP as JavaScript, C and many other languages too !!! Auto-completition is just what C

Firefox Multiple Vulnerabilities ? Update in few hours !

The Highly critical Secunia Advisory of 2006-12-19 is not a problem, FireFox 2.0.0.1 has been released in few hours !!! You don't need to download this new version if you have auto update feature enabled because your FireFox will update by itself in a "couple of seconds". I wonder when Microsoft Internet Explorer released an multiple patches update the day after after and then I wonder why You've not yet installed FireFox on your Windows, Mac or Linux computer! This is quite a record for a browser and this is the complete FireFox 2 veulnerability report ... just 2 vulnerabilities and just one of them unpatched and it's a less critical problem. This is "your" Internet Explorer 6 vulnerability report and this is the last version 7 of, again, Internet Explorer Browser vulnerability report with 3 bugs, one of them moderately critical and any of them patched. So c'mon guys, what are You waiting for ? GetFirefox ;-)

IWA Italy didn't choose me !!!

The Web Skills Working Group selection is closed and the group is complete. A lot of University members, a lot of Information Architect and a lot of IWA members ... but "any every day applications" certified or skilled developer, just people that write books, blog posts, do training courses every day and probably part of the same trainings that make italian ICT as is right now (unlikely often generally "ridi.culo.us" ...) ... well, I can't read about any skilled server and client (both!) developer in the Web 2.0 era (or probably I don't know Him/Her) ... but this group should tell us how should be a Web developer and what kind of certification He should have to be a real Web developer ... sure, one or more IWA certifications ! At this point, my first opinion is that V.U.E. certifications aren't a good start point (I've 2 official server and client certifications,PHP Engeener and AS2.0 - ECMAScript 3/4 Developer) and that my W3C/PHP/JavaScript/Action

Reset The Element CSS

Few days ago ajaxian posted a YUI solution to reset CSS in a page. This is a really interesting way to solve inherit CSS problems when You need to create a personal widget or when a library would do it. Dean Edwards did a WHATWG proposal for a <reset> element because He *really* wants to turn off CSS inheritance . He's quite right for many reasons and that's mine proposal, a reset css that just use simply a class name. .reset,.reset div,.reset dl,.reset dt,.reset dd,.reset ul,.reset ol,.reset li,.reset h1,.reset h2,.reset h3,.reset h4,.reset h5,.reset h6,.reset pre,.reset form,.reset fieldset,.reset input,.reset textarea,.reset p,.reset blockquote,.reset th,.reset td {margin:0;padding:0;} .reset table {border-collapse:collapse;border-spacing:0;} .reset fieldset,.reset img {border:0;} .reset address,.reset caption,.reset cite,.reset code,.reset dfn,.reset em,.reset strong,.reset th,.reset var {font-style:normal;font-weight:normal;} .reset ol,.reset ul {list-style:none;}

A stupid Ajax cache problem solution

One of the common problem using Ajax (Flash too) interactions is the cache. There are a lot of valid PHP, Python, JSP and .NET solutions but browser compatibility is often a question mark. You could implement easyly and directly a client solution and this is just another proposal. function noCache(uri){return uri.concat(/\?/.test(uri)?"&":"?","noCache=",(new Date).getTime(),".",Math.random()*1234567)}; exactly 123 bytes to solve cache problems and this is the func description: function noCache( uri // uri string to open ){ return uri.concat( // concat String prototype, // the fastest way to produce // a complete string using multiple values /\?/.test(uri) ? // if uri has a query string "&" // add last value using & separator char : // else "?", // add a query string to this url "noCache=", // this should be a "cool name" for generated key (new Date).getTime(

The byte family is now complete, welcome bytedom

Image
another "$" dollar function ? elements prototypes ? no , just a simple library with its namespace that doesn't modify anything else ! This is my last creation to complete my lightweight low-level framework that should be everything You need for your Web 2.0 sites or to develop more complex libraries too. I've found EJ idea great but I always look for my own solutions. I've thought about bytedom since I've created btefx but bteson was more important than simply dom management (P.S. new byteson version 2.0b is available) but now I've completed what I need to develop my projects. This is the bytedom method list: addClassName, to add if not present a class name to an element addEvent, to add a standard name event such click, load, mouseover and every other, DOMContentLoaded too clear, to remove empty textnode from an entire document (FireFox, for example, reads newlines as textnodes) create, to create one or more elements (input, div, span .. and every