Being flexible does not help always. Thinking as if Kisor became so pessimist, not exactly I'm just making an adjustment in the trade-off point. I decided to be little rigid to make myself more efficient and make better use of resources. Here I remember one more point; people feel you are important when you reject them rather when you accept. A better trade-off between flexibility and rigidity is needed when you are going to lead/manage people, because the decision affects all the people in team not just you. The common goal is always more important than any individual contributor.
I have recently read two books FIRE SOMEONE TODAY and iCon which advocates this kind of philosophy.
Monday, July 26, 2010
Wednesday, February 17, 2010
"Inline decision making" is unproductive
"Inline decision making" is a new phrase but self explaining, does not need further explanation. And this is the reason for my countless pending projects. Measuring the performance, progress and return on investment etc are good, when under certain limit, these will help in planing and making decisions to reach the deadline with available resource and time. Its better to have some milestones to, that will give opportunities for faultfinding and decision making. Act for the sake of service without consideration for the results as Bhagavad Gita says, however forgetting about the milestones and deadline will send us back to the age of Bhagavad Gita, be careful. I was a bit addicted to plan for the result, and did not do anything except procrastinating, finding reason for delay and planing again, this was an infinite loop, now I terminated it abruptly.
Sunday, October 25, 2009
Fixed Record file parser
/**
* This functions takes one line of fixed record file as sting and returns
* array of fields
*
* @author Kisor Biswal
* @param string
* @return
*/
private String[] splitter(String string) {
// Lets get the string by space
String[] subStrings = string.split(" ");
// Oh we have to consider the the spaces inside, Okay no problem we will
// joint these back
List finalResult = new ArrayList();
List tempStrings = new ArrayList();
boolean isFirst = false;
for (String s : subStrings) {
// Do the string contain double quote?
if (s.contains("\"")) {
// Yes, Lets check if first time
if (!isFirst) {
// Yes, add the sting to temp list and go ahead
tempStrings.add(s);
isFirst = true;
} else {
// No, Ok now time to concatenate all temp strings and
// append to final result list
tempStrings.add(s);
StringBuffer buffer = new StringBuffer();
for (String ts : tempStrings) {
buffer.append(ts);
// Put space back
if (!ts.endsWith("\"")) {
buffer.append(" ");
}
}
finalResult.add(buffer.toString().replace("\"", ""));
// Now just toggle the
isFirst = false;
}
} else if (isFirst) {
// Yes, add the sting to temp list and go ahead
tempStrings.add(s);
} else {
finalResult.add(s);
}
}
return finalResult.toArray(new String[finalResult.size()]);
}
* This functions takes one line of fixed record file as sting and returns
* array of fields
*
* @author Kisor Biswal
* @param string
* @return
*/
private String[] splitter(String string) {
// Lets get the string by space
String[] subStrings = string.split(" ");
// Oh we have to consider the the spaces inside, Okay no problem we will
// joint these back
List
List
boolean isFirst = false;
for (String s : subStrings) {
// Do the string contain double quote?
if (s.contains("\"")) {
// Yes, Lets check if first time
if (!isFirst) {
// Yes, add the sting to temp list and go ahead
tempStrings.add(s);
isFirst = true;
} else {
// No, Ok now time to concatenate all temp strings and
// append to final result list
tempStrings.add(s);
StringBuffer buffer = new StringBuffer();
for (String ts : tempStrings) {
buffer.append(ts);
// Put space back
if (!ts.endsWith("\"")) {
buffer.append(" ");
}
}
finalResult.add(buffer.toString().replace("\"", ""));
// Now just toggle the
isFirst = false;
}
} else if (isFirst) {
// Yes, add the sting to temp list and go ahead
tempStrings.add(s);
} else {
finalResult.add(s);
}
}
return finalResult.toArray(new String[finalResult.size()]);
}
Labels:
coding,
Fixed Record file parser,
Flat File,
java,
parser
Friday, August 21, 2009
PWC6033: Unable to compile class for JSP
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:105)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:924)
org.apache.jasper.JasperException: PWC6033: Unable to compile class for JSP
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:107)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:280)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:347)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:400)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:344)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:477)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:371)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:491)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:367)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:268)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
at org.mortbay.jetty.servlet.DefaultServlet.doGet(DefaultServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
SOLUTION worked for me
adding tools.jar(/usr/lib/jvm/java-6-sun-1.6.0.14/lib/tools.jar) to class path.
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:105)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:924)
org.apache.jasper.JasperException: PWC6033: Unable to compile class for JSP
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:107)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:280)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:347)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:400)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:344)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:477)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:371)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:491)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:367)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:268)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
at org.mortbay.jetty.servlet.DefaultServlet.doGet(DefaultServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
SOLUTION worked for me
adding tools.jar(/usr/lib/jvm/java-6-sun-1.6.0.14/lib/tools.jar) to class path.
Saturday, August 15, 2009
I was scared of mask wearing people, Swine Flu
Image by Dan Queiroz via Flickr
Yesterday I was going to Paradise circle in a cab from Dr. A.S Rao Nagar, near Nadermet a group of people get into the same cab. I was scared of them as they were following everything whatever I have read in newspaper, wearing mask and drinking water frequently. They all belong to same family; children, father and mother. First I thought better to get down and go by hiring an auto, later I thought its better to ask them. So I asked "Are you all scared of swine flu or......?". The answer was "its better to be proactive, right?". This gave me enough confidence to not to get down from the cab, still I was worried and was trying to breath fresh air from the window. Came back by auto to avoid mask wearing people :).
Labels:
Drinking water,
Family,
Health,
Swine influenza,
Viral
Thursday, July 23, 2009
Programming is not mere use of left brain
Image via WikipediaSo we should give a chance to right brain when the problem is taking longer than usual time. And should think beyond the existing technologies to solve the problems we have, at least once a week if more is not feasible.
Sunday, June 14, 2009
Zemanta plugin
Image by Ed Yourdon via Flickr
In single sentence I liked it!
Oh it made me edit the post to write that, it writes the CSS also, see how the image is aligned. I promise I did not do anything in CSS.
Labels:
Arts,
Blog,
Google,
Kids and Teens,
Promotion,
Web Design and Development,
Writers Resources,
Zemanta
Monday, April 6, 2009
Practice makes DMA of Skills
What I mean by knowledge is understanding and remembering how things work, practice is process of finding the most efficient(the efficient way is not same for all)way of using the acquired knowledge. Skill is the perfect blend of knowledge and practice. During the process of acquiring a new skill our brain uses all most all of neurons and create new connections between the neurons, consequently we feel so busy and cant do anything simultaneously. But practice make everything simple, which decreases the number of neurons used for doing a particular task. As we master the skill, number of neurons used decreases and released neurons can be used for some other task. Once something is practiced perfectly it works like DMA without active involvement of brain. Without involvement of brain it will be faster.
Thursday, February 5, 2009
Escaping escalates problems
Never neglect a mistake. You may escape from the problem when you noticed it first time, because it is not grown to such a extent that will scare you. But I'm sure, later you will not be happy because you managed to escape from the problem, rather you'll repent because you gave a chance to the problem to grow beyond your ability to manage. Everything is predictable up-to the extent of requirement. Now I'm writing this because, the mistake I did today afternoon gave me an opportunity and enough time to write, now time is 1.59am:).
Learning from mistakes is good, but learning to avoid mistake is better.
Learning from mistakes is good, but learning to avoid mistake is better.
Sunday, November 9, 2008
Instinct, the most powerful tool
"Human instinct is the most powerful tool to convert dream into reality"
Instincts are precious which can neither be bought in millions of Dollar nor be taught. In contrast to the prior sentence instincts are evolving in everyone's mind to get the things what they really want without any monetary investment. Only investment to get such a powerful tool is clear vision of goal and time to think of it. One more important thing: the concerned person should be dared enough to follow the instincts which may force him to go beyond the prevalent and well tested success formulae. This is the most powerful and cheapest tool for converting dreams into reality.
Hope every one will take advantage of this tool and no one will have unfulfilled dream .............
Instincts are precious which can neither be bought in millions of Dollar nor be taught. In contrast to the prior sentence instincts are evolving in everyone's mind to get the things what they really want without any monetary investment. Only investment to get such a powerful tool is clear vision of goal and time to think of it. One more important thing: the concerned person should be dared enough to follow the instincts which may force him to go beyond the prevalent and well tested success formulae. This is the most powerful and cheapest tool for converting dreams into reality.
Hope every one will take advantage of this tool and no one will have unfulfilled dream .............
Wednesday, September 24, 2008
Probability or Luck?
What determine our future? The result we are getting are backed by our past action and decisions or because of luck? Luck is best excuse for people who just lost. But I believe: those who are blaming luck for their loss are forced to believe the reason behind it later, the reason may be beyond his control or unexpected. For sure every action yields some result, we may tell the bad results are caused by the forces(reasons) went against our action. I think we can control our luck; make it good or better(increase the probability) by being more cautious, trying repeatedly(taking more chances) and avoiding mistakes.
There is saying "God never do the same mistake". But according to me who never do the same is God. Answer to that who, why not you, me or anyone else not repeating mistakes.
What do you tell now our fate depends on us or god?????????
There is saying "God never do the same mistake". But according to me who never do the same is God. Answer to that who, why not you, me or anyone else not repeating mistakes.
What do you tell now our fate depends on us or god?????????
Thursday, September 4, 2008
Friday, August 29, 2008
Curiosity
Doing something like there is no tomorrow. While doing that forget everything, even own existence. Is it curiosity? Does it help us in doing something in time and in a desired way? As far as I can think It helps, but in doing the only thing for which we are curious, and will make the curious person out of schedule with respect to other tasks, as curiosity has no time(for me it always comes late). And it's also clear to me when we are doing something curiously(with full presence of body and mind) mysteries reveal themselves, so we need less time to solve the problems. Anxiety is exact reverse. So to use curiosity as weapon,time is need to be managed properly and we need to create curiosity instead of waiting it to come,this may be difficult however not impossible(nothing is impossible).Curiosity is a feelings in Human being not in machine. Don't try to prove it false..... as it's also possible.
Subscribe to:
Posts (Atom)
![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=e68936d8-990c-4333-8a49-87c9f38f8df4)
![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=ca2a7f8c-367c-4228-8971-5bab15060962)
![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=48b27527-6cb1-4867-b5c9-2197102fe006)