Thursday, December 29, 2011

Search engines.. including Google screwed.....

Example search for

Results get...



Another result..... with different link....



Another result:


Isn't it a serious problem?
Can google answer this?

Something wrong with Google....

Google suppose to be very reliable resource for all the information.
Google has given a lot of confidence to users. If you need something it;s been very famous saying.. "Let's google it... "
"I googled it"

For last couple of days, I'm facing a strange behaviour of this greatest ever search engine. I've a lot of examples. But here I would like to portarit one.

Today morning, I just wanted to search something , I put a text like "US State website International Map"
I know there's a US gov website, which provides detail about all the countries  of the world with map.

Here's I put my text to google (to search)..



Can you believe .. what I got...
The link redirected to.....


And another search.. it was redirect to...

Another search result, (this is common,  your search could redirected to this IP in any search.... randomly. Isn't it wierd)

Is this some adversitment strategy.

This is one example I'm showing. I came across manys like this as I'm avid google surfer.
But this time, it happened while trying to access the Government website.

Isn't it frustrating for a user? Google need to address if they are unaware of this.
If they are doing it knowingly, then I'm sure user will not keep on relying it on. And will try to find some alternatives. It take uncountable years to achive the brand name,  but it take just couple of years to spoil it.

Is some advertising programs hacking and targeting google or they themselves doing it, intensionaly.
To be very honest, I frustrated by this.
Any one having same experience please share...

Google, you  can't take it granted and use the user as tester.
What is this http://63.209.69.107/search/web/ <>  ?
in every say 10th search ( just hypothetical...)

God Bless you Google....


Saturday, December 17, 2011

Worst ICICI... NRI Customer Services.....

I must say , I'm very loyal ICICI customer.
I've been with ICICI for more than 9 years, I can proudly say I hold almost all the accounts (in my knowledge) with ICICI for more than 9 yrs.
I was having direct deposit account, I was having savings account. Currently I'm holding NRI, NRO , NRI Home loan and ICICI prudential account.

But some how I'm having feeling ICICI is having worst customer service. In my experience, whenever I talk to ICICI customer services, just after my call, I continously feel that this is a wrong choice I've had made, by choosing ICICI bank as my primary bank.

I remember just 2 days earlier I did have the same experience with State Bank of India ( some Uttrakhand Branch) where I was holding my saving  and PPF account and I closed the accounts, due to very rude behaviour of on counter services.

Today just now I finished my call with ICICI customer care services, regarding my home loan.
Can you believe it , what response I got, the representative told me that please call after 15 mins as home department is not available.
When I asked it should be 24X7 services , representative told me that no all of them are busy.

This very same incident happened to me 3rd time . This is what NRI services handling it's customer. Even though I'm having NRI, NRO, Insurance, FD and home loan accounts with ICICI.
Seriouly thinking to remove all the accounts, from this great bank.

Please share if you guys having the similar experince with ICICI bank or any othe bank.




Friday, December 16, 2011

रणबीच चौकड़ी भर-भर कर: Maharana Pratap's ... CHETAK..




रणबीच चौकड़ी भर-भर कर
चेतक बन गया निराला था
राणाप्रताप के घोड़े से
पड़ गया हवा का पाला था

जो तनिक हवा से बाग हिली
लेकर सवार उड जाता था
राणा की पुतली फिरी नहीं
तब तक चेतक मुड जाता था

गिरता न कभी चेतक तन पर
राणाप्रताप का कोड़ा था
वह दौड़ रहा अरिमस्तक पर
वह आसमान का घोड़ा था

था यहीं रहा अब यहाँ नहीं
वह वहीं रहा था यहाँ नहीं
थी जगह न कोई जहाँ नहीं
किस अरि मस्तक पर कहाँ नहीं

निर्भीक गया वह ढालों में
सरपट दौडा करबालों में
फँस गया शत्रु की चालों में

बढते नद सा वह लहर गया
फिर गया गया फिर ठहर गया
बिकराल बज्रमय बादल सा
अरि की सेना पर घहर गया।
 
 
भाला गिर गया गिरा निशंग
हय टापों से खन गया अंग
बैरी समाज रह गया दंग
घोड़े का ऐसा देख रंग

What Yahoo caters....

I dont know, if I'm working a QA analyst for yahoo, free of cost. But It's too much from the company like Yahoo.
As I wrote earlier too if these big companies think there regular visits a fool or it's just ignorance and confidence of Yahoo that what ever they are going to cater will be accepted by their regular traffic.
See this mistake.


Lol.. what is this any answer from Yahoo.

Saturday, December 3, 2011

Veena Malik did it again...

Veena Malik......
Sensentional... Bold...... Brave...
Her any thing "Can Do" sort attitude bring her a lot of fame,  money and of course her admirers seem to have multiplied over the year.

She is a lady who can do the things boldly and talk shamelessly with media.
As per Veena, she has achive so much success in her carrer and earn good money in pakistani television. She has a very successful carrer as Television Presenter.

Queen of controversies Veena Malik, has earned massive name and money within last  4-5 years.
And that is also true when one earn something other thing will get lost ....
So in this series Molarity lost..

Here controversal life started with Barbic affar, Asif controversy, BIG BOSS participation (reality TV show , India) {where she tried to draw public's attention by her cheap and desperate sexual gestures with flow and one film actor Patel}
Big Boss gave her good recognization in India's media industry. She hosted a TV program in India TV during world cup.
Now, she is shooting for her very big assignment of life  a reality show "Swayamver" where she will choose her groom in front of TV.

Now FHM magazine nude photoshoot in the front page of the magazine.
With this photoshoot Veena become first ever pakistani actress, who did nude photo shoot.
Even though she is not having so great and hot body, she seems to be  quite successful in bring the media public attention.

As a matter of fact it's very common and ok for so many wanna be actresses to go for bold hot shoots. Though, going for nude is little mile extra. Especially when you belongs to so conservative roots.
But only Veena could do it.  And she has done it. Not only do something unique but also face the media so boldly.

Unlike others, I didn't get surprise when the FHM magazine nude shoot come up. I knew Veena can do it any day.
But But But...... ISI tattoo is some what beyond my understanding. What does it mean or signify. What is the sense of displaying ISI.
Is this she's trying to say, she is an agent? or she hates the agency? or she is anti-agency?
Isn't it a non sense deal?
Nude is ok . But why politically Nude.?
Veena explain this something like, It was photographer idea to get Nude and put the tatto.
Is she dumb or what.
Some months back we saw her publically smoking and drinking?
Where's Veena going? Is she completely out of Pakistani, now? She is doing Swayamber meaning may be she will be marrying someone outside pakistan.
If she is having this in her mind. Does she can talk or act against her roots, country or intelligency agency.
Must say this is a bold move and after that she is facing media and denying all that.
Veena's interview to geo, no one has any idea what she's trying to say.
http://www.youtube.com/watch?v=xIwYTOG9Wgs

Watch Veena's full interview regarding photo shoot and FHM magazine's clarification
http://www.youtube.com/watch?v=ti0JJpSO-F0

Sunday, November 27, 2011

WTF .. website contains.....

I'm avid internet surfer...
Today , while surfing I came across some very funny contents. That particular moment , I decided to jot down about those contents in my blog and share with you all.

Also would like to point out fact that there was the time when internet was just growing up. Every thing we came across in internet we belive it in general term . I remember, just couple of year back the common saying... " This information is authentic I just googled it................". Meaning people authenticate every bit of information what ever they might have googled.
Please Pause....
This is not absolutely true.. I found several information which are not correct.
Here are some tips to to get the more authentic information while googling.
TIP #1 - Always try to visit authenticated website to get the information.
TIP #2 - Always cross verify your search result with 3-4 websites contents.
TIP #3   -Always try to get related websites, you would not like to believe in the informations giving in wikis. Where every other people can update the information.

Now I keep on posting so interesting wrong contents of the websites.

Today when I was randomly surfing  I one result like out of numerous searchs (not related to what, the result I got ), In google result search, I found something like,
What religion is mahendra singh dhoni? (WTF, who care about somebodies religion)
Out of curiousity I click the link., and I was navigated to answer.com

http://wiki.answers.com/Q/What_religion_is_mahendra_singh_dhoni

Look at the funny results.


Do you care about somebody's religion? Funny and see the another result.


http://wiki.answers.com/Q/Why_did_MS_Dhoni_accept_Islam

Phewwwwwwwwwwwwwww.....................


Please add on if you get any of the funny or incorrect search results ....

Tuesday, November 22, 2011

Assistance to Transfer $22,500,0 00.00 Dollars from Hong Kong..

Wow one more..
Today itself I got an email stating...


________________________________________________________________________________


Hello, I have contacted you because I need your assistance to transfer $22,500,0 00.00 Dollars from Hong Kong to your country. I will give you MORE DETAILS about the transfer immediately I receive a positive response from you.
    King Regards,
    Mr. LEUNG Cheung.
Details:
LEUNG Cheung. mrleungcheung17@9.cn via batelco.com.bh

from
LEUNG Cheung. mrleungcheung17@9.cn via batelco.com.bh

sender-time Sent at 7:14 AM (GMT+03:00). Current time there: 5:20 PM.  mailto:✆toinfo@hotmail.com
date : Tue, Nov 22, 2011 at 7:14 AM
subject    I NEED ASISTANCE
mailed-by batelco.com.bh


________________________________________________________________________________
Keep adding your email contents if you get any of these kind of email.
This is I'm doing in social walfare and awareness regarding money related SPAM emails.


We all have heard and know about all these, but sometimes unconsiously we commit mistake in believing all these cranks.


In this above email, the gentleman saying he got positive response from me, dont know when and how?


Have fun and be aware........

Above is a SPAM email which I got thru email, today....


BEWARE OF SPAM EMAILS......................
...You Can Add On Your Spam Emails Experience... So That We Can Bring Awareness Together...........


SPAM EMail Series--- Contd....








Monday, October 3, 2011

Won a prize money of ($500,000 Dollars)

Any idea... How many email, do you get in your inbox, per hour? Ok well,  let me ask you this way how many emails do you get in your inbox (collectively in your personal inbox or outlook (official inbox).
Well, I know any number is not a correct number. It's all  depends on, in which profession or position  are you in.

I just got one. And the email was about to inform me that I'm a winner of $500,000 Dollars.. meaning I dont need to anything through·out mylife ...
Now, I dont need to do anything, no need to write blogs, no need to do my 9-5 job. My good days are already started.....
Yahoo Lottery promotion already made me rich and happy...(stupids)...
Here's are the content of the email I'm pasting for you for your judgement....

________________________________________________________________________________

YAHOO LOTTERY PROMOTION®
First East Circular,
North Lane Business Park,
Wembley HA9 7BN,
United Kingdom.

Dear Beneficiary,
It is a pleasure to inform you that you have won a prize money of FIVE
HUNDRED THOUSAND DOLLARS($500,000 Dollars)in this year(2011)YAHOO LOTTERY
PROMOTION.
All email addresses of people who are active online were selected through
electronic balloting System without the winner applying and only
five(5)persons were accredited for this year(2011)award.

Batch Number.....................YA/UK00-67
Award Pin Code.......................YA/35/YY/Q59
Serial Number...................7664
Below are the delivery options in which you have to choose on how you want
to claim your prize.
1.Cheque delivery through the reserve bank(RBI)in your country(India)
2.Cash delivery to your home address through the British Embassy in your
country.(india)
If taking option number one(1)then you have to provide your bank
account details for remittance of the fund to your account.
However,you are advice/advise to fill and submit this form to the events
manager via email(mailto:yahlotto_claim@ovi.com)1.Full
1.Full   Name:
2.Residential Address:
3.Age:
4.Telephone:
5.Sex:
6.Email:
7.Amount Won:
8.Nationality/State/City:
9.Bank Name:
10.Account Number:
11.Batch Number/Award Pin Code:/Serial Number:
(EVENTS MANAGER)
Name:DR.FRANK MORRIS
TEL:+447014237858
--------------------------------------------------------------------
                    PURPOSE OF THE AWARD
THIS IS AN ONLINE RECOMMENDED EMAIL LOTTERY AWARD WHICH IS DONE ONCE IN A
YEAR TO HELP INDIVIDUALS,SUPPORT CHARITY,EDUCATIONAL GROWTH AND
INFRASTRUCTURAL DEVELOPMENT IN YOUR NEIGHBORHOOD.

Congratulation once again!

______________________________________________________________________________
Beware of spam emails......................................

Wednesday, September 21, 2011

Dual Monitor shows upside down

It's always not so funny.
Today morning when I reached office. Spent whole night last night, I was ready with the presentation, which suppose to be happen in my machine.
Dont know, if this happened in the fit of nervousness or no idea what happen. But surely I pressed some keyboard key combination. The computer monitor screen went blank for some milli secs and all the contents was displying upside down.
I was working on dual monitor suddenly I found my dual monitor showing the screen up side down.


Oh my God, I do have presentation within 30 mins, this activity of mine bring into more nervousness in me. I petrified, and try to get up with the solution. After struggling for some significant time, at last got it normal.
Thanks God,   I was able to google the right solution at right time.


1. Press ctrl+alt+up or try ctrl+alt+down
2. Or try, Right Click the mouse whe you are on the desktop and select graphic options rotation, if it isnt there tell me and i will help you more

Sunday, September 11, 2011

Plan to Switch Careers..Please advice...

This happen to everybody,  right?
When you feel something like struck in your career in mid way. When you desperate about things are not moving as they should for you, professionally.
As happening to Ramesh case. He's  bit desperate to things starts moving. This is not a fact that  he is not doing well, he is a great programmer in software. But some thing some where he is feeling that, IT is not a career which he wanted to have.
Ten years back, when IT  term was booming as a buzz word. Ramesh also struck in the IT's spider web.

As I told you earlier , he's doing good in his field but he wants to grow more and more in this paramidical hierarchy.

Now he wanted to change his carrer. Can you please help him with suggestions.

In my view he should take care with these below following points, but literacy doubt if these point can help.


Tackle the question: If you had all the money in the world, what would you be doing with yourself? Don't hold back. This is brainstorming time. Make a list of all the things you'd rather be doing with your time. Your first few answers will probably be something like: Take a tropical vacation, spend more time with the kids, etc. But push your thinking beyond that. Ask yourself if you are content with stringent working hours, accounting to higher authorities etc. If this is what you don't like, then strive for a self actualizing job that gives you exactly what you desire or hope to achieve.

Evaluate your skills and talents. Ask yourself: What am I good at? What do I most enjoy doing? Write down every skill you're capable of. Don't be shy. check to see if your current job gives you satisfaction and utilizes all your potential.

Identify transferable skills. After deciding what career best suits you, and have listed all known skills and talents, identify what skills will best transfer over into your new line of work. The longer the list the easier the transition. If you have only a few or no transferable skills, do not be discouraged. Pursue your passion to find happiness. Always remember that new skills can be easily learned. Other life experiences can also make this transition easy. Some basic life skills have already been acquired. Give yourself a boost and some credit.

Think of jobs that allow you to do what you really want to do, at least in some form, and apply your skills and talents every day. Be creative and open-minded. Focus on what your inner feelings guide you to do.

Conduct informational interviews. Informational interviews are a gem twofold: you get straight talk about your considered profession from actual professionals, and you achieve face time with individuals that possibly have the power to hire you later down the line

Consider your financial situation. How much does it cost, on a monthly and annual basis, to support your current standard of living? Are you willing to lower your standard so that you can take a job that pays less? Try to supplement your income in other ways. Small investments or a part time business can financially make up for the deficit, should your new career pay less. It takes a great deal of courage to do something your heart desires at the cost of some financial loss. Go for it if this will make you happy.

Make a list of everything you want in your new job, and one of everything you don't. Work gradually towards your needs and wants.Stay focused and do not allow yourself to be distracted along the way.

Browse job descriptions in your desired field. Visit a site who can provide you the updated salary, to find out how much you can expect to earn in your new career. (However, do realize that Salary.com is NOT the source businesses use to set salaries- they use services that survey other businesses. Salary.com just shows a possible average of salaries and is a decent general place to start for career info.)

Check local schools for courses and programs that may give you an edge. Start taking night classes while you're still at your current job. Establish rapport with your teacher - he or she will prove to be a valuable reference when you're applying for a new job. Manage your time effectively.

Volunteer for organizations related to your desired career. For example, if you want to work in architecture, volunteer for Habitat for Humanity, which builds houses for disadvantaged families. You get experience, and they get a helping hand!

Network. Talk to people in your desired field. Explain your situation. Ask them for advice. Give them your contact information. If what they say is true - "It's not what you know, it's who you know" - then cover all your bases in this department.


Networking Rules are no more than the strongest possible guidelines for your effective use of this most important of all job searching skills. In just a few lines I'm going to give you the basic Networking Rules:
 
Recognise your very own individual value, contribution and power. If you can’t, or won’t, nobody else will either.
 
Get to know at least three people more senior than you within your profession who will be able to give you advice and professional input.
 
One of the most fundamental networking rules is to keep in contact with people regularly rather than only when you want something.
 
Make the effort to meet people in person rather than just talking to them on the phone, or e-mailing them.
 
Show you are interested in them as a person, rather than just an opportunity for you to advance yourself.
 
When you hear about a contact's accomplishments write to formally congratulate them.When networking make sure you ‘bring something to the party’ rather than expecting one-way traffic.
 
Never expect anything other than information and advice, or new contacts to meet.After meeting each new contact, ask for feedback on their first impression of you.
 
Be generous in your thanks to people who do help you, this is one of the most important networking rules.
 
Do your best to develop a good memory for people's names and conversations you have with them.
 
Don’t only bother with those senior to you, other people have unique knowledge and their own contacts.Build a long-list of all your contacts.
 
Make sure you respond with information and advice when others contact you.Networking is for life not just for a new job. Keep working on it and it will work for you.
 
Save enough money to support yourself for 3-6 months, or however long you think it'll take to find a job in your new career that will support you adequately. Once again, stay focused.
 
Write a new resume. Make sure you include your objectives (based on step 1), education (step 6) and relevant experience (step 7).
 
Apply for the jobs that you might not have all the qualifications for. If there is a position that seems too good to be true and above and beyond what you are qualified for, apply anyway. There is little to lose with the exception of time and chances are, you might be exactly what the firm is looking for.

Monday, September 5, 2011

Mr Chris Godwin.. can provide you a Loan.........



__________________________________________________________________________________
Details:
from                      M NICHOLAS nicholas@omantel.net.om
to                          info@verificationdept.org
date                      Fri, Sep 2, 2011 at 6:49 PM
subject                 RE



Contents:
I am Mr Chris Godwin, we Offer Loan to people In Need of financial Assistance all over the World if you are interest you can contact us for more information Reply E-mail:chris.loanoffer2011@hotmail.co.uk


_________________________________________________________________________________

Interesting SPAMS Series (contd.)

BEWARE OF SPAMS...............

Interesting SPAMS Series (contd.)





_________________________________________________________________________________


Details:

from                          ooookcwmnoooo@aol.com
date                         Sat, Sep 3, 2011 at 10:43 AM
subject                      Re:
mailed-by                 aol.com

Contents:

Good Morning, I was at home as per usual hunting on FOX's county self-employed section late last wednesday and then ran into a new work from home opportunity where retired school teachers bring home up to $2700 per week or more of course they did not believe most of it at the start but for some reason we really had to try it and im happy I did since I managed to earn $384.68 my very second day actually trying. It is seriously simple I've already gotten paid right into my bank! its definently the greatest thing that's happened to us in my life,

Here is the page: CNN Studies 2011's Best Internet Based Positions an0 I think almost everybody thats got internet access will be able to do this thing so I am telling all our friends and family. Id like you to start and earn lots of money your self, also share this mail with everybody you know who needs more cash so that we can all beat the economic nightmare...



____________________________________________________________________________
Interesting SPAMS Series (contd.)
BEWARE OF SPAMS

Calling from the Lord to help those who are in need by given loan...


Lord asked some people to help people to provide them a loan...Rev. Ricjard Collins, the oublisher of chruch in england want to help you...........

__________________________________________________________________________________


Details:

from                          Cynthia Voorhees Voorhees@co.somerset.nj.us
to                              "info@verificationdept.org"
date                           Sat, Sep 3, 2011 at 10:12 PM


Contents:


I'am Rev. Richard Collins The publisher of the church of christ in england.We went you to know that we have the calling from the lord to help those who are in need by given loan to any Email:bishopmanuel_churchofchrist@hotmail.co.uk




______________________________________________________________________________
 Interesting SPAMS Series (contd.)
BEWARE OF SPAMS...............

Interesting SPAMS: You'll enjoy them.. Read It .. But dont believe it....


As I keep telling you about the SPAM emails, it's very interesting as one of my friend got an email from the below details, today.


_______________________________________________________________________________



from                    Irata Duka irataduk23@yahoo.fr 
date                    Mon, Sep 5, 2011 at 5:30 AM
subject               ABOUT ME
signed                -byyahoo.fr
Important mainly because of the people in the conversation.


Contents of email:


ABOUT ME
With Love,
I was searching for a foreign reliable partner. With due respect and much sincerity of this purpose. Honestly my condition here in Dakar Senegal  is quite unbearable and I am sick and tired. The battle for Abidjan, the country's most important city, has come at a terrible price, the day after Ouattara's forces took the western town of Duekoue, intercommunal fighting broke out, killing at least 800 people's.
In Abidjan, residents have cowered inside their homes, sleeping in bathrooms and under their beds for fear of stray bullets.
Gbagbo, 65, has been seen in public, also captured, Ouattara's fighters succeeded in taking nearly 80 percent of the Poland-sized nation, entering Abidjan for what appeared to be the final battle.

I wish to share with you in confidence, because my late parents left some amount of funds ( 3M Usdollars), which I'm next of kin. I don't want this fund to go into Bank treasury as unclaimed bill. I'm right here at Dakar Senegal, And i will be highly appreciated if you can come down Dakar Senegal to enable this conduct in a legal way as witness, If you can't help, please don't break my heart because my life really endanger right here.

The Banking Law and guideline stipulates that if such fund remained unclaimed after One (1)year, the fund will be transfered into the Bank treasury as unclaimed fund. Moreover, i wanted to facilitate this agreement by myself, but due to my situations, that's why I seek for your assistance by the fact that my partner must apply first as relation or foreign partner to stand on my behalf for easy and effective communication as all required arrangements.

Next, you have to agree to open an account with the Bank on your name on conclusion, and deposit the fund into the account, which they will issue you with an unlimited Virtual Card which will allow you to withdraw up to $100,000.00 daily from BankCard which be provided for you, and also to cover insurance and documentation for the account to be opened, put all i need your assurance, trust and commitment, to be dealt with carefulness to enable us understand more better with the fund to be a benefit to every one.      

Dear everything was legally deposited prove to my proposal for verification and confirmation. You should call me +221 76-471-08-38 ask of Miss Irata as you call, email  (rev_fr_wilfredtd@yahoo.fr )  , if you only have the desire without any force. I like honest and understanding, truthful and a man of vision.
Yours God Fearing Lady
M.Irata


________________________________________________________________________________
Interesting SPAMS Series (contd.)
BEWARE OF SPAMS..

Wednesday, August 17, 2011

How to: Modify Column Data Types (Visual Database Tools)

To modify the data type of a column


1.In Object Explorer, right-click the table with columns for which you want to change the scale and click Design.
The table opens in Table Designer.

2.Select the column for which you want to modify the data type.

3.In the Column Properties tab, click the grid cell for the Data Type property and choose a new data type from the drop-down list.

The new data type is assigned to the column after you click outside the grid cell or use the TAB key to move to another grid cell. It takes effect in the database when you save your changes in Table Designer.

Some time it does not work. Especially if there is a table dependancy (constraints ) and data.
So that time, run the script.

ALTER TABLE table ALTER COLUMN column_name new_data_type


Example .
ALTER TABLE MyTable ALTER COLUMN MyColumn NVARCHAR(100)

Saturday, August 6, 2011

Get job in TCS ... Just in INR 14,700..... Beware of spam emails...


Hard to believe but it's true, people started this business. Today morning,  I received email stating the same.
According to email,  I suppose to deposit a cash of 14,700/-(Fourteen thousand Seven hundred rupees) as an initial amount, and I'll get guaranteed job in TCS.

In order to, aware people around and request not to believe in all these craps. Immediately report, If you come across any consultancy\agency doing business , putting all these toppings of deposit security amount.
Exactly, gluing the email, I received.


Here's the email detail

fromtataconsultancy Service tataconsultancyservice_2011@hotmail.com
reply-totataconsultancyservice_2011@hotmail.com
toinfo@tata.com
dateSat, Aug 6, 2011 at 3:51 AM
subject Dear Applicant...


Tata Consultancy Services(TCS)
5th Floor, PTI Bldg., 4, Parliament
Street New Delhi - 110 001.
Email:tataconsultancyservice_2011@hotmail.com

REF: "TATA CONSULTANCY SERVICE" DIRECT RECRUITMENTS OFFER.

Your Resume has been selected from JOB SEEKERS DATA BASE for our new plant. The
Company selected 62 candidates list for Senior Engineer, IT, Administration,
Production, marketing ,Retail and general service Departments. It is our pleasure to inform
you that your Resume was selected as one of the 62 candidates shortlisted for the interview.

Tata Consultancy Services(TCS)  is involved for Senior Engineer, IT, Administration,
Production, marketing ,Retail and general service Departments in India; The
Company is recruiting the candidates for our new plants in Delhi, Bangalore, Pune.Hyderabad
Kolkata ,Chennai and Mumbai. Your interview will be held at The Company Corporate office in
New Delhi on 21th Of August at 11.30am, we are  pleased to inform you that the
62 candidate’s selected 56 candidates will be giving appointment, meaning your Application can be in progress to the final stage. You will have to come to the Company corporate office in New Delhi. Your offer letter with Air Ticket will be sent to you by courier before date of interview. The Company can offer you a salary with benefits for this post 65, 000/- to 200, 000/- P.M. + (HRA + D.A + Conveyance
and other Company benefits. The Designation and Job Location will be fixing by Company HRD. At time of final process. You have to come with photo-copies of all required documents.

REQUIRED DOCUMENTS BY THE COMPANY HRD
======================================
1) Photo-copies of Qualification Documents.
2) Photo-copies of Experience Certificates (If any)
3) Photo-copies of Address Proof
4) Two Passport
======================================
1. Full Names:
2. Contact Address:
3. Mobile Number:
4. Sex:
5. Age:
======================================
You are to deposit a cash of 14,700/-(Fourteen thousand Seven hundred rupees) as an initial amount in favour of our Company accountant name in charges to collect your payment. Payment for the Rs. 14,700/- (Fourteen thousand Seven hundred rupees) through any [STATE BANK OF INDIA]
(AXIS BANK) OR [ICICI BANK] Branch from your Home City to our Company accountant name in charge. Account NO,  which will be sending to you upon your response. This is a refundable interview security deposit.  Your offer letter With Air tickets will be send to your Home Address by courier after receiving  The confirmation of interview security deposit. This Company will pay all the expenditure to you at the time of face-to-face meeting with you in our corporate office. The Job  profile, salary offer, and date -time of interview will be mention in your offer letter.
Your offer letter will dispatch very shortly after receiving your confirmation of cash deposited in STATE BANK OF INDIA,AXIS BANK OR ICICI BANK. We wish you the best of  luck for the subsequent and remaining stage. The last date of security deposited in  bank  13th Of August 2011 you have to give the information after deposited the Security amount in bank to the Company HRD -direct recruitment via email.

Your Letter with supporting document will be dispatch same time by courier to your postal address after receipt of security deposit confirmation in bank. The interview process and arrangement expenditure will be paid by Tata Consultancy Services(TCS). Lodging, travelling and local conveyance actual will be paid by Tata Consultancy Services(TCS) as per  bills. The candidate has to deposit the initial refundable security as mentioned by HRD.
NB: You are advice to reconfirm your mailing address and phone number in
your reply. And 14,500/- (Fourteen thousand Five hundred rupees) will be the refundable
Amount, as 200 rupees will be deducted as bank charges for funds deposit. And if
you are been selected or not, still the amount will be refunded to you, as the amount
is just to prove that you will be coming for the interview in order for us not to run at
lost after sending you the air ticket and you don't show up on the day of interview.
Wishing you the best of lucks.


Regards,
Mr.Sai Kumar Patil
SENIOR H.R MANAGER


Please be aware of this kind of emails. And please help me to let other people aware. Immediately report,  if by chance, anyone of you come to know about  the originators of this kind of business.

I heard, another fraud agency of this kind was doing the similar business , in the name of Wipro.

Big Giant like Wipro and TCS has a moral responsibility for society to find out the agencies doing this sort of business or at least make people aware about the frauds (using their reputed names).

Even though, I'm educated, but at first instance, reading first paragraph, It impress me like it's through HR TCS. Later on,  I understood this is a spam. Imagine the desperate and a person-in-need could definitely  believe on this.

If you read the email carefully, you would find it funny, indeed. I'll help you by highlighting the stuffs.
"Your offer letter with Air Ticket will be sent to you by courier before date of interview."
wow , great deal isn't it. But very hard to believe.

Look the document this stupid required.

REQUIRED DOCUMENTS BY THE COMPANY HRD
======================================
1) Photo-copies of Qualification Documents.
2) Photo-copies of Experience Certificates (If any)
3) Photo-copies of Address Proof
4) Two Passport
======================================
Great, they need two passport of mine.

Look at this, now they need money.

"You are to deposit a cash of 14,700/-(Fourteen thousand Seven hundred rupees) as an initial amount in favour of our Company accountant name in charges to collect your payment. Payment for the Rs. 14,700/- (Fourteen thousand Seven hundred rupees) through any [STATE BANK OF INDIA] (AXIS BANK) OR [ICICI BANK] Branch from your Home City to our Company accountant name in charge. Account NO, which will be sending to you upon your response."

Read more,

"Your offer letter will dispatch very shortly after receiving your confirmation of cash deposited in STATE BANK OF INDIA,AXIS BANK OR ICICI BANK"

"This Company will pay all the expenditure to you at the time of face-to-face meeting with you in our corporate office."


Please help society to find out the existence of these kind of people or business. TCS, WIPRO must have done something as their reputed name has been used. Here's they are directly using the TCS office corporate office address.

I'm jotting all this to aware people around and request not to believe in all these craps. Immediately report, if you come across any consultancy\agency doing such business (of putting all the toppings) of deposit security amount. I know there are so many consultancy running, who ask you to deposit some money to provide job.

If any responsible body is seriuos and would really like to investigate against these sort of fake agencies to expose them . Being a responsible  citizen I can help by forward the email which I have received today itself
(6th Aug 2011).

 
One last request , dont believe in all these. Just believe in your self  and apply for job online.

Enjoy and Good Wishes.


Friday, August 5, 2011

SCOPE_IDENTITY() vs. @@IDENTITY - Retrieving Identity for Most Recently Added Row in Table

Returns the last identity value inserted into an identity column in the same scope. A scope is a module: a stored procedure, trigger, function, or batch. Therefore, two statements are in the same scope if they are in the same stored procedure, function, or batch.



SCOPE_IDENTITY, IDENT_CURRENT, and @@IDENTITY are similar functions because they return values that are inserted into identity columns.
IDENT_CURRENT is not limited by scope and session; it is limited to a specified table. IDENT_CURRENT returns the value generated for a specific table in any session and any scope. For more information, see IDENT_CURRENT (Transact-SQL).
SCOPE_IDENTITY and @@IDENTITY return the last identity values that are generated in any table in the current session. However, SCOPE_IDENTITY returns values inserted only within the current scope; @@IDENTITY is not limited to a specific scope.
For example, there are two tables, T1 and T2, and an INSERT trigger is defined on T1. When a row is inserted to T1, the trigger fires and inserts a row in T2. This scenario illustrates two scopes: the insert on T1, and the insert on T2 by the trigger.
Assuming that both T1 and T2 have identity columns, @@IDENTITY and SCOPE_IDENTITY will return different values at the end of an INSERT statement on T1. @@IDENTITY will return the last identity column value inserted across any scope in the current session. This is the value inserted in T2. SCOPE_IDENTITY() will return the IDENTITY value inserted in T1. This was the last insert that occurred in the same scope. The SCOPE_IDENTITY() function will return the null value if the function is invoked before any INSERT statements into an identity column occur in the scope.
Failed statements and transactions can change the current identity for a table and create gaps in the identity column values. The identity value is never rolled back even though the transaction that tried to insert the value into the table is not committed. For example, if an INSERT statement fails because of an IGNORE_DUP_KEY violation, the current identity value for the table is still incremented.

SELECT @@IDENTITY
It returns the last IDENTITY value produced on a connection, regardless of the table that produced the value, and regardless of the scope of the statement that produced the value.
@@IDENTITY will return the last identity value entered into a table in your current session. While @@IDENTITY is limited to the current session, it is not limited to the current scope. If you have a trigger on a table that causes an identity to be created in another table, you will get the identity that was created last, even if it was the trigger that created it.
SELECT SCOPE_IDENTITY()
It returns the last IDENTITY value produced on a connection and by a statement in the same scope, regardless of the table that produced the value.
SCOPE_IDENTITY(), like @@IDENTITY, will return the last identity value created in the current session, but it will also limit it to your current scope as well. In other words, it will return the last identity value that you explicitly created, rather than any identity that was created by a trigger or a user defined function.
SELECT IDENT_CURRENT(‘tablename’)
It returns the last IDENTITY value produced in a table, regardless of the connection that created the value, and regardless of the scope of the statement that produced the value.
IDENT_CURRENT is not limited by scope and session; it is limited to a specified table. IDENT_CURRENT returns the identity value generated for a specific table in any session and any scope.
To avoid the potential problems associated with adding a trigger later on, always use SCOPE_IDENTITY() to return the identity of the recently added row in your T SQL Statement or Stored Procedure.



@@IDENTITY to retrieve the identity of the most recently added row in a table.  Although this is one of those common practices in SQL Server 7, which does not have a SCOPE_IDENTITY()function, it is no longer the accepted way to get the identity of the most recently added row in a table in SQL Server 2000 and SQL Server 2005.
@@IDENTITY returns the most recently created identity for your current connection, not necessarily the identity for the recently added row in a table.  You could have a situation where there is a trigger that inserts a new record in a Logs Table, for example, when your Stored Procedure or INSERT SQL Statement inserts a record in the Orders Table.  If you use@@IDENTITY to retrieve the identity of the new order, you will actually get the identity of the record added into the Log Table and not the Orders Table, which will create a nasty, nasty bug in your data access layer.
To avoid the potential problems associated with someone adding a trigger later on, always use SCOPE_IDENTITY() to return the identity of the recently added row in your INSERT SQL Statement or Stored Procedure.

Wednesday, July 27, 2011

Bharat Ratna......India's Highest Civilian Award... Politics or Awareness...

Bharat Ratna...... The Republic of India's Highest Civilian Award, awarded for the highest degrees of National Service.
Service includes  Literary, Artistic, Economics and Scientific Achievements.

Strong education system of India, always mentioned (in curriculum text books)  the dignity of this award. Every citizen and student aware of  what this award means.
It's always been a most important General Knowledge question in all level of educational and competitive examinations.

I remember, we used to mug about it with very high respect as a part of our General Knowledge (GK) high school curriculum . The things to remember about, the Recipient Name, Year and the Field to achieve this award.
Time Changes, Things changes,  Generation Changes and within all these natural process of change, India as a Nation changed as well.
Just crossing the puberty age India as a nation gradually kept it's feet in prime age. Yes, India enters into its youth. Every thing drastically changed. India become much more glamorized, wealthier, globalized, going to be mighty global economy.
Among all these add on drastic changing process. It's not important how much Indian foreign policy\politics changed or India's global politics changed but the inter-national politics definitely not changed, little bit.

Political leaders still follow the same old conventional and orthodox way of  politics. Yes, in a name of change in politics we can see some new and highly educated young blood entered. But , that too not by choice but that is just by chance or their luck or their legacy.

Anyways, we're here to discuss the BHARAT RATNA.

The award was established by the first President of India, Dr. Rajendra Prasad, on 2 January 1954.
Till date,  41 awards has been awarded. Out of 41 awards, one is awarded to a naturalised Indian citizen, Mother Teresa (1980), and two Non-Indians, Khan Abdul Ghaffar Khan (1987) and Nelson Mandela (1990).

Here's the list of Bharat Ratna Recipients (in reverse chronical order).

41. Pandit Bhimsen Joshi (2008)
40. Kumari Lata Dinanath Mangeshkar (2001)
39. Ustad Bismillah Khan (2001)
38. Prof. Amartya Sen (1999)
37. Lokpriya Gopinath Bordoloi (1999)
36. Loknayak Jayprakash Narayan (1999)
35. Pandit Ravi Shankar (1999)
34. Shri Chidambaram Subramaniam (1998)
33. Smt. Madurai Shanmukhavadivu Subbulakshmi (1998)
32. Shri (Dr.) Avul Pakir Jainulabdeen Abdul Kalam (1997)
31. Smt. Aruna Asaf Ali (1997)
30. Shri Gulzari Lal Nanda (1997)
29. Shri Jehangir Ratanji Dadabhai Tata (1992)
28. Shri Maulana Abul Kalam Azad (1992)
27. Shri Satyajit Ray (1992)
26. Shri Morarji Ranchhodji Desai (1991)
25. Shri Rajiv Gandhi (1991)
24. Sardar Vallabhbhai Patel (1991)
23. Dr. Bhimrao Ramji Ambedakr (1990)
22. Dr. Nelson Rolihlahla Mandela (1990)
21. Shri Marudur Gopalan Ramachandran (1988)
20. Khan Abdul Ghaffar Khan (1987)
19. Shri Acharya Vinoba Bhave (1983)
18. Mother Teresa (Agnes Gonxha Bojaxhiu) (1980)
17. Shri Kumaraswamy Kamraj (1976)
16. Shri Varahagiri Venkata Giri (1975)
15. Smt. Indira Gandhi (1971)
14. Shri Lal Bahadur Shastri (1966)
13. Dr. Pandurang Vaman Kane (1963)
12. Dr. Zakir Hussain (1963)
11. Dr. Rajendra Prasad (1962)
10. Dr. Bidhan Chandra Roy (1961)
09. Shri Purushottam Das Tandon (1961)
08. Dr. Dhonde Keshav Karve (1958)
07. Pt. Govind Ballabh Pant (1957)
06. Dr. Bhagwan Das (1955)
05. Shri Jawaharlal Nehru (1955)
04. Dr. Mokshagundam Vivesvaraya (1955)
03. Shri Chakravarti Rajagopalachari (1954)
02. Dr. Chandrasekhara Venkata Raman (1954)
01. Dr. Sarvapalli Radhakrishnan (1954)

 The award was briefly suspended from 13 July 1977 to 26 January 1980.
 
So wondering, why did I briefly discuss about politics in between . This highly dignitary award has off and on being political object and being discussed as controversial way.  Like, every highly respected awards (eg, Nobel Prize) , BHARAT RATNA too have some protocols. The Bharat Ratna too is having some guidelines and qualifications.
 
(Apologies,  if any one have the objection)  Most interesting thing about this great award is, some times it discussed and molded as a political object.
 
One of the incident , it was when it's declared for Subhash Chandra Bose in 1992, which was later withdrawn due to a some reasons.  ( read in wiki)
 
Now,  the fun started in April 2011. Occasion was India won the Cricket world Cup.

(I too am,  a great fan of cricket. When one talk about mordern cricket , one cannot disintegrate Sachin Tendulkar from the game. Any person who love the game cricket can't ignore Sachin, the legend. _
 
(The below paragraph is quite hypothetical guys.. just imagining ...) As we know fans are always crazy , some how someone might made some remark about Legendary Sachin that SACHIN is a BHARAT RATNA.....
.......Fine........... Well......Agreed....
Sachin is Bharat Ratna. Not only the whole India but the whole world Love him.
 
 
But indeed,  did anyone try to understand the fact that how intricate would it be to declare Sachin, the  Bharat Ratna?.
Does anyone,  evaluate the technical limitations to declare the award to him.?
I guess, no.. nobody.

The prime technical difficulty is the award is only given in the field of services  Literary, Artistic and Scientific Achievements.
 
Now the politics and poor politicians came into picture, talks started about to amend the guidelines and qualifications of the award.
Can easily  comprehend, Sachin is a big name and utmost popular among nation, entire nation love him. Seeking his popularity and Just to please cricket lovers, Sachin lovers and take the credit that we change and include the sports in the service list of the award, government started the thread.
No political party opposes as after all they need votes, from public.

Astonishingly, they approch towards to change the guidelines and qualification of the Highest Civilian Award.
 
Grow up Govenment....
The True Heros like Sachin does not require any honor like this. Hero like him lives in the heart of billions.

Continuing with the sad political story, Now this hurdle is also seems to be in resolving stage and most of  the political leaders, agreed to include sport on the list. Atleast government proposed BHARAT RATNA for Sachin.

(Reason is obvious, noone want to hurt the emotions of others, some of us realise but hestiate to speak against .)
 
HOLD ON, What's going on ...
Is it fun ... Is politics a power game ....
Can you answer these questions of normal intellectual and educated person of the Nation.

Did you guys change the guidelines when the award  declared to Mr. Bose was withdrawn ?
Is any global Highest Civilian Award included sports?
 
Being commercially successful in any field does make you eligible to deserve the Highest Civilian Award?
What ever rules, guidelines or prototypes had been made for any foundations (either award like this or our constitution) in past, has it's meaning and vision.
It's not like during the initial proposal or establishment of the award, the sport was not there as a part of  society.
Hockey was the most popular sport of that era.

Now some people (hockey lovers) realize, that government already reached  too far to manipulate the service list of BHARAT RATNA. So, they proposed DyanChand, as a sound contester to get BHARAT RATNA. And they are true,  in actual.

No doubt, Sachin is legend of modern cricket , no reasons why shouldn't we praise him with high dignity.
No doubt, he had attended,  all possible heights of success and records. His commitment to nation is superb and appreciable . He has been serving the nation for last 2 decades. His achivements are remarkable and unachieveable. He set up untouchable landmark in the game of cricket.He is most successful persona in all format of game.  He can be addressed as God of cricket, in every way of cricket.
 
Still, I do have couple of questions in my mind.
1. Isn't Sachin too young, to get the honor known as BHARAT RATNA.
2. After so many achivements, does he still comparable with the personalities listed in list of 41 noble personalities, who got the honor.
3. His commitment and dedication is always unquestioned. Can he be rated above Dhyan Chand (hockey player)?
4. If we want to consider Sachin. Can't we put PT Usha and Vishwanathan Anand in the same list?
5. Dont we already have separate award format for sports?

Dont make mockery of the things ...

.Time to think now....
Think before you act ....

Without being political and emotional over the matter, I propose one solution isn't it possible to introduce another award stating equivalent to BHARAT RATNA, in the field of commerical activities (including sports and entertainment industry( or any commerical activities)).
Without touching the existing format of great BHARAT RATNA.

 
 Any suggestions appreciated..............

Date::  11/12/2011.
I wrote this article on July 27 2011. Today I came to know Justice Katju share the same views as I was\am.

http://timesofindia.indiatimes.com/india/Bharat-Ratna-to-cricketers-filmstars-a-mockery-of-award-Justice-Katju/articleshow/11182465.cms

Justice is quite correct , courageous and sane person. May be , thousands of us might be thinking like him or me . But not able to express the views in public.
As Justice is,  in good position to put his thoughts across media so he can express it in public.
Kudos for you Justice Katju.
I'm no-body so I'm writing my views as very common man. I'm sure not body is even going to read it. (:(( ).

Back to topic.  Sure,  mastering in game or cinema is a commitment,  dedication and hardwork . But it;s a God gift too. And surely we should not forget in return of hardwork and dedication, players and movie stars earning a lot of money and their earnings are coming very little or nothing back to society.

Please dont play with the criteria of this highest honaray award; it's very special;  it was especially and intentionally formatted & decidated to highly intellectual individuals. Not like any body.

No offend to anyone. It's just my thoughts which now Justice Katju approved.

 
 
 



Thursday, July 21, 2011

Is Big Players in web sites (like yahoo, TOI, ICICI Bank) thinks Internet Audience, Fool?

Decade 2000-2010 brought new catalyst in the internet websites, thousands of new website being lauched every day throughout the world.
The numbers are multiplying like anything on hourly basis. But , no second thoughts, to the saying "brand is brand". Avid and regular internet users, like me still like to follow the standards and go the regular branded websites.
Each and every website is having it's own regular stream of visitors\users. In technical terms, techies say it users traffic. Every website is having it's own kind of visitor\customer. 

Just think of this way, starting my day in morning,  I visit some regular websites likes gmail, yahoo mail. If I feel like to know, the happening around the world I prefer to visit websites like guardian.co.uk, nytimes. com, timesofindia.com, cnn.com. Since, I visit these websites number of times a day. So,  I provide the regular traffic to these websites.

Similarly, daily I do trading by visiting some trading website. Visit couple of  banking website to check my bank account, for shopping, I visit amazon. Travelling websites, some deals website, some technical websites like MSDN and others and some times google anything random.

So taking me as an example, alone myself providing traffic to hundreds of websites per day and providing thousands of click per hour. For some brands(say 25-30 website) of website I'm regular visitor and for some I'm random visitor.

So here I'm talking about the responsibility of the web site provider to take ownership and take care to it's regular visitors.But unfortunately, some provider completely fail in doing so and I found them completely irresposible in that terms.

I have had a very unpleasant, irritating user experience from the leading website providers. The providers by now become a brand in internet business.

Citing an example of today morning (July 21 2011), going though the yahoo news . One news line-heading, caught my attention and I want to click it, <> it took me to some other international news.

Trying to do:



Result provided by YAHOO



Wondering, taking the responsiblilities, do these companies really test the applications before feeding to customers or for saving the cost they treat customer as their testers.
From last four months yahoo website was crashing when ever you want to go to the photos page in http://www.yahoo/omg/photos
or videos never come up when where you visit the video page.

Yahoo is in the losses, is this the reason to cater this frustrating web pages to visitors OR Yahoo is in losses due to this regular practice. Only YAHOO management knows all about this.

Another example of the most famous website from India news Time Of India. Poor TOI, I do have impression that  they do not have any international standards level  news drafting editorial team for website news. Still I believe and agree it's one of the most popular web news paper.

The problem of these guys is most congested internet advertisement and irregular, periodic advt. popup and sometimes the load music as soon as pop-up windows comes out.
Do TOI guys really have sense for user convenience, is it a fun or what?  Do they take the news editing seriouly in web too. As they (were) serious in print media some decades back.

These web news papers editorial board need to understand the power of web news too. In case of TOI, I simply do not get the need of unusual adversiting. More over,  they are trying to do it when their newz contains are not to the up-international standards. These irritating advt. only putting more bitter topping over the bitter catered cake (of newz contents).

Another example of the website like ICICI bank. ICICI bank suppose to be latest bank in India. I'm not aware about it popularity, globally. Quite slow website, you'll find the website down, sporadically. Do you expect a second largest bank website could be too slow to log-in and can get down anytime. Anytime you might be in-need to use it urgently. ( though, now I heard they are working over it. )

In the case of ICICI's money2India website, One of the most tragic activity they did. In process to renovate the website they remove (rarely used) or less used account and the customer who were not so frequent. I donot know how valid is it?
Can any large bank afford to have the irregular website, moreover when you have paralysed customer service.

Surprising, astonishing but true. No doubt,  the above cited are big companies and having lot of customers around. Is it because they are old companies, they are getting advantage of  population (in India). I rate them irresposible, do you? I think these companies have yet to understand the power and potential of web based internet platform.
Some one responsible from these companies management has to answer it ? They should learn the visitor experience . They should understand this new era of customers.

Any comment appreciated.......






Tuesday, July 19, 2011

_mbsspnp, _strspnp, _wcsspnp, _tcsspnp

unsigned char *_mbsspnp( const unsigned char *string1,   const unsigned char *string2 );

Routine Required Header Compatibility
_mbsspnp Win 95, Win NT
_strspnp Win 95, Win NT
_wcsspnp Win 95, Win NT

Libraries
LIBC.LIB Single thread static library, retail version
LIBCMT.LIB Multithread static library, retail version
MSVCRT.LIB Import library for MSVCRT.DLL, retail version

Return Value:
_strspnp, _wcsspnp, and _mbsspnp return a pointer to the first character in string1 that does not belong to the set of characters in string2. Each of these functions returns NULL if string1 consists entirely of characters from string2. For each of these routines, no return value is reserved to indicate an error.

Parameters
string1 : Null-terminated string to search
string2 :   Null-terminated character set

Remarks:
The _mbsspnp function returns a pointer to the multibyte character that is the first character in string1 that does not belong to the set of characters in string2. _mbsspnp recognizes multibyte-character sequences according to the multibyte code page currently in use. The search does not include terminating null characters.

The generic-text function _tcsspnp, defined in TCHAR.H, maps to _mbsspnp if _MBCS has been defined, or to _wcsspnp if _UNICODE has been defined. Otherwise _tcsspnp maps to _strspnp. _strspnp and _wcsspnp are single-byte character and wide-character versions of _mbsspnp. _strspnp and _wcsspnp behave identically to _mbsspnp otherwise; they are provided only for this mapping and should not be used for any other reason. For more information, see Using Generic-Text Mappings and Appendix B, Generic-Text Mappings.

MSDN Example:
/* STRSPN.C: This program uses strspn to determine  the length of the segment in the string "cabbage"
* consisting of a's, b's, and c's. In other words,  it finds the first non-abc letter.*/

#include
#include
void main( void )
{
   char string[] = "cabbage";
   int result;
   result = strspn( string, "abc" );
   printf( "The portion of '%s' containing only a, b, or c "  "is %d bytes long\n", string, result );
}

OutputThe portion of 'cabbage' containing only a, b, or c is 5 bytes long

See my Example , that will give you clear picture and understanding:
Sample code from my project:
void CUnicodeCharDlg::OnBnClickedButton2()

{
   CString csData;
   m_edit2.GetWindowText(csData);
   UpdateData(TRUE);
   static TCHAR * lpszValidChars = _T("ABCDEFGHIJKLMNOPQRSTUVWXYZ");

    // szText is the string you wanna check for invalid chracters
    if     (_tcsspnp(csData, lpszValidChars) != 0)
         {   MessageBox("Invalid Input Characters!", "Error", 0); }

         else {  MessageBox("Thats Correct Input!", "Great", 0); }
}

Exploring CEdit VC++\MFC

CEdit Class

Provides the functionality of a Windows edit control.

class CEdit : public CWnd


Details:
An edit control is a rectangular child window in which the user can enter text.

You can create an edit control either from a dialog template or directly in your code. In both cases, first call the constructor CEdit to construct the CEdit object, then call the Create member function to create the Windows edit control and attach it to the CEdit object.

Construction can be a one-step process in a class derived from CEdit. Write a constructor for the derived class and call Create from within the constructor.

CEdit inherits significant functionality from CWnd. To set and retrieve text from a CEdit object, use the CWnd member functions SetWindowText and GetWindowText, which set or get the entire contents of an edit control, even if it is a multiline control. Text lines in a multiline control are separated by '\r\n' character sequences. Also, if an edit control is multiline, get and set part of the control's text by calling the CEdit member functions GetLine, SetSel, GetSel, and ReplaceSel.

If you want to handle Windows notification messages sent by an edit control to its parent (usually a class derived from CDialog), add a message-map entry and message-handler member function to the parent class for each message.

Each message-map entry takes the following form:
ON_Notification( id, memberFxn )
where id specifies the child window ID of the edit control sending the notification, and memberFxn is the name of the parent member function you have written to handle the notification.

The parent's function prototype is as follows:
afx_msg void memberFxn( );

Following is a list of potential message-map entries and a description of the cases in which they would be sent to the parent:

ON_EN_CHANGE The user has taken an action that may have altered text in an edit control. Unlike the EN_UPDATE notification message, this notification message is sent after Windows updates the display.
ON_EN_ERRSPACE The edit control cannot allocate enough memory to meet a specific request.
ON_EN_HSCROLL The user clicks an edit control's horizontal scroll bar. The parent window is notified before the screen is updated.
ON_EN_KILLFOCUS The edit control loses the input focus.
ON_EN_MAXTEXT The current insertion has exceeded the specified number of characters for the edit control and has been truncated. Also sent when an edit control does not have the ES_AUTOHSCROLL style and the number of characters to be inserted would exceed the width of the edit control. Also sent when an edit control does not have the ES_AUTOVSCROLL style and the total number of lines resulting from a text insertion would exceed the height of the edit control.

ON_EN_SETFOCUS Sent when an edit control receives the input focus.
ON_EN_UPDATE The edit control is about to display altered text. Sent after the control has formatted the text but before it screens the text so that the window size can be altered, if necessary.

ON_EN_VSCROLL The user clicks an edit control's vertical scroll bar. The parent window is notified before the screen is updated.
If you create a CEdit object within a dialog box, the CEdit object is automatically destroyed when the user closes the dialog box.

If you create a CEdit object from a dialog resource using the dialog editor, the CEdit object is automatically destroyed when the user closes the dialog box.

If you create a CEdit object within a window, you may also need to destroy it. If you create the CEdit object on the stack, it is destroyed automatically. If you create the CEdit object on the heap by using the new function, you must call delete on the object to destroy it when the user terminates the Windows edit control. If you allocate any memory in the CEdit object, override the CEdit destructor to dispose of the allocations.

CEdit::GetSel 
Call this function to get the starting and ending character positions of the current selection (if any) in an edit control, using either the return value or the parameters.

DWORD GetSel( ) const;

void GetSel(  int& nStartChar,  int& nEndChar ) const;

Parameters:
nStartChar :  Reference to an integer that will receive the position of the first character in the current selection.

nEndChar : Reference to an integer that will receive the position of the first nonselected character past the end of the current selection.

Return Value
The version that returns a DWORD returns a value that contains the starting position in the low-order word and the position of the first nonselected character after the end of the selection in the high-order word.

// The pointer to edit box.

CEdit* pEdit;
// Set the selection to be all characters after the current selection.
DWORD dwSel = pmyEdit->GetSel();
pmyEdit->SetSel(HIWORD(dwSel), -1);

CEdit::SetSel
Call this function to select a range of characters in an edit control.
In two Different ways:

i)   void SetSel( DWORD dwSelection, BOOL bNoScroll = FALSE );
ii)  void SetSel( int nStartChar,  int nEndChar,  BOOL bNoScroll = FALSE );

Parameters: dwSelection
Specifies the starting position in the low-order word and the ending position in the high-order word. If the low-order word is 0 and the high-order word is –1, all the text in the edit control is selected. If the low-order word is –1, any current selection is removed.

bNoScroll
Indicates whether the caret should be scrolled into view. If FALSE, the caret is scrolled into view. If TRUE, the caret is not scrolled into view.

nStartChar
Specifies the starting position. If nStartChar is 0 and nEndChar is –1, all the text in the edit control is selected. If nStartChar is –1, any current selection is removed.

nEndChar
Specifies the ending position.

Example: Ref. above.


Problems and Solutions in CEdit class
Problem 1: I'm tring to set the focus to an edit box with GetDlgItem(IDC_FIRSTNAME)->SetFocus();

then i tried to to select its content with SetSel().  but somehow it does not work.

I Tried this way:
(IDC_EDIT)->SetSel();
IDC_EDIT.SetSel();
m_Edit.SetSel();

Getting compiler Error saying:   "the left part of .SetSel has to be a class/struct/union."  or   "SetSel is no element of CWnd"
how is it correct?

Solution:
You are trying to implement it in a wrong way.
Try to understand here :
GetDlgItem  returns the Adress of your dialog item, but here the dataType is CWnd*


CWnd - is a parent class of all controls - doesn't have a method "SetSel()". This method is declared and defined in the class CEdit, which of course is a child class of CWnd.


Making a call  CWnd* (as you get it from GetDlgItem()) with the "->" operator, the pointer is dereferenced as CWnd.

So all you have to do is to cast the pointer to CEdit*, to to this change your line of code to

CEdit *pYourEdit = (CEdit*) GetDlgItem(IDC_FIRSTNAME);
pYourEdit ->SetSel(0, -1);

Or  use,      ( (CEdit*) GetDlgItem(IDC_FIRSTNAME) )->SetSel(0, -1);

Another way of calling the functions, You can also use , the functions this way.
m_CtlEdit.SetFocus()
m_CtlEdit.SetSel(5,7)


Here is an another sample code:

void CYourDlg::OnButton()
{
   UpdateData(TRUE);
   GetDlgItem(IDC_FIRSTNAME)->SetFocus();
   GetDlgItem(IDC_FIRSTNAME)->SetSel(0, -1);
   UpdateData(FALSE);

}

Monday, July 18, 2011

Detemine if a string contains characters beside english(for example chinese, japanese etc...)

Use the Unicode of a char to determine the Unicode Code Chart. you can find more information about the valid code charts here: http://www.unicode.org/charts/

I found a great piece of code to check if the given string contains chinese characters .

private bool  IsLetterChinese(string strText)
{
     int start = Convert.ToInt32("4E00",16);
     int end = Convert.ToInt32("9FBF",16);

     for(int i=0;i
     if ((Char.ConvertToUtf32(text, i) >= start) && (Char.ConvertToUtf32(text, i) <= end))

    return true;
    return false;
}

Thanks Marc,  for providing this awesome piece of code.

Monday, July 11, 2011

Customer Care - Bank of America

24-hour Automated Support


Report Lost/Stolen Credit Card    All States    1.800.732.9194  7 days a week
Report Lost/Stolen Check Card    International Collect           1.800.848.6090   1.315.724.4022 7 days a week


Report Lost/Stolen Checkbook    California

All Other States

1.800.622.8731

1.800.432.1000

7 days a week







Confirm Balance/Recent Activity,

Transfer Funds

California

All Other States



1.800.622.8731

1.800.432.1000

7 days a week



Checking, Savings & CDs



California

En español 1.800.622.8731

1.800.622.8731 opt. 9 Monday - Friday*

7 a.m. - 10 p.m.

Saturday - Sunday*

8 a.m. - 5 p.m.







All Other States

En español 1.800.432.1000

1.800.688.6086 Monday - Friday*

7 a.m. - 10 p.m.

Saturday - Sunday*

8 a.m. - 5 p.m.







TTY 1.800.288.4408 Monday - Friday*

7 a.m. - 10 p.m.

Saturday - Sunday*

8 a.m. - 5 p.m.







For Business Account Holders

1.888.Business

(1.888.287.4637) Monday - Friday

7 a.m. - 7 p.m. ET

Saturday

7 a.m. - 4 p.m. ET



Online Banking Sign-in Issues and Technical/Software Support



California 1.800.792.0808 Monday - Friday*

7 a.m. - 10 p.m.

Saturday - Sunday*

8 a.m. - 5 p.m.







All Other States 1.800.933.6262 Monday - Friday*

7 a.m. - 10 p.m.

Saturday - Sunday*

8 a.m. - 5 p.m.







For Business Account Holders 1.866.758.5972 Monday - Friday*

7 a.m. - 7 p.m.

Saturday*

7 a.m. - 4 p.m.



Bank of America Credit Card



All States 1.800.732.9194 24 hours a day

7 days a week







Collect 1.757.677.4701 24 hours a day

7 days a week







TTY 1.800.222.7365 24 hours a day

7 days a week



Investments



Self-Directed Investing

All States 1.800.926.1111 Monday - Friday

8 a.m. - 12 a.m. ET

Saturday

8 a.m. - 9 p.m. ET







Full-Service Investing

All States

1.800.822.2222 Monday - Friday

8 a.m. - 12 a.m. ET

Saturday

8 a.m. - 9 p.m. ET



Mortgages, Loans and Lines of Credit



Existing Mortgages

All States

1.800.669.6607 Monday - Friday

8 a.m. - 9 p.m. ET







Existing Home Equity Lines of

Credit & Loans

California

All Other States



1.800.621.1044

1.800.934.5626 Monday - Friday

8 a.m. - 9 p.m. PT

Monday - Friday

8 a.m. - 9 p.m. PT







New Mortgage Applications

All States

1.888.293.0264 Monday - Friday

8 a.m. - 11 p.m. ET

Saturday

9 a.m. - 5 p.m. ET







New Home Equity Lines

of Credit & Loans

All States



1.888.293.0264 Monday - Friday

8 a.m. - 11 p.m. ET

Saturday

9 a.m. - 5 p.m. ET







Auto, RV, Boat, Motorcycle or

Aircraft Loans

All States



1.800.215.6195 Monday - Friday

9 a.m. - 8 p.m. ET

Saturday

9:30 a.m. - 6 p.m. ET



New Accounts



All States 1.800.900.9000 24 hours a day





*Hours reflect local time, unless otherwise noted as a specific time zone.

Health Benefits of Cashews

  Benefits of Cashews. Healthy food is an integral part of healthy body. Regular exercises such as Yoga and healthy diet is important to...