Microsoft has launched Code sharing site called www.codeplex.com
It has lot of source code with shared souce code licenses.
Popular products already available on the site include Microsoft's Atlas AJAX development tool kit and Iron Python beta 1
Make use of it.
Tuesday, June 27, 2006
Friday, June 23, 2006
India Tax Calculator (AY 06 - 07)
Use the following link to calculate tax (AY 06-07)
http://www.taxmann.com/taxmanndit/xtras/taxcalc.aspx
http://www.taxmann.com/taxmanndit/xtras/taxcalc.aspx
Tuesday, June 20, 2006
Chip breaks speed record in deep freeze
What is your PC clock speed?
(800 MHz, 1 GHz, 1.8 GHz , 2.4 GHz, 2.6 GHz, 3 GHz Dualcore, 3.6 GHz)?
If your find the answer in the above line then, it shows you have a Grand old PC
Research has gone to such an extent, and created a chip with clock speed of 350 GHz at room temperature.
It is also possible to have a chip with a clock speed of 1THz (@ - 459 F or 0 K or -273 C ) when liquid helium is used for cooling.
It is made up of (SiGe). Silicon and Germanium, it is manufactured by IBM and Georgia Tech.
For more Information: http://news.zdnet.com/2100-9584-6085568.html
Now imagine how fast your windows will boot and how fast you can do CTRL+C CTRL+V?
(800 MHz, 1 GHz, 1.8 GHz , 2.4 GHz, 2.6 GHz, 3 GHz Dualcore, 3.6 GHz)?
If your find the answer in the above line then, it shows you have a Grand old PC
Research has gone to such an extent, and created a chip with clock speed of 350 GHz at room temperature.
It is also possible to have a chip with a clock speed of 1THz (@ - 459 F or 0 K or -273 C ) when liquid helium is used for cooling.
It is made up of (SiGe). Silicon and Germanium, it is manufactured by IBM and Georgia Tech.
For more Information: http://news.zdnet.com/2100-9584-6085568.html
Now imagine how fast your windows will boot and how fast you can do CTRL+C CTRL+V?
AIM: To write a program that can run in watches, remote controls
All these time, we know using Microsoft technologies we can write applications that can run in PC, PDA, windows mobile, etc. Have you ever thought of writing application for watches, remote controls, cameras, and devices having very less memory, inexpensive processor and very less power?
Yes, Microsoft has done it.
.Net Framework for Usual applications
.Net Compact Framework for PDA and windows mobile (smart phones)
.Net Micro Framework for watches and remote controls.
At present MSN Direct Smart Watch works in .Net Micro Framework platform.
For more information:
http://www.aboutnetmf.com/entry.asp
Is it possible in Java technologies?
Yes, Microsoft has done it.
.Net Framework for Usual applications
.Net Compact Framework for PDA and windows mobile (smart phones)
.Net Micro Framework for watches and remote controls.
At present MSN Direct Smart Watch works in .Net Micro Framework platform.
For more information:
http://www.aboutnetmf.com/entry.asp
Is it possible in Java technologies?
Sunday, June 18, 2006
Tracking file download
We usually put a hyperlink to download a file. But the following code helps to track the download. We can check whether the user has successfully downloaded the file or not. This can be used in juke box or movie download sites to prevent multiple downloads.
private void DownloadFile(string strfile)
{
System.IO.Stream iStream = null;
byte[] buffer = new Byte[1000];
int length;
long dataToRead=-1;
bool startstatus=false;
string filepath = strfile;
string filename = System.IO.Path.GetFileName(filepath);
try
{
iStream = new System.IO.FileStream(filepath, System.IO.FileMode.Open,System.IO.FileAccess.Read, System.IO.FileShare.Read);
dataToRead = iStream.Length;
Response.ContentType = "application/octet-stream";
Response.AddHeader("Content-Disposition", "attachment; filename=" + filename);
while (dataToRead > 0)
{
// Verify that the client is connected.
if (Response.IsClientConnected)
{
// Read the data in buffer.
length = iStream.Read(buffer, 0, 1000);
// Write the data to the current output
Response.OutputStream.Write(buffer, 0, length);
// Flush the data to the HTML output.
Response.Flush();
buffer= new Byte[1000];
dataToRead = dataToRead - length;
if(startstatus == false)
{
// Started downloading
startstatus=true;
}
}
else
{
//prevent infinite loop if user disconnects
dataToRead = -1;
// disconnected or unable to download
}
}
}
catch (Exception ex)
{
dataToRead = -1;
}
finally
{
try
{
if(dataToRead == -1)
{
// disconnected or unable to download
}
else
{
// file successfully downloaded
}
if (iStream != null)
{
//Close the file.
iStream.Close();
}
}
catch(Exception ex)
{
}
}
}
private void DownloadFile(string strfile)
{
System.IO.Stream iStream = null;
byte[] buffer = new Byte[1000];
int length;
long dataToRead=-1;
bool startstatus=false;
string filepath = strfile;
string filename = System.IO.Path.GetFileName(filepath);
try
{
iStream = new System.IO.FileStream(filepath, System.IO.FileMode.Open,System.IO.FileAccess.Read, System.IO.FileShare.Read);
dataToRead = iStream.Length;
Response.ContentType = "application/octet-stream";
Response.AddHeader("Content-Disposition", "attachment; filename=" + filename);
while (dataToRead > 0)
{
// Verify that the client is connected.
if (Response.IsClientConnected)
{
// Read the data in buffer.
length = iStream.Read(buffer, 0, 1000);
// Write the data to the current output
Response.OutputStream.Write(buffer, 0, length);
// Flush the data to the HTML output.
Response.Flush();
buffer= new Byte[1000];
dataToRead = dataToRead - length;
if(startstatus == false)
{
// Started downloading
startstatus=true;
}
}
else
{
//prevent infinite loop if user disconnects
dataToRead = -1;
// disconnected or unable to download
}
}
}
catch (Exception ex)
{
dataToRead = -1;
}
finally
{
try
{
if(dataToRead == -1)
{
// disconnected or unable to download
}
else
{
// file successfully downloaded
}
if (iStream != null)
{
//Close the file.
iStream.Close();
}
}
catch(Exception ex)
{
}
}
}
Tuesday, June 06, 2006
Enterprise Library - June 2005
We daily write application but it is better to follow best practices and patterns developed by Microsoft. They have released a enterprise library which includes
Caching ApplicationBlock
Configuration Application Block
Data Access Application Block
Cryptography Application Block
Exception Handling Application Block
Logging and Instrumentation Application Block
Security Application Block
The following are the links for learning Enterprise library.
Download Enterprise library
Learning materials
Caching ApplicationBlock
Configuration Application Block
Data Access Application Block
Cryptography Application Block
Exception Handling Application Block
Logging and Instrumentation Application Block
Security Application Block
The following are the links for learning Enterprise library.
Download Enterprise library
Learning materials
Subscribe to:
Posts (Atom)