Thursday, June 25, 2009
Monday, June 22, 2009
Sardar's wife
4:02 AM
Developers Web
Sardar ki Biwi bhaag gayi.
3 din baad wapis aayi,
Sardar ghussay se bola:
"Hun ki lain aayi ain..??''
Sardarni:
"Mobile da charger bhul gyi si."
3 din baad wapis aayi,
Sardar ghussay se bola:
"Hun ki lain aayi ain..??''
Sardarni:
"Mobile da charger bhul gyi si."
Pagal aur doctor
4:00 AM
Developers Web
Doctar" pagal se tum pagal kese huway?
Pagal" Main ne 1 Bewa se Shaadi ki,
uski
Jawan Beti se
Mere Baap
ne
Shaadi ki...
youn Meri wo Beti
meri
Maa ban gae,
un k ghar Beti hui To wo meri behn hui
Magr
main uski Naani ka
shohar Tha
isliay
wo meri
Nawasi
bhi hui,
Isi Tarah mera
Beta
apni Daadi ka
Bhai
ban gaya
aur
main apne Betay ka
Bhanja
aur woh.....
Doctar: abay chup kr kiya mujhe bhi pagal kary ga..
Pagal" Main ne 1 Bewa se Shaadi ki,
uski
Jawan Beti se
Mere Baap
ne
Shaadi ki...
youn Meri wo Beti
meri
Maa ban gae,
un k ghar Beti hui To wo meri behn hui
Magr
main uski Naani ka
shohar Tha
isliay
wo meri
Nawasi
bhi hui,
Isi Tarah mera
Beta
apni Daadi ka
Bhai
ban gaya
aur
main apne Betay ka
Bhanja
aur woh.....
Doctar: abay chup kr kiya mujhe bhi pagal kary ga..
Charsi
3:56 AM
Developers Web
Ek charsi nay doston ki dawat ka program banaya,
OR apnay he ghar say raat ko bakra chori kia,
OR khoob dawat ki,
subha jab ghar poncha to bakra ghar main tha,
Bivi say pocha bakra kahan say aya?
Bivi boli bakray ko goli maro!
Yeh batao raat ko choron ki tarhan kutay ko kahan lay kar gay thay?
OR apnay he ghar say raat ko bakra chori kia,
OR khoob dawat ki,
subha jab ghar poncha to bakra ghar main tha,
Bivi say pocha bakra kahan say aya?
Bivi boli bakray ko goli maro!
Yeh batao raat ko choron ki tarhan kutay ko kahan lay kar gay thay?
Jokes
3:53 AM
Developers Web
45 saal ka admi larki dekhne gaya
larki ki maa behosh ho gai
hosh aya
waja puchi boli 25 saal pehle
ye mujhe b dekhne aya tha.
larki ki maa behosh ho gai
hosh aya
waja puchi boli 25 saal pehle
ye mujhe b dekhne aya tha.
Sunday, June 21, 2009
Quotes
8:51 AM
Developers Web
*Being Good to People
is somewhat similar
being a
Goal_Keeper...!!
No matter how many
Goals
You saVe,,,,,
People only remember
the
one,
You missEd.
*"Defeat is not when you fall down...
It is when you refuse to get up".
"Abraham Lincoln"
*The hardest moments are not those when tears flow from ur eyes,its when u hv to hide the tears in ur eyes with a smile to remove tears from someone else's eyes.
*"Never Conclude a Person By His Present Status.
.
Because,
.
Time Has The Great Power To Change A Useless Coal Into a Valuable Diamond."
*'' Whenever there is a hard job to be done, I assign it to a lazy man; he is sure to find an easy way of doing it.''
(W. Chrysler)
*2 Thoughts that
decide your Attitude.
'What U Think of YOURSELF When U Have NOTHING.'
&
'What u Think of OTHERS When U Have EVERYTHING.
is somewhat similar
being a
Goal_Keeper...!!
No matter how many
Goals
You saVe,,,,,
People only remember
the
one,
You missEd.
*"Defeat is not when you fall down...
It is when you refuse to get up".
"Abraham Lincoln"
*The hardest moments are not those when tears flow from ur eyes,its when u hv to hide the tears in ur eyes with a smile to remove tears from someone else's eyes.
*"Never Conclude a Person By His Present Status.
.
Because,
.
Time Has The Great Power To Change A Useless Coal Into a Valuable Diamond."
*'' Whenever there is a hard job to be done, I assign it to a lazy man; he is sure to find an easy way of doing it.''
(W. Chrysler)
*2 Thoughts that
decide your Attitude.
'What U Think of YOURSELF When U Have NOTHING.'
&
'What u Think of OTHERS When U Have EVERYTHING.
Saturday, June 20, 2009
Ahmed Faraz
2:32 PM
Developers Web

sab log liye sang-e-malaamat nikal aaye
sab log liye sang-e-malaamat nikal aaye
kis shahar me.n ham ahal-e-muhabbat nikal aaye
ab dil kii tamannaa hai to ai kaash yahii ho
aa.Nsuu kii jagah aa.Nkh se hasarat nikal aaye
har ghar kaa diyaa gul na karo tum ke na jaane
kis baam se Khurashiid-e-qayaamat nikal aaye
jo dar_paa-e-pindaar hai.n un qatl_gaho.n se
jaa.N deke bhii samajho ke salaamat nikal aaye
ai ham_nafaso.n kuchh to kaho ahad-e-sitam kii
ik harf se mumkin hai hikaayat nikal aaye
yaaro mujhe masaluub karo tum ke mere baad
shaayad ke tumhaaraa qad-o-qaamat nikal aaye
*Is duniya me kon karey ga wafa kisi se ay "Faraz"
Dil k do harf hain or who b juda juda...
*Apni manzil pey ponchna kisi Moojze se kum nahi Faraz,
Rah_Guzar Pathar ka Hai Aur Humsafar Sheeshey ka....!!!
*Raz e dil na sunana kisi ko Faraz~
Dunya mai sab hamraz badal jate hein,
Kisi k bicharne se koi mar to nai jata
Han magar jeene k andaz badal jate hein
*Kisi Ki yaad ne zakhamon se bhar diya seena "FARAAZ".....!
~^~ ~^~ ~^~
Har aik saans pay shak hai K yeh aakhari hogi.
*Kiya Ajab Ehtisab apna tha
Jaan apni azab apna tha
Kuch mile log bhi zamanay saaz
kuch muqader kharab apna tha
ye k mukhlis thy hum Mohabbat mein
Jurm bas ye janab apna tha
Ab kya karna us shakhs sy gila kar k
FARAZ
Wo bhi to intikhab apna tha.
*kaisy ajeeb log han tere sheher mei """"Faraz"""" shoq-e-mohabat to rakhty han, magr baat nai krty..
*Itna tasalsul to meri sanson me bhi nahi "FaRaZ",,,
~
~
~
Jis ravani se wo shakhs mujhay yaad aata hai.,.
*~ EHSAAS k ANDAAZ badal jaatay hain . . .
" FARAAZ "
Warna ' AANCHAL ' bhi usi DHAAGAY se banta hai
' KAFAN ' bhi
*Wo likhte hain hamara naam mti pe aur mita dete hain faraz
un k liye ye khel ho ga par hmain to wo mti mein mila dete hain.
* Nigahein us per Parti hein jiss sy kuch Taaluk ho "FARAZ"...
Her Shakhas ko Mohabbat ki Nazar sy dekha nahi jata.
Video Links
1:25 PM
Developers Web
Doorie By Atif Aslam (Live Performance)
http://www.youtube.com/watch?v=d8FTZFhCESo
Call-Shayad
http://www.youtube.com/watch?v=pJLx1U9nHsU
Zulfiqar Ali Bhutto-Walk out from security council
http://www.youtube.com/watch?v=cdp0gNfodkc
http://www.youtube.com/watch?v=d8FTZFhCESo
Call-Shayad
http://www.youtube.com/watch?v=pJLx1U9nHsU
Zulfiqar Ali Bhutto-Walk out from security council
http://www.youtube.com/watch?v=cdp0gNfodkc
C# DataGrid with DataSet
1:08 PM
Developers Web
This is a simple C# Program that illustrate the usage of DataGrid with DataSet.
Create Database and Table accordingly.
/*
* Simple C# example to illustrate the usage of Dataset with DataGrid
* Need to change the url and query accordingly
*/
using System;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Windows.Forms;
public class DataGridSample:Form{
DataGrid myGrid;
SqlConnection con;
SqlDataAdapter adapter;
DataSet ds;
Button ok, cancel;
SqlParameter workParam = null;
// apply to the columns in the table
string query = "select CardNo,CardType,CardAmount, CardHolderName from CardTest";
// change the Server ,uid, pwd and database accordingly
string url = "server=TR4;uid=sa;pwd= ;database=RBSGTest";
static void Main(){
Application.Run(new DataGridSample());
}
public DataGridSample(){
InitializeComponent();
}
public void InitializeComponent(){
this.ClientSize = new System.Drawing.Size(550, 450);
myGrid = new DataGrid();
myGrid.Location = new Point (10,10);
myGrid.Size = new Size(500, 350);
this.Text = "C# DataGrid with DataSet - Example";
this.Controls.Add(myGrid);
ok = new Button();
ok.Location = new Point(10, 375);
ok.Size = new Size(70, 30);
ok.TabIndex = 1;
ok.Text = "OK";
this.Controls.Add(ok);
ok.Click += new System.EventHandler(button_Click);
cancel = new Button();
cancel.Location = new Point(95, 375);
cancel.Size = new Size(70, 30);
cancel.TabIndex = 1;
cancel.Text = "Cancel";
this.Controls.Add(cancel);
cancel.Click += new System.EventHandler(button_Click);
ConnectToData(); // establish database connection and create DataSet
myGrid.SetDataBinding(ds, "CardTest");
DataTable t = ds.Tables["CardTest"];
t.RowChanged += new DataRowChangeEventHandler(Row_Changed);
}
public void ConnectToData(){
ds = new DataSet();
con = new SqlConnection(url);
adapter = new SqlDataAdapter();
adapter.SelectCommand = new SqlCommand(query, con);
adapter.Fill(ds, "CardTest");
insertCommand();
updateCommand();
}
public void updateCommand()
{
string query = "Update CardTest Set CardHolderName = @CardHolderName, CardType = @CardType, CardAmount = @CardAmount WHERE CardNo = @CardNo";
adapter.UpdateCommand = new SqlCommand(query, con);
workParam = adapter.UpdateCommand.Parameters.Add("@CardNo", SqlDbType.NChar);
workParam.SourceColumn = "CardNo";
workParam.SourceVersion = DataRowVersion.Original;
workParam = adapter.UpdateCommand.Parameters.Add("@CardType", SqlDbType.NChar, 50);
workParam.SourceVersion = DataRowVersion.Current;
workParam.SourceColumn = "CardType";
workParam = adapter.UpdateCommand.Parameters.Add("@CardAmount", SqlDbType.Int);
workParam.SourceColumn = "CardAmount";
workParam.SourceVersion = DataRowVersion.Current;
workParam = adapter.UpdateCommand.Parameters.Add("@CardHolderName", SqlDbType.NChar, 50);
workParam.SourceColumn = "CardHolderName";
workParam.SourceVersion = DataRowVersion.Current;
}
public void button_Click(object sender, EventArgs evArgs)
{
if (sender==ok){
UpdateValue(); // update the database once everything done.
}
if (sender==cancel) {
this.Dispose();
}
}
private void Row_Changed(object ob, DataRowChangeEventArgs e)
{
DataTable t = (DataTable) ob;
Console.WriteLine("RowChanged " + e.Action.ToString() + "\t" + e.Row.ItemArray[0]);
}
public void insertCommand()
{
string insertQuery = "Insert into CardTest VALUES (@CardNo, @CardType, @CardAmount, @CardHolderName)";
adapter.InsertCommand = new SqlCommand(insertQuery, con);
workParam = adapter.InsertCommand.Parameters.Add("@CardNo", SqlDbType.NChar);
workParam.SourceColumn = "CardNo";
workParam.SourceVersion = DataRowVersion.Current;
workParam = adapter.InsertCommand.Parameters.Add("@CardType", SqlDbType.NChar, 50);
workParam.SourceVersion = DataRowVersion.Current;
workParam.SourceColumn = "CardType";
workParam = adapter.InsertCommand.Parameters.Add("@CardAmount", SqlDbType.Int);
workParam.SourceColumn = "CardAmount";
workParam.SourceVersion = DataRowVersion.Current;
workParam = adapter.InsertCommand.Parameters.Add("@CardHolderName", SqlDbType.NChar, 50);
workParam.SourceVersion = DataRowVersion.Current;
workParam.SourceColumn = "CardHolderName";
}
public void UpdateValue()
{
try
{
adapter.Update(ds, "CardTest");
Console.Write("Updating DataSet succeeded!");
}
catch(Exception e)
{
Console.Write(e.ToString());
}
}
}
Create Database and Table accordingly.
/*
* Simple C# example to illustrate the usage of Dataset with DataGrid
* Need to change the url and query accordingly
*/
using System;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Windows.Forms;
public class DataGridSample:Form{
DataGrid myGrid;
SqlConnection con;
SqlDataAdapter adapter;
DataSet ds;
Button ok, cancel;
SqlParameter workParam = null;
// apply to the columns in the table
string query = "select CardNo,CardType,CardAmount, CardHolderName from CardTest";
// change the Server ,uid, pwd and database accordingly
string url = "server=TR4;uid=sa;pwd= ;database=RBSGTest";
static void Main(){
Application.Run(new DataGridSample());
}
public DataGridSample(){
InitializeComponent();
}
public void InitializeComponent(){
this.ClientSize = new System.Drawing.Size(550, 450);
myGrid = new DataGrid();
myGrid.Location = new Point (10,10);
myGrid.Size = new Size(500, 350);
this.Text = "C# DataGrid with DataSet - Example";
this.Controls.Add(myGrid);
ok = new Button();
ok.Location = new Point(10, 375);
ok.Size = new Size(70, 30);
ok.TabIndex = 1;
ok.Text = "OK";
this.Controls.Add(ok);
ok.Click += new System.EventHandler(button_Click);
cancel = new Button();
cancel.Location = new Point(95, 375);
cancel.Size = new Size(70, 30);
cancel.TabIndex = 1;
cancel.Text = "Cancel";
this.Controls.Add(cancel);
cancel.Click += new System.EventHandler(button_Click);
ConnectToData(); // establish database connection and create DataSet
myGrid.SetDataBinding(ds, "CardTest");
DataTable t = ds.Tables["CardTest"];
t.RowChanged += new DataRowChangeEventHandler(Row_Changed);
}
public void ConnectToData(){
ds = new DataSet();
con = new SqlConnection(url);
adapter = new SqlDataAdapter();
adapter.SelectCommand = new SqlCommand(query, con);
adapter.Fill(ds, "CardTest");
insertCommand();
updateCommand();
}
public void updateCommand()
{
string query = "Update CardTest Set CardHolderName = @CardHolderName, CardType = @CardType, CardAmount = @CardAmount WHERE CardNo = @CardNo";
adapter.UpdateCommand = new SqlCommand(query, con);
workParam = adapter.UpdateCommand.Parameters.Add("@CardNo", SqlDbType.NChar);
workParam.SourceColumn = "CardNo";
workParam.SourceVersion = DataRowVersion.Original;
workParam = adapter.UpdateCommand.Parameters.Add("@CardType", SqlDbType.NChar, 50);
workParam.SourceVersion = DataRowVersion.Current;
workParam.SourceColumn = "CardType";
workParam = adapter.UpdateCommand.Parameters.Add("@CardAmount", SqlDbType.Int);
workParam.SourceColumn = "CardAmount";
workParam.SourceVersion = DataRowVersion.Current;
workParam = adapter.UpdateCommand.Parameters.Add("@CardHolderName", SqlDbType.NChar, 50);
workParam.SourceColumn = "CardHolderName";
workParam.SourceVersion = DataRowVersion.Current;
}
public void button_Click(object sender, EventArgs evArgs)
{
if (sender==ok){
UpdateValue(); // update the database once everything done.
}
if (sender==cancel) {
this.Dispose();
}
}
private void Row_Changed(object ob, DataRowChangeEventArgs e)
{
DataTable t = (DataTable) ob;
Console.WriteLine("RowChanged " + e.Action.ToString() + "\t" + e.Row.ItemArray[0]);
}
public void insertCommand()
{
string insertQuery = "Insert into CardTest VALUES (@CardNo, @CardType, @CardAmount, @CardHolderName)";
adapter.InsertCommand = new SqlCommand(insertQuery, con);
workParam = adapter.InsertCommand.Parameters.Add("@CardNo", SqlDbType.NChar);
workParam.SourceColumn = "CardNo";
workParam.SourceVersion = DataRowVersion.Current;
workParam = adapter.InsertCommand.Parameters.Add("@CardType", SqlDbType.NChar, 50);
workParam.SourceVersion = DataRowVersion.Current;
workParam.SourceColumn = "CardType";
workParam = adapter.InsertCommand.Parameters.Add("@CardAmount", SqlDbType.Int);
workParam.SourceColumn = "CardAmount";
workParam.SourceVersion = DataRowVersion.Current;
workParam = adapter.InsertCommand.Parameters.Add("@CardHolderName", SqlDbType.NChar, 50);
workParam.SourceVersion = DataRowVersion.Current;
workParam.SourceColumn = "CardHolderName";
}
public void UpdateValue()
{
try
{
adapter.Update(ds, "CardTest");
Console.Write("Updating DataSet succeeded!");
}
catch(Exception e)
{
Console.Write(e.ToString());
}
}
}
To rename recycle bin
12:47 PM
Developers Web
To change the name of recycle bin or rename recycle bin in Windows XP, Windows 2000, Windows NT, Windows Me, Windows 98 or Windows 95, just edit a registry value:
Open registry editor by going to Start -> Run, and execute regedit.
Navigate to the following registry branch:
HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\
On the right pane, locate the registry key of LocalizedString.
Double click on LocalizedString or right click on LocalizedString and select Modify to modify the registry value.
You should see the default value of “@%SystemRoot%\system32\SHELL32.dll,-8964″. Delete or remove the default value and key in your desired new recycle bin’s name in text, e.g. “Garbage Bin” (without quote).
Refresh your desktop or Windows Explorer by pressing F5. You will see the new ‘recycle bin’ name.
Optionally, you can also modify the text of InfoTip, commonly known as tooltip what display certain help tip, guide or description about Recycle Bin when the mouse is hovering on Recycle Bin icon on desktop. The default text is “Contains files and folders that you have deleted.” Simply double click on InfoTip, or right click on InfoTip and select Modify to change the text of the info tip.
The default value is “@%SystemRoot%\system32\SHELL32.dll,-22915″, simply change it to another description that you want the tooltip to be.
Refresh the desktop to make it effective.
Open registry editor by going to Start -> Run, and execute regedit.
Navigate to the following registry branch:
HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\
On the right pane, locate the registry key of LocalizedString.
Double click on LocalizedString or right click on LocalizedString and select Modify to modify the registry value.
You should see the default value of “@%SystemRoot%\system32\SHELL32.dll,-8964″. Delete or remove the default value and key in your desired new recycle bin’s name in text, e.g. “Garbage Bin” (without quote).
Refresh your desktop or Windows Explorer by pressing F5. You will see the new ‘recycle bin’ name.
Optionally, you can also modify the text of InfoTip, commonly known as tooltip what display certain help tip, guide or description about Recycle Bin when the mouse is hovering on Recycle Bin icon on desktop. The default text is “Contains files and folders that you have deleted.” Simply double click on InfoTip, or right click on InfoTip and select Modify to change the text of the info tip.
The default value is “@%SystemRoot%\system32\SHELL32.dll,-22915″, simply change it to another description that you want the tooltip to be.
Refresh the desktop to make it effective.







