Skip to main content

Posts

Showing posts from 2014

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 whatever versi

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

Loading dojo in the project

In order to load Dojo, we can use CDN version or the downloaded package from  Dojo official site  and refer the src to Dojo package.

Troubleshooting integrating WebSphere Portal with Facebook

Error : EJPAK0060W The system received an external identifier which is not associated with a user identity within the WebSphere Portal user registry. Please associate the remote identity with a valid local user identity first. Reason:  It is because that an external user doesn't have an account with our local portal user. What you can do here is either you can associate an existing> user with that Facebook user or  you can turn on transient users setting to enable to third party user login without account in portal. Check that the User account repository's current realm definition is Federated repositories and there is a base entry "o=transparent". If problem exists in configuring the transient users then follow the solution provided. Solution : If you are sure that you have followed every step from here , then it is a problem with your transient user. When you run the command “ ConfigEngine.bat enable-transient-user -DWasUserId=wpsadmin -DWasPassw

Life in Chennai

This post that I am going to write is not a travel trip. It is going to be strictly for those who are going to come Chennai for a living and plotted according to my experiences . Chennai is the city which has fascinated me with its travel mode all around to important places. Train route is possible for the major places. While one can go to important places in AC metro buses and good deluxe buses, there is a bus always from anywhere to anywhere. The only thing that irritates me is the negligible buses after 10 in the night. Yes, Chennai doesn’t have a night life . It halts mostly after 10 in the night. But I am having a good weekends (day time I mean) with malls , beaches , temples , cricket and sleep in home. Though it is sultry in the days with high humidity you can get coconuts all around to quench the thirst and beat the heat (at nominal prices). Autos are the nightmare (as it can be in any city). It is quite tough to bargain with them. They normally mock

One of the best Telugu short film

I was actually thinking about the short films which made my day and it struck to me this short film which is not only great in its story but also the execution. It is beautifully crafted to give the correct sense of humor. I laughed like anything not only the first time I have seen it but for the second third fourth and even the 1000 th time I have seen it. It is very close to normal day happening where a boy meets a girl by Facebook. Ah, I won’t tell the rest of the story. Please do watch it when you have free time. The actor is Raj Tarun (@ facebook profile ) & actress is Chandini ( @facebook_profile )  P.S. : This blog neither endorses nor a PR towards  Mr. Productions . It is just out of sheer interest and love towards the short film that made me to put up this.

Redirection in javascript

How Page Re-direction works ? Example 1: This is very simple to do a page redirect using JavaScript at client side. To redirect your site visitors to a new page, you just need to add a line in your head section as follows: <head> <script type="text/javascript"> <!-- window.location="http://www.newlocation.com"; --> </script> </head> To understand it in better way you can  Try it yourself . Example 2: You can show an appropriate message to your site visitors before redirecting them to a new page. This would need a bit time delay to load a new page. Following is the simple example to implement the same: <head> <script type="text/javascript"> <!-- function Redirect() { window.location="http://www.newlocation.com"; } document.write("You will be redirected to main page in 10 sec."); setTimeout('Redirect()', 10000); //--> </script> </head> Here 

Where is my session timeout error jsp page?

It is very common to encounter the session time-out page when using IBM WebSphere portal while developing. Most times there would be a client requirement to modify the way things are done automatically. While in the last post  I have mentioned about how to change the session time-out value, I am going to talk about modifying the session time-out error page.

Implicit objects in JSP page

By default  page, request, session and application  objects are available to JSP pages. So you can access then using EL syntax. And following table shows IMPLICIT objects available to EL. Implicit object Description 1.      pageScope Scoped variables from page scope 2.      requestScope Scoped variables from request scope 3.      sessionScope Scoped variables from session scope 4.      applicationScope Scoped variables from application scope 5.      param Request parameters as strings 6.      paramValues Request parameters as collections of strings 7.      header HTTP request headers as strings 8.      headerValues HTTP request headers as collections of strings 9.      initParam Context - initialization parameters 10. cookie Cookie values 11.   pageContext The JSP PageContext object for the current page So session and sessionScope are same but differs in context they are used.M

Basic HTML templates

I have the need to use a basic template for a html page and it is really tiresome for me to type the same thing every time. Hence I came up with this template to copy and paste in my editor for quick process.

College to Corporate

The transition from college to corporate is drastic and expanded .  It has changed me the way I behave and the opinions I used to have. There are different corporate cultures and I would like to give only that I have experienced .

General tips for the life

Some tricks that might be helpful If you have to pay a company to work for them, it's a scam . Walk away. When composing a professional e-mail , do not put in the recipient's e-mail address until you have typed the entire e-mail. If you're dropping somebody off at their home, make sure that they are able to get in before you drive away.

General Tips for people having computer

Sometimes there might be a situation for you when you needed a shortcut but you might have not known it at that moment. So here are my few tips for doing better with PC. You can open your PDF files in your browser . There might a situation when you want to open a PDF file in a virtual machine and it doesn't have a PDF reader. Almost all operating systems will have a built-in browser or a browser of your choice, you can simply rely on it. Editing a word document is easy online . When your virtual machine or host machine itself doesn't have a word editor or any spreadsheet editor, you can simply edit it online using  Microsoft Word 2013  or  Google docs . You have to login for that to happen and an active internet connection.You have to upload a word document to  OneDrive  for editing using Microsoft Word online. In order to have better startup time when starting the PC, you should have a check on the startup programs. To get better understanding of this, check  Ho

How to do good programming ?

"If computer programming is to become an important part of computer research and development, a transition of programming from an art to a disciplined science must be effected." Computer scientists are taught to program properly, just like linguists are taught how to write literary texts. However, not all computer scientists are programmers , just like not all linguists are writers, although most of us program regularly. For some reason, many programmers seem to think their role is to write code that makes things work. It’s not. Your job is to solve a problem with code in the most elegant way, such that your solution is easy to adapt, modify and reuse . Just like “the grass is green and the sky blue” is not literature, although it might perfectly describe the environment, coding something that just works is not programming. It’s fiddling. Most people do the wrong thing correctly and think that it is correct. Here is the post which illuminates such things and guide

Can our government print as many as currency notes it wants?

Can our government print as many as currency notes it wants? No . Our government cannot print as many as currency notes to reduce its economic deficiency. Indian government is different from other governments. If you observe our currency notes, there is something as, “ I promise to pay the bearer the sum of fifty rupees ” for a fifty rupee note. This states that at any point of time if anyone doesn't want this paper note then the government is liable to pay equivalent resource.

For all overreacting feminists, Please stop blaming all MEN.

This is one of a post that I have recently given a read on the Internet shared by The Logical Indian page on Facebook. While it says only facts, there are two faces for any coin. I just comment with the boy’s side because it is purely written by girl (another face of coin).

How to burn files to a CD or DVD using windows 7/8

CD Discs can be used in any computer with a CD or DVD drive, whereas DVD discs can only be read by a computer with a DVD drive installed. Most modern computers have a dual purpose drive installed which is capable of reading and writing to both CD and DVD discs.

CodesnGears

CodesnGears Place : Avnet services / Ascendant Technologies, Chennai Time and Date : 20:30 21 st February 2014 to 09:30 23 rd February 2014 Website : http://www.codesngears.com/ Description : Okay, let me get straight to the point about how the event just went and what is the core feature of the hackathon conducted. Firstly this is a 36 hour event where everything is provided right at the office. Ascendant Tech has good space for this event within the office and we have been provided with all the amenities. I have a solid team on my side which is prepared for the battle when the event details are announced to us through HR team. The students who are selected to Ascendant have called to know their interest in participating. We all said yes and we had a couple of meeting about the kind of project that has to be selected and an abstract has to submitted so that a review will be done by the managers at Ascendant and a decision will be taken about selecting.