Posts

Career Means Commitment

It has been a while since I last wrote. Wished to revisit with an introspective post. Having traveled close to 8 years along, Media.net stands only second to my Matriculation Board in years of association with an institution. Starting a freshman out of graduation, I now stand as a Lead helping my peers shape a career for themselves. As a part of the parcel, peers resigning from their positions stating reasons varied between studies and other exciting opportunities in hand had to happen once in a while. From my 8 Years, having experienced a mix, I would be seen discussing from one end of the table with hopes to bring clarity in minds of peers over the other end, before they will call it curtains officially. Not so golden, still writing the discussion down might help a few I felt. These might be very specific to my organization or even team, still, recommend reading once. Rule of Expectation: Criteria to MEET EXPECTATION Deliver Consistently and Reliably (primary reason we are hired f

Selenium Webdriver in Nodejs + Javascript

Phewww getting back to blog after almost an year. So, am back to discuss an interesting node module selenium-webdriver [Ref: Project Doc and npm registry ] Am assuming the reader has prior knowledge on what nodejs , npm and node modules are. And a little bit of selenium fun ;) What is selenium? As wiki says, Selenium is a portable software testing framework for web applications. It is a prominently used tool for browser automation. For further details checkout SeleniumHQ . What are we doing here? Basically Selenium provides bindings in many languages like java, python, php and now even nodejs. Here am planning to run through few code samples of using selenium webdriver in nodejs. Where to start? im@mylaptop$ npm install --save selenium-webdriver A Simple Webdriver Example // Import Selenium Dependency var Webdriver = require('selenium-webdriver'); // Few Settings var PAGE_LOAD_TIMEOUT_MS = 10000; var SCRIPT_LOAD_TIMEOUT_MS = 1000; var WINDOW_WIDTH_PX = 1024; v

The Year 2K13 Was....

Image
As we are at the verge of year 2K13, I asked a question to my inner self How did it go? From there on my mind started recalling events, that went past me in the journey. The journey that made me an year older with handful of new experiences. 2K13 in my calendar is going to be one of the most unfogettable year in both the ways [Happiness & its counterpart]. January: All the waves into both work and life because of relocation from mumbai to bangalore [Oct 2012] were slowly settling down. Had Durga to fill the void left in my work as a companion. Someone to discuss and share. And forgot to say, now we are a team ;) Realized that I got promoted from Web Dev to R&D Engg. Gave good support to my Super DAD who was taking care of our dream home which was under construction. Bottom Line: Realized that there is a lot more to do than work in life and Patience rewards February: Feb 22 - One of the important events in our family till then, was planned. Our House warming cere

GRUNT- The JavaScript Task Runner

Image
Grunt helps developers automate the task of javascript deployment. In our development cycle, every javascript deployment used to be 1. Code 2. Minify 3. Upload We were missing out two important phases which ensures code quality and reliability 1. Lint 2. Testing As our code became larger and larger, as anyother dev we also considered a refactor. The refactor resulted in splitting our large code base to manageable modules. Now, Deployment has to go through 1. Unit test independent modules 2. Merge Modules to a shippable target 3. Lint 4. Minify 5. Deploy Ooops... Nice but how? It's true that developers love things automated, and so we were. We arrived at a one stop solution GRUNT. This blog post is a Let Them Know Types. As, I felt that the instructions on grunt setup is kind of scattered :) To hav a better introduction with the hero, you should meet him at his place Grunt has two parts: 1. Using it 2. Customizing it How to start using it? Installation: G

A Run for World without Leprosy - Run to remember

Image
And My First 10K Marathon [ TCS World 10K ] - A run for world without leprosy Was yet another usual day to work post my work out session @ Music&Metals . Reached my workstation and booted my ubuntu to start with the proceedings of the day. The moment I logged in to my user, my mouse pointer rushed towards the Chrome Icon in unity launcher. Guess what? It's just to see if there are any updates in my FB home. And there it was, nice red color icon over the world of FB. It was a post from Dr. Manimozhi Natarajan, in our Gym's [Music & Metals] closed group. Urged to read what it is about, and it was an invite to all fiddles in M&M to participate in a 10K Marathon for a cause which was about to happen two week from then. And there you go.. I was realizing my wish to go for a long distance run coming true. And a pause [Ooops]. In my previous trip to our Mumbai Dev Center, I got to know that 4 of our team mates are participating in a 4*5Km relay and they are practicing

Headless Chrome/Firefox Selenium Java in Amazon EC2

Setting up chrome/firefox in linux based x86_64 EC2 instance In this post we'll see how to setup chrome/firefox in EC2 instance. Further we'll discuss the way to setup chromedriver with selenium [java] in EC2 instance aswell. Why is that difficult? Linux based EC2 instances lack gtk+ , which is a must to launch any GUI enabled applications. How to solve? Compile gtk+ from source. This gist by joekiller has the complete dependency tree resolved for installing gtk+ for x86_64 machines. Line 77 Basically installs firefox from its tarball. You can comment it out incase if you don't wish to. Incase Line 42 fails. Do a wget for direct tarball from here , instead the complex recursive wget. For Ex: wget http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest/linux-x86_64/en-US/firefox-18.0.2.tar.bz2 So, All done? Nopes, Now we can't run either of the browsers as we lack X11 server which does graphics operations & screen outputing. As our envir

Backbone JS + Chrome App [manifest version 2]

Hello World!!, YAJSBP :) QUOTE: Getting to know a library or a technology is pretty easy, but things get reversed when you want to apply the same which you felt you knew :) In this blog post I'll take you through some integration challenges I faced while developing a chrome app along with backbonejs So, I got to know about this guy Backbone.js an year before at jsFoo 2011. The moment I noticed him, I visited his birthplace and got an overview of him. Then I felt that I could claim I know backbone.js. Later realised it was too early to say that. An year after I decided to try this guy and started developing a chrome app[ Features Recorder ]. Then I faced the following small challenges[on integerating backbone with chrome app] which I solved my own way :P Problem: 1 Chrome App manifest version 2 doesn't allow eval or new Function Error: Uncaught Error: Code generation from strings disallowed for this context Take a look at Chrome app Content Security Policy Why