Tuesday, April 15, 2008

Why free() is not reducing your memory footprint ?

It found very interesting to me, even after i free() d the some dynamically allocated memory with my program, the process seems not reducing any memory in my memory footprint.
And when i researched about this, came to know that, in almost all systems the freed memory will not go to the system heap. instead of it will be there in the process address space for the future memory allocations.
but there is a work around also, there is a function called mmap(), which is used for the private anonymous mappings.
when these are unmapped the memory really is released back to the system. some implementations of malloc()automatically use mmap() where available to perform large allocations; these blocks are then returned to the system on free()

Monday, April 14, 2008

How to withdraw your paypal money directly to a bank account in India

Some very good news for PayPal users in India. You can now transfer money from your PayPal account to any of your bank account in India directly from the PayPal website.

Earlier, the only option for withdrawing PayPal amount in India was a check that normally took 2-3 weeks for processing. The new e-transfer process should take less than a week.

PayPal has also scrapped the withdrawal fees for electronic transfer if the amount withdrawn is more that Rs 7000 and a nominal Rs 50 for small transfers. Earlier PayPal would charge $5 per transaction irrespective of the amount on the cheque.

To get your money from PayPal to a bank account in India, all you require is your bank account number and the IFSCI code of the bank branch where you have the account - call your bank customer care service and ask for IFSC code -it’s an 11 digit code maintained by The Reserve Bank of India.

The e-transfer facility from PayPal India is available to anyone having an account in HDFC Bank, ICICI Bank, ING VYSYA Bank, Axis Bank (formerly UTI Bank), Standard Chartered Bank, State Bank Of India, Bank Of India, Canara Bank, Union Bank of India, HSBC and Citibank India.

Before you withdraw the amount from PayPal to your Indian Bank account, ensure that name of the bank record and PayPal match character by character else the transaction will not go through and PayPal would also charge a INR 250 processing fee.

PayPal offers another option for Indians who hold a Visa credit card or debit card - you can withdraw funds directly to your Visa branded credit, debit or prepaid card.

Is PayPal Income Taxable in India - If you are earning web income through BlogAds, Text Link Ads, eLance, eBay or any other program where the money is deposited in PayPal, it’s very important that you declare the PayPal money while filing the Tax Returns in India.

Can I remit money to India Using PayPal - When you transfer money from PayPal to India, PayPal would pre-populate the surname field for Bank account holder though you are free to use any First Name. So if you are planning to remit money to some relative who share your surname, it is technically possible

Saturday, December 29, 2007

My recommended new year resolutions


Happy New Year 2008 !!!!

A new year is always a good time to set your new goals for next year or coming years. today I’ve written out my resolutions for 2008. some of them were in my last year resolutions, but life is not easy as we think, we always slip in some schedules and plans which we made in past. but still we can hold it tight with us and focus on how to stay on top of our game.

hopefully, these would be my recommended new year resolutions. if there is anybody who can accompany me, i would be happier to share my efforts with you.

Let it be start from the professional side...

Learn a programming language

Learning a new programming language not only gives you more things to put on your portfolio, it also broadens your knowledge and makes you look differently at things and how you’re doing them right now or have done in the past.No matter what language you pick up, there’s only one decent way to really learn it: by putting it to practical use. one more thing to say, it was one of my last year's resolution, but i failed to achieve it in 100% as i planned or wished. i hope this time i will win the game!

Start your own personal/hobby project

Even if it’s just for fun, put your knowledge to some regular use other than your every day work. That way you can learn new techniques, try out new frameworks and tools, and add something to show in your portfolio. You could also become an active member of an open source projects. personally i feel the mozilla is a good place to be in. but still there are a million opportunities in the open source arena.

Read at least 2 books

I'm very bad in that. i will sleep whenever i open the book. its very hard for me to complete a single page in a stretch. But reading is a crucial part of expanding your knowledge. The Pragmatic Programmer’s golden rule is to read one book on technical topics regularly. but be flexible with your own work schedule and daily life

Get away from your computer !!!

Many people has a concept that sitting all the time in front of your console will boost up your productivity and enrich your work life. find some time to spend with your family and friends, your children( don't tell me you are married...you can spend time with your relatives / neighbors children :) ). Even though work’s fun and all, there’s also that world outside. With other people, sun, and lots of things to see. Three dimensions, just waiting to be explored, plan for a weekend trip to near by places, or a trekking, enjoy your holidays and weekends.

Be Romantic !!!

Give a boost to your love life, be romantic, spend some sweet moments with your lover or spouse. i feels now a days we are lacking of openness, thus the problems also. especially among the people working in IT and IT related fields. running behind the money and meet the schedules makes break ups in relationships and family life. so make sure you will not make a chance. if you are married one, plan some trips with your spouse, and if you are still a bachelor like me, find out your lover( This is the time, i feels the google is not enough...still i'm in search..)



well...these are my resolutions...lemme think if anything to be added in to it...will update then!

Friday, December 21, 2007

Good bye to spams in phpBB forum


I was miserably searching for the ways to stop the spammers and automated bots in my phpBB forum - www.indianitforum.com. spammers were hitting our forum by posting a dozen of junks daily. phpBB is having a reasonable good captcha, but it was broken by the intelligent spam bots. my search ends in a simple yet logical solution. the bots are smart enough to break any captchas - but still they are machines ( Thanks to you god, for not giving them the intelligence ) and they can't really THINK! - so the only way to stop them is to ask something that can be answered by a genuine human. and finally it worked....i added a simple question like whats the sum of x + y ? and i tweaked the php code to verify the result and allow the person to register. a million thanks to 'Marshalrusty' for giving the hints on the tweaks. i'm happy to help you on regard of this, if you want any...




Thursday, December 13, 2007

phpBB gold release countdown started!


I like phpBB as millions of others, It is the most powerful and user friendly open source forum framework i had ever seen..
i'm running the Indian IT Forum http://www.indianitforum.com in phpBB 2.0.22 version

and now they are about to release their gold version, and i came to know about this when i checked their site now.. as part of it, they pull down the shutters, and simply placed a counter...check it now...a rare scene!!!

look at the snap of their counter, which i had taken from my machine...