Sunday, 29 July 2012

Coding Week 7: Building Entry Point

Features which make everyone crazy about any building, structure, Code or any things is its first impression. For a building Entrance, main door and outer look plays a role, for us our body outer looks, presentation. I don't mean to say we should judge person or building by these characteristics only but saying they are mostly the last impression also isn't wrong too.


So for any organization, person,Coding making first impress worth while is the biggest aim.So is/was for me.


This week was about designing, building or adjust the outer most module Query parser for my project.As any user except a developer wont see bi-gram implementation in index what he will experience in bi-gram is Query parsed with bi-grams.So for me this is Entrance Point and exiting module to code.


Query Parser module implementation started with understanding the current code and code was very difficult and need a lot of patience.But i had a savior Sehaj Singh Kalra.He is working on improving the Query Parser this year as a GSOC project.He gave me the docs he created as part of project.And those docs are the most useful or worth reading docs in my life.Thanks for such a great help Sehaj.


I tried my hand on the code with help of ssk's docs and learned where i need to attack but still there were some grey areas.In my review meeting i decided to discuss these issues.Dan Colish,James Aylett and myself have discussion on parser and decided to do the easiest changes and move forward to other module in the evaluation meeting.Aim was to do minimal changes and move forward to evaluation module and then making changes will make sense as we will know does this change benefit us in the module.


I want to share one of my experience with parth(mentor @ xapian).Once i was working in same lab with parth and discussion one of my project with him. He Stated make a module or script with which you can play and see numerical results stating "It's always easy if you can see you result in numbers and it motivates you"(not exact but it carry the gist of what he said).So we decided to build this evaluation module and later improve all of our module using result of evaluation module.


This week we made changes to NEAR, PHRASE, ADJ, GROUP queries to include the bi-gram in them and re-factored and adjusted Weighting scheme UnigramLMWeight to LMWeight. LMWeight handles uni-gram and bi-gram Language model based on parameters.And obviously buckleup for evaluation module.

Coding Week 5 & 6: Cleaning the Mess

At this moment of time i completed the work of back-end to store bi-gram and retrieving them for use.But for a good software best thing is to make it work correctly and expectantly.As a statement in software world its said "Actual work starts when you complete implementation" .This  worked well in my GSOC project too.
Generally any piece of software have set of pre-made test which are kept or written to prevent unusual and check behavior of code.I have run these test a lot of test were Failing in my code.So its time to fix these "Pain in Ass bugs".Most of the time the are so common bugs that you tend to forget these every time you check code or don't expect this to happen.

These Weeks were mostly spent sleeping with these Bugs and Discussion on Comments by my mentor and Watching "Burn Notice"(One of Awesome Series i have seen).

In week 6 my mentor(jaylett) commented on my work and i was totally impressed by his way of finding deep problems which are generally overlooked and learned a lot from each and every of his comments.So Weeks were awesome as mentor comments taught me a lot.

Saturday, 28 July 2012

Confession for Week 5 to Week 9(Not Blogging)

It's Week 10th but i proudly want to write Week 5th Post as its better late than Never. After appreciation from Dan,I should have put in more effort but i kind of became reluctant.In past days few days ruined my routine and started sleeping at bad time,watching series and doing unnecessary things along with work. And Just barely managed to complete GSOC Work to be frank.Really Felt and feel bad about that :( . One Morning i was sleeping phrase  "Let it Go" bedazzled me.
 One more even  which left me with similar impression was watching WeekIn startup
 program of Jacob calacanis.In news section he had discussion  about facebook and 
bars .And i think u know what it would be ;) for those who don't "Its Just Waste of time".

That was and this is Moment of Eureka.I plan to be little more careful about what i do 
and how i don't.I will use Should i "Let it Go" to evoke my self consciousness to 
take control of my.

Blabbering:

Almost every second of the time we run with pace of our life (Slow or Fast) and don't 
take time to think what we do or not think too seriously to let our self consciousness 
take possession of the situation.
Kind of we know i shouldn't do this.
but
we restrain self consciousness to take possession.

This happens with me very often,So having a helper like "Let it Go" or 
anything which bedazzled you is best to help yourself where you are the culpable.