Sunday, August 29, 2010

3 Things about me!



First time in my blogging career I am tagged by someone. It's really fun writing about yourself , sharing your thoughts with other.I have been tagged by my friend vijay.
So here I am writing about myself.
I have tagged some of my friends in this blog (scroll down to see if you are in that list), if you are not on the list and wud love to write about urself.. pls go ahead and get tagged... dont forget to publish you blog to me and ur freinds though... wud love to read it! :)




3 places i would pack my travel bag for
1. The great wall of china
2. burj dubai
3. Durg my second home
3 On-Screen charectors i love to watch

1. Abhishek in Guru
2. Russel crowe in Gladiator
3. Eric bana in Troy

3 moods that describes me the best

1. sad (when leaving durg)
2. Thoughtful (always
3. angry.(when using public transportations)

3 things i always think of doing on a weekend... but never did.. :)

1. Starting a new story
2. Dating one of my old and good friend
3. Taking a big nap

3 things from my childhood that i cant forget

1. Going to my mamaji place
2. watching friday night movies on doordarshan
3. fights with my sbilings

3 things i wud never say no to

1. Mango shake


2. Golgappe
3. Any cuisine prepared by maa

3 things i cant live without

1. PC, internet etc..
2. Books, to see them at least
3. my wallet
Yes, you have been Tagged!!! :))

If you don't see you name in the tags, then add your name in the comment, i will tag that....

Writing headers after response has already been sent problem

Hii readers! , a hearty good morning/afternoon/evening!! in this small article, i will first introduce you with the problem which many people face and don't seem to find a solution in a straight forward manner, then i will tell you a very easy solution to the problem.

Introdcution to the problem : This problem relates to server side programming (the problem is technology independent, like php,asp,jsp). It is quite common observation that, the server side page in which you are programming will contain the client side HTML/DHTML/XHTML code. So this is what exactly the part of the data that would be sent by the server as response. the normal behavior of a server is to start sending data (emptying the output buffer ) or start output streaming as soon as the output buffer starts getting filled. If suppose, the output streaming has been started(which the server will automatically do, if it has got anything in it's o/p buffer) and then you want to cancel the o/p, means you want the client not able to see the content of current page, hence you w'd want to redirect the user to another page/location. And this is where we will get a big fat error. telling that "can not modify headers already sent". (in php) It is quite logical, because headers had already been sent at the time output streaming started, and then if you ask the server to redirect the user (a redirect needs a particular header) , then how it will be possible?? So this was the problem

Solution to the problem : The solution is straight forward, what we have to do is , tell the server to not to start output streaming automatically, i w'd have requested my server in these words if however it was a human!! " my inti server, please be a more patient and keep all the output data with you untill i tell you when to send it". Now to achieve this , different technologies(php.ASP,JSP etc.) have their own ways. I will tell you the php way
to tell the server to just buffer the output data and not to send it , use ob_start();
to send the output data, use ob_flush_clean();
and to redirect to another location/page, use ob_end_clean() and then your redirect code like
header('Location:anotherpage.php');


Hope this saves your time, if you have any queries then you can buzz me at my mailbox too ....

Wednesday, August 18, 2010

My current employer

my recent work! my current employer company is based in New Delhi, the environment is cool,calm and totally burden free! You can enjoy a lot here while doing work, actually you will feel your work as a great joy. We are totally out of any formal decorum. We believe in targets and goals, not in a specific methods in achieving them. So, if you feel alike,you can join the 1solutions team , send your resumes at careers@1solutions.biz.

more

Sunday, August 8, 2010

A great book for Networking with java


By Elliotte Rusty Harold
Publisher: O'Reilly Media
Released:
August 2000
Pages:
760

http://rapidshare.com/files/26270759/_1565928709_Java_Network_Programming__2nd_Edition.pdf.html

falling prices of web applications...

This article originates from a signboard in New Delhi, which drew my attention. The signboard boldly echoed the price they(company) charge for developing a static website, "Websites @ 2999 only", i really felt that , "this is the highest degree of cheap labor". And this is very true for all small Indian IT companies, mitigating their own future prospects (the prospects, which we proudly own as being one of the largest IT services provider country) . I will illustrate how, these low prices attract at least those clients whose parameters for a good website and services are not very clear to them. their picture for a website is just confined to what appears in a browser.And the number of these clients is remarkably big.So a big shift from other countries/big companies/quality providers to price negotiators can occur. And if this tradition of low prices is forwarded in future, all other(same type of companies) will be bound to offer their services at the same rate. So all will have almost equal share of those clients, and all being served at the same low rates, consequently this will appear like "hum to dubenge sanam, tumhe bhi le dubenge"....all are eating less, for eating more if you again lessen the prices and expected that, yes! now more clients will come, this will make others to revise their prices and you will eat lesser.

so, low prices are definitely one of the primary concerns for clients, but this should not be reflected in IT business strategies , rather quality of work, good maintainence schemes, good technical support and other very obvious parameters can fetch better results...

Saturday, July 24, 2010

MIME type for docx

Many people think that MIME type for .docx documents (MS Word 2007 ) is same as .doc documents,(application/msword), but that's a blunder, because microsoft has introduced new MIME types for new version of MS Word ...

so to ease your pain of searching it here and there, i am providing valid MIME type for .docx

application/vnd.openxmlformats-officedocument.wordprocessingml.document

hope it helps and hence saves your precious time....