Skip to main content

Posts

Important career and life advice

Sometimes the route to happiness depends more on what you  don't  do. Flickr Creative Commons Happiness--in your business life and your personal life--is often a matter of subtraction, not addition. Consider, for example, what happens when you  stop  doing the following 10 things: 1. Blaming. People make mistakes. Employees don't meet your expectations. Vendors don't deliver on time. So you blame them for your problems. But you're also to blame. Maybe you didn't provide enough training. Maybe you didn't build in enough of a buffer. Maybe you asked too much, too soon. Taking responsibility when things go wrong instead of blaming others isn't masochistic, it's empowering--because then you focus on doing things better or smarter next time. And when you get better or smarter, you also get happier. 2. Impressing. No one likes you for your clothes, your car, your possessions, your title, or your accomplishments. Those are all "things." People may ...

fight...

I don't want just the fight of words, I want ideas to collide for creation of better ones. I don't want just the arrows of definitions and illustrations to be shot for nothing of any worth. Everything should have a meaning, a meaning that is intended.

Cleaning Parsing and Extracting with Tika

I normally used htmlCleaner or jsoup for parsing and cleaning. Also have tried Boilerpipe, but wasn't satisfied for various reasons. These all have their pros and cons and one of thesse can be choosen as per need of application. Got a chance to try Tika by apache and it's very good at parsing and cleaning hmtml, scripts. Apart from this it can also format many other formats like PDF, DOC, ODF, etc. Also solr tika for all these tasks, so being in sync with solr will be more appropriate if something is being done on top of the solr. know more about tika parser :  http://tika.apache.org/   [Logs for myself  :) ]

Dairy and Milk related schemes

http://nabard.org/deds_brochure.asp  : DAIRY ENTREPRENEURSHIP DEVELOPMENT SCHEME - SPONSORED BY GoI   Dairy and Poultry Venture capital fund launched in 2005-06 was segregated into Dairy and Poultry Venture Capital Funds during the year 2009-10. The mode of implementation of Dairy Venture Capital Fund is changed from interest free loan to capital subsidy and a revised scheme Dairy Entrepreneurship Development Scheme (DEDS) has come into effect from 1 September 2010   Objectives To promote setting up of modern dairy farms for production of clean milk To encourage heifer calf rearing thereby conserve good breeding stock To bring structural changes in the unorganized sector so that initial processing of milk can be taken up at the village level itself. To bring about upgradation of quality and traditional technology to handle milk on a commercial scale To generate self employment and provide infrastructure mainly for unorganized sector..   Activitie...

प्रत्येक क्षणाचा पिक्झेल न पिक्झेल

कितीही नको म्हंटले तरी आठवणी पुन्हा समोर येतातच. डोक्यात चाललेलं सगळ बाहेर काढून पुन्हा आपला प्रस्थ आत अस काही मांडतात की आठवणींची आणि डोक्यातल्या जागेची इंटरसेक्शन घेतली तरी ती त्या दोघांच्याही युनियन इतकीच भरते आणि ते होवून ही अजून मन सुद्धा गच्च भरलेले असते. आजही तसेच झाले. अगदीच अचानक, त्याला आज तिची आठवण झाली. मागे पुढे काहीच संदर्भ नसतांना. दिवसभर बड-बड करून थकलेला तो सायंकाळी अचानकच शांत झाला. लोकांच्या गर्दीतून दूर जाऊन बसला, विचार करत. जोरात निश्वास सोडत. पुन्हा विचार करत. अस खूप वेळ चालू होत. चेहरा अगदीच मलूल. कुणी बघितल तर, रडेल हा अचानक, असच म्हणेल. त्याच्या डोळ्या समोरून ती सगळी सरकत होती अगदी चित्रपटाच्या फिल्म सारखी एका एका क्षणाने. ती हसतांना. ती रुसतांना. ती लाडात आलेली असतांना. सगळे हाव-भाव तिचे अगदी स्पष्ट आणि मोठ्या रेसोल्युशन मध्ये समोर येत होते. तो अगदी विसरलाच होता तिला. पण मग हे काय अचानक? कारण एखादा माणूस कुणाला अगदीच विसरला असेल तर आठवून आठवून ही त्या व्यक्तीचा चेहरा त्याला निट आठवत नसतो. पण मग इथे तर अगदी डोळ्यासमोर प्रत्येक क्षणाचा पिक्झेल न पिक्झेल स्पष्ट ...

White space character not being removed by java trim()

Java String's trim() functions trims only white spaces defined in ASCII. Others are not trimmed. and when printing those characters in the string you will find value as 160.           char c = str.charAt(0);         int val = (int) c;         System.out.println("The char:"+val+":"); output:  The char:160: Unicode equivalent:  \\u00A0 So we will need a unicode compatible method for trimming this. Some indicate a way to do it by using some google library : http://code.google.com/p/guava-libraries/ Custom Solution: boolean isWhiteSpace (String word) {    if(word.replaceAll("\\u00A0","").length() < 1){             return true;         } } And then you can decide on removing it from processing.