Manage your Azure storage with ease!

24. December 2009 14:30

Microsoft Utils Windows Azure 

If your are using Windows Azure for storing files here are the tools you should love to use to manage your Azure cloud storage.

Azure Storage Explorer - Codeplex

And

Cloud Storage Studio

If you don't have an Windows Azure account, then have one HERE

 No Rating

Protect your .NET Applications/Libraries from 'Reflection'

23. December 2009 00:18

.NET Framework Utils 

As a programmer, you put a lot of effort to create an application and incorporate some unique features in your application, which in turn makes your application more feature rich and different from other applications. The question here is, how do you feel when you come to know that someone has played with your code and then make a same application with his name...You did all the hard work and some random guy on this blue planet stole your code and takes all the credit.....Cry????

Well the answer lies in Obfuscation. It is a method to prevent your application from being reverse engineered. It makes the code of your application in unreadable form when it is viewed in any reflection tool. You will find many obfuscator tool, but some of them are not free and others are not ease at use. I do some search over the net and found a totally free and reliable tool for obfuscating my applications and libraries. This free obfuscating tool can be downloaded from here. The version here supports obfuscations for .NET framework 3.5 and for .NET framework 4.0, well we have to wait for the final release as it is still in beta but can be downloaded from here.

Let's see Red Gate's Reflector and Eazfuscator.NET (actual name of the obfuscater tool) in action

First I created a basic simple greeting application in Visual Studio 2008 (.NET Framework 3.5). The application has two buttons which greets the user and world respectively. Now take a look how the binary is diassembled by using reflector.

And now we will use Eazfuscator.NET to obfuscate our application. So first download and install the obfuscator tool form the above link and then simple drag-n-drop application on the right segment. I remommend to read the whole documentation before you start obfuscating your application and assemblies and make sure you have a bacup of your original application before you proceed.

Drag and drop your application here.

As soon as you drop your binary here the obfuscation process will start automatically.

And thats it, your code is now safe and you can distribute you applicaion without any more worries and for those who want to use the code just looking into the reflector and dont' want to scratch the heads we have this >>>> Money mouth!!!!

Now try opening your obfuscated application in reflector....and this is what you will see.Cool

 No Rating

Windows Live: SkyDrive application

5. December 2009 17:16

API Microsoft Utils 

We all know about Windows Live® SkyDrive® and definitely all the user would like to have a tool which would help them in organizing and managing their folders. But unfortunately I am unable to find any tool which helps us to deal in this. And as usual if you want to develop something or need an API just jump to Codeplex. Download the SkyDrive API from here (Codeplex) or from the below. But hey! I got another application with me, exactly can't remember where I got this from but really appreciate Scott's (author of this app) effort for this. It seems to be just a protoype, as it only allows you to view and download the files. Download the application and give a try and don't forget to download the SkyDrive® API also.

Download SkyDrive Application:LiveIDSkyDriveApp.zip (419.12 kb)

SkyDrive® API from Codeplex:SkyDriveWebClient.v0.8.7.zip (72.50 kb)

Currently rated 3.0 by 1 person

Download albums/images from Picasa

8. November 2009 20:31

C# Utils 

Picasa is an online photo sharing portal from Google. Users from around the globe use Picasa for storing and sharing their photos online. We can view and download images from the album, but only if it is public. We cannot view private albums and also cannot download images from any of the public albums if the owner of the album has denied the access for other users to download the images.

But there is a way from which you can download the images. We are here going to use Google API to achieve this. You can download the Google API for .NET here.

To get started we have to first import the namespaces

using Google.GData.Photos;
using Google.GData.Client;
using System.IO;
using System.Net;

Now here is the method which we are going to use to download the images. The methods takes in two parameters username and the album name. To get the username for the album, check the url of the user profile. For e.g.: http://picasaweb.google.com/prashantmx. Here the username is prashantmx, so the first parameter, username will be prashantmx and the albumname will be superbikes. Point to be noted is that there cannot be a white space between the username and albumname.

private static void DownAlbum(string UserN, string AlbumN)
{
	string fileName;
	Uri uriPath;
	WebClient HttpClient = new WebClient(); 
	PhotoQuery query = new PhotoQuery(); 
	query.Uri = new Uri(PhotoQuery.CreatePicasaUri(UserN, AlbumN)); 
	PicasaService service = new PicasaService("PicasaAlbumDownloader"); 
	PicasaFeed feed = (PicasaFeed)service.Query(query); 
	Directory.SetCurrentDirectory(Application.StartupPath+"\\Downloads"); 

	foreach (AtomEntry aentry in feed.Entries) 
	{
		uriPath = new Uri(aentry.Content.Src.ToString()); 
		fileName = uriPath.LocalPath.Substring(uriPath.LocalPath.LastIndexOf('/') + 1);
		try
		{
			Console.WriteLine("Downloading: " + fileName); 
			HttpClient.DownloadFile(aentry.Content.Src.ToString(), fileName); 
		}
		catch (WebException we)
		{
			Console.WriteLine(we.Message); 
		}
	}
        
	Console.WriteLine("Download Complete!");  
}

Output:

Download: PicasaAlbumDownloader_COMMAND.zip (128.78 kb)

Currently rated 5.0 by 2 people

Microsoft WMI Code Creator

27. October 2009 01:15

.NET Framework C# Utils 

The WMI Code Creator tool generates code that uses WMI to obtain management information or perform management tasks. You can use the tool to learn how to manage computers using WMI scripting and WMI .NET. The tool generates code that runs on the local computer, a remote computer, or a group of remote computers based on your selection from the Target Computer menu on the tool. You can also execute the generated code directly from the tool.

The tool is meant to help IT Professionals quickly create management scripts and to help developers learn WMI scripting and WMI .NET. The tool helps take the complexity out of writing code that uses WMI and helps developers and IT Professionals understand how powerful and useful WMI can be for managing computers.

Using the tool, you can query for management information such as the name and version of an operating system, how much free disk space is on a hard drive, or the state of a service. You can also use the tool to execute a method from a WMI class to perform a management task. For example, you can create code that executes the Create method of the Win32_Process class to create a new process such as Notepad or another executable. The tool also allows you to generate code to receive event notifications using WMI. For example, you can select to receive an event every time a process is started or stopped, or when a computer shuts down.

The tool also allows you to browse through the available WMI namespaces and classes on the local computer to find their descriptions, properties, methods, and qualifiers.

The code that creates the tool is also included in the download. The tool was created using WMI .NET, and the code for the tool can help developers understand how WMI .NET is used to create applications and manage information. Be sure to read the end-user license agreement that is included in the download.

The above overview and other technical details about Microsoft WMI Code Creator can be found here at Microsoft download center.

Download: WMICodeCreator.zip (121.38 kb)

 No Rating