|
Posted 10/21/2008 by PeterB, .NET Prog.
|
| |
Have you ever copied some code in order to place it on a new line, and then when you tried to paste it you hit CTRL-C instead of CTRL-V? If you have, then you probably have dealt with the frustration of losing what was in your clipboard. For most people this meant finding that code to once again copy it and then meticulously stare at the keyboard making sure that they hit the right key.
Well, there is one way to deal with this and that is using CTRL-SHIFT-V. This shortcut key will allow you to cycle through your clipboard and get back that code you just lost. If you hold CTRL-SHIFT while hitting 'V' you will begin to cycle through each element in your clipboard, probably starting with the new empty line you copied and then followed by the code you had intended to paste. This is actually a very handy shortcut key that I also find useful outside of this scenario.
For those of you who would rather not deal with ever losing your clipboard to a blank line, well there is an option for you too. If you go to Tools > Options > Text Editor > All Language > General you can uncheck "Apply Cut or Copy Commands to blank lines when there is no selection". From here, you will no longer have to deal with the unfortunate mistype of copying a blank line.
I recently came across this and many other great tips at Sara Ford's Blog. Within it you can find Visual Studio 2008 tips, which she publishes daily. I would recommend to anyone using Visual Studio to definitely add this to their list of RSS Feeds if they have not done so already.
Share:
rating:
|
Posted 8/22/2008 by ccook, .NET Prog
|
| |
RockScroll has been introduced on Scott Hanselfman’s blog. If you work with Visual Studio, this is a must. I have found it to be one of my most used features of Visual Studio. It keeps the ‘visual’ interpretation of even the largest of code files intact. Check it out:
http://www.hanselman.com/blog/IntroducingRockScroll.aspx
Share:
rating:
|
Posted 3/22/2008 by ccook, .NET Prog
|
| |
You learn something new every day, but it’s not every day you learn something really useful. Alt in Visual Studio has to be one of the most useful text editing shortcuts I have come across since copy and paste (kudos to Mr. Evol). Alt allows you to select vertical regions of text, the usefulness of which I demonstrate below.
Say you would like to add the namespace using statements to a string builder within a new class, say Class1.

There are three namespaces so you can quickly create the three append lines.

Now one could copy each namespace individually, or, just select them all with Alt.

Copy that block and paste it into the first append to get

This demo’s code is of course useless, but the technique is invaluable.
Share:
rating:
|
Posted 3/12/2008 by DanV, Tech Dir.
|
| |
The majority of advice on how to disable browser caching seems to revolve around how to make it work in IE. However, in Firefox the fixes don't always seem to work. Below are some notes and sample code on how to make it work for both browsers:
The SetNoStore() seems to be a necessity for FireFox
The
HttpCacheability.NoCache has an issue in IE (not sure about FireFox) when you
are on a secure (https) page and are trying to send a file by setting the
headers. It causes the file download to not work properly.
SetValidUntilExpires(), SetRevalidation() – unsure if this is a requirement
at this time. Was added because it was still giving problems in FireFox before
SetNoStore() was found.
SetExpires() I tried to set this to 5 days in the
past and I still got the 2 second window.
public static void DisablePageCaching()
{
//Used for disabling page caching
HttpContext.Current.Response.Cache.SetExpires(DateTime.UtcNow.AddDays(-1));
HttpContext.Current.Response.Cache.SetValidUntilExpires(false);
HttpContext.Current.Response.Cache.SetRevalidation(HttpCacheRevalidation.AllCaches);
HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.NoCache);
HttpContext.Current.Response.Cache.SetNoStore();
}
Share:
rating:
|
Posted 2/22/2008 by ccook, .NET Prog
|
| |
You can take a screenshot of the current window with alt+print screen, instead of the whole desktop as is done with print screen.

You can close the current window by double clicking the application icon in the top left corner of the window.

You can bring a window to the mouse by select move from the applications context menu on the start toolbar and pressing an arrow key. The window will now follow the mouse. This is particularly handing with remote desktop.
Windows key + r brings up the run as window, the application name can be typed and with enter run. This removes the need for a mouse when starting applications. For example internet explorer can be start with windows key + r then ‘iexplore’.
The computer can be locked with windows key + ‘L’, handy for leaving the computer quickly.
Windows explorer can be opened with windows key + ‘e’
System information can be opened with windows key + pause break
Share:
rating:
|
Posted 2/18/2008 by PeterV, VP, Marketing
|
| |
OK, so there have only been 3 episodes, but this is still the best one ever. Could be because we get a shout out right off the bat. Could be because the band I was once in is the music on the outro (yes, I was cool once). Or, it could be the hilarious impressions at the end by Scott Hanselman of http://www.hanselman.com/blog/ during the closing credits.
So without further adieu, here it is:
Share:
rating:
|
Posted 2/15/2008 by PeterV, VP, Marketing
|
| |
Did they take my idea for the name of the show? No. Am I still going to post the show? sure. Is it because we designed the logo for the show? Most likely.
But seriously, this is a pretty cool show if you're in to stuff related to the developer community. It puts a lighthearted spin on some of the latest news, blogs, mash-ups, etc. They never explain why that guy in the middle is so happy though...
Share:
rating:
|
Posted 2/3/2008 by PeterV, VP, Marketing
|
| |
My friend Brian, who is a technical evangelist at Microsoft (was Tammy Faye a nontechnical evangelist?), passed along this great video he and his cohort, Dan Fernandez, created for MSDN's Channel 9.
They're looking for a name for the show. My suggestion? "The Bran Fernkeller Program." Just flows well. And it pays tribute to the Bennifers and Brangelinas of the world. They obviously appreciate entertainment news, judging from their suggestion for a "Britney Spears Sanity Watch Widget" during the show. I'd add that to my blog. More name ideas here.
Couple of notes before you watch: don't expect great superbowl predictions. The guys' predictions would've been better if they knew who was playing. Also, don't poke Dan's wife. On facebook that is. Dan, don't feel bad...I joined facebook in the first place to keep and eye on who was poking my wife. And now she's pregnant.
Anyhow, here is the latest on Channel9 videos, samples, bloggers, news, and much more. Though how they missed our Silverlight Candidate Filter is a wonder to me.
Share:
rating:
|
Posted 12/10/2007 by ccook, .NET Prog
|
| |
While watching a tech demo by Microsoft I caught the developer using Notepad2. This caught my interest so I looked into it and came upon Notepad2 by flo’s freeware, http://www.flos-freeware.ch/notepad2.html . A significant feature to Notepad2 is how it will detect the schema of a file and add syntax based markup automatically. Well that’s neat and all, but if only it replaced Notepad… Replacing Notepad with Notepad2 turns out to be rather simple, http://blogs.msdn.com/omars/archive/2004/04/30/124093.aspx. Now Notepad2 will open wherever Notepad would have opened before. One other handy trick is to set the default schema type to HTML. This way when you view source on pages in Internet Explorer you will have markup that will make reading the source easy to on the eye.

http://www.flos-freeware.ch/notepad2.html
Share:
rating:
|
Posted 9/25/2007 by ccook, .NET Prog
|
| |
Perhaps the most compelling reason to run Vista as a web developer is to use IIS 7. IIS 7 ships with Vista Business and Ultimate with only one limitation, ten simultaneous processes. With IIS 7 one can now run multiple websites with multiple bindings to multiple sub domains (FINALLY!).
One nuance is the setup of ASP.NET v1.1, as out of the box it favors v2.0. By default the ASP.NET 1.1 ISAPI extension is ‘Not Allowed’, simply change it to “allowed” and “HTTP Error 404.2 – Not Found” will be a distant memory.
As a reminder, to enable the filter
- Windows key + r
- Inetsrv/iis.msc
- Open ISAPI and CGI Restrictions
- Change the value
Also, don’t forget the Application Pool specifies the version of the framework to run.
Enjoy!
Share:
rating: