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....

Sunday, June 6, 2010

मर जाता हूँ

इतनी प्यास क्यूँ मेरे मन में
बादल का एक टुकड़ा ना मेरे आँगन में
मेरा जहाँ भी अब तो आबाद करो
पूरा शहर भीगा मेरे घर में भी बरसात करो

दो वापस मुझे मेरा जहाँ
मेरी भी तो सुनो तुम हो कहाँ
मेरे दर्द का इन्साफ कर दो
और मेरे गुनाहों को माफ़ कर दो

मेरी मंजील का ये सुना डगर
और मैं भटका हुआ इसपर
मेरी दुनिया का सूरज है खो गया
ना मंजिल का है ठीकाना, न राह आये नज़र

बेमतलब सा लगता है ऐसे जीने में
जाने कौन सा डर है अबतक सीने में
अब और क्या है जो जायेगा
जो यूँ चला गया वो वापस ना आएगा

किसी की आहात होती है जब
तुम ना हो ये सोचने से मुकर जाता हूँ
इसीलिए इस पल जिंदा होता हूँ
तुम्हे ना पाकर अगले ही पल मर जाता हूँ

Friday, June 4, 2010

my collection of saddest songs of bollywood


guyz, i enjoy my pain and then love to listen a situational song. i find my pain described in words by these songs.. so here i go with few selections which enhance my pain and turn me into tears...

1. Lambi judai (movie-hero(jackie shroff))
2. Aankh hai bhari bhari (Tumse Acha Kaun Hai)

3. Tujhe yadd na meri aai(Kuch Kuch Hota Hai)

4. Lahoo ban ke aansoo barasne lage hai (Mujhse Shadi Karogi)

5. Aaya tere dar pe deewana (Veer Zara)

6. Ye un dino ki baat hai (Tumse Acha Kaun Hai)
7. Do naina aur ek kahani (Masoom(Shabana Aazmi, Nassarudin Shah))
8.Rone na dijiyega (Jaan Tere Naam)
9.Tu pyar hai kisi aur ka (Dil hai ki maanta nahi)

10. Main rok lu tere badhte kadam (Tujhe meri kasam)



will be adding more...please add from your's side as well to make this list grown sufficiently...

Friday, May 21, 2010

kisi aur ka ghar

tha garv mujhe is shehar mein rehne ka
baatein iski apno mein kehne ka
na jaane vo jamana kab picche chhoot gaya
mere yaadon ke khajane ko koi loot gaya

jis chowk ke chakachoundh ko tarasti thi aankhein
usse hoke guzarne mein ab dar lagta hai
vo bhi is kadar lagta hai
ki ab wahan na jana hi behtar lagta hai

baarish ke baad mitti ka mehakna
subah ki kirno mein chidiyon ka chehkana

hawa ke jhonko se abtak wahi khusbu aati hai
par fir bhi lagta hai koi rishta na baaki hai

sochta hu kya koi apna tha mera
is shehar mein, is watawaran mein
yahan ke logo mein, is paryawaran mein
kuch dur ho jaye,kuch chhoot jaye,aisa kuch kahan tha mera

jane ye kiska dosh hai
kyun hota na mujhe afsos hai
har kona dekha maine, har gali se guzra hu
fir kyun lagta hai, aaj hi aaya hu aur aaj hi ja raha hu

khayal aata hai, dur milon apna ek shehar hai
jahan pe main pala, badha, chalna sikha

pyar ka matlab samjha, pyar karna sikha
apna to bas wahi hai,ye to kisi aur ka ghar hai







abhishek kunal

Wednesday, April 14, 2010

oracle slowing startup process,solved

if you have installed oracle 10g(in windows xp) , then you must be facing the horrible slow startup problem of windows.the problem is by default there are n no of services which are started automatically at the time of system startup. so an obvious solution is to make oracle services manual, means whenever we need we can start the services manually. in this short tutorial i will guide through few easy steps to take you out of this mess.

step 1: we have to set oracle services as manual startup type. to do that , open control panel->administrative tools->Services
in the list of services , look up for these oracle services OracleServiceORCL,OracleOraDb10g_home1TNSListener,OracleOraDb10g_home1iSQL*Plus,OracleDBConsoleorcl

now change their startup type to manual, to do that just double click and then select manual from the dropdown box.and don't forget to click apply.

now whenever you need to start using oracle, you need to start relevant oracle services.
the very first oracle service that is required is TNSListener, to start that u dnt nedd to come here in services list.

start command prompt and type lsnrctl start

then you can start other oracle components,

to start a database of sid orcl

type
oradim -startup -sid orcl


to start enterprise manager service,the command is

emctl start dbconsole
(
this will start enterprise manager for defualt sid, you may have multiple database and hence multiple sid's , so to start enterprise manager for a database of sid orcl2,you need to first set sid environment variable at command prompt the command is set ORACLE_SID=otherdatabasesid)

ask further ....

Saturday, January 23, 2010

link list reversal

here i am providing a very simple algorithm (a program indeed) for reversing a given linked list....

Assumption:- head pointer is provided, the structure of node is as follows

typedef struct node
{
int val;
node *next;
}item;

item* revlist(item *head)
{

/*for reversing , we have to just reverse the next pointer in each node..means if the node A was
pointing to node B and node B was pointing to node C then for reversing we have to,first make A pointed by B's next and B pointed by C's next..means..a parent will become child now and grandchild will become child for the next operation*/


item *parent;
item *child;
item *grandchild;
parent = head;
child = parent->next;
grandchild = child->next;
parent->next = NULL;

while(child!=NULL)
{
child->next = parent;
parent = child;
child = grandchild;
if(child!=NULL)
grandchild = child->next;
}
head = parent;
return head;
}