Feeds:
Posts
Comments

Archive for the ‘Favorites’ Category

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

Read Full Post »

The IT Crowd

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/

Read Full Post »

Read Full Post »

The Architecture Journal Lastest issue is avaliable, you can download it from here

Read Full Post »

songs

Listen: Ishq Tamaam
http://www.radioreloaded.com/beta/tracks?11564
Download your Favourite MP3s for FREE

Read Full Post »

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

Read Full Post »

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) .
[...]

Read Full Post »

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

Read Full Post »

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;
}

Read Full Post »

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)
{
[...]

Read Full Post »

Older Posts »