Here is speech of Bill Gates which he delivered at graduation ceremony of Harvard. Worth reading!!
Text of the speech given by Microsoft chairman Bill Gates at Harvard University on June 7, 2007.
President Bok, former President Rudenstine, incoming President Faust, members of the Harvard Corporation and the Board of Overseers, members of the faculty, parents, and [...]
Archive for the ‘Favorites’ Category
Speech by Bill Gates at HBS
Posted in Favorites, Positive Thinking on May 11, 2009 | Leave a Comment »
The IT Crowd
Posted in Favorites, Tv Shows, tagged darama, It crowd, joke on August 30, 2008 | Leave a Comment »
last day at lunch break, boss told me british tv show “The IT crowd”. I download some its epsoides from net. Really enjoy the life at IT support. You love to Watch IT, not “it” it is “I-T”. Life at pepsi-cola lahore is not much different form it.
url http://www.channel4.com/entertainment/tv/microsites/I/itcrowd/
A beatifull song from jumka jan
Posted in Favorites, songs on April 1, 2008 | Leave a Comment »
The Architecture Journal latest Issue
Posted in Favorites on December 14, 2007 | Leave a Comment »
The Architecture Journal Lastest issue is avaliable, you can download it from here
songs
Posted in Favorites on December 10, 2007 | Leave a Comment »
Listen: Ishq Tamaam
http://www.radioreloaded.com/beta/tracks?11564
Download your Favourite MP3s for FREE
Most Wanted Regular Expressions
Posted in Favorites, tagged email regular expression, Password regular expression, Regular expressions, url regular expression on September 5, 2007 | Leave a Comment »
Just wanted to share this little collection of “Most Wanted Regular Expressions”
Regular expression examples for decimals input
Positive Integers — ^\d+$
Negative Integers — ^-\d+$
Integer — ^-{0,1}\d+$
Positive Number — ^\d*\.{0,1}\d+$
Negative Number — ^-\d*\.{0,1}\d+$
Positive Number or Negative Number – ^-{0,1}\d*\.{0,1}\d+$
Phone number — ^\+?[\d\s]{3,}$
Phone with code — ^\+?[\d\s]+\(?[\d\s]{10,}$
Year 1900-2099 — ^(19|20)[\d]{2,2}$
Date (dd mm yyyy, d/m/yyyy, etc.) — ^([1-9]|0[1-9]|[12][1-9]|3[01])\D([1-9]|0[1-9]|1[012])\D(19[0-9][0-9]|20[0-9][0-9])$
IP v4 [...]
A beatiful song from Sain Zahoor.
Posted in Favorites on July 19, 2007 | Leave a Comment »
I hear a sweet song on youtube. I feel it in my soul when i hear it. all the night i continuosly hearing while learning php alone in my room at very hot day of july. This song is aslo theme song from movie Khuda Ke Liye (In the Name of God) .
[...]
Common Table Expression
Posted in Favorites on July 11, 2007 | Leave a Comment »
There’s a good article here by Frank Kerrigan on a way to implement paging in SQL Server 2005 by using Common Table Expressions (CTE’s).
What are CTE’s? This is a new feature of SQL Server 2005 that helps you eliminate temp tables and cursors in your queries. You can generate some pretty amazing queries using recursive [...]
Code to upload file in c#
Posted in Favorites on May 7, 2007 | Leave a Comment »
protected void btnUploadFile_Click(object sender, EventArgs e){
string sFilename = “”;// Check file size (mustn’t be 0)
HttpPostedFile myFile = FileUploading.PostedFile;int nFileLen = myFile.ContentLength;
if (nFileLen==0){
lblMsg.Text=“No valid file for upload.”;// return;
}
else
{
byte[] myData=new Byte[nFileLen];myFile.InputStream.Read(myData, 0, nFileLen);
sFilename=System.Guid.NewGuid().ToString().Replace(“-”, “”)+“_”+System.IO.Path.GetFileName(myFile.FileName);// Save the stream to disk
System.IO.FileStream newFile=new System.IO.FileStream(Server.MapPath(TaskManagementTool.Config.Path+sFilename), System.IO.FileMode.Create);newFile.Write(myData, 0, myData.Length);
newFile.Close();
TaskManagementTool.TaskDB taskDB=new TaskManagementTool.TaskDB();taskDB.AddUploadedFile(Convert.ToInt32(lblTaskId.Text), sFilename, ckIsPrivate.Checked);ShowUploadFiles();
}
// Read file into a data stream
//return sFilename;
}
Place Cursor in the First Input Box Automatically
Posted in Favorites on February 5, 2007 | Leave a Comment »
protected void Page_Load(object sender, EventArgs e)
{ FindFirstTextBox(this); }
private bool FindFirstTextBox(Control ctl)
{ bool foundControl = false;
foreach (Control child in ctl.Controls)
{
if (child is TextBox)
{
[...]