Skip to main content

Posts

sample data for IBM Machine Data Accelerator and apache log sample

Days back when I was trying to do a tutorial on IBM Machine Data Accelerator, I was unable to download the required sample data for it. It was because that IBM server was down for maintanence. I thought maybe I can host some sample data which might be useful at times. Here are the links for the same: Code and Data for IBM Machine Data Accelerator Apache console logs

TVF Reacts to AIB Knockout - #NoCountryForFunnyMen

This video is for those who thought that AIB has crossed limits or demolished our culture and all crap notes they came up with. You have your freedom to view or not to but there is no where they made you watch it forcefully and made you offended. How can you be offended when YouTube is fine with their video and YouTube didn't play that video automatically. You chose to play it and get what you want of it. I don't say that the video is great or it is not great. I find it difficult to believe that people actually filed FIR against it. That is what saddens me,

Happy new year

I just wanted to start this with the saying, " Happy new year ." But just go back and realize what is it with the saying that almost each and everyone says to each other even though they don't know you or don't even care who you are and how you are for the rest of the year . I may sound skeptical in the harmony that others try to bring with you on this day, on this special day that comes once in a year but the fact that it is only for one day disappoints me and makes me think beyond the routines. I would only want you to do things that you would want to do on this day which you might find excuses for doing on all other days. You might clean your room and arrange things in your shelves (dusting included). You might find yourself going to your balcony and enjoy your surroundings by closing all your electrical gadgets for the evening. Meet your friend whose meet you are postponing for weeks together due to your works and appointment...

Modern Mahabharatha-I

Times are those when politicians are hungry for power and would do anything in order to get or maintain their positions. It is matter of ego for them. There are no villains or heroes in this era. Welcome to the modern Mahabharata. Arjun and Dheeraj are the upcoming politicians who are sons of the leading politicians. Being studied in same college, there is always a rift between them from long time. Dheeraj is a stud and excels in cultural activities and has been a charm in his profile while Arjun is a sports person who is extremely trained athlete. Both have a huge following in the college and the competition between them started in the period when both of them wanted to become college presidents and followed till the elections in the city for member of legislative assembly (M.L.A). Both of them have started to make their propaganda in the city. Arjun, being a sports fan have promised to build a stadium with state of arts facility in the outskirts of the city and has b...

Setup Cordova

Installing Cordova and setting it up for development. Step 1: Add JDK & JRE to Environment variable path Step 2: Add android sdk tools and platform tools to Environment Variables Step 3: Install Node http://nodejs.org/ Step 4: Go to Command prompt, type > npm (Check whether it exists) > node (Check whether it exists) Step 5: Install ANT http://ant.apache.org/manual/install.html Add ant path to environment variable as given in its documentation Step 6: Install Cordova Go to Command prompt, type > npm install -g cordova This will install cordova in your system. Next Steps  Refer  http://cordova.apache.org/docs/en/4.0.0/guide_cli_index.md.html#The%20Command-Line%20Interface Step 7 : To install plugins, install git if needed Check : Open cmd and check the result matches. SNO Command Result 1 Ant Build.xml not found 2 Npm –v 1.4.28 or whate...

Making a subgrid inside a enhanced grid using dojo

What I want to achieve is a subgrid within an enhanced grid using dojo just like a Jquery data table. So I followed these steps to achieve it. Create an enhanced grid in dojo using dojox/grid/EnhancedGrid. Create a dojo/data/ItemFileWriteStore from Json data which is of the format {items:[{"key":"value","subgrid":{"child":"value"}}]} Create a layout which has onBeforeRow callback which is called before the creation of any row in the grid so that we can hide the child row. The first column of the row should be a +/- image which upon clicking should show the child row. Finally the output would be something like Demo and code is @  jsFiddle

Debugging dojo

Recently I had an issue where I always get 3 as callback whenever I require a custom module. require(["modules/headerWidget"],function(header){ console.log(header); }); My headerWidget is something like this: require([ "dojo/_base/declare" , "dijit/_WidgetBase", "dijit/_TemplatedMixin" ], function(declare, _WidgetBase, _TemplatedMixin) { return declare("headerWidget",[ _WidgetBase, _TemplatedMixin ],{ templateString : <div></div> , }); }); Console always used to display only 3. I wondered as to why and here is the solution for that. The solution is to give the custom widget as module. define ([ "dojo/_base/declare" , "dijit/_WidgetBase", "dijit/_TemplatedMixin" ], function(declare, _WidgetBase, _TemplatedMixin) { return declare("headerWidget",[ _WidgetB...