Official Blog of G

Buying a Product in Store Closing is not a Deal, Its Hell

Posted in Global, Society by G on February 25, 2009

At this point of time, I’m still not sure why people are buying things from store closing companies especially (Circuit City, Office Depot (some stores) etc.)

Don’t you guys never think, they are closing because they suck and I already wrote a post about not to buy protection plans, because when a company files bankrupt, they are going to disappear down the line and your protection plan never counts. Whatever you buy is “AS-IS” I call it ______.

Take a look a this post:

http://tech.yahoo.com/blogs/null/124232

Details on the above post follows:

Stories are pouring in from outraged shoppers who thought they could get a great deal on equipment from Circuit City as part of its fire sale liquidation. The problem: Circuit City won’t let you open sealed boxes to inspect merchandise before you take it home — and all sales are final. No returns. No exchanges. That’s not so great if the gear is hopelessly broken.

One Minnesota family spent $1,500 on a 50-inch plasma TV and found the glass shattered once they got it home. The store refused to take back the TV and instead referred the issue to Circuit City headquarters, where no one answered the phone. The family is checking with Panasonic, the manufacturer, to see if it’s covered under warranty.

A similar problem happened to a Boston customer, who paid $1,100 for what turned out to be a totally busted Samsung TV. She got a refund from her credit card company, but only after a local TV station made inquiries on her behalf. Be warned: Consumerist says that getting credit card companies to help you out may be difficult in cases like this where a bankruptcy is involved. (As I understand the specifics of the Circuit City case, normally your credit card company will just “charge back” the merchant in question, but in this case the merchant is going out of business and has federal bankruptcy protection during the process.)

It’s not just big ticket items that can be dead on arrival. Consider this $7.50 “bargain” video game purchased from a Circuit City store, which appears to have been chewed up by a robot.

No doubt there are still some good deals to be found in these liquidating stores, but remember that, now more than ever, “buyer beware” is the rule of the day.

Even after reading this, you still want to go to Circuit City or a store closing, its like you step over a _____ after knowing its a ______.

If you have the urge to see things in store closing, please forget your credit card delibrately in your wallet and go to the stores, most of them call it as window shopping.

Two uses of using keyword in C#

Posted in Global, Technology by G on January 22, 2009

Most of the C# interviewers will attempt to ask this question:

What are the uses of using keyword?

There are two uses of using keyword in C#

1) Using as Directive in C# can be used for importing namespaces to your classes. Everybody knows this.

2)Another most useful advantage is it can be used in codeblocks what is does is it calls the Dispose() method automatically to release the resources and also automatically implements the try catch blocks for you.Here it is called a using statement.So the advantage is that we dont have to explicitly write a try-catch block and our code looks small.

What is the definition behind atoi()?

Posted in Global, Technology by G on January 12, 2009

Here is the C# code for the definition of atoi()

static int atoi(string str)
{
int sign=1;
int Number=0;
int tmp=0;
int x=0;
int l=(str.Length)-1;
char[] c=str.ToCharArray();
if ('-'==c[0])
{
sign=-1;
x=1;
}
for(;x ='0')&&(c[x]<='9'))
{

//0 is the 0 index
tmp=(c[x]-'0');

//simply multiply the number by 10 and add it
Number=Number*10 + tmp;
}
}
return Number*sign;
}

Just for fun!

C# Function Parameter Passing by Reference in Detail

Posted in Global, Technology by G on December 17, 2008

Here are is a simple test to play with the function parameter passing in C#.

As you guys know int, float, char, enum and struct are value types and class is a reference type.

In case of C#, lot people think objects are passed by reference to a function, but the reality is object references are passed by value.

How to prove it? Here is the code. Analysis of the code is below so keep reading….


using System;

namespace APP1
{
class Program
{
static void Main(string[] args)
{
Program Test = new Program();

Int first = new Int();
first.i = 6;
Int second = first;
Test.change(ref second);
Console.WriteLine("first: " + first.i);
Console.WriteLine("second: " + second.i);

CInt cfirst = new CInt();
cfirst.i = 6;
CInt csecond = cfirst;
Test.change(ref csecond);
Console.WriteLine("cfirst: " + cfirst.i);
Console.WriteLine("csecond: " + csecond.i);

Console.Read();
}

void change(ref Int param)
{
param= new Int();
}

void change(ref CInt param)
{
param = new CInt();
}

}

public class CInt
{
public int i;
}

public struct Int
{
public int i;
}
}

Here I have a struct Int and a class CInt.

First lets look at the Int struct object and the Change function:

On a normal Change function with out “ref” keyword the console would print 6 for both first and second object.

Here we have a ref and we are trying to initialize the parameter object.

void change(ref Int param)
{
param= new Int();
}

In the Main we are calling


Test.change(ref second);

So the output we get is

first: 6
second: 0

This is the behaviour of struct type you can say it is passed by value.

Now lets come to the Class type:


void change(ref CInt param)
{
param = new CInt();
}

We have the default values set to 6 before the call:


Test.change(ref csecond);

Whet do you think the output will be?

You may think it would have reset both cfirst and csecond to 0, but the reality is

you will get the output as

cfirst: 6
csecond: 0

This is because of the reason the object references are passed by value.

However, if you change any of the class members value
for example if you set on the change function with CInt as parameter with or without “ref” keyword and without initializing the param object.

param.i = 7;

you will notice it will affect the csecond and cfirst (and the output will be 7) which will give you an impression it is infact objects are passed by references.

The only way to track the behaviour of object references are passed by value is by trying to initializing the parameter inside the function.

I hope this helps you understand the parameter passing in C#.

If you have any questions or comments please reply here.

Left lane slowpokes – now its going to be tickets

Posted in Society by G on December 10, 2008

Link to the MSN Article about left lane slow pokes

Man this is a big relief especially in the NJ/NY Metro Area till Boston. Drivers with NY plates are the worst may be its because, their higher limit is 55 only on the parkways and thruways.

Now, watch it people keep right, pass left or else you will have a ticket.

I think now that over speeding is reduceded, left lane slowpokes is going to have the heat. The police dept. can really make good money if they watch Turnpike and Garden state parkway alone for NY plates.

Aweeeesome News!!

Received a Forwarded Mail on Store Closings

Posted in Global, Society by G on November 24, 2008

Stores that are planning to close after Christmas are still selling gift cards through the holidays even though the cards will be worthless January 1. There is no law preventing them from doing this. Below is a partial list of stores that you need to be cautious about.

Circuit City (filed Chapter 11)

Ann Taylor 117 stores nationwide closing

Lane Bryant, Fashion Bug ,and Catherine’s to close 150 stores nationwide

Eddie Bauer to close stores 27 stores and more after January

Cache will close all stores

Talbots closing down specialty stores

J. Jill closing all stores (owned by Talbots)

Pacific Sunwear will close its struggling chain of 154 demo stores.

GAP closing 85 stores

Wickes Furniture closing down

Zales closing down 82 stores and 105 after January

Whitehall closing all stores

Piercing Pagoda closing all stores

Disney closing 98 stores and will close more after January.

Home Depot closing 15 stores 1 in NJ ( New Brunswick )

Macys to close 9 stores after January

Linens and Things closing all stores

Movie Galley Closing all stores

Pep Boys Closing 33 stores

Sprint/Nextel closing 133 stores

JC Penney closing a number of stores after January

Ethan Allen closing down 12 stores.

Wilson Leather closing down all stores

K B Toys closing 356 stores

Loews to close down some stores

Dillard’s to close some stores

Lot of people forgot one more thing, Does any of you pay of the protection plans offered by these stores on electronic items? (which they will tell you that its going to be broken on the day you buy), now you know where these money are gone to when the stores are closed.

All you need a big shop with a very stupid idea and protection plan.

You can stop paying protection plans to Circuit City / Best Buy, because you don’t know even these guys will last till you product does.

It Sucks big time!

Essay Writing on a Indian Cow

Posted in Society, joy by G on November 21, 2008

Essay on a cow

What else you want me to write here? This says everything. Don’t miss it.

Magic with the magnetic hands – 5yr old

Posted in Global, Society, joy by G on November 19, 2008

Some news are mentioning it as crazy, but I don’t think this is crazy, Its a magic with the magnetic hands on non magentic objects by Milan Simon Tuttle, a 5-year-old girl. She rocks with it!

You could see the balls are obeying her instructions very very nicely.

Don’t miss it! Awesome!

Big Three automakers beg for $25 billion lifeline

Posted in Global, Society by G on November 18, 2008

Yahoo News on Big 3

1. Did you guys asked us when you killed the electric cars?

2. Did you guys asked us when you smoked the earth?

3. Did you guys asked us when you made the car to run for just 10 years?

Funny thing is, Western Companies used to expect standard, but I don’t know where its gone for the cars.

The bottom line, I think United States is the only goverment which started of this business bailout things in the world history and now the entire europe and china are following this pattern. I really think its a real bad decision and bad example, instead of allowing the free market to correct it.

The reality is money is under the hands of real estate builders like Donald Trump and others who were about to get bankrupt during 2003 and they are beefed up now and they hesitate to invest back into the market.

If this continues, after few years, dollar is going to take the heat, when the dollar trade off happens with a gold backing.

Now it looks like, contract swaps, lousy car models and business that blows are the successful ways of doing business.

Really not sure where this is taking all of us.

Many doctors plan to quit or cut back: survey

Posted in Global, Society by G on November 18, 2008

Yahoo News: Many doctors plan to quit or cut back: survey

I don’t know, 90% of the time when I go the primary care doctors in new jersey(don’t know about other states):

1. They are always on the phone with somebody else, while i’m on the waiting room or sometimes even they examine me.

2. It will nearly take 1 year for them send us to a specialist, when the disease is out of their lead, sometimes the disease will attempt to leave us.

3. You will get an appointment for 4:30, but you will be checked at 6:00 this is just an average.

4. If you are in a emergency, you will get noticed by a doctor after 10 hours (average and you are lucky) because your vitals are OK.

5. After all this you still pay your co-pay.

At this point of time, I feel I want to say why don’t you guys do your work and stop whining and you don’t even work without a time limit like a specialist does. I think the insurance companies should remove doctors from their network based on the review by the patients and that will get them to work.

This is the lamest thing I’ve ever heard and if the society is going to loose a few quitters, its good for the society, don’t bother about this threat. This is the real right time from them to quit.