A plugin for display list of item to insert. List item are stored in input hidden comma separed, the call is simple Some bug to fix options are target: target div to update with options input: input to update with values items: items list as key:value optional: default to $(“<input>”).attr(“type”,”text”) … you can setup autocomplete […]
deploy svn to ftp hosting
I wasted some time to check if there is a script to deploy to ftp hosting from my svn, and I found nothing … 2009-06-27 project in sourceforge: http://svnftpdeploy.sourceforge.net/ […]
grep over ssh in emacs
M-x grep command is very useful in a number of situation, because, for example, it give you direct access to all matched file … But there is not so intuitive how to use grep when opening file via ssh, this is the trick: First generate a key pair and upload public part to the remote […]
SiteMap php class
2 simple class for sitemap: http://www.smartango.com/sites/default/files/sitemap.txt simple use: {syntaxhighlighter brush:php} $root = $_SERVER[‘DOCUMENT_ROOT’]; $sm = new SiteMap($root,’sitemap-1.xml’); $sm->start(); $http = “http://www.example.com”; $sm->addUrl($http.”/file.html”); $sm->end(); {/syntaxhighlighter} …SiteMapIdx similar […]
Series 60 3rd edition: application shell status pane
To use little status pane like the one in application browser use: StatusPane()->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_USUAL_FLAT ); title pane and navi pane could not be used at the same time […]
jQuery Waiting plugin
This is a simple jQuery plugin for purpose of loading phase of an ajax request or anything else. $(“#testdiv”).waiting({imgsrc:”/files/aj-blue.gif”}); to stop a waiting div $(“#testdiv”).stopWaiting(); TEST DIV CLICK ME […]
move multiple option in select with jQuery
I look for this everywhere: how to move multiple option inside a select function upfield() { var el = $(‘#selectedfield’).children(‘[@selected]:first’).prev(); $(“#selectedfield”) .children(‘[@selected]’) .each(function(){ $(this).insertBefore(el); }); } function downfield() { var el = $(‘#selectedfield’).children(‘[@selected]:last’).next(); $(“#selectedfield”) .children(‘[@selected]’) .each(function(){ $(this).insertAfter(el); el = $(el).next(); }); } […]
xmlrpc and mod_security
with apache mod_security, xmlrpc calls return 412 “Precondition Failed” when using xmlrpc.php this avoids such error: in .htaccess : <Files xmlrpc.php> SecFilterInheritance Off </Files> […]
SDK for Smart Device
Symbian Series 60 SDK from forum.nokia.com Symbian UIQ SDK from developer.sonyericsson.com Maemo SDK from maemo.org (Nokia N770, N800 tablet pc) J2ME from java.sun.com DevRocket from Montavista OpenMoko from OpenMoko (also mokomakefile project, sdk for linux) Google Android from code.google.com/android/ BlackBerry JDE (RIM Java Development Environment) […]
XMLHttpRequest, document element DOM parsing
XMLHttpRequest use, works only if url is on same site.
checklogin.php give <KO/> if login è fails
<OK>XXX</OK> with XXX id of user when login è is ok
[…]