Code Snippet of the Day : Developer friendly environment specific code

// This is used in the local environment. comment this when deploying to Unix box 		
//	File propertyFile = new File("Some.properties");
		
// This is used when deploying in Unix this is used.
File propertyFile = new File("/home/mr.x/secrtet/prod.path/some.properties");	

Above code is self explanatory. Too good code and superb documentation ;) .

For God’s sake, “keep it simple”

If someone asks me what is the best practice to finish a software project successfully, I say “Keep it simple”. Well you heard it many times. But actually did you follow it. In fact its quite simple to keep things once you leave your ego and selfish thoughts away. If you think I am just bullshitting I can make you agree by the end of this blog. Continue reading

Google web designer : is it actually for designing web?

Today Google has announced beta release of “Google web designer” – “Create engaging, interactive HTML5-based designs and motion graphics that can run on any device.” Like any other google product, webdesigner is quick to download and install. Quite amazed with the ease of installation and I have immediately started building small web page with it. But after just 10 mins I realized that this tool is not a web design tool but “Ad Designer” or you can call it as “Ad Studio”. This is not at all for developers. This is a tool for advertisement agencies to design animated ads to publish on google ads.

Google continued to be the master of simple and most user friendly design. Tool UI looks awesome and it has a light weight feel. But my excitement ended here :(. I was expecting a good tool to quickly build html pages. But its timeline , 3D drawing and color palette features are clearly suggest this is not for creating a web page which is more of contents than animating things around.

googleWebDesigner

Except some simple animations, most of the animations are nothing but a match (geometrical) function. Not sure how much this tool can help developers to create animations even. Lets see what google would add to make it more web designer tool.

Running a tech meetup group in India

When I have returned from Amsterdam back to Delhi (India), one item at the top of my TO-DO list is to form a JavaScriptenthusiast group. Well my objective is not just to show-off ;) , also to learn JavaScript. Looking at the new trends in web development, this year I chose to focus on JavaScript world. Ever since my schooling days, I didn’t like studying alone. Group studies and discussing a concept with my fellow students always helped me to understand the concept better. So I chose the meetups to learn JavaScript and understand different concepts and started “JSChannel NCR Meetup Group” . Here I wanted to share my experiences with running such a tech group in India.
Continue reading

Fix : Error synchronizing MacPorts sources: command execution failed

I have started my journey with Ruby last week with a new shiny mac book :) . This is the first time I am using mac and I am new to Ruby ecosystem as well. So I have deployed RVM (Ruby Version manager) to upgrade the default ruby from 1.8.3 to 2.0.0. That is when I got this error “Error synchronizing MacPorts sources: command execution failed”. Spent almost 2 hours trying to find the issue. So sharing it so that I can save your 2 hours :).
Continue reading

Tip : Embedded webserver for quick frontend development

Building prototypes is one of the common trick to win projects in IT industry. One of the common prototypes we build are set of html files with navigation and some AJAX way of loading components. Because of the browser security, its not possible to do it via Ajax. Also its not correct to ask client to deploy these files on a server and check. Especially when you are trying to win the project this is not the option. Our prototype should be up and running with one click and ready to be to be explored with out any extra installation. Following are the two tricks you can use.
Continue reading