Insights and outlooks on software development

S'true

More extensions

Thursday, March 27, 2008 by Thomas L

A while ago, I posted some links about which Firefox extensions I use. A small addendum to that list:

del.icio.us bookmarks: replace the normal Firefox bookmark handling with the del.icio.us paradigm:

https://addons.mozilla.org/en-US/firefox/addon/3615

IE Tab: launch Internet Explorer in an embedded window (Windows only, naturally)

https://addons.mozilla.org/en-US/firefox/addon/1419

Oh, and why/how do I use Foxmarks bookmark sync and del.icio.us at the same time? Well, I sync my Bookmarks toolbar folder and some quick search bookmarks (more on that later, I suppose). All other bookmarks are now stored in my del.icio.us account.

Print screen key in VMware Fusion

Sunday, March 16, 2008 by Thomas L

As you might or might not know, I use VMware Fusion under Mac OS X Tiger to run a Vista install and code .NET. As I sat and wrote a blog post, I found I needed to dump what was on my screen, and started looking at my keyboard around where the Print Screen key normally is. But as I use a mac keyboard, the print screen key was nowhere to be found. Via the VMware Fusion FAQ, it turns out that I can press the F13 key to send a Print Screen keypress to Windows.

Using Alt-F13 (or, since I use a mac keyboard, Apple-F13), does a normal Print Screen on the active window only.

Hmm, I only wonder how I'd do if I didn't have access to my full size mac keyboard (which only contains the F1-F12 keys).

Technorati Tags: ,,

Visual Studio 2008 tip: prop and propg

by Thomas L

I'm not trying to steal Sara Ford's job, but this is a tip that tend to be quite overlooked among those who use Visual Studio regularly: the prop/propg syntactic sugar.

Whenever you feel that you'd like to implement a normal boring set-get property that writes to and reads from a private field, just write prop and press Tab. Visual Studio will give you a snippet to fill in:
image 
The code above will create a public getter and setter for the string property Text.

Doing the same with the snippet propg will give us:
image
 
This gives us a private setter and public getter.

Since this is only syntactic sugar, I'd like to know what will be generated by the compiler, so I fired up Reflector:
image
So, a getter and setter, public/public and public/private, respectively, with two private fields. A quite nice way to make the code contain less noise. (Of course, there are other ways as well. :)

Technorati Tags: ,

Filed under having 0 kommentarer  

S'true

Friday, March 14, 2008 by Thomas L

http://bitsandpieces.us/?p=1209

Filed under having 0 kommentarer  

VS Command prompt here

Monday, March 10, 2008 by Thomas L

More or less as a 'Note to self':

http://www.hanselman.com/blog/VisualStudioCommandPromptHereAndSearchUnknownFileExtensions.aspx

Technorati Tags: ,

Filed under having 0 kommentarer  

How could I live without this?

by Thomas L

www.launchy.net

Filed under having 0 kommentarer  

Testing syntaxhighlighter

Monday, March 3, 2008 by Thomas L

Got the tip from this blog about how to get nicely formatted c# code by using syntaxhighlighter. As I am writing my blog posts from Windows Live Writer, I quickly found a plugin to be able to use it directly from there. So without further ado:

    public class User : EntityBase
    {
        public string Name { get; set; }
    }

Well, I hope it's better than the previous one.

Filed under having 0 kommentarer