Category: open source
Enhanced API Browser for node.JS
Today I created a little (~450loc) extension for the official node.JS api page. It's a client side Live-Search: filters over content and navigation as you type.

Feel free to try it out at http://dracoblue.net/showcase/enhanced-node-api/.
This is made 100% javascript (with jquery) and does not change the api.html at all.
Source is available at enhanced-node-api@github.
Comments appriciated!
Chain + Group Callbacks for NodeJS
If one develops with Node.JS and wants to use the full event-loop power, you got to use callbacks for everything.
That said, it looks ugly to do that:
2
3
4
5
posix.stat("/etc/passwd").addCallback(function (stats) {
sys.puts("stats: " + JSON.stringify(stats));
});
});
The api advices to use:
2
3
var stats = posix.stat("/etc/passwd").wait();
sys.puts("stats: " + JSON.stringify(stats));
but this is a problem, too. Why? Because you can't do that too often (just ~10 times) at the same time.
That's why I created two little helper methods: chain and group.
Mootools Youtube Chromeless Player
Today I finished the release for YtMooPlayer.js - the chromeless youtube player for mootools.
The plain youtube chromeless player does not run in an own namespace and makes using multiple players on the same site ugly. Since the chromeless player has a swf as "real" player, one needs to wait until its loaded.
That and some useful events are encapsulated in this class. So have fun using youtube with mootools on your site! I am currently using it successfully for 6 month at my koala search engine for youtube player and a custom javascript playlist.
Beside the YtMooPlayer.js-Download, there is also a Demo and Api-Docs (generated with the excellent jsdoc toolkit).
DJson 1.6 released
Today I want to announce a new release of DJson. The 1.6 is now using a different method to create the cache-file, which allows running multiple djson-scripts (like filterscripts) at the same time.
Also it features a method to define own DJSON_MAX_STRING (before include of djson), if you need really big content.
The internal djson cache allows a maximum of ~ 70 characters (255-filenamelength-keylength-170) for a value, if DJSON_MAX_STRING is set to just 255.
Head over to the official DJson page or directly to the djson 1.6 download.
Mounting SSH/SFTP Remote Folders in Eclipse
If you are using windows as operating system and want to access files available on unix-based remote file systems, you have only limited amount of options. In case you are using Eclipse as development environment, we'll have a look at an alternative, which does not use samba-shares.
A nice option is the plugin Target Management (RSE). It allows you to add any remote systems to the remote file system explorer.
Once RSE is installed, you are able to add a folder (like you did before) but link it to local or RSE location. Select RSE and choose the path on your remote system!
Fixing compiling issues with magnet.c
Jan Kneschke maintains lighttpd and posted a simple FCGI for lua. This magnet.c should be easily compiled with
This may not work if your lua-include is not in the path for compiling.
And you'll run into such error messages:
2
3
4
5
magnet.c:4:21: error: lauxlib.h: No such file or directory
magnet.c:11: Error: expected »)« before »*« token
magnet.c:19: Error: expected »)« before »*« token
magnet.c:59: Error: expected »)« before »*« token
Since you may not be used to compiling, I think it might be good to post a reason for that and a solution.
The reason is, that lualib.h is not in include path. To add it specific folder for the compiling to the include path you may use the -I /path/name/ parameter.
There are some distributions, where the -llua5.1 may not work and result in cannot find -llua5.1. In this cases try -llua instead.
Have fun compiling!




