Monday, August 31, 2009

Identifying a loss ?


Off late, I have come to the sad realization that I dont have much free-time anymore.
Dont get me wrong, I do relax, watch the occasional movie and sleep just fine ... but the sort of sustained hacking I could do earlier, the really long hours spent in playing some game, following up movies from a director/actor, or even chipping away at the huge pile of movies I own - that is "lost".

Cant even remember when was the last time I finished a solo game, or a book - did a part time project ... been almost 15 months since I even touched my chess program !



Things need to change, and for the better ... hopefully I will be able to better manage time soon !

5 Comments:

Blogger ~~_§þâr†â¢ú§_~~ said...

Feel you brother :(

8/31/2009 06:19:00 PM  
Blogger Moonjungle said...

So now you are tight, eh?

9/01/2009 11:36:00 AM  
Anonymous Anonymous said...

what abt the chess engine?

Charlie

9/12/2009 07:20:00 AM  
Blogger Mridul said...

Dont get too much time to do chess ... though I am going to start again soon !

9/12/2009 02:57:00 PM  
Anonymous Anonymous said...

Did you start it yet?

Charlie

10/05/2009 07:41:00 PM  

Post a Comment

Links to this post:

Create a Link

<< Home

Wednesday, August 12, 2009

Vuze rocks !!

As some of you might know, I have been trying to get audio/video from my comp onto my tv - except I dont want to clutter the house with wires.


I checked out wireless HDMI, and even contemplated writing something over wifi to do streaming ... but gave up considering the cost and other aspects of it (not to mention, a naive impl [which is what I can afford to do] will require quite a bit of bandwidth !)


Next logical option was to try to use my XBox 360 as an extender and get to stream through that ... except for some brain dead asinine reason Microsoft restricts what can be played - DRM worries I am told, bunch of MPAA lapdogs ! Bottomline, I could not use the Media Center which comes with Vista for this purpose. I did not find any viable option in Linux to do the same.


Next up, I tried to use one of those transcoders available online, fiddled around with a bunch of them ... and finally gave up after a few sleepless nights.


And there I was, pretty dejected about my efforts - all the reconfig for nothing ... and then I notice the innocous button 'devices' in Vuze (formerly Azureus) yesterday night. Configured it, and voila, it works beautifully !!
Considering all the effort I had gone through until that moment, it was almost anti-climatic how easy it was to get things to work ! It supports a transcoder (as a plugin) which does on-demand conversion.
The few videos I tried - jitter free sound, and crystal clear video !
Check this link out for more info - in my opinion, it is a seriously cool piece of effort ... Give it a whirl people :-)

1 Comments:

Blogger AK said...

well, congrats man!.. So ripping through all those blue ray discs and high def dwnlds eh?

8/13/2009 03:43:00 PM  

Post a Comment

Links to this post:

Create a Link

<< Home

Sunday, July 26, 2009

uTv World Movies

I have been watching it for a while now ... but off late, I find that when I am watching tv, it is mostly this channel (and Zee Movies to lesser extent).
It has 'officially' become my fav channel !

2 Comments:

Blogger /&lt;0USIK said...

Yes you get exposed to a lot of different kind of movies through UTV. I too like it.

7/27/2009 01:36:00 PM  
Anonymous Anonymous said...

Good to see you back!!!

- M K Kabir

7/28/2009 10:30:00 AM  

Post a Comment

Links to this post:

Create a Link

<< Home

Wednesday, April 29, 2009

Interesting week ... and it is only wed !

It all started with a small observation last friday night ... was randomly sampling some data I had generated and noticed a mismatch : was too pissed, so just logged out and did not check anything till Sunday.

So come Sunday and the week starts off with one potential bug, one 'crazy idea' in the mail, a new clarification issue and one pending task. Being the procrastinator that I am, and because the idea was really quite 'crazy' and interesting, I started off with that and discussed/designed/hacked away until we ended up with something pretty neat - and which might become something quite useful for our future projects : was damn happy & cocky ... what could go wrong now ! oh boy - the shitstorm waiting for me blindsided me completely.

For one, the clarification issue, though kind of braindead and trivial from strict URI/HTTP pov ended up being quite messy - normal conventions on the web interacting with slightly long extraction pipeline combining multiple 'methods' and existing yahoo infrastructure ... kicked up quite a bit of dust : though after two days, I hope it is settled now !


In the middle of all this, we still have our apparently "innocuous" bug - the star of the show, revealed only later. The reason I thought it was harmless was 'cos I had fixed something similar - multiple times actually in past because of pig bugs & some side effects of it. The basic problem is something like this -
You start with N entities, and generate candidates each; and features for each entity,candidate pair. The features are generated as multiple vertically partitioned files - like :
file1 having (id, candidate, feature1_0, feature1_1);
file2 having (id, candidate, feature2);
and so on.
So we combine the results finally as a join on (id, candidate) to generate
output_file having (id, candidate, feature1_0, feature1_1 feature2, ....)
(Note, this is done with data which can be webscale - so cant use DB; and number of 'tables' can be quite large).

To give some context, the project uses pig - which makes use of hadoop which is running on a fairly large cluster (1k+ nodes) - though you dont use the whole cluster for all your jobs, just how much you need.


Something as simple as this, ended up with hitting quite a lot of parsing bugs & unexpected pipeline corner cases in pig - so the number of workarounds in our scripts & code was already pretty high.


Given this past history, I was expecting to be able to 'solve' it reasonably quick - heck, I had done it three times already, cant be tough can it ?! Inspection, careful checking, etc lead to nothing.
Ok, good old fashioned debugging - let us look at data generated at each step (thankfully, we 'need' to checkpoint output in pipeline).
So go through the snapshots in the pipeline, and narrow down to a small-ish section where the issue could be present after a few hours - generate a small snippet just to test that and execute it; and off to bed.

14 hours later, what had initially taken about an hour on 50 machines (the full pipeline) is still chugging along at 10% completion on the snippet ! This cant be right, for obvious reasons ...
A few retries later, it is the same ... causing me to attempt to move to another cluster; with no success with the move (that one is too 'full').

In retrospect, it seems I had hit a hadoop bug - and weirdly, others have hit it too - though they just did not seem to notice that their jobs which should take 1 hour to finish was taking 48+ on 100 nodes !

So now we have one hadoop bug, one potential pig/my bug - found a (lucky) workaround for the hadoop issue after more than a few hours of wrangling with the cluster and restarted the jobs ... and now debugging away in earnest.
We hit an interesting issue, paraphrased below :

---
A1 = load input1
A2 = load input2

J1 = join A1 on some_id1, A2 on some_id2;

A3 = load input3
A4 = load input4

result = join A3 on id_1, A4 on id_2, J1 on id1
---

... or something to this effect.
input* to this snippet is fine, but result has only about 30% expected tuples !
So either mucking up the join's (they are outer joins with missing value fills), or a pig pipeline bug ?!
Apparently, a pig pipeline bug - requiring us to store the J1 output into intermediate file and load off it again to 'fix' the issue. By now, it is about 52 hours since start with about 9 hours of sleep (we have a deadline coming up) : and that ended the 'bug'.

So let us recap, a hadoop/grid issue and a pipeline issue - unrelated to eachother, and to our code - hitting us in the same shot ! I would have been happy if there was something, anything, wrong with my code to cause/trigger this ... would have made it feel like it was partly my fault (yes, you do feel this way sometimes too).



So all we now have is the pending task, a really interesting problem and I am going to be so screwed 'cos of it .... as I said, this is just middle of an interesting week !

2 Comments:

Anonymous Anonymous said...

Interesting post.

Rajsekhar Narayan

4/30/2009 01:41:00 AM  
Blogger Moonjungle said...

corrrectt

5/02/2009 09:58:00 PM  

Post a Comment

Links to this post:

Create a Link

<< Home

Monday, March 30, 2009

Google Chrome - no shine !

After insistent pestering by google fanboy friends of mine (yeah, you !), I gave google chrome a whirl for a few months now. After todays crash of about 3 days of browsing state I am finally uninstalling it. Thought I will publish my observations till date (and no, it is not colored by current angry state of mind - this was written a while back :-) )

Some observations :

  • Unstable. Inspite of the supposed claims of stability due to process isolation, etc - I find it crashing way more frequently than firefox ever did (unless you count some of the FF2/early FF3 releases). These fall into two categories:
  1. A single window crash - fairly common, once every couple of days.
  2. The entire browser crashes - couple of times a week.

Which brings us to :
  • Very poor session recovery.
This is absolutely critical requirement - and chrome does a poor job at it - since a couple of years now (more ?) firefox does a pretty good job of session recovery/save-restore from my experience.
In Google chrome, there is no checkpointing of the state possible - so that it can be restored to after browser restarts (from what I saw), neither does it handle crashes gracefully - so having it working for long is not likely.

I have observed restore working in chrome only a very few times (so I know it exists !) - out of the very many crashes I have suffered, restarts I have made.


  • Cool looks are fine, functionality is more important.
"Coolness" is fine - but when you get down to it, a stable and dependable environment which can be customized to your needs is way more important for daily usage. Even simple things like ad-block is not possible in chrome (and you end up with quite a lot of junk getting transferred which you dont need to begin with). Dont get me started about how much I miss grease monkey !
Another example of functionality I miss is the search bar on the top right corner in firefox, where we can add (multiple) search engines : even IE has copied this off late ... unfortunately, nothing of that sort for Chrome.
It does try to pull something similar in the new tab page, but that just doesn't come anywhere close.

Similarly, the "most visited pages" that they copied from Opera (unacknowledged ?) does not seem to make much sense ... looks more like, the pages I had/used to visit initially got ranked way high and they just sit there off late.

  • Pretty bad debugger/page inspection
I dont do much of javascript/xhtml debugging, but when I do need to look at the source/traffic firebug is streets ahead of what chrome comes with.



The good parts of chrome :
  • Fast startup time. It might be useful to casual users who want to lookup something fast.
Startup is pretty fast - particularly since firefox has progressively become slower over time (is it just me ?).
Note that prefetching in OS'es means that subsequent launches of a program would typically be fast so this is usually relevant for first launch - subsequent launches tend to be pretty fast uniformly across browsers.

  • Fast javascript engine.
I have seen others vouch for this, but this is not something I get to 'see'/notice - I dont do javascript games, and I am sure a milliseconds slower response time to a infrequent user interface action would not be noticable by me :-)

3 Comments:

Anonymous Anonymous said...

You just mentioned what I am observing for past few months. For me chrome crashes very frequently. Once it even crashed when I was doing a Credit Card transaction :(
Man thats too scary, luckily, I entered wrong CVV number so nothing happened. Only thing I have seen good about chrome is it's startup time.

Aparup

3/31/2009 05:07:00 PM  
Anonymous Anonymous said...

hmmm I havent seen chrome crash on me much. But I dont really keep my browser open for very long. What I love about chrome is the amazing startup speed. It easily beats Firefox (which is my other browser). The sad thing I guess is many of our office pages dont work on chrome, this sucks.
-- param

4/23/2009 12:59:00 PM  
Anonymous Anonymous said...

Hi Mridul,

I am sorry to be a pest. Is there any possibility that we could have a chat about the chess engine?

Regards,
Daniel Shroff

4/23/2009 08:13:00 PM  

Post a Comment

Links to this post:

Create a Link

<< Home

Monday, March 23, 2009

Go blue !!

Waiting for this order to arrive from amazon :-)

---
Delivery estimate: March 25, 2009 - March 27, 2009
    Shipping estimate: March 23, 2009
  • 1 of: Kung Fu Panda (+BD Live) [Blu-ray]
    Sold by: Amazon.com, LLC
  • 1 of: Dark City (Director's Cut) [Blu-ray]
    Sold by: Amazon.com, LLC
  • 1 of: The Girl Who Leapt Through Time
    Sold by: Amazon.com, LLC
  • 1 of: Avatar - The Last Airbender: The Complete Book 3 Collection
    Sold by: Amazon.com, LLC
  • 1 of: Chocolate [Blu-ray]
    Sold by: Amazon.com, LLC
  • 1 of: Terminator 2: Judgment Day [Blu-ray]
    Sold by: Amazon.com, LLC
  • 1 of: The Terminator [Blu-ray]
    Sold by: Amazon.com, LLC
  • 1 of: House of Flying Daggers [Blu-ray]
    Sold by: Amazon.com, LLC
  • 1 of: Paprika [Blu-ray]
    Sold by: Amazon.com, LLC

6 Comments:

Blogger Eliza said...

rich guy :P

3/24/2009 04:46:00 AM  
Blogger aaditya sood said...

Now I need to borrow the DVDs *and* the player from you :D

3/25/2009 11:31:00 PM  
Blogger Mridul said...

@jaya unfair !

@sood the player is the blueray writer on my comp, so cant borrow it :-D

3/26/2009 12:14:00 PM  
Anonymous Anonymous said...

rich guy indeed

Aparup

3/26/2009 04:18:00 PM  
Blogger Unawoken said...

So, how did you like the movies? Any you recommend? Did you like Paprika? I did

6/11/2009 11:02:00 PM  
Blogger Mridul said...

@vinay
I had already seen paprika, just too bloody brilliant ! The amount of detail is breath-taking.

Still yet to watch all of them - but my general reco would be - if you know a movie has a lot of intricate details (animation, action, does not matter what) - get a blue ray : you appreciate the difference from a dvd only after you see it : breathtaking at times !

6/12/2009 01:38:00 AM  

Post a Comment

Links to this post:

Create a Link

<< Home

Saturday, March 14, 2009

Jon Stewart and Jim Cramer

I regularly watch Daily show online ... but yesterdays episode was something else !
Watch the full interview with Jim Cramer here - it is just too good. I wish there were more interviews of this sort in main stream media. 

IMO there are two kind of journalists - the idiots who know nothing (the usual regulars on tv - about 95% of out there) and the ones who know & understand what the hell is actually happening. We cant expect much from the former other than soundbites after things happen, but when even the latter group (and Jum Cramer is one of them) dont do justice to journalism, then comedians like Jon Stewart seem to be the only way to go !

4 Comments:

Blogger Chiro said...

This post has been removed by a blog administrator.

3/14/2009 09:15:00 AM  
Anonymous Anonymous said...

Stewart is fun and the Daily show is sometimes nice to watch but at the end of the day, it too is part of the controlled dissent system that's the media these days.

It's a popularity contest and an attempt to increase viewership. Not a serious attempt to inform the public about anything. Television has ceased to be that and will almost surely never go back.

3/14/2009 10:17:00 PM  
Anonymous Anonymous said...

While I enjoy watching Cramer every night, one must remember the show is primarily entertainment. The financial networks exist to promote their advertisers financial and investment products. Who would expect them to warn about the credit bubble or coming Washington national debt collapse which will destroy much of the remaining private wealth in America today or what this will do to the dollar, the stock market, bonds, gold or the real estate market?


China is now worried about their dangerous over investment in US Treasury obligations. Washington ’s long-term choice is either repudiation or monetization. For monetization to be effective, the depreciation in the dollar would have to be substantial and this in turn would dramatically raise prices of imports for American consumers which would mean a tremendous drop in foreign imports. Debt monetization would cause more disruption to exporting nations than selective repudiation of Treasury debt.

The Campaign to Cancel the Washington National Debt By 12/22/2013 Constitutional Amendment is starting now in the U.S. See: http://www.facebook.com/group.php?gid=67594690498&ref=ts

Thanks,

Ron with 30 plus years in the investment business and banking industry.

3/14/2009 11:45:00 PM  
Blogger Mridul said...

I think the point of my post, and partly the point of Jon Stewarts attempt (imo) is being missed here in the comments ...

As financial journalists, CNBC the network and its anchors/reporters have a journalistic duty - which is above their responsibilities of making money for their network imo.(perhaps shocking to some ?).
They choose to ignore it ... and therein lies the fault imo. By their silence (whatever be the motive), they were becoming complicit with the fraud being pulled.

This silence could be either due to ignorance and stupidity - in which case, the network is to be avoided; or due to willfully ignoring what was going on (ad-revenue, etc reasons) in which case it is, atleast in my eyes, tantamount to suppressing evidence.



Jon Stewart might have his own reasons for going after CNBC; which are, imo, irrelevant at this point.
The issues he raises are very real and have to be investigated into, and which unfortunately no one in the 'real media' is looking into (iirc).
You could question his methodology, approach, motives, etc ... but we should not forget that he is not a journalist, even if he sometimes pretends to be one :-)
Whether he (mis)uses his show to take pot shots at others is not the point - what he raises is a very valid criticism ... and they are to be asked in current situation.

3/15/2009 11:05:00 PM  

Post a Comment

Links to this post:

Create a Link

<< Home

Saturday, February 28, 2009

Airtel's unlimited plans - scamming customers

From next month onwards (march 2009), unlimited connections in airtel are not unlimited anymore - atleast the 1MBps connection I have is not going to be so (I was told all their unlimited plans are impacted).
But this is subtext of the plan and not spelled out very visibly (for example - it is still called unlimited !) - essentially they have set a 'threshold', and if you exceed this arbitrary download limit, your bandwidth is halved.


Consider how flackey their metering is (I have been at recieving end of this quite a bunch of times), this is just a fertile ground for airtel to pull a fast one on customers : assuming the above is not enough of a scam !
Time to start contemplating alternatives ... 

7 Comments:

Blogger Noufal said...

Do you have a URL with this notification?

2/28/2009 01:38:00 PM  
Blogger /&lt;0USIK said...

So if you exceed you are punished by halving the b/w. But how long is the timeout? Will they restore the 1M speed after you are good for a week?

2/28/2009 05:21:00 PM  
Blogger Mridul said...

@noufal - they sent me a courier, and I called up their call center to learn more.
Last I checked their website was yet to be updated with details ... though that might change soon.

@kousik
Once you exceed their initial limit, bandwidth is halved for rest of month ... which sucks bigtime !
Considering how shoddy I have found their metering to be (enough hassles with that in past !) this is going to be a contentious issue between me and airtel every other month :-)

3/01/2009 11:06:00 AM  
Blogger Eliza said...

dont try tata indicom :P
or reliance

3/01/2009 11:34:00 AM  
Anonymous Anonymous said...

I agree

- Shamak

3/02/2009 03:31:00 PM  
Blogger ~~_§þâr†â¢ú§_~~ said...

This sucks big time. I will cross their first initial limit in the first week itself probably :(.

They should reduce their tariff rates if they are planning to do this (any ideas on this?). I mean their tariff is only "affordable" (not saying reasonable) if they live up to their promise of 1Mbps unlimited (throughout).

3/04/2009 08:07:00 AM  
Blogger aaditya sood said...

You could sign the petition at http://afup.broadbandforum.in/

Maybe it'll help...

3/18/2009 11:38:00 AM  

Post a Comment

Links to this post:

Create a Link

<< Home