Thursday, October 29, 2009

jQuery round switcher

Mater artium necessitas
Tired searching for a good jQuery plugin able to rotate images by specified angle I've made a small custom content rotator:
Just a background CSS sprite imitating graphical switcher.

For this one I didn't make any tutorial: code is so easy so it doesn't need any.

Thursday, October 15, 2009

How jQuery changes page development

Today I've realized times I've created full featured form, with action and method and so on is already a past. Because of jQuery. It's quicker and more elegant (from my point of view) to use jQuery's selectors to invoke an action rather than with standard forms. And AJAX support, that altogether made a small revolution in UI design.

Wednesday, October 14, 2009

Final solution

Finally I have found solution for all my 'Standards compliance' problems in relation to XSLT and XHTML. Many times it was a problem with jQuery library - and the solution was as simple as I couldn't imagine - I had to put jQuery source link inside XSLT not in source XHTML. And that's all...

Sunday, October 11, 2009


Whole weekend I was working on PHP/Javascript user authentication system. The goal was to minimize sending any unencrypted data over non-secure connection. So md5 was my best friend. Finally I did it, using AJAX and PHP.
And after few hours - first changes - from md5 to sha algorithm.  Just in case...
I hope anyway - password and session id combined and hashed with sha are secure enough to be transported over non-secure connection...

Saturday, October 10, 2009

md5 of nothing

Creating authentication procedure for php+javascript, I've stacked with one value: d41d8cd98f00b204e9800998ecf8427e. I knew it, and searching google I've found it: md5 of nothing.
Try php md5(null).
Just to let you know, da39a3ee5e6b4b0d3255bfef95601890afd80709 is SHA-1...

Wednesday, October 7, 2009

jQuery and XML <![CDATA[ ]]>

So it's a kind of mystery for me: why jQuery AJAX ignores tags inside CDATA block? Wrong - it process it as HTML tags, XSLT ignores it. Well, I've got nothing against - with XSLT there is a lot of work to recover HTML from inside CDATA and here I've got it as a bonus. Thanks jQuery :)

Tuesday, October 6, 2009

XML, XSLT, Javascript, CSS, PHP in one

It was a real fun to put it all together into one file. Anyway, it works. Ok, I just had to test it, if it is possible, but it is. I didn't make any tutorial, code is self explanatory, maybe .htaccess and php header needs additional explanation:
RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html .xml .xsl

PHP header (for XML file)

and for XSLT file:

And even overall speed is ok:

Sunday, October 4, 2009

Again with Puppy Linux

Well, my SD card is in duty again. This time with the latest Puppy Linux, 4.3 as I remember?
Answer is 'Why not' just in case the question 'Why?'.
Well, some troubles with network manager, but connection using network scanner as usual without any problems (I don't believe anyway I'm the only having problem connecting to WEP  network, doesn't matter).
New system, new challenges.
FF 3.5 runs quite out of the box. It needs two small dbus packages and I could run it from hdd. As well as all extensions (extensions directory as a symlink). And the same with openoffice 3.1.1 as mountable sfs file (sfs file required conversion to sfs v.4 [download link]). And I've got again nice system. Skype also running, I've found an 'old' pet package with skype
BTW one hour to create custom os it's not so bad (with all FF bookmarks/passwords imported from files I left on my hdd)...

Thursday, October 1, 2009

And another one - this time it's a page combining XML, XSLT, CSS and jQuery. Just a kind of experiment...