Windy – Divvy alternative for Windows

Update: 1/10/21. windy is now beta2, and has moved to codeplex : projectwindy.codeplex.com

Windy is Divvy for Windows platform.

A lot searches later, I found that there was no real divvy (MAC) alternative for windows. So, 2 days later i have this, which is exactly divvy – but for windows. What is Windy? Since the idea is from Divvy, it is only fair to use a similar tone – Managing windows on Windows can be frustrating, requiring precision control of your mouse or trackpad for clicking, dragging, pushing and pulling your windows to the size and position you desire. Even with all this work, it’s very difficult to get windows exactly where you want them, so most of the time windows are left scattered all over the screen. The solution? Windy.
Windy is an entirely new way of managing your workspace, originally created by divvy for MAC.It allows you to quickly and efficiently “Windy up” your screen into exact portions.

With the Windy interface it’s as simple as a single click and drag in the Windy interface and your window will be resized and moved to a relative portion of the screen. If that seems like too much work, you can go ahead and create as many different shortcuts as you’d like that resize and move your windows.
Windy is designed to be quick, simple and elegant.
for a divvy demo – go here – http://www.youtube.com/watch?v=ctRDIr75sNg

Quick start. Install from http://sourceforge.net/projects/widy/files/WindySetup.msi/download

Launch windy from start menu.

Press Alt+Shift to bring up windy blocks.

To change settings – Right click the windy icon on the system tray area (date time area) and select “settings”

here is the settings dialog

Auto Generating C# wrapper for parsing XML files

While working with xmls, many a times I see starting the xml and seeing the insanely mundane but manual task of writing parser classes in C#. Then xsd found me.

if you are like me, you will benefit a bit from this post.

here is a step by step to start with an xml and end up with a full .cs file to parse the input xml.

 

lets say you have an input xml

  1. <Master>
  2. <Customer>
  3. <Name
    Gender=Male>Bill</Name>
  4. <Age>34</Age>
  5. </Customer>
  6. </Master>

     

Step 1

Load this xml file in visual studio (2008 or 2010). You should see a Menu “XML”, and under which you should see a “Create Schema” Menu Item

On clicking “Create Schema”, an xsd file will be generated :

Save this xsd file (say c:\temp\input.xsd)

It is time now to create the cs file.

Search for “visual studio command prompt” in Start search bar.

Open the command prompt. Type in

C:\temp>xsd /c /l:cs /n:MyNamespace Input.xsd

/c represents “generate classes for this schema”

/l represents the language in which the classes are to be generated in. You can use CS, VB, JS

/n represents the namespace

And input.xsd is the generated schema file from above.

 

The output of this command is a cs file in the same folder c:\temp\input.cs

Here are the contents of this file: