Thursday, July 15, 2010

Web Capacity Analysis Tool (WCAT)

Web Capacity Analysis Tool (WCAT) is a lightweight HTTP load generation tool primarily designed to measure the performance of a web server within a controlled environment.  WCAT can simulate thousands of concurrent users making requests to a single web site or multiple web sites.  The WCAT engine uses a simple script to define the set of HTTP requests to be played back to the web server. Extensibility is provided through plug-in DLLs and a standard, simple API.

Links:

http://www.iis.net/community/default.aspx?tabid=34&i=1466&g=6
  

A low-level Look at the ASP.NET Architecture

A low-level Look at the ASP.NET Architecture

Reg-Ex in VBA

How do we validate alpha numeric values using Reg-ex in VBA?

The following script simplified my job to validate the alphanumeric characters.

Its quite different from other technologies, we better go in a reverse direction.
'Scripting
Private Sub test()
    Dim RegEx As Object
    Dim val As Variant
    Dim sPattern As String
    sPattern = "[^\w]"  'I am trying to find whether the text has any non alphanumeric characters init
                                 ' i.e other than A-Z and 0-9 
 val =  "asdf123"  'valid string
               
 Set RegEx = CreateObject("vbscript.regexp")
 With RegEx
  .Global = True
  .IgnoreCase = True
  .Pattern = sPattern
 End With
 If (RegEx.test(val)) Then
    MsgBox "Not an alpha numeric string"
 Else
   MsgBox "Its valid string"
 End If
 
End Sub

More About Reg Ex can be found at the following links:

http://msdn.microsoft.com/en-us/library/1400241x%28VS.85%29.aspx
http://www.georgehernandez.com/h/xComputers/VB/zMisc/RegExp.asp#EG

FW: ASP.net, Silverlight, Visual Studio, Sharepoint and beyond -- Register now for Fall DevConnections

 

 

From: Connections Conferences [mailto:ConnectionsConferences@pentontech.com]
Sent: Thursday, July 15, 2010 9:50 PM
To: Suresh Babu Anumolu
Subject: ASP.net, Silverlight, Visual Studio, Sharepoint and beyond -- Register now for Fall DevConnections

 

 

Fall 2010 Microsoft ASP.NET and Silverlight Connections

Don't miss THE most comprehensive conference for developers featuring in-depth tracks on Visual Studio and ASP.net, Silverlight and much more. Reserve your spot now for DevConnections 2010, November 1-4 in Las Vegas, NV -- registration open now!

Early Bird Registration -- Book your room by July 29 and receive a discounted rate of only $149 night plus tax. Need more incentive? Register for Connections and book 3 nights at Mandalay Bay by July 29th and receive a great rate AND a $100 Mandalay Bay gift certificate. For more info, visit us online or call (203) 400-6121 or 800-438-6720.

Read on for more information about the Visual Studio Connections and Microsoft® ASP.net and Silverlight Connections conference.


DevConnections events are co-located, each with their own set of tracks and speakers. As an attendee of one show you may attend the sessions at any of the concurrent events for FREE.

Microsoft® Visual Studio Connections

The Visual Studio Connections conference focuses on leveraging the powerful technologies and tools of .NET 4.0 to maximize productivity and quality with exciting keynotes by presenters like Dave Mendlen, Microsoft Senior Director, Developer Platform and Tools. Join the conversation and register today!

Microsoft® ASP.NET Connections & Silverlight Connections

Speakers include ASP.NET co-creator and Vice President at Microsoft, Scott Guthrie, as well as Microsoft Program Managers and leading ASP.NET and Silveright gurus outside of Microsoft. Three days of in-depth sessions on ASP.net & Silverlight in a collaborative setting -- register now!


Don't miss out on THE 2010 event for developer training!

Fall DevConnections 2010

For the latest news, updates, and special offers, follow DevConnections on Twitter!

www.DevConnections.com

You are subscribed as babu@riskspan.com 

You received this email because you have an existing business relationship with Connections Conferences, a division of Penton Media, Inc. Periodically, we will inform you of special Penton-related shows, products and other offers that we believe you will find helpful in your business or career. To STOP receiving promotional e-mails from Connections Conferences, please click here to opt-out.

 

Contact us with feedback or questions.

 

Connections Conferences | Penton Media, Inc. | 249 W. 17th Street | New York, NY 10011 | Privacy Statement

Top five scripting languages on the JVM

Link: http://www.computerworld.com/s/article/9179158/Top_five_scripting_languages_on_the_JVM?taxonomyId=18&pageNumber=1


In this article, I examine a handful of these languages, comparing and contrasting them, and identifying the needs they satisfy particularly well. I limit myself to the JVM languages that are free and open source. The closed source, commercial world, surprisingly, has few comparable offerings. The one standout is Cold Fusion Markup Language, which is part of Adobe's Cold Fusion Web application development environment.
Technologists differ on what exactly is a scripting language. In its narrowest definition, it's a language that enables the developer to write quick programs. These programs are generally interpreted or semicompiled, rather than compiled in the traditional manner. In choosing the languages for this review, I used a broader definition, which is any JVM language that is simpler to code in than Java. Some are compiled, others are semicompiled, but all are suitable for rapid development. The languages I've focused on are Groovy, JRuby, Fantom, Jython, and Scala. There are a few other candidates, namely Clojure, JavaFX, and NetRexx, which I cover briefly at the end.
The JVM scripting languages today naturally divide into two groups based on their rate of adoption. Groovy and JRuby fall into the popular camp, while the others are niche players -- that is, they appeal to a small community at present. It's important to note, however, that both Groovy and JRuby were also niche players two years ago, so there is no reason to believe that a niche language is relegated permanently to the margins. I believe that the likelihood of emergence favors Scala, then Fantom, and finally Jython. As I explain later, I think Jython's moment in the sun has probably come and gone.

Monday, July 12, 2010

Do you want to integrate Haskell in to your VisualStudio?

Guys,
Haskell now can be coded using VisualStudio.

Goto the following link to integrate haskell in VS 2005.

Requirement: OS: Xp, VS 2005

http://www.haskell.org/visualhaskell/downloads.html
7-zip dll can be dowloaded from the following url.
http://sevenzipsharp.codeplex.com/
Delfate stream - Built in support

using System;
using System.IO;
using System.IO.Compression;

public class Program
{

public static void Main()
{
// Path to directory of files to compress and decompress.
string dirpath = @"c:\users\public\reports";

DirectoryInfo di = new DirectoryInfo(dirpath);

// Compress the directory's files.
foreach (FileInfo fi in di.GetFiles())
{
Compress(fi);
}

// Decompress all *.cmp files in the directory.
foreach (FileInfo fi in di.GetFiles("*.cmp"))
{
Decompress(fi);
}


}

public static void Compress(FileInfo fi)
{
// Get the stream of the source file.
using (FileStream inFile = fi.OpenRead())
{
// Prevent compressing hidden and already compressed files.
if ((File.GetAttributes(fi.FullName) & FileAttributes.Hidden)
!= FileAttributes.Hidden & fi.Extension != ".cmp")
{
// Create the compressed file.
using (FileStream outFile =
File.Create(fi.FullName + ".cmp"))
{
using (DeflateStream Compress =
new DeflateStream(outFile,
CompressionMode.Compress))
{
// Copy the source file into
// the compression stream.
inFile.CopyTo(Compress);

Console.WriteLine("Compressed {0} from {1} to {2} bytes.",
fi.Name, fi.Length.ToString(), outFile.Length.ToString());
}
}
}
}
}

public static void Decompress(FileInfo fi)
{
// Get the stream of the source file.
using (FileStream inFile = fi.OpenRead())
{
// Get original file extension,
// for example "doc" from report.doc.cmp.
string curFile = fi.FullName;
string origName = curFile.Remove(curFile.Length
- fi.Extension.Length);

//Create the decompressed file.
using (FileStream outFile = File.Create(origName))
{
using (DeflateStream Decompress = new DeflateStream(inFile,
CompressionMode.Decompress))
{
// Copy the decompression stream
// into the output file.
Decompress.CopyTo(outFile);

Console.WriteLine("Decompressed: {0}", fi.Name);
}
}
}
}
}