CrawlTrack: free crawlers and spiders tracking script for webmaster- SEO script -script gratuit de d?tection des robots pour webmaster

 
Ò 2006-2008 www.Visual-Que.com. All rights reserved.
>>  Visual Studio ã
New Visual Studio 2008 (formerly known as Visual Studio code name "Orcas")


>>   Visual Basic ã
is a tool for productively building type safe and object oriented applications.


Home           Info              More Info        Languages1 Languages2    Techniques1     Techniques2
Microsoft Announces Visual Studio 2008
By Darryl K. Taft

ORLANDO, Fla.—Microsoft has given a formal name to its next version of Visual Studio and said a second beta is upcoming.

At its TechEd 2007 conference here, Microsoft announced June 4 that the next version of Visual Studio, which has been known by the code name "Orcas," has been dubbed Visual Studio 2008.
In addition, C. Joe Marini, group product manager of developer marketing at Microsoft, said beta 2 of Visual Studio 2008 will become available later this summer and will include a new feature known as the Visual Studio Shell. The Visual Studio Shell enables developers to create and distribute their own custom tools built on top of the Visual Studio IDE (integrated development environment).

"Partners and developers want a way to build their developer tool products on top of Visual Studio as a starting point so they can use the Visual Studio base technologies and services," Martini said in an interview with eWEEK.
The Visual Studio Shell will operate in two different modes. The first is the Integrated Mode, which is for developers creating programming language integration with Visual Studio, Marini said. The second is known as Isolated Mode and is for Microsoft partners and customers who want to take the base technology of Visual Studio and custom brand it, he said. "The Shell offering is for people who have no interest in having to maintain their own IDE infrastructure," Marini said. "With Visual Studio Shell, they can just focus on the value they want to provide in their own product."

The Visual Studio Shell technology is free, he said. "When we ship it, anybody can use it without having to pay any licensing fees," he said.
The Visual Studio Shell technology is free, he said. "When we ship it, anybody can use it without having to pay any licensing fees," he said.

Marini said Microsoft's partners have been requesting a product like Visual Studio Shell for some time. However, with Visual Studio 2005, Microsoft offered a Premier Partner Edition, which was the predecessor of the Integrated Mode of the Visual Studio Shell, he said.

Meanwhile, Microsoft, of Redmond, Wash., also announced the name for the next release of SQL Server: Microsoft SQL Server 2008—formerly code-named SQL Server "Katmai"—and the delivery of the first SQL Server 2008 CPT (Community Technology Preview), now available for customer download at

http://www.microsoft.com/sql/prodinfo/futureversion/default.mspx.

In addition, the company announced the acquisition of Dundas Data Visualization's data visualization products, which provide charting within SQL Server Reporting Services and enable users to create information-rich reports and applications.

eWEEK.com Special Report: Microsoft Tech Ed

Microsoft also has recently released the first public beta of the Microsoft .Net Framework 3.5 and a CTP of BizTalk Services, which supports Microsoft's approach to SOA (service-oriented architecture) and its vision of enabling customers to build more dynamic applications, said Steven Martin, director of product management in Microsoft's Connected Systems Division.

Microsoft will deliver BizTalk Server 2006 R2 in the third quarter of 2007. It also will provide RFID (radio frequency identification) infrastructure, native support for EDI (electronic data interchange), and new technologies for integrating the .NET Framework 3.0, the 2007 Microsoft Office system and Windows Vista, Martin said.

This article was originally published on eWeek.com.
__________________________________________
Pulling Data From Internet URLs in C#
By Rick Leinecker

I can't count the number of times that I've needed to retrieve data from an Internet site. There are several reasons for this. For starters, I developed an Internet filtering technology that analyzes images, and I needed thousands of images for testing and training. Pulling the images from the Internet in an automated way was the only practical way of obtaining the images I needed. I've also written crawlers (or spiders) that go from site to site. Sometimes I need an automated way of pulling web-based information, such as stock prices. Suffice to say that I've pulled data from Internet sites many times for many different reasons.

The .NET framework makes the task of requesting data from a URL simple. In days of old, I used raw sockets. The code had to connect with a remote server, create a well-formed HTTP request, send the request, retrieve the data and monitor for end-of-file conditions, and save to memory or a disk file—lots of code and lots of room for errors. This article, though, talks about the WebClient class. This is the simplest class that the .NET framework has to offer that makes it easy to download from Internet URLs. In later articles I'll talk about the WebRequest and WebResponse objects, and down the road we'll tackle Sockets.

Pulling Data With The WebClient Class

Pulling data from a URL with the WebClient class couldn't be easier. There are two different ways I use it: to save the data to a disk file, and to put the data into an in-memory buffer or string. Before you begin, though, you'll need to add a using statement for System.Net as follows.

using System.Net;

The next thing to note is that URLs must begin with "http://" if they are to be retrieved via the HTTP Internet protocol. I created a helper method that takes care of this detail. It is below.

// This helper method prepends "http://" to a URL if it isn't
//   already there.
void PrependHTTP(ref string strURL)
{

     if (strURL.Length < 7 ||
          strURL.Substring(0, 7).ToUpper() != "HTTP://")
     {
          strURL = "http://" + strURL;
     }

}

There are two methods that can be used to retrieve data. The first is the DownloadFile method which saves the retrieved data to a disk file. The second is the DownloadData method which places the retrieved data into a byte array. The following two examples show how to create a WebClient object and retrieve data.

Using the DownloadFile method:

WebClient wc = new WebClient();
wc.DownloadFile("http://www.rickleinecker.com/Default.htm",
    "DiskFile.htm");

Using the DownloadData method:

WebClient wc = new WebClient();
byte[] data =
    wc.DownloadData("http://www.rickleinecker.com/Default.htm");

If you want a string instead of a byte array, you can use the Encoding.ASCII.GetString method as follows. (Remember that you need a using statement for System.Text in order to use the Encoding.ASCII.GetString method.)

WebClient wc = new WebClient();
byte[] data =
    wc.DownloadData("http://www.rickleinecker.com/Default.htm");
string strData = Encoding.ASCII.GetString(data);

There's a demonstration program that lets you specify a URL to download. You can choose to save it as a disk file, show it as a string, or display it as an image. You can see the application in action in the figure below.

Using Image Data

There are two ways to use image data when it is retrieved. The first retrieves that data using the WebClient.DownloadFile method, then uses a Bitmap object to load the image. The following code shows how to do this.

WebClient wc = new WebClient();
wc.DownloadFile("http://www.rickleinecker.com/MyImage.gif",
    "MyImage.gif");
Bitmap objBitmap = new Bitmap("MyImage.gif");

The drawback with this methodology is that you have to make sure that the current directory has write permissions and that the disk is not full. It also leaves the image on the disk unless you delete it at some point.

A better approach is to use the WebClient.DownloadData method to retrieve the data into a byte array, create a MemoryStream object around the downloaded byte array, and let the Bitmap object decode the image from the MemoryStream object. In this way everything is done in memory and you don't have to worry about an unwanted disk file. The following code shows how to do this. (Remember that you need a using statement for System.IO in order to use a MemoryStream object.)

WebClient wc = new WebClient();
byte[] data =
   wc.DownloadData("http://www.rickleinecker.com/MyImage.gif");
MemoryStream ms = new MemoryStream(data);
Bitmap objBitmap = new Bitmap(ms);

The demonstration program allows you to retrieve and display images as seen in the following figure.
Parsing HTML Data

You can use the Microsoft html parser on downloaded data, too. The first thing you need to do is add a reference in your project to MSHTML. It usually shows a "Microsoft HTML Object Library" in the list of COM references. The following figure shows the MSHTML object in the list of available COM references.
Once the data is downloaded and converted to a string, the following code will set up a parser object.

WebClient wc = new WebClient();
byte[] data = wc.DownloadData(strURL);
mshtml.HTMLDocumentClass ms = new mshtml.HTMLDocumentClass();
string strHTML = Encoding.ASCII.GetString(data);
mshtml.IHTMLDocument2 objMyDoc = (mshtml.IHTMLDocument2)ms;
objMyDoc.write(strHTML);

You can then use the IHTMLDocument2 object to get lists of images, anchors, and other HTML collections that you're interested in. The following code continues the previous fragment and gets all the anchors in the document.

mshtml.IHTMLElementCollection ec =
    (mshtml.IHTMLElementCollection)objMyDoc.links;

for (int i = 0; i < ec.length; i++)
{
       string strLink;
       mshtml.HTMLAnchorElementClass objAnchor;
       try
       {
               objAnchor = (mshtml.HTMLAnchorElementClass)ec.item(i, 0);
               strLink = objAnchor.href;
       }
       catch
       {
               continue;
       }

}

I created a demonstration crawler. It's fairly simple, but it could be used as the basis for a real crawler that examines HTML pages for data. You can download the code here .

Conclusion

As you can see, pulling Internet data is easy. And you can use the WebClient class to create some pretty advanced applications such as crawlers.

Source: http://www.devsource.com