RSS Feed
^__^

Hosting multiple Express (node.js) apps on port 80

Max Girkens, 2012/04/20 05:40

In the last days, i was trying to find a solution hosting multiple Express apps on my vServer the same Server.

Starting with Apache and mod_proxy, i ended up with a plain node solution, which i really like. » read more

javascript benchmarking with jsperf

Ivo Bathke, 2012/04/11 17:18

I might be a bit late (yeaikno it exist over a year now and a bunch of blogs had it covered) but nevertheless i would like to point out a very helpful online tool i recently ran into:

jsPerf

Its basically a online benchmark tool for testing different approaches in javascript.
It covers some important aspects of benchmarking, that your homemade bench probably wont have like milliseconds accuracy & statistical analysis.
The tests are run on your browser and the results will feed the “browserscope”. A graph of the “highest known results” for the participating browsers.
So we can see some kind of comparison.
» read more

Tools for jade template development

Max Girkens, 2012/04/09 12:12

I recently started digging into node.js and the express framework.
One thing i like about it is that it comes with the beautiful jade template engine by default.

Here are some things that come real hany when you are working with jade. » read more

run JavaScript code in PHP 5.3 with the v8js extension

Max Girkens, 2012/03/09 01:14

…for some reason i needed to get t h i s to work before going to sleep.

I’m running OSX 10.7.3 with macports which usually does the job, but  Google’s V8 Javascript Engine is not available as a port yet. » read more

Sending invalid Unicode via socket.io

Ivo Bathke, 2011/11/16 16:48

Well you can try to, but it will end up almost probably in an disconnect which is caused by the browser.
As i have learned here.

Given you have a string which contains invalid unicode like:

Invalid Unicode-300x29 in
This will trouble the browser and the socket connection.

If you prepare your json with PHP and  json_encode the Unicode will be escaped to some strings like these:

\ud83d\ude31\ud83d\ude31\ud83d\ude04\ud83d\ude04\ud83d\udc9c\ud83d\udc9c\ud83d\udc4a

But on clientside it will still result in invalid Unicode.
» read more

[Symfony 2] AsseticBundle, Less CSS & YUI Compressor unter OSX installieren

Johannes Heinen, 2011/08/25 18:55

Das AsseticBundle ist ein Wrapper um Assetic, ein geniales Tool, um statische Assets für Webprojekte zu verwalten. AsseticBundle ist extrem einfach zu verwenden, einfach die entsprechende Filter-Chain via yaml konfigurieren, um mehr muss man sich nicht kümmern. Natürlich allerdings müssen die zugrundeliegenden Abhängigkeiten im Vorfeld installiert sein. In unserem Falle benötigen wir den Yui-Compressor als jar-File und Less CSS. Less ist ein node.js Modul, was bedingt, dass wir zuvor node.js installieren müssen.
» read more

jquery pump effect

Ivo Bathke, 2011/07/25 18:02

some new loader effect?
this is a small jquery plugin that renders something like a pump or glow effect by switching two css classes with jquery UI transitions in an endless loop.
the loop can be stopped by applying a stop class to the element.

watch the demo on this almost autogenerated github page:
Demo

» read more

Ajax Deeplinks mit jQuery Address

Ivo Bathke, 2011/04/04 14:49

Aus der Reihe: feine jQuery Plugins, um nicht zu sagen essentielle jQuery Plugins, heute:
jQuery Address

Damit kann man sehr einfach Deeplinks in Ajax getriebenen Seiten realisieren.

So lassen sich zum Beispiel verschiedene Zustände in einer Ajax Seite navigierbar machen, wie zum Beispiel einzelne Tabs via Link öffnen oder auch Akkordion Zustände.
Oder man kann Ajax Bereiche SEO technisch erfassbar machen.

» read more

reload CSS in Firefox 4.0

Max Girkens, 2011/03/23 11:09

Firefox 4 ist ja nun draussen:
http://www.mozilla-europe.org/de/

Die Addons Firebug und der JSON Viewer sind ja zum Glück auch schon kompatibel.
Mein anderes Lieblingsaddon, der CSS reloader leider noch nicht.

Coolerweise gibt es aber dieses Bookmarklet:
http://david.dojotoolkit.org/recss.html
dass genau das tut.
Supersache!

Debuggin JSON mit JSON Views

Ivo Bathke, 2010/11/17 16:37

Wer kennt das nicht: man entwickelt mit JSON, will die AJAX Rückgabe kontrollieren und macht, wie gewohnt, im Firefox den Firebug auf und checkt unter Console den AJAX Request und sieht folgendes:
Json Firebug Raw-300x70 in
Nicht sehr erhellend! Total unübersichtlich! Nicht gut!

Wird JSON mit dem richtigen Header ausgeliefert, unter PHP geht der so:

header('Content-type: application/json');

» read more