The case for open sourcing the SQL Saturday Website

Apr 10 2014 Comments by justin

My name is Justin Dearing. I write software for a living. I also write software for free as hobby and for personal development. When I'm not writing code, I speak at user groups, events and conferences about code and code related topics. Once such event is SQL Saturday. I haven't spoken in a while because I became a dad in June. However, my daughter is 9 months old now and the weather is warm. I feel comfortable attending a regional SQL Saturday or two. So last night I submitted to SQL …

Read more

Creating a minimally viable CentOS OpenLogic rapache instance

Feb 16 2014 Comments by justin

Recently I've been dealing with R and rapache at work. R is a language for statisticians. rapache is an apache module for executing R scripts in apache. Its like mod_perl or mod_php for R. I've been writing simple RESTful scripts that return graphics and JSON, and calling them from static html pages. I've been also using my MSDN Azure subscription to engage in R self study at home. In the spirit of my last post, I've posted the setup notes here to get you stated with a new Azure VM for running …

Azure, centos, rapache Read more

Split testing using nginx proxy cache

Nov 11 2013 Comments by benjamin

My company recently discovering the joys of using nginx as a reverse proxy cache server. This allowed us to significantly reduce the load on our application servers. Of course, as soon as we got this setup working nicely, a request for A/B testing came down the pipeline. There are some obstacles to conducting A/B testing while using nginx as a reverse proxy cache server. Obstacle 1: Lack of "sticky" sessions in free nginx product. While there is support for session affinity as …

nginx, proxy, split testing Read more

Creating a minimally viable Centos instance for SSH X11 Forwarding

May 19 2013 Comments by justin

I recently need to setup a CentOS 6.4 vm for development Java development. I wanted to be able to run Eclipse STS and on said vm and display the X11 Windows remotely on my Windows 7 desktop via XMing. I saw no reason for the CentOS VM to have a local X11 server. I'm quite comfortable with the Linux command line. I decided to share briefly on how to go from a CentOS minimal install to something actually useful for getting work done. /usr/bin/man The minimal install installs man pages, but not …

centos, Linux, X11 Read more

When your PowerShell cmdlet doesn't return anything, use -PassThru

May 11 2013 Comments by justin

The other day I was mounting an ISO in Windows 8 via the Mount-DiskImage command. Since I was mounting the disk image in a script, I needed to know the drive letter it was mounted to so the script could access the files contained within. However, Mount-DiskImage was not returning anything. I didn't want to go through the hack of listing drives before and after I mounted the disk image, or explicitly assigning the drive letter. Both would leave me open to race conditions if another drive was …

Read more

Getting the Drive Letter of a disk image mounted with WinCdEmu

May 11 2013 Comments by justin

In my last post, I talked about mounting disk images in Windows 8. Both Windows 8 and 2012 include native support for mounting ISO images as drives. However, in prior versions of Windows you needed a third party tool to do this. Since I have a preference for open source, my tool of choice before Windows 8 was WinCdEmu. Today, I decided to see if it was possible to determine the drive letter of an ISO mounted by WinCdEMu with PowerShell. A quick search of the internet revealed that WinCdEmu …

PowerShell, WInCdEmu Read more

Setting the Visual Studio TFS diff and merge tools with PowerShell

May 03 2013 Comments by justin

I recently wrote this script to let me quickly change the diff and merge tools TFS uses from PowerShell. I plan to make it a module and add it to the StudioShell Contrib package by Jim Christopher (blog|twitter). For now, I share it as a gist and place it on this blog. The script supports Visual Studio 2008-2012 and the following diff tools: The built-in tools WinMerge KDiff3 SemanticMerge BeyondCompare Standard BeyondCompare Pro Enjoy!

Read more

Announcing SevenZipCmdLine.MSBuild

Jan 06 2013 Comments by justin

This was a quick and dirty thing born out of necessity, and need to make zip files of PoshRunner so I could make its chocolatey package. I made MSBuild tasks for creating 7zip and zip files out of the $(TargetDir) of an MSBuild project. There is a nuget package for it. Simply include it in your project via nuget and build it from the command line with the following command line: %windir%\microsoft.net\framework\v4.0.30319\msbuild __PROJECT_FOLDER__\__PROJECT_FILE__ /t:SevenZipBin,ZipBin This …

7zip, MSBuild, NuGet, Open Source Read more

PoshRunner now on SourceForge and Chocolatey

Jan 06 2013 Comments by justin

I've been periodically hacking away at PoshRunner. I have lots of plans for it. Some of these are rewriting some of it in C++, allowing you to log output to MongoDB and total world domination! However, today's news is not as grand. The first piece of news is I made a PoshRunner sourceforge project to distribute the binaries. To download the latest version, click here. Secondly, there is now a PoshRunner chocolatey package, so you can install it via chocolatey. Finally, there is not a lot of …

chocolatey, Open Source, poshrunner, PowerShell Read more

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

Dec 27 2012 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