justin

"Forking" a long running command to a new tab with ConEmu. The magic of -new_console:c

Dec 27 2012No Comments by justin

Here's a quick tip I'd thought I'd share after being quite rightly told to RTFM by the author of ConEmu. Suppose you are running FarManager from ConEmu and want to update all your chocolatey packages. You can do so with the command cup all. However, that will block your FarManager session until the cup all completes. You have four options to fix this: You can start a new tab in ConEmu with the menu. This is undesirable because you're obviously a command line guy. You press Shift+Enter after …

chocolatey, ConEmu, console, farmanager Read more

How to reference the registry in MSBuild4.0 (Visual Studio 2010) and later on a 64 bit OS

Dec 22 2012No Comments by justin

In the past I've written about using the Windows Registry to reference  assembly paths in Visual Studio. In it I made reference to the seminal article New Registry syntax in MSBuild v3.5, which is the dialect Visual Studio 2008 speaks. That syntax has served me well until recently. See fate lead me to writing a small C++/CLI program. In it I had to refer to some .NET assemblies that were not installed in the GAC. They were however installed as part of a software package that wrote its install …

Read more

Trouble purchasing an MSDN subscription

Dec 14 2012No Comments by justin

Recently I've decided to purchase a Visual Studio 2012 Professional  MSDN subscription. There are several reasons for this. First of all, my Visual Studio 2012 30 day trial ran out and I absolutely need the non-express edition of it for a side project. Secondly, I'd like to be able to test poshrunner in older versions of Windows. Thirdly, Having access to checked builds of Windows would allow me to lean more in my Windows Internals study group. I started my journey to an MSDN subscription on …

Read more

Announcing ILRepack-BuildTasks

Dec 10 2012No Comments by justin

ILMerge is a great tool for creating a single executable out of multiple .NET assemblies. However, it has two limitations. The first is that its not open source, and you're not supposed to include a copy in your public source code repos. The second is its an executable and therefore needs to be called from the MSBuild post build event as opposed to a proper MSBuild task. Each problem had its own mutually exclusive solution. For the first problem, Francois Valdy (blog|twitter) wrote IL-Repack, …

ILMerge, ILREpack, MSBuild Read more

A misleading SQL Error Message Error: 18456, Severity: 14, State: 38

Dec 10 2012No Comments by justin

On Friday I had to help a client out with an error that kept appearing in their event logs: Login failed for user 'domain\user'. Reason: Failed to open the explicitly specified database. [CLIENT: 192.168.0.25] It took me a while to troubleshoot the error. The client's internal system administrator (who was quite sharp) only had to call me in in the first place because the error was a little misleading. See the first thing I did when I saw that was audit login failures. In the trace, the …

Microsoft SQL Server Read more

The #MongoHelp twitter manifesto

Dec 05 2012No Comments by justin

What is #mongohelp? #mongohelp is a hashtag on twitter that members of the mongo community use for support. What's appropiate to tag #mongohelp? In order for something to be appropiate for appending the #mongohelp hash tag to one of the following two criteria must be met You are asking a question related to MongoDb You are @replying to a question #mongohelp with an answer or a request for clarification Those are the rules. You can reply with a recommendation for a commercial product or …

Read more

Announcing poshrunner.exe so MyScript.ps1 can use MyScript.ps1.config instead of powershell.exe.config

Nov 22 2012No Comments by justin

I have a tendency to do odd things with technology so that things don't just work. When I point out the obscure edge cases I find, most people tell me, "well don't do that." I usually ignore them and dream of tilting windmills. Well today a windmill has been tilted, and this is the epic tale. I'm a developer that fell in love with PowerShell. As such I often call .NET API functions from powershell scripts. This usually just works. However, it kind of falls apart when you have to use settings …

Open Source, poshrunner, PowerShell Read more

Visual Studio 2010 and VisualStudio.com TFS Hosting

Nov 08 2012No Comments by justin

Yesterday, Stan, the founder of this blog, gave me a link to a project host on the Team Foundation Service (visual studio.com). I tried to connect to it with Visual Studio 2010. it simply refused to work. After much annoyance, he asked me to try adding the TFS server to Visual Studio 2012 and it worked (Why didn't I think of that?). Eventually I figured out that I needed to install the Visual Studio 2010 SP1 Team Foundation Server 2012 Compatibility GDR (KB2662296). Then I was able to add …

Team Foundation Server, Visual Studio Read more

Windows Internals Study Group - First meeting

Nov 08 2012No Comments by justin

Last night myself and two others had out first planning meeting via google huddle for our Windows Internals Study group. We will be meeting next Wednesday 2012-11-17 at 20:30 EST to discuss the first two chapters of Windows Internals 6th edition. If you still want to participate its not too late, just let me know. One thing we decided was to make all our notes public. Right now they are being stored in a google drive shared folder that is publicly accessible. The information there will grow …

windows internals study group Read more

My ConEmu Tasks

Nov 04 2012No Comments by justin

Update: Thanks to the author of ConEmu for some constructive feedback in the comments! I've fallen in love with ConEmu, after being introduced to it by a Scott Hanselman blog post. While my initial attraction to it was its integration with farmanager, that was only its initial selling point. The ability to have one resizable tabbed window to hold all my cmd.exe, powershell.exe and bash.exe consoles is what makes it a killer app. While 90% of my command line needs are met by a vanilla …

Read more