Quantcast
Channel: hemanth's blog
Browsing all 30 articles
Browse latest View live

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...

View Article



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...

View Article

Control telephone calls from the browser!

Control telephone calls from the browser, yes browser! But Mozilla Mobile Browser as of now.The phone functionality can be used with the help of  navigator.mozTelephony, which is part of the...

View Article

Remote debugging android browsers.

This entry briefs about remote debugging browsers that are active in any of the Android devices.The focus is mainly on the three major mobile browsers :Opera.FireFox.Chrome.read more

View Article

Chaining functions in Javascript

Most of us are aware of the all famous Jquery demo $("p.neat").addClass("ohmy").show("slow"); which is a gem of an example of chaining functions.There are many resources out their on which demonstrates...

View Article


Image may be NSFW.
Clik here to view.

HTML5 Fullscreen video crossbrowser

With the evolution of HTML5 APIs taking a video to Fullscreen and back is very easy and indeed no flash!P.S : I shall be using webm for the demo, the below image and explanations must make things clear...

View Article

Convert any image to HTML5 canvas

Even before talking about the technicalities of converting an image to a canvas element, check out the demo!DEMO input any image URL there and hit the convert button!P.S : It also accepts data-uri!read...

View Article

Get node details from Drupal

Currently I'm trying to migrate my blog from drupal to something must lighter, migrating data is indeed the first step!A simple SQL statement was very useful to get the node details, which will be very...

View Article


Temp dir with ruby

Played around with few programming languages to handle temp dirs, but amongst the lot /me really liked ruby's paradigm.Mainly liked :yield for the win!Easy maintenance of code.Temp dir removal is...

View Article


Perl in node.js

Yes! Perl5 can be embedded in node.js! First of all just do a npm install perlP.S : node-perl requires a perl5 binary built with -fPIC and -DuseshrplibThis is synchronous but useful embedded Perl5 for...

View Article

Program dependency management with node.js

Lately was working with a few PRs for The Yeoman project and tried to hack through a shelljs script to audit the OS before installation.P.S :  npm install shelljs as this is the dependency for this...

View Article

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,...

View Article

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...

View Article


IRC notification bot with node.js

This bot is a product of a simple need of notifying people when their friends login to a particular channel.The need :Simple IRC bot, that would notify its master.Easy to configure.Easy...

View Article

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...

View Article


CoffeeScript classes

When rails 3 was out I had a serious look at coffescript commit-diff but was not very much carried by it then.But as the saying goes Real man code raw JS I always have great respect and love towards...

View Article

Making a promise with javascript

Chaining functions in javascript is fun, so is the understanding of Blaocking vs Non-Blocking code, but callback can soon end up in hell!To save one from callback hell, normally named functions are...

View Article


Node packing made easy with grunt

Publish node packages with npm is easier done than said! ;) First of all check out Hitchhikers guide to npmAfter which, install grunt! npm install -g grunt and then the fun begins.read more

View Article

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...

View Article

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...

View Article
Browsing all 30 articles
Browse latest View live




Latest Images