Posted on
Apr 8, 2010
under C#.NET
| 27715 views
Web Scraping or Web Data extraction is a software technique for extracting information from web pages. There are different types of web scraping, and a most common one is the web crawling done by search engines. The text content of the website will be extracted from web pages, and will be indexed for searching. This article explains a simple method of extracting text content using C# and Regular Expressions.
|
Posted on
Apr 2, 2010
under C#.NET
| 24381 views
Uploading of images and resizing (scaling) of them is a very common utility application. Various applications for this function are - Photo thumbnails, profile photos, stock photograph images like Flickr, etc. The System.Drawing namespace provides a built-in thumbnail creation function, but here is a code snippet to resize images preserving its original aspect ratio, maintaining high quality, and limiting the image sizes within prescribed maximum values.
|
Posted on
Mar 28, 2010
under C#.NET
| 32235 views
The Haversine formula is used for calculating the distance between two points on the globe. This function gives a nearly accurate distance value, and is used widely in GPS related calculations and for vehicle tracking. This article provides a code snippet for calculating distance between two points taking latitude and longitude values as example.
|
Posted on
Mar 23, 2010
under C#.NET
| 18094 views
Here is a very useful C# code snippet for generating random strong passwords. There are two code snippets provided here, one for generating a simple random password, and other for generating a strong password. The password is generated using upper case and lower case alphabets, numerals and special characters.
|