Made it into The Guinness Book!

Couple of weeks back when I was cleaning my mailbox I noticed a mail which read Hey redditgiftor, YOU are a Guinness World Record holder! Ok just another spam I felt, but the mail ID seemed genuine to so just read it and noticed that it had a link to the original guinness site with a username and key!

Had a quick check on redditgits and turned out to be true, it was a Guiness record indeed! I was a part of 30k people heh heh sounds like a big number but is small when compared to 7 billion human beings ;)

Had to pay some $$ to get the certificate shipped to my place, it arrived yesterday, have a look at it below :

Filter elements by pattern jQuery.

The need was pretty simple : "Find the elements that contain a particular word and display them and hide others"
Along with my friend Kambfhase we came with a simple hack to achieve this, well this in itself is very simple to be a jQuery plugin but can be a part of huger system.

Better HTML password fields for mobile ?

There is a particular issue that most of us would have noticed with few mobile devices in portrait with T9 (predictive_text) enabled : "To avoid prediction we have to use a lot of spaces and backspace".

Grayscale image when user offline

You must have noticed, webapps images in chrome going grayscale to indicate that the network is down, a simple demonstration of the same is been done here.

The trick is with very simple HTML5 event and CSS3 trick, sometime back had blogged about HTML5+JS offline/online notification on the same lines have done some silly code to emulate the offline gray-scaling of images, checkout the demo .

Live reload with grunt

Sometime back I had published an entry on Node Packing with grunt but live reload has been so fascinating to most of the webdevs, it would be worth to make your own tiny server that reloads files as and when it gets edited.

Why parameter expansion in bash?

Most of us would have come across bash scripts that have the use of secondary commands for simple string manipulations, such as cut and awk , but wonders can be done with parameter expansion in bash at very effective and efficient manner.

Even before diving into the why parameter expansion it's a must to know how it works!

Cluster computing with nodejs

A single instance of Node runs in a single thread. To take advantage of multi-core systems we may want to launch a cluster of Node processes to handle the load!

That is to say if a system has 8 cores in it a single instance of node would use only one core, but to make the most of it, we can make use of all the cores with the wonderful concept of workers and more interestingly they can share the same port!

This module is still in Stability: 1 - Experimental phase, check out the code below to enjoy the awesomeness of the cluster!

Heroku vs Nodejitsu for nodejs

It all started when I wanted to try out node with websockets with ws but strange but true heroku does not support node's ws but does support socket.io that internally use ws for it's client :\ Well heroku has been an old horse focusing on many programming languages.

Anyway on the other hand nodejitsu is Node.js clouds. Simple. Scalable. Enterprise-ready! Deploying apps here seem like you are working on localhost.

The below must give you a better picture of why Nodejitsu is a clear winner for nodejs!

Exposing your localhost to the Internet

Exposing your local web server to the internet is very useful at times, it gets a bit tough when you are on a DHCP.

The most common option being dynamic DNS and port forwarding with firewall turned off, yes it's a pain!

While exploring for alternatives came across showoff.io which is a paid service, digging more came across a suggestion from latentflip that being a wonderful gem called localtunnel there is another one called pairkit which is still in private beta.

Chaining functions in Javascript

There are many resources out their on which demonstrates various ways of chaining javascript function but, I always like to explore my own ways of doing things, let people call it re-inventing the wheel, but like doing that I like to make my own wheel! [ Enough of Nihilism! ]

Below is a simple code that /me managed to pull, which is closest to the Jquery demo and as always there might be better ways of doing the same, do let me know your way of doing this.

FFI Python vs Ruby

Lately wrote about Python vs Ruby Singelton, this is a similar write up that is crips and talks about FFI in both of them.

FFI foreign function interface :

A foreign function interface (FFI) is a mechanism by which a program written in one programming language can call routines or make use of services written in another. Despite the name, FFIs are not necessarily restricted to function calls; many FFIs permit method calls on objects; and some even permit migration of non-trivial datatypes and/or objects across the language boundary.

Python vs Ruby Singleton

I had dug a bit into Singleton Pattern in JavaScript lately and also was playing with some Python and Ruby Singleton Design pattern and asstonisginly they are very simple and one can enjoy reading the code, as so little code helps one to implement this pattern.