I am currently working on a SaveAs feature to some special file formats, those files are very very big. Before actually saving the file, I need to compute its anticipated size and compare it with the free disk space to see if there is enough storage for that operation. After searching a bit about how to get the free disk space, I came across the solution which uses the System.Management namespace. This namespace provides access to a rich set of management information about the system, devices, and applications instrumented to the WMI infrastructure. But, what the hell is WMI?

wmi

WMI is Windows Management Instrumentation and is part of the Windows operating system that provides management information and control. WMI provides extensive instrumentation to accomplish almost any management task and help us obtain information about our system. Applications and services can query for interesting management information such as how much free space is left on the disk, what is the current CPU utilization, which database a certain application is connected to, and much more, using classes from the System.Management namespace. Here is the MSDN page about the Windows Management Instrumentation.

Let me show you how to query the free disk space using WMI:


Continue Reading...

Hi all

 

Here is a small application I discovered lately which I just love!

This little application will give you the option of changing the colors of any Windows folders you want.

You can also Change how the folder actually looks and edit the Tooltip that will be displayed when the mouse hovers above it.

Change the color of folders


Continue Reading...

If you are a .NET developer, you should probably know the .NET Reflector which is a great tool for viewing, navigating and searching through the class hierarchies of .NET assemblies (even if you don’t have the code for them). I am using this tool a lot but here is something I only recently discovered: one can export an assembly and let the Reflector generate its source code. The output of this process is a directory with a project file and all of the source files.

Lets deep dive into this process. The first thing to do is to drag the assembly you’re interested in into the Reflector. I want to show my case on the XHTML sitemap validation tool dll, which can be downloaded from our Freebies page. The next step is to right click on this assembly and choose the Export menu option:

exportreflector


Continue Reading...

In the last article we installed and configured the Subversion server using Visual SVN.

Today I am going to show you how to interact with the server from the client side.

What you will need to download the Tortoise SVN client application.

Download and install and after a restart (bummer) we are ready to start working!

The Tortoise SVN adds its functionality in the Windows Explorer Context Menu.

Tortoise SVN


Continue Reading...

I bet many of you are working on your own software projects and would love to have a version control at their disposal. This is useful for many reasons. If you are working with one or more friends on a joint project, if you have a desktop and a laptop and you want to work from both computers while keeping the files synchronized, or if you just want to be more organized and keep versions and backups of your work. You can also use Visual SVN to sync folders or documents between several computers.

This article will have 2 sections One will discuss the SVN Server installation and configuration and the second part will be about how to use the SVN client.

First you have to download the Visual SVN Server Installation

Installing the Visual SVN Server

Double click on the Visual SVN executable to begin the installation. After a few next next next clicks you will get this screen:


Continue Reading...

Although Dev102 is a blog about software tips, web and technology reviews, I want to introduce you something which is a little bit out of context. Most people, know and use Microsoft Outlook as their email application and are spending too much time searching for conversations, attachments, and other important information in their inbox. A company names Xobni introduce us a free Outlook plugin which offers a new way to organize and search the Outlook email.

image


Continue Reading...

After I published a post about SDEdit which is a free desktop sequence diagram editor, I received a mail from Steve Hanov who wanted to introduce me with a very impressive alternative to SDEdit. Steve has created a web service that creates renditions of sequence diagrams, it is completely online and does not require a download. Well, after reviewing this tool, I decided to let Dev102 readers know about it too, it is really great.

Like SDEdit, the UML sequence diagrams are created from a textual syntax and not by drawing objects and lines. Lets take a look at the following example:

Alice->Bob: Authentication Request
note right of Bob: Bob thinks about it.
Bob-->Alice: Authentication Response

You can notice that the syntax is easy and if you ask from the tool to draw it, this is what you get:


Continue Reading...

As software developers, all of us used at least one UML design tool such as Rational Rose, Enterprise Architect or even Microsoft VISIO. Those tools have one thing in common – they are commercial and thus cost money… I want to introduce you a nice free sequence diagram editor called SDEdit. It is not a full UML design editor, you can’t draw class diagrams or state diagrams, only sequence diagrams are there.

Markus Strauch, the author of this tool, also called it Quick Sequence Diagram Editor. The UML sequence diagrams are created from a textual syntax and not by drawing objects and lines. There is a text area at the bottom of the window to specify the objects and messages while you can see the sequence diagram itself at the upper part of the window…


Continue Reading...

This is a guest post by Ryan Lanciaux.

Hi my name is Ryan Lanciaux. I want the thank the guys at Dev102 for giving me the opportunity to write about a topic I find very interesting — jQuery and the ASP.NET MVC Framework.

With WebForms, integrating with Ajax libraries other than ASP.NET AJAX was slightly painful. With the new ASP.NET MVC Framework, however, you can use jQuery without these additional headaches. We’re going to take a quick look at how the Frickinsweet.com Theme Generator uses some of the built in ASP.NET MVC utilities combined w/ jQuery to give the user an update with out reloading the page. The example we’re going to look at is a little simplified but the concepts are still there.

The first thing we’re going to do is create an ASP.NET MVC (Preview 4) Project. Create a new view and controller action under your Home controller and add the following line to the view.


Continue Reading...

This is a guest post by Sam Agarwal from the Bitrix Team.

The first impression you might get when you open the Bitrix Site Manager’s Photo Album is that it resembles any other photo sharing application. However, as soon as you start working with it, the enormous differences become more than apparent.

Bitrix_Photo_Gallery


Continue Reading...