martes, abril 15, 2014

Check nullness in javascript

I have seen many code that check nullness or string empty. Like the following:

if(someVar === null || someVar === undefined || someVar === ""){ 
        //some code

you can have the same result like this:


Check it working if you don’t believe me:

JS Bin

jueves, febrero 06, 2014

Setting Up a VNC Server

Link: Setting Up a VNC Server

  • Install tight VNC: “sudo apt-get install tightvncserver”

  • Run the program: “tightvncserver”

  • Start a VNC session: “vncserver :1 -geometry 1280x720 -depth 16”