Sunday, September 30, 2007

kvm switches

... tend to suck :-(
higher resolution, high refresh rate ... and you end up with a headache.

0 Comments:

Post a Comment

<< Home

Saturday, September 29, 2007

Depressing ...

I found out today, that some really really cool engineers and architects, have been RIF'ed from Sun. Some of whose work I have come to respect over the past 6 years I have been here ... I dont know many of them personally, but their work has resulted in me learning and understanding things better; steering not just future of Sun products, but also the domains they have been working in by authoring/influencing the specifications.

It is indeed depressing to go through this charade pretty much every other quarter ... this would be the problem with making profits by reducing operational margin I guess, you need to keep laying off people to make profit !
Last month, when I told dad about the impending RIF in september, he joked ... pretty soon, only senior management will be left in your company - and they will declare huge profit and heavy bonuses with every one else getting retrenched !

If I am not wrong, I just survived the 13th (yep, it is a friday today) RIF in my 6 year career at Sun.

0 Comments:

Post a Comment

<< Home

Saturday, September 22, 2007

goof up of the century ...

And I assumed that all dual core chips would fit the a same motherboard if it already runs one ... so stupid of me.
I ended up getting a amd 64 x2 6000 ... for the nearly 70% or so gain compared to my current chip (amd 64 x2 4200) - just change the chip me thought ! Now, have to buy the rest of the box ... will get a kvm switch, so that I dont end up buy the peripherals ...

Basic research should have settled things, however many times I an exposed to this lesson the hard way, I still dont learn !

6 Comments:

Anonymous Anonymous said...

really bad indeed

9/22/2007 06:47:00 PM  
Blogger aaditya sood said...

Heh, OTOH now you can work on distributed computing applications!

9/22/2007 11:36:00 PM  
Blogger Unknown said...

I still think "The way he did it was awesome..." to be a bigger screw-up :)

9/23/2007 12:53:00 AM  
Anonymous Anonymous said...

Hi , do you have a minute?

9/27/2007 05:19:00 PM  
Blogger Unknown said...

Wait a minute, both are socket AM2, right? What is your MB model? Did you check the motherboard manufacturer site for a BIOS update for that model?

10/30/2007 08:30:00 PM  
Blogger Mridul said...

@suresh
nope, this was an older motherboard - one of the initial ones which supported athlonx2's - so not am2 : so even pin count is different.
yes, i know - i was insanely stupid to not check the basic stuff ! i did performance comparisons, checked benchmarks,etc - and yet forgot the very very basic details :-(

10/31/2007 01:35:00 AM  

Post a Comment

<< Home

Wednesday, September 19, 2007

Generator

A friend of mine mentioned about generator's in java.
I took a look at the infomancers-collections which claims to implement this for java.

Neat package - would love to play with it for passtime, not sure if I will ever touch it for production code.
The basic essential idea is simple :
a) use the bytecode instrumentation hooks in vm to modify the class loaded at runtime so as to inject code into subclasses of com.infomancers.collections.yield.Yielder.
b) Modify bytecode such that any call to 'yieldReturn' in yieldNextCore() is succeeded by:
b.1) record state.
b.2) return.
b.3) inject a label after this return.
c) Inject code in begining of yieldNextCode to essentially convert it into a large switch case - based on 'state', decide where to jump next.

So a simple pseudo example would be :

-- developer code start --
yieldNextCore() {

if (1 == count) {
// return some_a() if cond is satisfied.
yieldReturn(some_a());
}
// return some_b() as the generated value
return yieldReturn(some_b());
}

-- developer code end --

would be converted to -

-- generated code start --
int state = 0;

yieldNextCore() {

switch (state) {
case 0: goto label_0;
case 1: goto label_1;
}
label_0:
if (1 == count) {
yieldReturn(some_a());
state = 1;
return ;
}
label_1:
yieldReturn(some_b());
state = 2;
return ;
label_2:
}

-- generated code end --

To make sure that this will actually work, all the local variables within the method are pulled out as instance variables in the class.

Cute trick !

PS: I have not tried the code, or the package. So I cant answer questions of what happens if yieldReturn is called from outside yieldNextCore (might not work ?), conflicting names within different scopes in the yieldNextCore method (load error ?), etc.
As I said, I considered this as a nice solution to an interesting side problem ...

2 Comments:

Blogger Noufal said...

This thing is quite useful and used very often in python actually. I don't think you can write a non trivial program in Python and not use them.
Initially, they kept this as an optimisation for iterable objects but now I think it's pretty much standard.

9/19/2007 10:28:00 AM  
Anonymous Anonymous said...

Interesting...nice post

9/22/2007 06:44:00 PM  

Post a Comment

<< Home

Saturday, September 08, 2007

"Movie Compatibility Report"

Facebook has this application called movies (Flixster Movies) - and it has a "Movie Compatibility Report". Essentially asks your opinion about a bunch of movies on some scale, and compares it against your friends to find out how well the tastes match (the usual social networking thing).

What I found interesting about this was not the app itself - but about my bloody friends.
Some people whose suggestions I usually take about movies, apparently, have a totally different taste in movies as compared to me - /me wonders why I ask them, and more importantly what all I missed 'cos they diss'ed a movie ! :-D
Most of my friends though, seem to have a very similar taste as me ... /me wonders more !

Yep, some of these aspects of social networking are interesting - small data leading to higher aggregations which make up some interesting patterns - speaking of which, I think I should write a few scripts to do similar aggregation for the performance telemetry in our server ....

1 Comments:

Blogger Unknown said...

eda somehow my comment on this is that my ranking is relative to the other movies in the list..

9/10/2007 09:12:00 AM  

Post a Comment

<< Home

Thursday, September 06, 2007

test post from mobile

This is a test post .... Could get removed later

10 Comments:

Anonymous Anonymous said...

With a pic like that, you definitely should not delete the post.

9/06/2007 10:11:00 PM  
Blogger Moonjungle said...

Was is it the lemon pickle or is it your Sri P.V. Narasimha Rao impersonation?

9/06/2007 10:17:00 PM  
Blogger Moonjungle said...

PS good pic though. I approve. Indeed

9/06/2007 10:18:00 PM  
Blogger Mridul said...

me having lunch - with friends freaking out with my phone :-P

9/06/2007 10:20:00 PM  
Blogger Unawoken said...

"Was is it the lemon pickle or is it your Sri P.V. Narasimha Rao impersonation?" -- moonjungle

Ha ha!

Yeah, don't delete!

9/07/2007 01:30:00 AM  
Blogger Unknown said...

I like the new hair-do of yours - the little curl of hair on your forehead.. :D .. breakthrough in blogosphere eh?

9/07/2007 09:10:00 AM  
Blogger Mridul said...

@ak
I was told later that, the little curl was why my friends were insisting on taking my pic :)

@others
ok, ok, i will make a fool of myself and not remove this post. I wanted to see if posting & attachment works fine ... and what layout it uses

9/07/2007 09:28:00 AM  
Anonymous Anonymous said...

You did put on some weight...
Keep it up man.

9/07/2007 02:34:00 PM  
Blogger Mridul said...

thank you anon ! And who pray are you ?

9/07/2007 02:45:00 PM  
Anonymous Anonymous said...

who ever I am..but it is good to see you after long time.

9/07/2007 06:13:00 PM  

Post a Comment

<< Home

Wednesday, September 05, 2007

Little Miss Sunshine

I missed this movie when it came to Bangalore (did it ?), bought the dvd with paramp recently, and just finished watching it.
It is a really good movie - and I am left with a mixed bag of feelings after watching it (not about the movie, due to the movie !).

That girl Abigail Breslin is really really awesome !

2 Comments:

Blogger vijaya said...

I really really loved this movie too...Fali and I watched the last part of the movie thrice... you know where they wreck the fashion show :) ... was hilarious....reminded me of the final year bashes back in college :P ....

About posting .... ahem..... the lazy bug has bitten me again.... but I'm recovering.. you'll see another post soon.. I promise.. :)

Take care

Cheers
Me.

9/05/2007 07:20:00 PM  
Blogger Unknown said...

Nice movie.. disturbing in some way I thought.. Yeah the Girl was awesome. Did you watch this movie called 'Bheja Fry'? (Hindi) check out.. its funny.

9/07/2007 09:07:00 AM  

Post a Comment

<< Home