Wednesday, June 25, 2008

Response.Redirect in new window

public class RedirectHelper
{
///
/// If you don't specify a target or you specify the target to be "_self",
/// then it will redirect within the current window, so a regular Response.Redirect occurs.
/// If you specify a different target, like "_blank", or if you specify window features,
/// then you want to redirect to a new window, and we write out the appropriate script.
///

///
///
///
public void Redirect(string url, string target, string windowFeatures)
{
HttpContext context = HttpContext.Current;
if ((String.IsNullOrEmpty(target)
target.Equals("_self", StringComparison.OrdinalIgnoreCase)) &&
String.IsNullOrEmpty(windowFeatures))
context.Response.Redirect(url);
else
{
Page page = (Page)HttpContext.Current.Handler;
if (page == null)
throw new InvalidOperationException("Cannot redirect to new window outside Page context.");
url = page.ResolveClientUrl(url);
string script;
if (!String.IsNullOrEmpty(windowFeatures))
script = @"window.open(""{0}"", ""{1}"", ""{2}"");";
else
script = @"window.open(""{0}"", ""{1}"");";
script = String.Format(script, url, target, windowFeatures);
ScriptManager.RegisterStartupScript(page, typeof(Page), "Redirect", script, true);
}
}

Thursday, June 5, 2008

Total Madness: 1 Billion Z$ is 1US$

Todays news read Zimbabwe's currency crashed to a record low. 1Billion Zimbabwe dollars is equivalent to 1US dollar.



1,000,000,000 Zimababwe dollars is 1 US dollar.

The reason for the currency crash is , the country is suffering from internal politics and economy is really bad.

Prices of some of the basic goods is so high, I mean , it is REALLY high.
A loaf of bread is 600million Z$. Can you believe that?
2 litre cooking oil 5millionZ$.

According to latest official poverty line data, an average family of five needs a monthly income $35 to survive while remaining living in poverty.

Zim had 8 successive years of inflation. 4 out of 5 people are jobless. It is the world's fastest shrinking economy.

I've read few articles about the places one can visit in Zim, looks like its one of the biggest tourist attractions and destination for many tourists.

I hope it comes out its inflation, currency could get better.

Sunday, June 1, 2008

Interview with Infosys



Summer of 2006, this was when I completed my master's and was doing internship at Mayo clinic
They said they do not have any open full time positions, but can hire me in a contract to hire position.

But in the mean time I was job hunting. That was when I got a call from Infosys, banglore, India.
i want to share my experiences trying to get an interview call from Infosys. So, this is how it went.

I remember it was a wednesday, a lady from Infosys, banglore called me and said they found my resume on some job hunting website and would like to interview me. The strangest part of my conversation was she said she wanted to interview me between 6pm-12pm CST(yes this was still wednesday).

So, I came back from work @5PM. Tried to brush up all my basics and was sitting pretty to take the call. Remember, the recruiter told me that a developer would give me a call anytime between 6pm-12pm CST.

It was 6, clock started ticking, I waited, did not get a call, then it was 7, then it was 8. I waited for 2 hours, I wanted to call recruiter, call India , but I did not know her number, so I thought I would wait for some more time. Its 9 now, I was feeling really hungry, wanted to have some quick bite, but was too cautious. I did not want to munch if I get a call, so I skipped my meal. It was 10, then clock ticked to 11 and then 12. I gave up (oh yeah, I did send the recruiter an email ),no dinner, I was feeling really tired and I had to go to work next morning, so I slept.

Next morning(thursday), I got a call again from the same recruiter, she said the developer who was supposed to interview me was Out of office, so could not conduct the interview(Dont they have any back up plans, we are talking about Infosys???). Then she said, they will for sure interview me today (Thursday evening), same time , which is 6pm-12pm, I was like, freaking ediots, dont they have a specific time, instead giving me a range, like 6pm-12pm, what do they expect, they want their candidates from a different country to just keep waiting and expect a call? Dorks...

Well, anyway, I needed a job, so I waited like wednesday night, Deja Vu, I waited , waited, waited.....waited.............
Today, I waited for an hour more, yeah It was 1 in the morning and Iam expecting a call from Infosys, weird....very very weird....
Yes, I did not get any call .

So, on friday morning, a lady from Infosys, US, called me, a bummer...........
She said, they were not actually looking for college grads, but someone who is more experienced, so she said they can not go forward with the interview.

As Iam writing this, it reminds me how much pissed I was on Infosys, a company I respected most, because of my Indian roots, and the way they were trying to conduct an interview just blew me off. Like what kind of BIG company is this??

This might me my personal experience and I know there are people who respect Infy for whatever it is, but I think Indian Software companies need to take a leaf out of american companies and be more punctual and respect their candidate's time (remember I was waiting for 6 hrs for 2 days, and ended up without a phone interview).

If anybody from Infy is reading this blog, dude....whats up with Indian standard time, infosys??