Converting video clips between types

I had a small WMV file that I wanted to convert into a stand alone flash video (not a FLV, a SWF) to stick on a website.

There are lots of seemingly poor options out there for doing this, but this one was perfect: http://www.youconvertit.com.

I uploaded the WMV and they had a number of output options, one of which was SWF.  They emailed me a few seconds later letting me know my conversion job was completed, and I downloaded the SWF, which worked just as expected.

 

Ignore White Space in Visual Studio built in compare tool

If you don’t really care about spaces vs tabs when comparing files in visual studio using the built in compare tool you can use the info found here to get VS to ignore white space.

Tools -> Options -> Source Control -> Visual Studio Team
Foundation Server -> Configure Users Tools.. -> Add ->

Add “%5 /ignorespace” at the end of the “arguments” textbox.

That’s it.

Print Key Not Working in Greenshot?

I just got to the bottom of this problem…

I was running Greenshot from startup (Greenshot is a nice OSS screen capture tool), and I was having this issue where from time to time the “print” wouldn’t work.

When running Greenshot, pressing the Print key allows you to select a region of the screen for a cropped screen shot.

After some tinkering, the issue is that when Greenshot is running w/o admin rights, it won’t be able to respond when my focus is on an application that is running WITH admin rights.

As long as the app I have focus on is using regular level permissions, or greenshot is running with elevated premissions, all is well.

I’m simply running it with elevated permissions now and have no issues.

Connecting to FTP behind Windows Firewall and Passive Connections

Even though I opened up the correct port in the Firewall, my Filezilla connection would always fail shortly after connecting.

It would attempt to enter passive mode, and also get a list of the FTP contents, and then the connection would die.

Turns out that by default, the FTP client (filezilla and maybe many others) enter a “Passive” mode when not actively transfering files.  However, to do this the client needs to connect to a random port assigned by the server, which for windows FTP server is between 1024 and 5000.

Now, if you don’t want to open up all those ports in your FW, then you can use the instructions here to change the PassivePortRange in the Metabase.xml file.

http://www.winservermart.com/HowTo/IIS_Passive_FTP.aspx

Worked prefect for me.

Build Visual Studio Solutions and Projects from Explorer

Adding this to your registry will give you the ability to build/clean/rebuild projects using the right click in windows explorer.  It uses .net 4.0 version of msbuild.  Just paste this into a .reg file and run it.

Windows Registry Editor Version 5.00 

[HKEY_CLASSES_ROOTSystemFileAssociations.sln]

[HKEY_CLASSES_ROOTSystemFileAssociations.slnshell]

[HKEY_CLASSES_ROOTSystemFileAssociations.slnshellBuild]

[HKEY_CLASSES_ROOTSystemFileAssociations.slnshellBuildcommand]
@="cmd.exe /K ""%%windir%%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "%1" /t:build""

[HKEY_CLASSES_ROOTSystemFileAssociations.slnshellClean]

[HKEY_CLASSES_ROOTSystemFileAssociations.slnshellCleancommand]
@="cmd.exe /K ""%%windir%%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "%1" /t:clean""

[HKEY_CLASSES_ROOTSystemFileAssociations.slnshellRebuild]

[HKEY_CLASSES_ROOTSystemFileAssociations.slnshellRebuildcommand]
@="cmd.exe /K ""%%windir%%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "%1" /t:rebuild""

[HKEY_CLASSES_ROOTSystemFileAssociations.csproj]

[HKEY_CLASSES_ROOTSystemFileAssociations.csprojshell]

[HKEY_CLASSES_ROOTSystemFileAssociations.csprojshellBuild]

[HKEY_CLASSES_ROOTSystemFileAssociations.csprojshellBuildcommand]
@="cmd.exe /K ""%%windir%%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "%1" /t:build""

[HKEY_CLASSES_ROOTSystemFileAssociations.csprojshellClean]

[HKEY_CLASSES_ROOTSystemFileAssociations.csprojshellCleancommand]
@="cmd.exe /K ""%%windir%%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "%1" /t:clean""

[HKEY_CLASSES_ROOTSystemFileAssociations.csprojshellRebuild]

[HKEY_CLASSES_ROOTSystemFileAssociations.csprojshellRebuildcommand]
@="cmd.exe /K ""%%windir%%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "%1" /t:rebuild""

[HKEY_CLASSES_ROOTSystemFileAssociations.vbproj]

[HKEY_CLASSES_ROOTSystemFileAssociations.vbprojshell]

[HKEY_CLASSES_ROOTSystemFileAssociations.vbprojshellBuild]

[HKEY_CLASSES_ROOTSystemFileAssociations.vbprojshellBuildcommand]
@="cmd.exe /K ""%%windir%%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "%1" /t:build""

[HKEY_CLASSES_ROOTSystemFileAssociations.vbprojshellClean]

[HKEY_CLASSES_ROOTSystemFileAssociations.vbprojshellCleancommand]
@="cmd.exe /K ""%%windir%%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "%1" /t:clean""
[HKEY_CLASSES_ROOTSystemFileAssociations.vbprojshellRebuild]

[HKEY_CLASSES_ROOTSystemFileAssociations.vbprojshellRebuildcommand]
@="cmd.exe /K ""%%windir%%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "%1" /t:rebuild""


ASP.NET Server Tags

There are a number of different server tags (<%, <%#, <%$, <%@, <%=) which each mean different things.

This article goes into a little depth talking about each of these tags.

The one I never use, is <%$, which I learned is for displaying expressions, but you can also easily write your own expression provider by extending the expressionbuilder class.  An example of doing so can be found here.

Pretty cool.

VS.Net Go To Implementation

Visual Studio has a nice “Go to definition” shortcut, but with our MVP pattern we are doing a lot of work against interfaces, which means that quite often going to definition actually takes us to a method in an interface.  For example:

Dim e As IEmployee = New Employee(1234)
Call e.GiveRaise(1.05)

If you did “Go to Definition” on “GiveRaise” you would not end up in the Employee class, but rather than IEmployee interface.

This plugin helps fix that problem.

I ended up skipping that part where he sets up the keyboard shortcut in favor of just using right click, but if you want to set that up you might find that the menu item he talks about is missing.  To get that dialog to show up use the keyboard shortcut CTRL+ALT+SHIFT+O.

 

OpenOfficespace.com

Companies that have unused office space can sublet it to individuals or other small group swho need an office but can’t afford the full deal.

It’s great for independent contractors who want to have an office outside of their house.

http://openofficespace.com attempts to make these arrangements (and other more standard office space) easy to list/find.  While it “kinda” worked for me, the implementation is really lacking.  Lots of the results that came back were not in the specified area radius and some that WERE were not shown until I modified my location.

People listing $0/month is also quite useless for people who don’t want to have to call the agent to find out that actual asking price.

But still, probably a useful resource.