Contents tagged with Tips and Tricks
-
Opening files from the VS "Quick find combo"
Ctrl+/ is quickly becoming one of my favorite and most used hotkey in Visual Studio. Pressing it will jump you to the "Quick find Combo" with a ">" already type in for you (which means interpret the text as a VS command).
-
2008 Scripting Games - My solutions
-
All Outlook object model calls run on the main thread
While writing an Outlook addin, lots of people feel that they should try to help with Outlook performance by running their addin code on a background thread. While this can help in some scenarios it can actually make things worse in others, particularly if the addin is interacting primarily with the Outlook Object Model (OOM). The OOM is run in a single threaded apartment COM server, therefore every COM call is executed on the main thread of outlook.exe.
-
Issues with the XmlSerializer in medium trust environments
In my last post I briefly mentioned that CodeHTMLer had issues running in a medium trust environment. The simple web application front end I created kept failing before it ever got started. It keep hitting a SecurityException nested in an InvalidOperationException which looks something like:
-
Image File Execution Options
Every now and than while debugging I need to either determine when a dll/module is loaded or need to attach a debugger to a process at startup that is started outside a debugger. I know there are settings that exist to do this but I always seem to forget exactly what they are. So for future reference here the registry entries.
-
Powershell version of cmd set
If you are like me and are just so used to typing set to list and set environment variables then you might find this script useful.
-
Hanselminutes
I've been subscribed to Scott Hanselman's blog for a long time. I love all the tools, tips, etc he posts. Up until this point I have not really gotten into podcasts however due to Scott's awesome blog I figured I would give his podcast, Hanselminutes, a try.
-
How do I access my Outlook contacts from my web application?
How do I access my Outlook contacts from my web application?
-
Windows Live Writer BlogThis macro for Outlook 2007
If you use Windows Live Writer as your blogging tool and Outlook 2007 as your RSS aggregator then you maybe interested in this VBA macro. It will pull the necessary information from the currently selected RSS Item in Outlook and call the Windows Live Writer BlogThis API to create a new post.
-
String Streams in .Net
I while ago (almost 2 years) I posted a way to create a string stream in .Net. There has been a number of new comments added to that post recently so I figured I needed to update that example. Most API's that look for a Stream will also allow either a TextReader or TextWriter depending on the context. Therefore, in those cases when you have a string using StringReader or StringWriter is probably better then creating a MemoryStream like in my old example because you don't have to deal with the encoding.