Archive for December, 2012

How to fix the Visual Studio 2012 skin

The Visual Studio 2012 default skin is just awful. To fix it, here are the shortcuts.

To use this nice dark theme, import this VSSettings file:

Run this powershell command to turn off the ALL CAPS menu (if in Visual Studio full version):

Set-ItemProperty -Path HKCU:\Software\Microsoft\VisualStudio\11.0\General -Name SuppressUppercaseConversion -Type DWord -Value 1

(or if in Visual Studio Express Web):

Set-ItemProperty -Path HKCU:\Software\Microsoft\VWDExpress\11.0\General -Name SuppressUppercaseConversion -Type DWord -Value 1

Run web apps in localhost without having to run Visual Studio in admin mode

If you want to run your apps in localhost through IIS Express without having to launch Visual Studio in admin mode every time, run this one-time command through an admin-elevated cmd (replacing your app name and port):

>netsh http add urlacl url= user=everyone

Now you can launch Visual Studio in normal mode and when you Ctrl-F5, you won’t get a “failed to register url” error.

New software scans object then prints in 3D

The Geomagic Spark app lets you scan an object then print it on your 3D printer.  While traditional CAD packages have modeling capabilities, they lack the tools to process 3D scan data into usable 3D.  Geomagic Spark combines a live 3D scanning interface, robust 3D point and mesh editing capabilities, comprehensive modeling design, assembly modeling, and 2D drawing creation in one complete application.

Here’s a video showing the 3D scanner and software in action:

Automagically pass select option to viewmodel in post action

To automagically pass a select option (a.k.a. DropDownBox or ComboBox) to a post action’s viewmodel using MVC.NET’s built in model binding, simply set the “name” (not the “id”) of the select element to the name of the viewmodel parameter. Make sure the option values are also being populated.  Like so:

@using (Html.BeginForm())

public class MyViewModel
    public string ItemId{ get; set; }
    public List Items{ get; set; }
© 2018 Robert Corvus