ASP.NET MVC might be the new kid on the block, but there are still a host of compelling advantages to ASP.NET Web Forms.
The ASP.NET Web Forms MVP project is about bringing the love back to Web Forms through a renewed approach to using it – an approach that facilitates separation of concerns and testability whilst maintaining the rapid development that Web Forms was built to deliver.
This is really cool stuff – we’ve just started using it in our development and I can already see the benefits to plain Web Forms or MVC. Granted, if you’ve already developed a pure MVC site, this probably won’t be useful to you, but if (like most of us, I assume) you have an existing ASP.NET Web Forms site and want to try the features of MVC without completely rewriting your framework, I highly suggest checking this out.
I’ll try to see if I can abstract out some of our internal examples for a future blog post. =)
My favorite feature of VS2010 so far is the excellent extension support, which allows me to add in my favorite plugins from the Microsoft Visual Studio Gallery.
Since there are thousands of plugins in the gallery right now, I thought it might be useful to share the most useful extensions I’ve found (and currently use) so far:
In alphabetical order…
AnkhSVN AnkhSVN is a Subversion Source Control Provider for Microsoft Visual Studio 2005, 2008 and 2010. AnkhSVN provides source code management support to all project types supported by Visual Studio and allows you to perform the most common version control operations directly from inside the Microsoft Visual Studio IDE.
The Pending Changes dashboard gives you a unique insight in your development process and provides easy access to the source code and issue management features. The deep source code control (SCC) integration allows you to focus on developing, while AnkhSVN keeps track of all your changes and provides you the tools to effectively handle your specific needs.
Code4Blog Code4Blog is a Visual Studio 2010 extension that allows to convert any code supported by Visual Studio IDE to HTML format with the same structure and colors. Main purpose of this extension is to prepare a code snippet to be published in rich documents, for example in blog posts, Microsoft Word documents or Help files. Some additional styling could be applied: max width and height of the code block, custom background (per code line), font family and font size, line numbering and others. Code4Blog is now published on CodePlex. You are welcome to work with the source code directly!
PowerCommands for Visual Studio 2010 PowerCommands 10.0 is a set of useful extensions for the Visual Studio 2010 adding additional functionality to various areas of the IDE.
Visit the VSX Developer Center at http://msdn.com/vsx for more information about extending Visual Studio.
PowerConsole This extension provides an extensible VS command window with default PowerShell integration. You can now script Visual Studio interactively in PowerShell, and enjoy familiar VS style syntax coloring and tab-completion.
Prerequisite: Visual Studio 2010 RC (or above) + Windows PowerShell v2 (or above). After installation, open the new tool window from View->Other Windows->Power Console.
Regex Editor This sample was built to ease your pain when working with regular expressions. It rehosts the editor in a dialog box and provides a basic language service to provide colorization, brace matching, sample testing grouping and selection tracking. It shows re-hosting of the editor in a tool window, and provides a nice starting point for similar projects.
VS10x Code Map VS10x Code Map is a Visual Studio 2010 extension that displays a graphical nested representation of the current editor window code (C# and VB.NET). It helps the developer visualize type nesting, implemented interfaces, regions, member type and scope, as well as quickly navigate to their respective position in the code editor.
Don’t know about you, but the slightly offset icon for Grooveshark 1.x on the iPhone bugged me (yes, I really am that anal ;-), so I popped it into my image editor and tried to make it look a bit more like the stock iPhone icons by overlaying the glossy “button” look and adjusting the size to match the other icons I found.
Just click on the icon above, then save it to your desktop (or wherever) as Icon.png, then do the following:
Navigate to the /Applications/Grooveshark.app folder.
Replace Icon.png with the icon you downloaded above.
Respring/reboot your iPhone, and when the Springboard comes back up, you should see the new icon. =)
One caveat: You’ll have to replace this icon using the steps above every time you get a Grooveshark update from Cydia/Rock/wherever until they fix the icon themselves, but it should work fine between updates.
Let me know if this works for you in the comments. Thanks!
Update: You can use the following registry script to automate this process – just copy/paste the code block below into a text file called “Add Consolas to CMD.reg” and run it:
Windows Registry Editor Version 5.00
If you’d like to use an alternative console font for CMD.exe in Windows, check out the scoop from Microsoft Support on how to set it up…
The fonts must meet the following criteria to be available in a command session window:
The font must be a fixed-pitch font.
The font cannot be an italic font.
The font cannot have a negative A or C space.
If it is a TrueType font, it must be FF_MODERN.
If it is not a TrueType font, it must be OEM_CHARSET.
Additional criteria for Asian installations:
If it is not a TrueType font, the face name must be “Terminal.”
If it is an Asian TrueType font, it must also be an Asian character set.
In Windows 2000, the installation of Console Fonts is no longer automated. This was done to give the console window greater stability in multilanguage environments. An unsupported work around is available by adding the following font specific entry:
Add a String Value
Data= “Font Name” (without “”)
Droid Sans Mono:
Straight from the Android SDK comes the Droid Sans Mono font, which is quite similar to the DejaVu Sans Mono font listed above. You can grab this from the Android SDK download, or you can get it directly from the damieng blog here: Droid Sans Mono great coding font
Update: This application will help you track down which applications are using which ports on Windows – very helpful for debugging if the steps below don’t solve your problem, or if IIS is not the only application answering on port 80: http://winnetstat.zapto.org/
Also, if you don’t specifically need all the features of XAMPP, but would like to run PHP/MySQL applications through IIS, give Web Platform Installer a try. Through WPI, you can choose to install PHP directly within IIS (so that IIS can serve both ASP.NET and PHP applications on port 80, for example) and you can also have a ton of applications installed and configured automatically for you, such as Drupal, WordPress, and Moodle (among many others). However, if you are still looking to run XAMPP specifically, or just run an Apache instance along with IIS, check out the instructions below. Thanks for visiting!
Just stumbled on to this problem/fix while writing some C++ code for my CS courses…
warning: deprecated conversion from string constant to ‘char*’
I hadn’t really thought about this much, as previous versions of g++ (such as the 3.4.3 version we’re using on our university systems) never complained about this issue, but g++ 4.2.3 does. The fix, as I found from multiple posts around the web, is to change all function arguments that will be expected to take a string constant from “char *” to “const char *”. For example:
Original Function Prototype:
void class::someFunction(char *);
Updated Function Prototype:
void class::someFunction(const char *);
I’m somewhat new to C++ (OSU taught Java and I code in C# for the day job), so please give me a bit of slack on this one if you’re a seasoned pro. 😉
As always, comments and questions are welcome via my comment box. Thanks for reading!