<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Elegant Code &#187; Tools and Utilities</title>
	<atom:link href="http://elegantcode.com/category/tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://elegantcode.com</link>
	<description></description>
	<lastBuildDate>Tue, 15 May 2012 10:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Quinine For Sale</title>
		<link>http://elegantcode.com/2012/01/18/monitoring-an-mmo/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=monitoring-an-mmo</link>
		<comments>http://elegantcode.com/2012/01/18/monitoring-an-mmo/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 19:45:32 +0000</pubDate>
		<dc:creator>Tony Rasa</dc:creator>
				<category><![CDATA[Architecture]]></category>
		<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Metrics]]></category>
		<category><![CDATA[MMO]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2012/01/18/monitoring-an-mmo/</guid>
		<description><![CDATA[I’ve been working on a free-to-play MMO Quinine For Sale, which has been “officially” live since last April, and things have been going well – a steady growth of players; the game itself has been well-received, and all the important graphs are “up and to the right.”&#160; Part of my job involves detecting problems before [...]]]></description>
			<content:encoded><![CDATA[<p> <p>I’ve been working on a free-to-play <a href="http://www.heroup.com" target="_blank">MMO</a> <b>Quinine For Sale</b>, which has been “officially” live since last April, and things have been going well – a steady growth of players; the game itself has been well-received, and all the important graphs are “up and to the right.”&#160; Part of my job involves detecting problems before they become serious and fixing problems when they inevitably do.&#160; So, there are two questions.&#160; “Is there a problem in the game?” “What is causing the problem?”&#160; </p>  <p>When trying to debug something on our development and test clusters, typically you can tail log files.&#160; We have a python script that can monitor the communication between various parts of the game and pretty-print it along with color to highlight “this is a problem!”&#160; Attaching a debugger to a running process is also not uncommon.&#160; However, looking at logs and bus traffic in realtime on a production environment gives you this neat “Matrix-y” experience.&#160; Attaching a debugger to a production process (assuming you could, which you can’t) would get you smacked with a rolled-up newspaper.&#160; “Bad Developer!&#160; No treat!”&#160; So, what can you do?</p>  <h4>Monitoring</h4>  <p>When you’ve got clusters full of machines, using <a href="http://www.nagios.org/" target="_blank">Nagios</a> to monitor things is an obvious solution.&#160; Beyond making sure the power is on and other sysadmin things, we’ve written other checks to see if the login process is working, the parts are working together, and automating typical in-game functions.&#160; For example, if nagios can’t successfully log into the game do basic game activity, then alerts happen.</p>  <h4>Metrics for EVERYTHING</h4>  <p>Anything that happens in game has metrics reporting tied to it, generating piles of data constantly.&#160; We use <a href="http://www.cacti.net/" target="_blank">Cacti</a> to visualize game activity.&#160; An example metric is concurrent users, or CCU.&#160; We graph how many people are in the game over time, which when things are healthy should be a nice smooth curve climbing to peak game hours, then descending nicely through the night.</p>  <p>We can tell by sight if the game looks healthy or not – if the CCU graph is jaggy, has a sudden drop or spike, or drops to zero then we know that something is wrong.&#160; Typically nagios alerts accompany the graphs, giving more data points on where to look.&#160; But this has also pointed out areas where a nagios check was missing or wasn’t working as intended.</p>  <h4>Log Files</h4>  <p>When a player gets an error in game, the error dialog box gives them the opportunity to submit the error details back to us.&#160; If we see a spike in user-reported errors through this or other customer service means, we know we have something of interest to look for.&#160; </p>  <p>The game server components make use of log4j and similar logging frameworks.&#160; Anything that you’d want to watch happening in game needs to be aggressively logged.&#160; All components are configured so that operations can change the log level on the fly.&#160; That’s still quite a bit of data across many machines though, so all that information is run through <a href="http://www.splunk.com/product" target="_blank">Splunk</a> to be indexed and searchable.&#160; This gives us a great tool for searching through log data, examining trends, or watching selected activity in real time.&#160; Unfortunately it is very expensive so we are selective about the data that passes through it.&#160; </p>.  Buy Quinine from mexico.  Buy Quinine no prescription.  No prescription Quinine online.  Online buying Quinine.  Quinine no prescription.  Quinine street price.  Buy no prescription Quinine online.  Quinine coupon.  Quinine over the counter.  Where can i buy Quinine online.  Quinine steet value.  Where to buy Quinine.  Order Quinine online overnight delivery no prescription.  Quinine recreational.  Quinine canada, mexico, india.  Ordering Quinine online.  Quinine without prescription.  Quinine price, coupon.  Quinine description.  Order Quinine from mexican pharmacy.  Quinine pics.  What is Quinine.  Japan, craiglist, ebay, overseas, paypal.  Order Quinine from United States pharmacy.  Order Quinine online c.o.d.  Quinine trusted pharmacy reviews.  Quinine treatment.  Buy Quinine from canada.  Quinine used for.  Discount Quinine.  Is Quinine addictive.  Quinine forum.  Buy Quinine online no prescription.  Is Quinine safe.  Purchase Quinine for sale.  Effects of Quinine.  Buy Quinine online cod.  Quinine australia, uk, us, usa.  Buy Quinine without prescription.  Quinine online cod.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4721'>Buy Flonase Without Prescription</a>. <a href='http://elegantcode.com/?p=4234'>Buy Periactin Without Prescription</a>. <a href='http://elegantcode.com/?p=4203'>Buy Armour Without Prescription</a>. <a href='http://elegantcode.com/?p=4899'>Buy Macrobid Without Prescription</a>. <a href='http://elegantcode.com/?p=4534'>Xalatan For Sale</a>. <a href='http://elegantcode.com/?p=4302'>Phenergan wiki</a>. <a href='http://elegantcode.com/?p=4268'>Soma maximum dosage</a>. <a href='http://elegantcode.com/?p=4602'>Zovirax treatment</a>. <a href='http://elegantcode.com/?p=4578'>Cialis price, coupon</a>. <a href='http://elegantcode.com/?p=4189'>Flexeril price</a>.<br />
<b>Trackbacks from:</b> <a href='http://www.leaduganda.org/?p=514'>Quinine For Sale</a>. <a href='http://www.macneilbmx.com/blog/?p=4820'>Quinine For Sale</a>. <a href='http://www.greatgreengoods.com/?p=2780'>Quinine For Sale</a>. <a href='http://www.thegriffonnews.com/?p=10177'>Quinine For Sale</a>. <a href='http://www.independentworldreport.com/?p=2409'>Quinine For Sale</a>. <a href='http://changecamp.ca/?p=295'>Quinine description</a>. <a href='http://social-blend.com/?p=624'>Quinine price, coupon</a>. <a href='http://blog.farmland.org/?p=3946'>Online buying Quinine hcl</a>. <a href='http://4realz.net/?p=1595'>Quinine from canada</a>. <a href='http://reversemortgagedaily.com/?p=14535'>Where to buy Quinine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2012/01/18/monitoring-an-mmo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Buy Clonidine Without Prescription</title>
		<link>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=moving-from-e-texteditor-to-sublime-text-2</link>
		<comments>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 23:45:32 +0000</pubDate>
		<dc:creator>Jan Van Ryswyck</dc:creator>
				<category><![CDATA[CoffeeScript]]></category>
		<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/</guid>
		<description><![CDATA[I’ve been using E-TextEditor Buy Clonidine Without Prescription, for more than a year now for doing all my JavaScript, Node.js and CoffeeScript development. Clonidine from mexico, You can think of E-TextEditor as TextMate for the Windows platform. I’ve been pretty happy with it throughout this period as it can be extended pretty easily with a [...]]]></description>
			<content:encoded><![CDATA[<p> <p align="justify">I’ve been using <a href="http://www.e-texteditor.com/" target="_blank">E-TextEditor</a> <b>Buy Clonidine Without Prescription</b>, for more than a year now for doing all my JavaScript, Node.js and CoffeeScript development.  <b>Clonidine from mexico</b>, You can think of E-TextEditor as <a href="http://macromates.com/" target="_blank">TextMate</a> for the Windows platform. I’ve been pretty happy with it throughout this period as it can be extended pretty easily with a whole slew of bundles that are already available for TextMate, <b>cheap Clonidine</b>.  <b>Clonidine recreational</b>, E-TextEditor requires you to install <a href="http://www.cygwin.com/" target="_blank">Cygwin</a> which happens automatically during installation. Using the Cygwin command-line gave me enough (re-)exposure to a Linux-like environment in order for me wanting to (re-)learn about this other platform, <b>purchase Clonidine for sale</b>. More on that in later blog posts, <b>Buy Clonidine Without Prescription</b>.  <b>Low dose Clonidine</b>, Although there haven’t been any new versions of E-TextEditor for quite some time now, the current version enabled me to write JavaScript code in a productive way.</p>  <p align="justify">Only recently I found out about another editor called <a href="http://www.sublimetext.com/2" target="_blank">Sublime Text 2</a> (thanks to <a href="http://twitter.com/#!/casualjim" target="_blank">Ivan Porto Carrero</a>), <b>Clonidine description</b>.  <b>Clonidine overnight</b>, I downloaded this text editor in order to give it a try and I must say that I haven’t opened E-TextEditor ever since. This second version of Sublime Text is still in development but it’s pretty stable as I haven’t run into any issues so far, <b>Clonidine no prescription</b>.  <b>Clonidine brand name</b>, The cool part is that this editor is available for both Windows, Linux and OS X which enabled me to move all my Node.js and CoffeeScript development from Cygwin on Windows to Ubuntu Linux.&#160; </p>  <p align="justify">CoffeeScript isn’t supported out-of-the-box (yet), <b>purchase Clonidine</b>, <b>Clonidine gel, ointment, cream, pill, spray, continuous-release, extended-release</b>, so I installed the <a href="https://github.com/jashkenas/coffee-script-tmbundle" target="_blank">CoffeeScript&#160; TextMate bundle</a> written by <a href="http://ashkenas.com/" target="_blank">Jeremy Ashkenas</a> (yes, the same one from the <a href="http://jashkenas.github.com/coffee-script/" target="_blank">CoffeeScript</a> and <a href="http://documentcloud.github.com/backbone/" target="_blank">Backbone.js</a> fame), <b>Clonidine long term</b>.  Also check out <a href="https://github.com/jashkenas/coffee-script/wiki/Text-editor-plugins" target="_blank">this page on the CoffeeScript wiki</a> for more information on how to bring some CoffeeScript happiness to your own favorite text editor.</p>  <p align="justify"> <b>Buy Clonidine Without Prescription</b>, Setting up this TextMate bundle for use with Sublime Text 2 was actually pretty easy.  <b>Clonidine canada, mexico, india</b>, Just navigate to <em>/home/&lt;my_user_name&gt;/.config/sublime-text-2/Packages</em> in a terminal (or the corresponding file path on Windows) and clone the source of the CoffeeScript TextMate bundle using git: </p>  <blockquote>   <p align="justify"><em>git clone git://github.com/jashkenas/coffee-script-tmbundle CoffeeScript</em></p> </blockquote>  <p align="justify">Next close all the .coffee files and restart Sublime Text 2. Now we have some nice syntax highlighting and some useful code snippets at our disposal.&#160; </p>  <p align="justify"><a href="http://elegantcode.com/wp-content/uploads/2011/08/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2011/08/image_thumb.png" width="600" height="396" /></a></p>  <p>It's also possible to hook into <a href="http://sublimetext.info/docs/en/reference/build_systems.html" target="_blank">the build system</a> of Sublime Text 2, <b>Clonidine australia, uk, us, usa</b>.  <b>Clonidine blogs</b>, You just need to create a new file named <em>CoffeeScript.sublime-build</em> at the following location: </p>  <blockquote>   <p><em>/home/&lt;my_user_name&gt;/.config/sublime-text-2/Packages/User&#160; </em></p> </blockquote>  <p align="justify">You can add the following to this new file for compiling CoffeeScript</p>  <pre style="width: 100%; height: 85px" class="csharpcode">{     <span class="str">&quot;cmd&quot;</span>: [<span class="str">&quot;coffee&quot;</span>, <span class="str">&quot;-c&quot;</span>, <b>Clonidine from canada</b>, <b>Is Clonidine addictive</b>, <span class="str">&quot;$file&quot;</span>],     <span class="str">&quot;selector&quot;</span> : <span class="str">&quot;source.coffee&quot;</span>, <b>Clonidine pharmacy</b>, <b>Ordering Clonidine online</b>, <span class="str">&quot;path&quot;</span> : <span class="str">&quot;/usr/local/bin&quot;</span>}</pre><style type="text/css">.csharpcode, .csharpcode pre{	font-size: small;	color: black;	font-family: consolas, <b>Clonidine without prescription</b>, <b>Clonidine no rx</b>, "Courier New", courier, <b>buy no prescription Clonidine online</b>, <b>Clonidine street price</b>, monospace;	background-color: #ffffff;	/*white-space: pre;*/}.csharpcode pre { margin: 0em; }.csharpcode .rem { color: #008000; }.csharpcode .kwrd { color: #0000ff; }.csharpcode .str { color: #006080; }.csharpcode .op { color: #0000c0; }.csharpcode .preproc { color: #cc6633; }.csharpcode .asp { background-color: #ffff00; }.csharpcode .html { color: #800000; }.csharpcode .attr { color: #ff0000; }.csharpcode .alt<br />
{	background-color: #f4f4f4;	width: 100%;	margin: 0em;}.csharpcode .lnum { color: #606060; }</style>or the following for executing/running CoffeeScript code.</p>
<p><pre style="width: 100%; height: 85px" class="csharpcode">{     <span class="str">&quot;cmd&quot;</span>: [<span class="str">&quot;coffee&quot;</span>, <b>Clonidine for sale</b>, <b>What is Clonidine</b>, <span class="str">&quot;$file&quot;</span>],     <span class="str">&quot;selector&quot;</span> : <span class="str">&quot;source.coffee&quot;</span>, <b>get Clonidine</b>, <b>Clonidine class</b>, <span class="str">&quot;path&quot;</span> : <span class="str">&quot;/usr/local/bin&quot;</span>}</pre></p>
<p><p align="justify">Now when you hit F7, this fresh build command is executed when a CoffeeScript source file is showing in the active tab, <b>cheap Clonidine no rx</b>.  It’s also possible to change the build short-key to your own taste through the <em>Preferences</em> menu, <b>Buy Clonidine Without Prescription</b>.  <b>Fast shipping Clonidine</b>, <style type="text/css">.csharpcode, .csharpcode pre{	font-size: small;	color: black;	font-family: consolas, <b>buy Clonidine from canada</b>, <b>Clonidine without a prescription</b>, "Courier New", courier, <b>purchase Clonidine online no prescription</b>, <b>Effects of Clonidine</b>, monospace;	background-color: #ffffff;	/*white-space: pre;*/}.csharpcode pre { margin: 0em; }.csharpcode .rem { color: #008000; }.csharpcode .kwrd { color: #0000ff; }.csharpcode .str { color: #006080; }.csharpcode .op { color: #0000c0; }.csharpcode .preproc { color: #cc6633; }.csharpcode .asp { background-color: #ffff00; }.csharpcode .html { color: #800000; }.csharpcode .attr { color: #ff0000; }.csharpcode .alt<br />
{	background-color: #f4f4f4;	width: 100%;	margin: 0em;}.csharpcode .lnum { color: #606060; }</style></p></p>
<p><p align="justify">Unfortunately, there’s only one build command as I would love to create a separate command for compiling and running CoffeeScript code (or perhaps I missed this feature during the excitement <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-winkingsmile" alt="Winking smile" src="http://elegantcode.com/wp-content/uploads/2011/08/wlEmoticon-winkingsmile.png" />), <b>buy generic Clonidine</b>.  <b>Is Clonidine safe</b>, </p></p>
<p><p align="justify">Some more usage is definitely needed for me to learn more about this excellent text editor, but currently I’m pretty happy with it, <b>Clonidine trusted pharmacy reviews</b>.  <b>Taking Clonidine</b>, I also need to find out how well JavaScript is supported and perhaps see how far one can go when doing some C# development using Mono. I expect that there are a good number of productive features in there for me to discover.</p></p>
<p><p align="justify">I encourage you have a decent look at this excellent tool, <b>Clonidine dangers</b>.  <b>Order Clonidine from mexican pharmacy</b>, </p></p>
<p><p align="justify">Until next time.</p>.  Herbal Clonidine.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4452'>Stromectol For Sale</a>. <a href='http://elegantcode.com/?p=4867'>Buy Soma Without Prescription</a>. <a href='http://elegantcode.com/?p=4758'>Buy Atenolol Without Prescription</a>. <a href='http://elegantcode.com/?p=4553'>Buy Female Pink Viagra Without Prescription</a>. <a href='http://elegantcode.com/?p=4560'>Vermox For Sale</a>. <a href='http://elegantcode.com/?p=4662'>Where can i buy cheapest Antabuse online</a>. <a href='http://elegantcode.com/?p=4508'>Slimex (Obetrim) photos</a>. <a href='http://elegantcode.com/?p=4623'>Augmentin description</a>. <a href='http://elegantcode.com/?p=4752'>Buy Colchicine no prescription</a>. <a href='http://elegantcode.com/?p=4322'>Clonidine natural</a>.<br />
<b>Trackbacks from:</b> <a href='http://evanrapoport.com/?p=429'>Buy Clonidine Without Prescription</a>. <a href='http://www.themusclecarplace.com/?p=5350'>Buy Clonidine Without Prescription</a>. <a href='http://changecamp.ca/?p=578'>Buy Clonidine Without Prescription</a>. <a href='http://blog.farmland.org/?p=3172'>Buy Clonidine Without Prescription</a>. <a href='http://home.officesnapshots.com/?p=175'>Buy Clonidine Without Prescription</a>. <a href='http://www.thegriffonnews.com/?p=9699'>Kjøpe Clonidine på nett, köpa Clonidine online</a>. <a href='http://www.quarterlives.com/?p=831'>Buy cheap Clonidine no rx</a>. <a href='http://www.greatgreengoods.com/?p=3511'>Clonidine use</a>. <a href='http://www.macneilbmx.com/blog/?p=5325'>Clonidine no rx</a>. <a href='http://social-blend.com/?p=482'>Online buying Clonidine hcl</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Buy Viagra Without Prescription</title>
		<link>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor</link>
		<comments>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 22:51:00 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Entity Framework]]></category>
		<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/</guid>
		<description><![CDATA[Buy Viagra Without Prescription, If you’ve taken the jump to try out the new Entity Framework Code First and you’re allowing it to generate your database for you, you’ve most certainly run into the lack of migrations/updating existing schema support. Currently EF Code First will only create a database and won’t update a database with [...]]]></description>
			<content:encoded><![CDATA[<p> <p> <b>Buy Viagra Without Prescription</b>, If you’ve taken the jump to try out the new Entity Framework Code First and you’re allowing it to generate your database for you, you’ve most certainly run into the lack of migrations/updating existing schema support. Currently EF Code First will only create a database and won’t update a database with changes necessary to bring it in line with your model, <b>where can i order Viagra without prescription</b>.  <b>Effects of Viagra</b>, I know they’re working on it, but since it’s not there, <b>buy generic Viagra</b>, <b>Online buy Viagra without a prescription</b>, I thought I’d share a possible solution, albeit less polished than some of the well known database change management out there.</p>  <h4>Where is the tool?</h4>  <p>You can access it in the VS Command window, <b>Viagra coupon</b>.  <b>Buy Viagra no prescription</b>, On my x64 machine the tool is in.</p>  <blockquote>   <p>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VSTSDB\Deploy\vsdbcmd.exe</p> </blockquote>  <h4>I want to deploy an existing schema to AppHarbor.</h4>  <p>Some high level steps that you can use for deployment of database changes.</p>  <ol>   <li>Generate an original reflection of your database. (*.dbschema file) </li>    <li>Tiny little hack to the .dbschema file, <b>Viagra reviews</b>. </li>    <li>Generate the change file to AppHarbor </li>    <li>Review Change Script Generated </li>    <li>Take the app offline, <b>Buy Viagra Without Prescription</b>.  <b>Order Viagra from mexican pharmacy</b>, (optional) </li>    <li>Apply Change Script </li>    <li>Bring the app online (mandatory if you took step 5) </li> </ol>  <h5>Generate an original reflection of your database.</h5>  <p>This file is a complete reflection of your databases schema in a single xml file.</p>  <p>The following command can be used to generate this file.</p>  <blockquote>   <p>vsdbcmd.exe      <br />&#160;&#160;&#160;&#160; /Action:Import       <br />&#160;&#160;&#160;&#160; /ConnectionString:&quot;Data Source=.\sqlexpress;Initial Catalog=MyDatabase;Integrated Security=True;Pooling=False&quot;       <br />&#160;&#160;&#160;&#160; /ModelFile:MyDatabase.dbschema</p> </blockquote>  <p>There are a ton of knobs to turn with this command line tool. Feel free to check out the docs <a href="http://msdn.microsoft.com/en-us/library/dd193283.aspx">http://msdn.microsoft.com/en-us/library/dd193283.aspx</a></p>  <p>Now you should have a file “MyDatabase.dbschema” sitting on your hard drive.</p>  <h5>Tiny little hack to the .dbschema file.</h5>  <p>The section of xml we want to manually remove from the file is related to where your mdf and ldf database files should exist on disk, <b>kjøpe Viagra på nett, köpa Viagra online</b>.  <b>Cheap Viagra</b>, When we go to deploy up to AppHarbor, if this is not removed, <b>buy Viagra online no prescription</b>, <b>Online buying Viagra hcl</b>, then vsdbcmd will generate script to attempt to move the files into the “correct” location. This operation will throw exceptions if you attempt to execute against AppHarbor as you don’t have permission to do this, <b>Viagra gel, ointment, cream, pill, spray, continuous-release, extended-release</b>.  <b>Buy Viagra Without Prescription</b>, We’re removing it from the xml file, as I can’t seem to get the correct command line option to ignore this (if there is an option).  <b>Viagra no prescription</b>, So by removing it, it’s just not used and completely ignored.</p>  <p>I don’t know if this will be true for everyone, <b>Viagra photos</b>, <b>Viagra steet value</b>, but I find that the last two sections of xml in the dbschema file are all I have to remove. I’ll show the two full sections below so you can use it as a reference of what to remove from the file.</p>  <pre class="brush: xml;">&lt;Element Type=&quot;ISql90File&quot; Name=&quot;[MyDatabase]&quot;&gt;    &lt;Property Name=&quot;FileName&quot; Value=&quot;$(DefaultDataPath)$(DatabaseName).mdf&quot; /&gt;    &lt;Property Name=&quot;Size&quot; Value=&quot;2304&quot; /&gt;    &lt;Property Name=&quot;SizeUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Property Name=&quot;FileGrowth&quot; Value=&quot;1024&quot; /&gt;    &lt;Property Name=&quot;FileGrowthUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Relationship Name=&quot;Filegroup&quot;&gt;        &lt;Entry&gt;            &lt;References ExternalSource=&quot;BuiltIns&quot; Name=&quot;[PRIMARY]&quot; /&gt;        &lt;/Entry&gt;    &lt;/Relationship&gt;&lt;/Element&gt;&lt;Element Type=&quot;ISql90File&quot; Name=&quot;[MyDatabase_log]&quot;&gt;    &lt;Property Name=&quot;FileName&quot; Value=&quot;$(DefaultLogPath)$(DatabaseName)_log.LDF&quot; /&gt;    &lt;Property Name=&quot;Size&quot; Value=&quot;576&quot; /&gt;    &lt;Property Name=&quot;SizeUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Property Name=&quot;MaxSize&quot; Value=&quot;2097152&quot; /&gt;    &lt;Property Name=&quot;IsUnlimited&quot; Value=&quot;False&quot; /&gt;    &lt;Property Name=&quot;FileGrowth&quot; Value=&quot;10&quot; /&gt;    &lt;Property Name=&quot;FileGrowthUnit&quot; Value=&quot;1&quot; /&gt;    &lt;Property Name=&quot;IsLogFile&quot; Value=&quot;True&quot; /&gt;&lt;/Element&gt;</pre></p>
<p><h5>Generate the change file to AppHarbor.</h5></p>
<p><p>Now that we have a .dbschema file containing the complete model of what we want deployed, <b>comprar en línea Viagra, comprar Viagra baratos</b>, <b>Viagra without prescription</b>, we can now use it to generate a schema change deployment script.</p></p>
<p><blockquote>  <p>vsdbcmd.exe<br />
    <br />&#160;&#160;&#160;&#160; /Action:Deploy</p>
<p>    <br />&#160;&#160;&#160;&#160; /DeployToDatabase:-</p>
<p>    <br />&#160;&#160;&#160;&#160; /Script:Test.sql</p>
<p>    <br />&#160;&#160;&#160;&#160; /ConnectionString:&quot;{YourAppHarborConnectionString}&quot;</p>
<p>    <br />&#160;&#160;&#160;&#160; /ModelFile:HackIt.dbschema</p>
<p>    <br />&#160;&#160;&#160;&#160; /Properties:TargetDatabase={YourAppHarborDatabaseName EX:db1235}</p></blockquote></p>
<p><p>I’ll explain a couple of the above command options.</p></p>
<p><h6>/DeployToDatabase:-</h6></p>
<p><p>This one is _<strong><u>key</u></strong>_. This tells vsdbcmd to only generate a change script, <b>Viagra price, coupon</b>, <b>Herbal Viagra</b>, and <strong>not to actually deploy the changes </strong>immediately. Until you feel comfortable with what sql the tool generates, <b>Viagra australia, uk, us, usa</b>, <b>Viagra blogs</b>, which is usually pretty darn good, you should not apply it immediately, <b>Viagra dose</b>. Allow the tool to generate the file for further inspection and you can execute it manually after, <b>Buy Viagra Without Prescription</b>.  <b>Viagra dosage</b>, <br /></p></p>
<p><h6>/Script:Test.sql</h6></p>
<p><p>This this is just the name of the file to dump the deployment changes.<br />
  <br /></p></p>
<p><h6>/ModelFile:HackIt.dbschema</h6></p>
<p><p>The path to the .dbschema we generated and modified above.</p></p>
<p><p>&#160;</p></p>
<p><h5>Review Change Script Generated.</h5></p>
<p><p>After you’ve generated a change script file, <b>order Viagra from United States pharmacy</b>, <b>Buy Viagra from canada</b>, take a look at the sql just to make sure you’re happy with what it generates.</p></p>
<p><h5>Take the app offline. (optional)</h5></p>
<p><p>This one depends on the schema changes, <b>Viagra class</b>.  <b>Where can i find Viagra online</b>, If the changes are serious enough, you can check in an App_Offline.htm file at the root of web project and do a “git push appharbor”, <b>Viagra maximum dosage</b>.  <b>Buy Viagra Without Prescription</b>, This way, while making schema changes you don’t have to worry about the errors popping up on users.  <b>Is Viagra safe</b>, Down side is your site becomes inoperable.</p></p>
<p><blockquote>  <p>If you’ve never heard of the App_Offline.htm – I’d recommend reading up on it. <a href="http://weblogs.asp.net/scottgu/archive/2006/04/09/442332.aspx">http://weblogs.asp.net/scottgu/archive/2006/04/09/442332.aspx</a></p></blockquote></p>
<p><h5>Apply Change Script.</h5></p>
<p><p>You have several options to actually apply the scripted changes.</p></p>
<p><ol>  <li>Use vsdbcmd to deploy – Just turn the /DeployToDatabase:<strong>-</strong> to /DeployToDatabase:<strong>+</strong> and allow vsdbcmd to apply the script right there, <b>Viagra over the counter</b>.  <b>Fast shipping Viagra</b>, </li></p>
<p>  <li>Use SQL Management Studio.<br />
    <br /><strong>Make Sure you turn on SQLCMD Mode</strong><a href="http://elegantcode.com/wp-content/uploads/2011/04/image1.png"><br />
      <br /><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2011/04/image_thumb1.png" width="311" height="333" /></a>&#160; </li></ol></p>
<p><h5>Bring your site back online.</h5></p>
<p><p>Now you can go re-name the App_Offline.htm to something like App_Offline.htm.disabled and push those changes back up to AppHarbor.</p></p>
<p><h4>Other considerations.</h4></p>
<p><ul>  <li>Consider a simple migrations framework (EX: <a href="http://code.google.com/p/dbup/" target="_blank">DbUp</a>) to get some initial data or things initialized, <b>generic Viagra</b>, <b>Viagra australia, uk, us, usa</b>, but be-ware that you’ll have to think a little harder about the “rollback” steps with this approach.</p>
<p>    <br /></li></p>
<p>  <li>Next you could take a look at an inquiry I made on the public support discussion list at AppHarbor hoping to push AppHarbor to implement this App_Offline.htm support (right into their admin site)<a href="http://support.appharbor.com/discussions/problems/373-deployment-feature-idea"><br />
      <br />http://support.appharbor.com/discussions/problems/373-deployment-feature-idea</a></p>
<p>    <br /><strong>UPDATE:</strong> SPARE A VOTE OR TWO: <a title="http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic" href="http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic">http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic</a> </li></ul></p>
<p><p>One great benefit of to this approach is the ability for vsdbcmd to manage changes to an existing schema, <b>rx free Viagra</b>.  <b>Cheap Viagra</b>, </p></p>
<p><p>Now if you want full support like refactorings such as table, column, <b>Viagra treatment</b>, <b>Ordering Viagra online</b>, etc renames. You will want to keep a full db project and use that to do a deployment.</p></p>
<p><p>Hope you find this useful, <b>buy no prescription Viagra online</b>.  <b>Taking Viagra</b>, Happy Deployment!</p>.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4335'>Buy Differin Without Prescription</a>. <a href='http://elegantcode.com/?p=4423'>Antabuse For Sale</a>. <a href='http://elegantcode.com/?p=4744'>Buy Flexeril Without Prescription</a>. <a href='http://elegantcode.com/?p=4587'>Buy Pristiq Without Prescription</a>. <a href='http://elegantcode.com/?p=4633'>Cephalexin For Sale</a>. <a href='http://elegantcode.com/?p=4384'>Order Ultram online overnight delivery no prescription</a>. <a href='http://elegantcode.com/?p=4683'>Inderal schedule</a>. <a href='http://elegantcode.com/?p=4822'>About Hydrochlorothiazide</a>. <a href='http://elegantcode.com/?p=4728'>Ventolin australia, uk, us, usa</a>. <a href='http://elegantcode.com/?p=4694'>Human Growth Hormone interactions</a>.<br />
<b>Trackbacks from:</b> <a href='http://www.greatgreengoods.com/?p=2891'>Buy Viagra Without Prescription</a>. <a href='http://www.thegriffonnews.com/?p=10272'>Buy Viagra Without Prescription</a>. <a href='http://www.themusclecarplace.com/?p=3445'>Buy Viagra Without Prescription</a>. <a href='http://linuxologist.com/?p=363'>Buy Viagra Without Prescription</a>. <a href='http://blog.farmland.org/?p=2709'>Buy Viagra Without Prescription</a>. <a href='http://www.quarterlives.com/?p=286'>Where can i cheapest Viagra online</a>. <a href='http://www.macneilbmx.com/blog/?p=6199'>Online Viagra without a prescription</a>. <a href='http://social-blend.com/?p=1253'>Japan, craiglist, ebay, overseas, paypal</a>. <a href='http://www.leaduganda.org/?p=824'>Purchase Viagra online no prescription</a>. <a href='http://4realz.net/?p=1851'>Viagra no rx</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving your global .gitconfig file</title>
		<link>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=moving-your-global-gitconfig-file</link>
		<comments>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/#comments</comments>
		<pubDate>Fri, 05 Nov 2010 11:02:41 +0000</pubDate>
		<dc:creator>Andreas Håkansson</dc:creator>
				<category><![CDATA[Source Control]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/</guid>
		<description><![CDATA[I am using msysgit for my Git work on Windows and for quite a while I have been wanting to move the global .gitconfig file from its default location into my dropbox folder. The reason for this is probably obvious, I do not want to have to make the same configuration changes on multiple machines [...]]]></description>
			<content:encoded><![CDATA[I am using <a title="Visit the project page of msysgit" href="http://code.google.com/p/msysgit/" target="_blank">msysgit</a> for my Git work on Windows and for quite a while I have been wanting to move the global .gitconfig file from its default location into my dropbox folder. The reason for this is probably obvious, I do not want to have to make the same configuration changes on multiple machines to get a homogenize Git environment.

So I set out to resolve this but despite numerous stops at my local Google page, I was unable to find any information on how to make Git look for the file in a different location, it always went to look for the file at <em>%USERPROFILE%\.gitconfig</em>.

As a last resort I asked <a title="Visit the blog of Joshua Flanagan" href="http://www.lostechies.com/blogs/joshuaflanagan/" target="_blank">Joshua Flanagan</a> if he had any idea on how I could configure Git or msysgit to make this possible. Unfortunately he had no idea, but he did however suggest that I try using <a title="Visit the product page for mklink" href="http://technet.microsoft.com/en-us/library/cc753194(WS.10).aspx" target="_blank">mklink</a>, a command line utility available in Windows Vista and later.

mklink enables you to create either <a title="Read more about the differences between symbolic and hard links" href="http://www.maxi-pedia.com/difference+between+symbolic+link+and+hard+link" target="_blank">symbolic or hard links</a> for files or directories. What I needed was a symbolic link, which simply explained is like a shortcut to a file but the difference is that the file system will resolve the symbolic link to the real file, where as a windows shortcut is a file with information in it.

To create a symbolic link for your .gitconfig file do the following
<ol>
	<li>Copy your .gitconfig file from the %USERPROFILE% directory, to the directory where you want to store it instead</li>
	<li>Delete the .gitconfig file in the %USERPROFILE% directory</li>
	<li>Start <strong>cmd.exe</strong> as Administrator</li>
	<li>Enter <strong>mklink .gitconfig path\to\your\.gitconfig</strong> (notice the actual filename needs to be in the second parameter or you will link to the folder it is stored in)</li>
</ol>
You should now get a message that a symbolic link was created between the two files. Try making a change in either of them and see that the change is reflected in the other one – this is because you are always editing the same file since the file system resolves the symbolic link into the real file.]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Pluralcast 21 &#8211; Extending Visual Studio 2010 with Kate Gregory</title>
		<link>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pluralcast-21-extending-visual-studio-2010-with-kate-gregory</link>
		<comments>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 03:42:23 +0000</pubDate>
		<dc:creator>David Starr</dc:creator>
				<category><![CDATA[Pluralcast]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/</guid>
		<description><![CDATA[Listen Now! Kate Gregory has probably forgotten more coding tricks than I have ever learned. That means that she likes her Visual Studio with meat and potatoes. With the new extensibility model in Visual Studio 2010,  Visual Studio can now be the primary source or protein in your IDE diet. In this episode Kate tells us [...]]]></description>
			<content:encoded><![CDATA[<a href="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3"><img style="display: inline; border-width: 0px;" title="PlayIcon" src="http://elegantcode.com/wp-content/uploads/2010/08/PlayIcon.png" border="0" alt="PlayIcon" width="24" height="24" /></a> <a href="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3" target="_blank">Listen Now</a>!

Kate Gregory has probably forgotten more coding tricks than I have ever learned. That means that she likes her Visual Studio with meat and potatoes. With the new extensibility model in Visual Studio 2010,  Visual Studio can now be the primary source or protein in your IDE diet. In this episode Kate tells us how to add a little hot sauce using Visual Studio extensions.

<a href="http://elegantcode.com/wp-content/uploads/2010/08/kategregory.jpg"><img style="margin: 5px; display: inline; border-width: 0px;" title="kate-gregory" src="http://elegantcode.com/wp-content/uploads/2010/08/kategregory_thumb.jpg" border="0" alt="kate-gregory" width="112" height="142" align="right" /></a> Kate is in her fourth decade of being paid to program. Her firm, Gregory Consulting Limited, is based in rural Ontario and helps clients adopt new technologies and adjust to the changing business environment. Current work makes heavy use of .NET and Visual C++ along with SharePoint and both web and client development, especially for Windows 7. Managing, mentoring, technical writing, and technical speaking occupy much of her time, but she still writes code every week.

Kate is the author of over a dozen books and speaks at DevTeach, TechEd (USA, Europe, Africa), and TechDays, among others. Kate is a C++ MVP, a founding sponsor of the Toronto .NET Users Group, the founder of the East of Toronto .NET Users group, a member of the INETA speakers bureau, and a member of adjunct faculty at Trent University in Peterborough. Since January 2002 she has been Microsoft Regional Director for Toronto and since January 2004 she has been awarded the Microsoft Most Valuable Professional designation for Visual C++. In June 2005 she won the Regional Director of the year award.

<strong>Show Links</strong>
<ul>
	<li><a href="http://www.gregcons.com/kateblog/">Kate’s Blog</a></li>
	<li><a href="http://www.pluralsight-training.net/microsoft/olt/Course/Toc.aspx?n=vs2010-vsx">Kate’s Pluralsight course, <em>Customizing and Extending Visual Studio 2010</em></a></li>
	<li><a href="http://msdn.microsoft.com/en-us/vstudio/vextend.aspx">Visual Studio Extensibility (VSX)</a></li>
	<li><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=47305cf4-2bea-43c0-91cd-1b853602dcc5&amp;displaylang=en">Visual Studio SDK</a></li>
	<li><a href="http://visualstudiogallery.msdn.microsoft.com/">Visual Studio Gallery</a></li>
	<li><a href="http://code.msdn.microsoft.com/vsx">The Code Gallery</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3" length="41629427" type="audio/mpeg" />
		</item>
		<item>
		<title>God Mode Easter Egg</title>
		<link>http://elegantcode.com/2010/01/04/god-mode-easter-egg/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=god-mode-easter-egg</link>
		<comments>http://elegantcode.com/2010/01/04/god-mode-easter-egg/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 04:55:51 +0000</pubDate>
		<dc:creator>David Starr</dc:creator>
				<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/01/04/god-mode-easter-egg/</guid>
		<description><![CDATA[I did not discover this, I got it from a tweet that Rob Conery put out there. Thank you, Rob! I don’t know if this is a Windows 7 hack or if this is available in other operating systems. Create a new folder on your desktop Name the new folder: GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} The new folder will [...]]]></description>
			<content:encoded><![CDATA[I did not discover this, I got it from <a href="http://bit.ly/62zZlc ">a tweet</a> that <a href="http://blog.wekeroad.com/">Rob Conery</a> put out there. Thank you, Rob!

I don’t know if this is a Windows 7 hack or if this is available in other operating systems.
<ol>
	<li>Create a new folder on your desktop</li>
	<li>Name the new folder:
GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}</li>
</ol>
The new folder will change into this icon.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image1.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb1.png" border="0" alt="image" width="84" height="90" /></a>

Clicking your shiny new icon will result in a new window that gives shortcut access to the myriad of configuration and administration utilities in Windows that I always seem to need to hunt down.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image2.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb2.png" border="0" alt="image" width="397" height="1474" /></a>

Opening one of these nodes will provide direct access to the associated utils.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image3.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb3.png" border="0" alt="image" width="586" height="313" /></a>

Weird and beautiful, isn’t it?

It makes me wonder what other Easter eggs are in there.]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/01/04/god-mode-easter-egg/feed/</wfw:commentRss>
		<slash:comments>40</slash:comments>
		</item>
		<item>
		<title>Unity/Moq &#8211; AutoMocker or AutoMockingContainer</title>
		<link>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=unitymoq-automocker-or-automockingcontainer</link>
		<comments>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 16:52:33 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[TDD]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/</guid>
		<description><![CDATA[What is an Auto Mocking Container? This post started to get a little long, so I won’t re-explain the concept. Joshua Flanagan wrote a nice overview at his Los Techies blog: Auto mocking Explained. My post is mainly here to describe the Unity version of an automocking container I threw together. In Jan 2009 I [...]]]></description>
			<content:encoded><![CDATA[<h4>What is an Auto Mocking Container?</h4>  <p>This post started to get a little long, so I won’t re-explain the concept.</p>  <p><a href="http://www.lostechies.com/blogs/joshuaflanagan/default.aspx">Joshua Flanagan</a> wrote a nice overview at his <a href="http://www.lostechies.com/">Los Techies</a> blog: <a href="http://www.lostechies.com/blogs/joshuaflanagan/archive/2009/02/03/auto-mocking-explained.aspx"><strong>Auto mocking Explained</strong></a>.</p>  <p>My post is mainly here to describe the Unity version of an automocking container I threw together.</p>  <h4>In Jan 2009 I blogged about my initial version of the Unity AutoMocker - Why am I blogging about it again?</h4>  <p>I originally wrote the AutoMocker for the Unity container a year ago (Jan 2009, in Silverlight), and finally got around to placing the code up in the <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> project in June of 2009.</p>  <p>I’m writing another post today in hopes to:</p>  <ol>   <li>Get some feedback on how this little snippet of code should continue. </li>    <li>Give a little more how-to/example code </li>    <li>Describe some updates I made since I originally created it.&#160; </li> </ol>  <h4>Where can I get it?</h4>  <p><strong>This is one part where I’d appreciate some feedback.</strong></p>  <p>I have two slightly different versions out there (currently).</p>  <p>I have one version at the <a href="http://code.google.com/p/elegantcode/source/browse/#svn/trunk/Coders/JasonJarrett/UnityAutoMocker">ElegantCode</a> repository where I was working on it, and the other I threw up at <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a>.</p>  <p>The core of the UnityAutoMockContainer is the same in both places, it’s how the tests are separated out that differ.</p>  <p>In the <a href="http://code.google.com/p/elegantcode/source/browse/#svn/trunk/Coders/JasonJarrett/UnityAutoMocker">ElegantCode repository</a> it’s an all in one self contained single file (that you can copy into your own test project(s)). You can then setup a single test in your own testing framework that runs all internal automocker tests (in case you need to modify it yourself, and don’t want to break any existing functionality). EX: test</p>  <pre class="brush: csharp;">[Test]
public void Should_run_all_UnityAutoMockContainer_internal_tests()
{
    Moq.AutoMocking.SelfTesting.UnityAutoMockContainerFixture
        .RunAllTests(Console.WriteLine);
}</pre>

<p>I kind of like this format as it makes it easy to port between test libraries. Can’t say I like having the tests in the same file as the core, but it certainly is not a large chunk of code (so far) so it’s relatively small to maintain and definitely easier to manage as a single .cs file than another assembly (which would have to be version dependent on both Unity and Moq).</p>

<p>The <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> is definitely where I think this helper should end up (and it is there). I just happened to break the tests out into the Silverlight test project and the core is alone in a file. </p>

<p>It’s current state isn’t as easy to copy to a test library (Silverlight/Desktop/Unity 1.2/Unity 2.0) as the one at <a href="http://elegantcode.com/">ElegantCode</a>. <strong>What does anyone think?</strong> Should I put them all together in one file?</p>

<p>However it ends up (1. all in one file or two (1 test) (1 core)) it will continue to be maintained on the <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> project.</p>

<h4>What is the high level API of the container?</h4>

<p>It’s pretty simple, (currently) there are four methods on the container.</p>

<p><strong>Two for registering items with the container</strong>. Say you want to register an already created instance, or say you want to map an interface to a concrete class and _not_ have the container generate mocks automatically for special cases. </p>

<p>And <strong>two for pulling items out of the container</strong>. Whether you want a instance of T or a Mock&lt;T&gt;, it gives you ways to retrieve both.</p>

<blockquote>
  <p><a href="http://elegantcode.com/wp-content/uploads/2010/01/image.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb.png" width="396" height="106" /></a> </p>
</blockquote>

<h4>How can I setup my own registrations with the container? </h4>

<p>Say I don’t want to have the container generate mocks for specific items and I want to supply specific configuration to the UnityContainer.</p>

<blockquote>
  <p>public UnityAutoMockContainer RegisterInstance&lt;TService&gt;(TService instance)</p>

  <p>public UnityAutoMockContainer Register&lt;TService, TImplementation&gt;() 
    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; where TImplementation : TService</p>
</blockquote>

<p><strong>Note</strong>: both of these registration methods return the container itself so you can fluently stack registration. <strong>EX:</strong></p>

<pre class="brush: csharp;">AutoMockContainer
    .Register&lt;IServiceA, ServiceA&gt;()
    .Register&lt;IServiceB, ServiceB&gt;();</pre>

<p><strong>Let me know</strong>: I haven’t tested or played around with how this automocking container deals with any container specific xml configuration… So although I don’t think you should probably have that in a test assembly (stuff happens). Let me know if there are any issues.</p>

<h4>How do I get items out of the container?</h4>

<p>First is the Resolve&lt;T&gt;(). It will pull an item T out of the container. (Creating it if not already existing)</p>

<blockquote>
  <p>public T Resolve&lt;T&gt;()</p>
</blockquote>

<p>When T is an interface Resolve&lt;T&gt; (unless you setup registration specifically with the container) should return basically “(new Mock&lt;T&gt;()).Object”</p>

<p>When T is a concrete Class, the container should return an instance of T and any of it’s dependencies will be satisfied by mocks. (Note that T will not be any sort of mocked instance of T, unless you used the GetMock&lt;T&gt; as described below first)</p>

<blockquote>
  <p>public Mock&lt;T&gt; GetMock&lt;T&gt;() where T : class</p>
</blockquote>

<p>When T is an interface GetMock&lt;T&gt; should return basically “(new Mock&lt;T&gt;())” </p>

<p>When T is a concrete Class, the container should return a new Mock&lt;T&gt;() and any of it’s dependencies will be satisfied by mocks.</p>

<h4>How do I use the UnityAutoMockContainer?</h4>

<p>It’s pretty basic, you first create an instance of the UnityAutoMockContainer, and from there you can ask it for mocks of an (Interface, Class, or Abstract Class).</p>

<p>If you request an instance of a concrete class, or abstract class, the UnityAutoMockContainer will stuff mocks in for any constructor dependencies of your concrete class (if it can). You can then request from the container those same dependencies one at a time and either apply mocking setups or verifications.</p>

<blockquote>
  <p><strong>NOTE:</strong> Anything the container creates will live as a singleton instance in the container. So any other requests from the container will always return the originally created instance. Therefore, each distinct scenario in a test suite should have their own instances of the container.</p>
</blockquote>

<p>Below his an example of how you can leverage the container in some tests. Given this base fixture class…</p>

<pre class="brush: csharp;">public class FixtureBase
{
    private readonly UnityAutoMockContainer _autoMockContainer = new UnityAutoMockContainer();

    protected UnityAutoMockContainer AutoMockContainer
    {
        get { return _autoMockContainer; }
    }

    [TestFixtureSetUp]
    public void SetupContext_ALL()
    {
        Before_all_tests();
        Because();
    }

    [TestFixtureTearDown]
    public void TearDownContext_ALL()
    {
        After_all_tests();
    }

    protected virtual void Before_all_tests()
    {
    }

    protected virtual void Because()
    {
    }

    protected virtual void After_all_tests()
    {
    }
}</pre>

<p>If I were given the following system to test.</p>

<pre class="brush: csharp;">public interface IServiceA { void RunA(); }
public interface IServiceB { void RunB(); }

public class TestComponent
{
    public TestComponent(IServiceA serviceA, IServiceB serviceB)
    {
        ServiceA = serviceA;
        ServiceB = serviceB;
    }

    public IServiceA ServiceA { get; private set; }
    public IServiceB ServiceB { get; private set; }

    public void RunAll()
    {
        if (!HowDidItGo())
            return;
        ServiceA.RunA();
        ServiceB.RunB();
    }

    public virtual bool HowDidItGo()
    {
        // some really nasty untestable code
        return true;
    }
}</pre>

<p>The below example demonstrates simply verifying some behavior on the mocked dependencies of the system under test.</p>

<pre class="brush: csharp;">[TestFixture]
public class Example__how_to_pull_items_from_the_UnityAutoMockContainer_when_verifying_behavior_after_an_action_was_taken 
    : FixtureBase
{
    private TestComponent _testComponent;

    protected override void Before_all_tests()
    {
        base.Before_all_tests();
        _testComponent = AutoMockContainer.Resolve&lt;TestComponent&gt;();
    }

    protected override void Because()
    {
        _testComponent.RunAll();
    }

    [Test]
    public void Should_run_ServiceA_RunA()
    {
        AutoMockContainer
            .GetMock&lt;IServiceA&gt;()
            .Verify(v =&gt; v.RunA(), Times.Once());
    }

    [Test]
    public void Should_run_ServiceB_RunB()
    {
        AutoMockContainer
            .GetMock&lt;IServiceB&gt;()
            .Verify(v =&gt; v.RunB(), Times.Once());
    }
}</pre>

<p>Next, you may have noticed that the system under test had a complicated internal method (that may not necessarily be testable). You can use the AutoMocker to create the system under test as a Mock itself, so we can override some of the behavior. Here’s how you could quickly do that. </p>

<blockquote>
  <p><strong>Aside</strong>: I’m not saying this is a good practice or aids in good component design, just saying it’s possible</p>
</blockquote>

<pre class="brush: csharp;">[TestFixture]
public class Example__how_to_use_the_UnityAutoMockContainer_to_override_a_method_on_the_SystemUnderTest_to_test_a_certain_behavior
    : FixtureBase
{

    private TestComponent _testComponent;

    protected override void Before_all_tests()
    {
        base.Before_all_tests();
        var mockTestComponent = AutoMockContainer.GetMock&lt;TestComponent&gt;();

        mockTestComponent
            .Setup(s =&gt; s.HowDidItGo())
            .Returns(false);

        _testComponent = mockTestComponent.Object;
    }

    protected override void Because()
    {
        _testComponent.RunAll();
    }

    [Test]
    public void Should_run_ServiceA_RunA()
    {
        AutoMockContainer
            .GetMock&lt;IServiceA&gt;()
            .Verify(v =&gt; v.RunA(), Times.Never());
    }

    [Test]
    public void Should_run_ServiceB_RunB()
    {
        AutoMockContainer
            .GetMock&lt;IServiceB&gt;()
            .Verify(v =&gt; v.RunB(), Times.Never());
    }
}</pre>

<p>&#160;</p>

<p>It’s amazing how much redundant test setup code this little helper has saved me in my tests. I hope others can find some use with this as well.</p>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>If (Successful) { throw new Exception(); }</title>
		<link>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=if-successful-throw-new-exception</link>
		<comments>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 14:56:59 +0000</pubDate>
		<dc:creator>Brian Lagunas</dc:creator>
				<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/</guid>
		<description><![CDATA[So, I was installing Visual Studio 2010 Ultimate Beta 2 on one of my machines the other day and the funniest thing happened.&#160; After it successfully installed, I was prompted to send an error report. Since when is a successful operation a problem?&#160; Now, of course, I am assuming this is intentional and is transmitting [...]]]></description>
			<content:encoded><![CDATA[<p>So, I was installing Visual Studio 2010 Ultimate Beta 2 on one of my machines the other day and the funniest thing happened.&#160; After it successfully installed, I was prompted to send an error report.</p>  <p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="error" border="0" alt="error" src="http://elegantcode.com/wp-content/uploads/2009/12/error.jpg" width="380" height="209" /> </p>  <p>Since when is a successful operation a problem?&#160; Now, of course, I am assuming this is intentional and is transmitting information back to Microsoft to tell them that it was successful.&#160; But, I can see how easy it would be for someone to mistaken this for a legitimate error.&#160; Then again, maybe it is.</p>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>StatLight &#8211; Goes Open Source</title>
		<link>http://elegantcode.com/2009/12/10/statlight-goes-open-source/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=statlight-goes-open-source</link>
		<comments>http://elegantcode.com/2009/12/10/statlight-goes-open-source/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 03:26:55 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[TDD]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2009/12/10/statlight-goes-open-source/</guid>
		<description><![CDATA[Although I made a very minor attempt at making StatLight a “for-sale” product, I knew when I started that open-source was most likely going to be my long term path for StatLight. What is it? (Silverlight Testing Automation Tool) StatLight is a tool developed for automating the setup, running, and gathering results of Silverlight unit [...]]]></description>
			<content:encoded><![CDATA[Although I made a very minor attempt at making <a href="http://statlight.net" target="_blank">StatLight</a> a “for-sale” product, I knew when I started that open-source was most likely going to be my long term path for <a href="http://statlight.net" target="_blank">StatLight</a>.
<h5>What is it? (Silverlight Testing Automation Tool)</h5>
StatLight is a tool developed for automating the setup, running, and gathering results of Silverlight unit tests. StatLight helps to speed up the feedback cycles while practicing<a href="http://en.wikipedia.org/wiki/Test-driven_development"> TDD</a>/<a href="http://en.wikipedia.org/wiki/Behavior_Driven_Development">BDD</a>/(insert your test style here) during Silverlight development.
<h5>Where can I get StatLight?</h5>
<a href="http://StatLight.CodePlex.com">http://StatLight.CodePlex.com</a>
<h4>Happy Coding !!!</h4>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2009/12/10/statlight-goes-open-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running with Parallels 5</title>
	<atom:link href="http://elegantcode.com/category/tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://elegantcode.com</link>
	<description></description>
	<lastBuildDate>Tue, 15 May 2012 10:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Elegant Code &#187; Tools and Utilities</title>
	<atom:link href="http://elegantcode.com/category/tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://elegantcode.com</link>
	<description></description>
	<lastBuildDate>Tue, 15 May 2012 10:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Quinine For Sale</title>
		<link>http://elegantcode.com/2012/01/18/monitoring-an-mmo/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=monitoring-an-mmo</link>
		<comments>http://elegantcode.com/2012/01/18/monitoring-an-mmo/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 19:45:32 +0000</pubDate>
		<dc:creator>Tony Rasa</dc:creator>
				<category><![CDATA[Architecture]]></category>
		<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Metrics]]></category>
		<category><![CDATA[MMO]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2012/01/18/monitoring-an-mmo/</guid>
		<description><![CDATA[I’ve been working on a free-to-play MMO Quinine For Sale, which has been “officially” live since last April, and things have been going well – a steady growth of players; the game itself has been well-received, and all the important graphs are “up and to the right.”&#160; Part of my job involves detecting problems before [...]]]></description>
			<content:encoded><![CDATA[<p> <p>I’ve been working on a free-to-play <a href="http://www.heroup.com" target="_blank">MMO</a> <b>Quinine For Sale</b>, which has been “officially” live since last April, and things have been going well – a steady growth of players; the game itself has been well-received, and all the important graphs are “up and to the right.”&#160; Part of my job involves detecting problems before they become serious and fixing problems when they inevitably do.&#160; So, there are two questions.&#160; “Is there a problem in the game?” “What is causing the problem?”&#160; </p>  <p>When trying to debug something on our development and test clusters, typically you can tail log files.&#160; We have a python script that can monitor the communication between various parts of the game and pretty-print it along with color to highlight “this is a problem!”&#160; Attaching a debugger to a running process is also not uncommon.&#160; However, looking at logs and bus traffic in realtime on a production environment gives you this neat “Matrix-y” experience.&#160; Attaching a debugger to a production process (assuming you could, which you can’t) would get you smacked with a rolled-up newspaper.&#160; “Bad Developer!&#160; No treat!”&#160; So, what can you do?</p>  <h4>Monitoring</h4>  <p>When you’ve got clusters full of machines, using <a href="http://www.nagios.org/" target="_blank">Nagios</a> to monitor things is an obvious solution.&#160; Beyond making sure the power is on and other sysadmin things, we’ve written other checks to see if the login process is working, the parts are working together, and automating typical in-game functions.&#160; For example, if nagios can’t successfully log into the game do basic game activity, then alerts happen.</p>  <h4>Metrics for EVERYTHING</h4>  <p>Anything that happens in game has metrics reporting tied to it, generating piles of data constantly.&#160; We use <a href="http://www.cacti.net/" target="_blank">Cacti</a> to visualize game activity.&#160; An example metric is concurrent users, or CCU.&#160; We graph how many people are in the game over time, which when things are healthy should be a nice smooth curve climbing to peak game hours, then descending nicely through the night.</p>  <p>We can tell by sight if the game looks healthy or not – if the CCU graph is jaggy, has a sudden drop or spike, or drops to zero then we know that something is wrong.&#160; Typically nagios alerts accompany the graphs, giving more data points on where to look.&#160; But this has also pointed out areas where a nagios check was missing or wasn’t working as intended.</p>  <h4>Log Files</h4>  <p>When a player gets an error in game, the error dialog box gives them the opportunity to submit the error details back to us.&#160; If we see a spike in user-reported errors through this or other customer service means, we know we have something of interest to look for.&#160; </p>  <p>The game server components make use of log4j and similar logging frameworks.&#160; Anything that you’d want to watch happening in game needs to be aggressively logged.&#160; All components are configured so that operations can change the log level on the fly.&#160; That’s still quite a bit of data across many machines though, so all that information is run through <a href="http://www.splunk.com/product" target="_blank">Splunk</a> to be indexed and searchable.&#160; This gives us a great tool for searching through log data, examining trends, or watching selected activity in real time.&#160; Unfortunately it is very expensive so we are selective about the data that passes through it.&#160; </p>.  Buy Quinine from mexico.  Buy Quinine no prescription.  No prescription Quinine online.  Online buying Quinine.  Quinine no prescription.  Quinine street price.  Buy no prescription Quinine online.  Quinine coupon.  Quinine over the counter.  Where can i buy Quinine online.  Quinine steet value.  Where to buy Quinine.  Order Quinine online overnight delivery no prescription.  Quinine recreational.  Quinine canada, mexico, india.  Ordering Quinine online.  Quinine without prescription.  Quinine price, coupon.  Quinine description.  Order Quinine from mexican pharmacy.  Quinine pics.  What is Quinine.  Japan, craiglist, ebay, overseas, paypal.  Order Quinine from United States pharmacy.  Order Quinine online c.o.d.  Quinine trusted pharmacy reviews.  Quinine treatment.  Buy Quinine from canada.  Quinine used for.  Discount Quinine.  Is Quinine addictive.  Quinine forum.  Buy Quinine online no prescription.  Is Quinine safe.  Purchase Quinine for sale.  Effects of Quinine.  Buy Quinine online cod.  Quinine australia, uk, us, usa.  Buy Quinine without prescription.  Quinine online cod.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4721'>Buy Flonase Without Prescription</a>. <a href='http://elegantcode.com/?p=4234'>Buy Periactin Without Prescription</a>. <a href='http://elegantcode.com/?p=4203'>Buy Armour Without Prescription</a>. <a href='http://elegantcode.com/?p=4899'>Buy Macrobid Without Prescription</a>. <a href='http://elegantcode.com/?p=4534'>Xalatan For Sale</a>. <a href='http://elegantcode.com/?p=4302'>Phenergan wiki</a>. <a href='http://elegantcode.com/?p=4268'>Soma maximum dosage</a>. <a href='http://elegantcode.com/?p=4602'>Zovirax treatment</a>. <a href='http://elegantcode.com/?p=4578'>Cialis price, coupon</a>. <a href='http://elegantcode.com/?p=4189'>Flexeril price</a>.<br />
<b>Trackbacks from:</b> <a href='http://www.leaduganda.org/?p=514'>Quinine For Sale</a>. <a href='http://www.macneilbmx.com/blog/?p=4820'>Quinine For Sale</a>. <a href='http://www.greatgreengoods.com/?p=2780'>Quinine For Sale</a>. <a href='http://www.thegriffonnews.com/?p=10177'>Quinine For Sale</a>. <a href='http://www.independentworldreport.com/?p=2409'>Quinine For Sale</a>. <a href='http://changecamp.ca/?p=295'>Quinine description</a>. <a href='http://social-blend.com/?p=624'>Quinine price, coupon</a>. <a href='http://blog.farmland.org/?p=3946'>Online buying Quinine hcl</a>. <a href='http://4realz.net/?p=1595'>Quinine from canada</a>. <a href='http://reversemortgagedaily.com/?p=14535'>Where to buy Quinine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2012/01/18/monitoring-an-mmo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Buy Clonidine Without Prescription</title>
		<link>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=moving-from-e-texteditor-to-sublime-text-2</link>
		<comments>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 23:45:32 +0000</pubDate>
		<dc:creator>Jan Van Ryswyck</dc:creator>
				<category><![CDATA[CoffeeScript]]></category>
		<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/</guid>
		<description><![CDATA[I’ve been using E-TextEditor Buy Clonidine Without Prescription, for more than a year now for doing all my JavaScript, Node.js and CoffeeScript development. Clonidine from mexico, You can think of E-TextEditor as TextMate for the Windows platform. I’ve been pretty happy with it throughout this period as it can be extended pretty easily with a [...]]]></description>
			<content:encoded><![CDATA[<p> <p align="justify">I’ve been using <a href="http://www.e-texteditor.com/" target="_blank">E-TextEditor</a> <b>Buy Clonidine Without Prescription</b>, for more than a year now for doing all my JavaScript, Node.js and CoffeeScript development.  <b>Clonidine from mexico</b>, You can think of E-TextEditor as <a href="http://macromates.com/" target="_blank">TextMate</a> for the Windows platform. I’ve been pretty happy with it throughout this period as it can be extended pretty easily with a whole slew of bundles that are already available for TextMate, <b>cheap Clonidine</b>.  <b>Clonidine recreational</b>, E-TextEditor requires you to install <a href="http://www.cygwin.com/" target="_blank">Cygwin</a> which happens automatically during installation. Using the Cygwin command-line gave me enough (re-)exposure to a Linux-like environment in order for me wanting to (re-)learn about this other platform, <b>purchase Clonidine for sale</b>. More on that in later blog posts, <b>Buy Clonidine Without Prescription</b>.  <b>Low dose Clonidine</b>, Although there haven’t been any new versions of E-TextEditor for quite some time now, the current version enabled me to write JavaScript code in a productive way.</p>  <p align="justify">Only recently I found out about another editor called <a href="http://www.sublimetext.com/2" target="_blank">Sublime Text 2</a> (thanks to <a href="http://twitter.com/#!/casualjim" target="_blank">Ivan Porto Carrero</a>), <b>Clonidine description</b>.  <b>Clonidine overnight</b>, I downloaded this text editor in order to give it a try and I must say that I haven’t opened E-TextEditor ever since. This second version of Sublime Text is still in development but it’s pretty stable as I haven’t run into any issues so far, <b>Clonidine no prescription</b>.  <b>Clonidine brand name</b>, The cool part is that this editor is available for both Windows, Linux and OS X which enabled me to move all my Node.js and CoffeeScript development from Cygwin on Windows to Ubuntu Linux.&#160; </p>  <p align="justify">CoffeeScript isn’t supported out-of-the-box (yet), <b>purchase Clonidine</b>, <b>Clonidine gel, ointment, cream, pill, spray, continuous-release, extended-release</b>, so I installed the <a href="https://github.com/jashkenas/coffee-script-tmbundle" target="_blank">CoffeeScript&#160; TextMate bundle</a> written by <a href="http://ashkenas.com/" target="_blank">Jeremy Ashkenas</a> (yes, the same one from the <a href="http://jashkenas.github.com/coffee-script/" target="_blank">CoffeeScript</a> and <a href="http://documentcloud.github.com/backbone/" target="_blank">Backbone.js</a> fame), <b>Clonidine long term</b>.  Also check out <a href="https://github.com/jashkenas/coffee-script/wiki/Text-editor-plugins" target="_blank">this page on the CoffeeScript wiki</a> for more information on how to bring some CoffeeScript happiness to your own favorite text editor.</p>  <p align="justify"> <b>Buy Clonidine Without Prescription</b>, Setting up this TextMate bundle for use with Sublime Text 2 was actually pretty easy.  <b>Clonidine canada, mexico, india</b>, Just navigate to <em>/home/&lt;my_user_name&gt;/.config/sublime-text-2/Packages</em> in a terminal (or the corresponding file path on Windows) and clone the source of the CoffeeScript TextMate bundle using git: </p>  <blockquote>   <p align="justify"><em>git clone git://github.com/jashkenas/coffee-script-tmbundle CoffeeScript</em></p> </blockquote>  <p align="justify">Next close all the .coffee files and restart Sublime Text 2. Now we have some nice syntax highlighting and some useful code snippets at our disposal.&#160; </p>  <p align="justify"><a href="http://elegantcode.com/wp-content/uploads/2011/08/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2011/08/image_thumb.png" width="600" height="396" /></a></p>  <p>It's also possible to hook into <a href="http://sublimetext.info/docs/en/reference/build_systems.html" target="_blank">the build system</a> of Sublime Text 2, <b>Clonidine australia, uk, us, usa</b>.  <b>Clonidine blogs</b>, You just need to create a new file named <em>CoffeeScript.sublime-build</em> at the following location: </p>  <blockquote>   <p><em>/home/&lt;my_user_name&gt;/.config/sublime-text-2/Packages/User&#160; </em></p> </blockquote>  <p align="justify">You can add the following to this new file for compiling CoffeeScript</p>  <pre style="width: 100%; height: 85px" class="csharpcode">{     <span class="str">&quot;cmd&quot;</span>: [<span class="str">&quot;coffee&quot;</span>, <span class="str">&quot;-c&quot;</span>, <b>Clonidine from canada</b>, <b>Is Clonidine addictive</b>, <span class="str">&quot;$file&quot;</span>],     <span class="str">&quot;selector&quot;</span> : <span class="str">&quot;source.coffee&quot;</span>, <b>Clonidine pharmacy</b>, <b>Ordering Clonidine online</b>, <span class="str">&quot;path&quot;</span> : <span class="str">&quot;/usr/local/bin&quot;</span>}</pre><style type="text/css">.csharpcode, .csharpcode pre{	font-size: small;	color: black;	font-family: consolas, <b>Clonidine without prescription</b>, <b>Clonidine no rx</b>, "Courier New", courier, <b>buy no prescription Clonidine online</b>, <b>Clonidine street price</b>, monospace;	background-color: #ffffff;	/*white-space: pre;*/}.csharpcode pre { margin: 0em; }.csharpcode .rem { color: #008000; }.csharpcode .kwrd { color: #0000ff; }.csharpcode .str { color: #006080; }.csharpcode .op { color: #0000c0; }.csharpcode .preproc { color: #cc6633; }.csharpcode .asp { background-color: #ffff00; }.csharpcode .html { color: #800000; }.csharpcode .attr { color: #ff0000; }.csharpcode .alt<br />
{	background-color: #f4f4f4;	width: 100%;	margin: 0em;}.csharpcode .lnum { color: #606060; }</style>or the following for executing/running CoffeeScript code.</p>
<p><pre style="width: 100%; height: 85px" class="csharpcode">{     <span class="str">&quot;cmd&quot;</span>: [<span class="str">&quot;coffee&quot;</span>, <b>Clonidine for sale</b>, <b>What is Clonidine</b>, <span class="str">&quot;$file&quot;</span>],     <span class="str">&quot;selector&quot;</span> : <span class="str">&quot;source.coffee&quot;</span>, <b>get Clonidine</b>, <b>Clonidine class</b>, <span class="str">&quot;path&quot;</span> : <span class="str">&quot;/usr/local/bin&quot;</span>}</pre></p>
<p><p align="justify">Now when you hit F7, this fresh build command is executed when a CoffeeScript source file is showing in the active tab, <b>cheap Clonidine no rx</b>.  It’s also possible to change the build short-key to your own taste through the <em>Preferences</em> menu, <b>Buy Clonidine Without Prescription</b>.  <b>Fast shipping Clonidine</b>, <style type="text/css">.csharpcode, .csharpcode pre{	font-size: small;	color: black;	font-family: consolas, <b>buy Clonidine from canada</b>, <b>Clonidine without a prescription</b>, "Courier New", courier, <b>purchase Clonidine online no prescription</b>, <b>Effects of Clonidine</b>, monospace;	background-color: #ffffff;	/*white-space: pre;*/}.csharpcode pre { margin: 0em; }.csharpcode .rem { color: #008000; }.csharpcode .kwrd { color: #0000ff; }.csharpcode .str { color: #006080; }.csharpcode .op { color: #0000c0; }.csharpcode .preproc { color: #cc6633; }.csharpcode .asp { background-color: #ffff00; }.csharpcode .html { color: #800000; }.csharpcode .attr { color: #ff0000; }.csharpcode .alt<br />
{	background-color: #f4f4f4;	width: 100%;	margin: 0em;}.csharpcode .lnum { color: #606060; }</style></p></p>
<p><p align="justify">Unfortunately, there’s only one build command as I would love to create a separate command for compiling and running CoffeeScript code (or perhaps I missed this feature during the excitement <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-winkingsmile" alt="Winking smile" src="http://elegantcode.com/wp-content/uploads/2011/08/wlEmoticon-winkingsmile.png" />), <b>buy generic Clonidine</b>.  <b>Is Clonidine safe</b>, </p></p>
<p><p align="justify">Some more usage is definitely needed for me to learn more about this excellent text editor, but currently I’m pretty happy with it, <b>Clonidine trusted pharmacy reviews</b>.  <b>Taking Clonidine</b>, I also need to find out how well JavaScript is supported and perhaps see how far one can go when doing some C# development using Mono. I expect that there are a good number of productive features in there for me to discover.</p></p>
<p><p align="justify">I encourage you have a decent look at this excellent tool, <b>Clonidine dangers</b>.  <b>Order Clonidine from mexican pharmacy</b>, </p></p>
<p><p align="justify">Until next time.</p>.  Herbal Clonidine.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4452'>Stromectol For Sale</a>. <a href='http://elegantcode.com/?p=4867'>Buy Soma Without Prescription</a>. <a href='http://elegantcode.com/?p=4758'>Buy Atenolol Without Prescription</a>. <a href='http://elegantcode.com/?p=4553'>Buy Female Pink Viagra Without Prescription</a>. <a href='http://elegantcode.com/?p=4560'>Vermox For Sale</a>. <a href='http://elegantcode.com/?p=4662'>Where can i buy cheapest Antabuse online</a>. <a href='http://elegantcode.com/?p=4508'>Slimex (Obetrim) photos</a>. <a href='http://elegantcode.com/?p=4623'>Augmentin description</a>. <a href='http://elegantcode.com/?p=4752'>Buy Colchicine no prescription</a>. <a href='http://elegantcode.com/?p=4322'>Clonidine natural</a>.<br />
<b>Trackbacks from:</b> <a href='http://evanrapoport.com/?p=429'>Buy Clonidine Without Prescription</a>. <a href='http://www.themusclecarplace.com/?p=5350'>Buy Clonidine Without Prescription</a>. <a href='http://changecamp.ca/?p=578'>Buy Clonidine Without Prescription</a>. <a href='http://blog.farmland.org/?p=3172'>Buy Clonidine Without Prescription</a>. <a href='http://home.officesnapshots.com/?p=175'>Buy Clonidine Without Prescription</a>. <a href='http://www.thegriffonnews.com/?p=9699'>Kjøpe Clonidine på nett, köpa Clonidine online</a>. <a href='http://www.quarterlives.com/?p=831'>Buy cheap Clonidine no rx</a>. <a href='http://www.greatgreengoods.com/?p=3511'>Clonidine use</a>. <a href='http://www.macneilbmx.com/blog/?p=5325'>Clonidine no rx</a>. <a href='http://social-blend.com/?p=482'>Online buying Clonidine hcl</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Buy Viagra Without Prescription</title>
		<link>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor</link>
		<comments>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 22:51:00 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Entity Framework]]></category>
		<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/</guid>
		<description><![CDATA[Buy Viagra Without Prescription, If you’ve taken the jump to try out the new Entity Framework Code First and you’re allowing it to generate your database for you, you’ve most certainly run into the lack of migrations/updating existing schema support. Currently EF Code First will only create a database and won’t update a database with [...]]]></description>
			<content:encoded><![CDATA[<p> <p> <b>Buy Viagra Without Prescription</b>, If you’ve taken the jump to try out the new Entity Framework Code First and you’re allowing it to generate your database for you, you’ve most certainly run into the lack of migrations/updating existing schema support. Currently EF Code First will only create a database and won’t update a database with changes necessary to bring it in line with your model, <b>where can i order Viagra without prescription</b>.  <b>Effects of Viagra</b>, I know they’re working on it, but since it’s not there, <b>buy generic Viagra</b>, <b>Online buy Viagra without a prescription</b>, I thought I’d share a possible solution, albeit less polished than some of the well known database change management out there.</p>  <h4>Where is the tool?</h4>  <p>You can access it in the VS Command window, <b>Viagra coupon</b>.  <b>Buy Viagra no prescription</b>, On my x64 machine the tool is in.</p>  <blockquote>   <p>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VSTSDB\Deploy\vsdbcmd.exe</p> </blockquote>  <h4>I want to deploy an existing schema to AppHarbor.</h4>  <p>Some high level steps that you can use for deployment of database changes.</p>  <ol>   <li>Generate an original reflection of your database. (*.dbschema file) </li>    <li>Tiny little hack to the .dbschema file, <b>Viagra reviews</b>. </li>    <li>Generate the change file to AppHarbor </li>    <li>Review Change Script Generated </li>    <li>Take the app offline, <b>Buy Viagra Without Prescription</b>.  <b>Order Viagra from mexican pharmacy</b>, (optional) </li>    <li>Apply Change Script </li>    <li>Bring the app online (mandatory if you took step 5) </li> </ol>  <h5>Generate an original reflection of your database.</h5>  <p>This file is a complete reflection of your databases schema in a single xml file.</p>  <p>The following command can be used to generate this file.</p>  <blockquote>   <p>vsdbcmd.exe      <br />&#160;&#160;&#160;&#160; /Action:Import       <br />&#160;&#160;&#160;&#160; /ConnectionString:&quot;Data Source=.\sqlexpress;Initial Catalog=MyDatabase;Integrated Security=True;Pooling=False&quot;       <br />&#160;&#160;&#160;&#160; /ModelFile:MyDatabase.dbschema</p> </blockquote>  <p>There are a ton of knobs to turn with this command line tool. Feel free to check out the docs <a href="http://msdn.microsoft.com/en-us/library/dd193283.aspx">http://msdn.microsoft.com/en-us/library/dd193283.aspx</a></p>  <p>Now you should have a file “MyDatabase.dbschema” sitting on your hard drive.</p>  <h5>Tiny little hack to the .dbschema file.</h5>  <p>The section of xml we want to manually remove from the file is related to where your mdf and ldf database files should exist on disk, <b>kjøpe Viagra på nett, köpa Viagra online</b>.  <b>Cheap Viagra</b>, When we go to deploy up to AppHarbor, if this is not removed, <b>buy Viagra online no prescription</b>, <b>Online buying Viagra hcl</b>, then vsdbcmd will generate script to attempt to move the files into the “correct” location. This operation will throw exceptions if you attempt to execute against AppHarbor as you don’t have permission to do this, <b>Viagra gel, ointment, cream, pill, spray, continuous-release, extended-release</b>.  <b>Buy Viagra Without Prescription</b>, We’re removing it from the xml file, as I can’t seem to get the correct command line option to ignore this (if there is an option).  <b>Viagra no prescription</b>, So by removing it, it’s just not used and completely ignored.</p>  <p>I don’t know if this will be true for everyone, <b>Viagra photos</b>, <b>Viagra steet value</b>, but I find that the last two sections of xml in the dbschema file are all I have to remove. I’ll show the two full sections below so you can use it as a reference of what to remove from the file.</p>  <pre class="brush: xml;">&lt;Element Type=&quot;ISql90File&quot; Name=&quot;[MyDatabase]&quot;&gt;    &lt;Property Name=&quot;FileName&quot; Value=&quot;$(DefaultDataPath)$(DatabaseName).mdf&quot; /&gt;    &lt;Property Name=&quot;Size&quot; Value=&quot;2304&quot; /&gt;    &lt;Property Name=&quot;SizeUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Property Name=&quot;FileGrowth&quot; Value=&quot;1024&quot; /&gt;    &lt;Property Name=&quot;FileGrowthUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Relationship Name=&quot;Filegroup&quot;&gt;        &lt;Entry&gt;            &lt;References ExternalSource=&quot;BuiltIns&quot; Name=&quot;[PRIMARY]&quot; /&gt;        &lt;/Entry&gt;    &lt;/Relationship&gt;&lt;/Element&gt;&lt;Element Type=&quot;ISql90File&quot; Name=&quot;[MyDatabase_log]&quot;&gt;    &lt;Property Name=&quot;FileName&quot; Value=&quot;$(DefaultLogPath)$(DatabaseName)_log.LDF&quot; /&gt;    &lt;Property Name=&quot;Size&quot; Value=&quot;576&quot; /&gt;    &lt;Property Name=&quot;SizeUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Property Name=&quot;MaxSize&quot; Value=&quot;2097152&quot; /&gt;    &lt;Property Name=&quot;IsUnlimited&quot; Value=&quot;False&quot; /&gt;    &lt;Property Name=&quot;FileGrowth&quot; Value=&quot;10&quot; /&gt;    &lt;Property Name=&quot;FileGrowthUnit&quot; Value=&quot;1&quot; /&gt;    &lt;Property Name=&quot;IsLogFile&quot; Value=&quot;True&quot; /&gt;&lt;/Element&gt;</pre></p>
<p><h5>Generate the change file to AppHarbor.</h5></p>
<p><p>Now that we have a .dbschema file containing the complete model of what we want deployed, <b>comprar en línea Viagra, comprar Viagra baratos</b>, <b>Viagra without prescription</b>, we can now use it to generate a schema change deployment script.</p></p>
<p><blockquote>  <p>vsdbcmd.exe<br />
    <br />&#160;&#160;&#160;&#160; /Action:Deploy</p>
<p>    <br />&#160;&#160;&#160;&#160; /DeployToDatabase:-</p>
<p>    <br />&#160;&#160;&#160;&#160; /Script:Test.sql</p>
<p>    <br />&#160;&#160;&#160;&#160; /ConnectionString:&quot;{YourAppHarborConnectionString}&quot;</p>
<p>    <br />&#160;&#160;&#160;&#160; /ModelFile:HackIt.dbschema</p>
<p>    <br />&#160;&#160;&#160;&#160; /Properties:TargetDatabase={YourAppHarborDatabaseName EX:db1235}</p></blockquote></p>
<p><p>I’ll explain a couple of the above command options.</p></p>
<p><h6>/DeployToDatabase:-</h6></p>
<p><p>This one is _<strong><u>key</u></strong>_. This tells vsdbcmd to only generate a change script, <b>Viagra price, coupon</b>, <b>Herbal Viagra</b>, and <strong>not to actually deploy the changes </strong>immediately. Until you feel comfortable with what sql the tool generates, <b>Viagra australia, uk, us, usa</b>, <b>Viagra blogs</b>, which is usually pretty darn good, you should not apply it immediately, <b>Viagra dose</b>. Allow the tool to generate the file for further inspection and you can execute it manually after, <b>Buy Viagra Without Prescription</b>.  <b>Viagra dosage</b>, <br /></p></p>
<p><h6>/Script:Test.sql</h6></p>
<p><p>This this is just the name of the file to dump the deployment changes.<br />
  <br /></p></p>
<p><h6>/ModelFile:HackIt.dbschema</h6></p>
<p><p>The path to the .dbschema we generated and modified above.</p></p>
<p><p>&#160;</p></p>
<p><h5>Review Change Script Generated.</h5></p>
<p><p>After you’ve generated a change script file, <b>order Viagra from United States pharmacy</b>, <b>Buy Viagra from canada</b>, take a look at the sql just to make sure you’re happy with what it generates.</p></p>
<p><h5>Take the app offline. (optional)</h5></p>
<p><p>This one depends on the schema changes, <b>Viagra class</b>.  <b>Where can i find Viagra online</b>, If the changes are serious enough, you can check in an App_Offline.htm file at the root of web project and do a “git push appharbor”, <b>Viagra maximum dosage</b>.  <b>Buy Viagra Without Prescription</b>, This way, while making schema changes you don’t have to worry about the errors popping up on users.  <b>Is Viagra safe</b>, Down side is your site becomes inoperable.</p></p>
<p><blockquote>  <p>If you’ve never heard of the App_Offline.htm – I’d recommend reading up on it. <a href="http://weblogs.asp.net/scottgu/archive/2006/04/09/442332.aspx">http://weblogs.asp.net/scottgu/archive/2006/04/09/442332.aspx</a></p></blockquote></p>
<p><h5>Apply Change Script.</h5></p>
<p><p>You have several options to actually apply the scripted changes.</p></p>
<p><ol>  <li>Use vsdbcmd to deploy – Just turn the /DeployToDatabase:<strong>-</strong> to /DeployToDatabase:<strong>+</strong> and allow vsdbcmd to apply the script right there, <b>Viagra over the counter</b>.  <b>Fast shipping Viagra</b>, </li></p>
<p>  <li>Use SQL Management Studio.<br />
    <br /><strong>Make Sure you turn on SQLCMD Mode</strong><a href="http://elegantcode.com/wp-content/uploads/2011/04/image1.png"><br />
      <br /><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2011/04/image_thumb1.png" width="311" height="333" /></a>&#160; </li></ol></p>
<p><h5>Bring your site back online.</h5></p>
<p><p>Now you can go re-name the App_Offline.htm to something like App_Offline.htm.disabled and push those changes back up to AppHarbor.</p></p>
<p><h4>Other considerations.</h4></p>
<p><ul>  <li>Consider a simple migrations framework (EX: <a href="http://code.google.com/p/dbup/" target="_blank">DbUp</a>) to get some initial data or things initialized, <b>generic Viagra</b>, <b>Viagra australia, uk, us, usa</b>, but be-ware that you’ll have to think a little harder about the “rollback” steps with this approach.</p>
<p>    <br /></li></p>
<p>  <li>Next you could take a look at an inquiry I made on the public support discussion list at AppHarbor hoping to push AppHarbor to implement this App_Offline.htm support (right into their admin site)<a href="http://support.appharbor.com/discussions/problems/373-deployment-feature-idea"><br />
      <br />http://support.appharbor.com/discussions/problems/373-deployment-feature-idea</a></p>
<p>    <br /><strong>UPDATE:</strong> SPARE A VOTE OR TWO: <a title="http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic" href="http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic">http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic</a> </li></ul></p>
<p><p>One great benefit of to this approach is the ability for vsdbcmd to manage changes to an existing schema, <b>rx free Viagra</b>.  <b>Cheap Viagra</b>, </p></p>
<p><p>Now if you want full support like refactorings such as table, column, <b>Viagra treatment</b>, <b>Ordering Viagra online</b>, etc renames. You will want to keep a full db project and use that to do a deployment.</p></p>
<p><p>Hope you find this useful, <b>buy no prescription Viagra online</b>.  <b>Taking Viagra</b>, Happy Deployment!</p>.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4335'>Buy Differin Without Prescription</a>. <a href='http://elegantcode.com/?p=4423'>Antabuse For Sale</a>. <a href='http://elegantcode.com/?p=4744'>Buy Flexeril Without Prescription</a>. <a href='http://elegantcode.com/?p=4587'>Buy Pristiq Without Prescription</a>. <a href='http://elegantcode.com/?p=4633'>Cephalexin For Sale</a>. <a href='http://elegantcode.com/?p=4384'>Order Ultram online overnight delivery no prescription</a>. <a href='http://elegantcode.com/?p=4683'>Inderal schedule</a>. <a href='http://elegantcode.com/?p=4822'>About Hydrochlorothiazide</a>. <a href='http://elegantcode.com/?p=4728'>Ventolin australia, uk, us, usa</a>. <a href='http://elegantcode.com/?p=4694'>Human Growth Hormone interactions</a>.<br />
<b>Trackbacks from:</b> <a href='http://www.greatgreengoods.com/?p=2891'>Buy Viagra Without Prescription</a>. <a href='http://www.thegriffonnews.com/?p=10272'>Buy Viagra Without Prescription</a>. <a href='http://www.themusclecarplace.com/?p=3445'>Buy Viagra Without Prescription</a>. <a href='http://linuxologist.com/?p=363'>Buy Viagra Without Prescription</a>. <a href='http://blog.farmland.org/?p=2709'>Buy Viagra Without Prescription</a>. <a href='http://www.quarterlives.com/?p=286'>Where can i cheapest Viagra online</a>. <a href='http://www.macneilbmx.com/blog/?p=6199'>Online Viagra without a prescription</a>. <a href='http://social-blend.com/?p=1253'>Japan, craiglist, ebay, overseas, paypal</a>. <a href='http://www.leaduganda.org/?p=824'>Purchase Viagra online no prescription</a>. <a href='http://4realz.net/?p=1851'>Viagra no rx</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving your global .gitconfig file</title>
		<link>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=moving-your-global-gitconfig-file</link>
		<comments>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/#comments</comments>
		<pubDate>Fri, 05 Nov 2010 11:02:41 +0000</pubDate>
		<dc:creator>Andreas Håkansson</dc:creator>
				<category><![CDATA[Source Control]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/</guid>
		<description><![CDATA[I am using msysgit for my Git work on Windows and for quite a while I have been wanting to move the global .gitconfig file from its default location into my dropbox folder. The reason for this is probably obvious, I do not want to have to make the same configuration changes on multiple machines [...]]]></description>
			<content:encoded><![CDATA[I am using <a title="Visit the project page of msysgit" href="http://code.google.com/p/msysgit/" target="_blank">msysgit</a> for my Git work on Windows and for quite a while I have been wanting to move the global .gitconfig file from its default location into my dropbox folder. The reason for this is probably obvious, I do not want to have to make the same configuration changes on multiple machines to get a homogenize Git environment.

So I set out to resolve this but despite numerous stops at my local Google page, I was unable to find any information on how to make Git look for the file in a different location, it always went to look for the file at <em>%USERPROFILE%\.gitconfig</em>.

As a last resort I asked <a title="Visit the blog of Joshua Flanagan" href="http://www.lostechies.com/blogs/joshuaflanagan/" target="_blank">Joshua Flanagan</a> if he had any idea on how I could configure Git or msysgit to make this possible. Unfortunately he had no idea, but he did however suggest that I try using <a title="Visit the product page for mklink" href="http://technet.microsoft.com/en-us/library/cc753194(WS.10).aspx" target="_blank">mklink</a>, a command line utility available in Windows Vista and later.

mklink enables you to create either <a title="Read more about the differences between symbolic and hard links" href="http://www.maxi-pedia.com/difference+between+symbolic+link+and+hard+link" target="_blank">symbolic or hard links</a> for files or directories. What I needed was a symbolic link, which simply explained is like a shortcut to a file but the difference is that the file system will resolve the symbolic link to the real file, where as a windows shortcut is a file with information in it.

To create a symbolic link for your .gitconfig file do the following
<ol>
	<li>Copy your .gitconfig file from the %USERPROFILE% directory, to the directory where you want to store it instead</li>
	<li>Delete the .gitconfig file in the %USERPROFILE% directory</li>
	<li>Start <strong>cmd.exe</strong> as Administrator</li>
	<li>Enter <strong>mklink .gitconfig path\to\your\.gitconfig</strong> (notice the actual filename needs to be in the second parameter or you will link to the folder it is stored in)</li>
</ol>
You should now get a message that a symbolic link was created between the two files. Try making a change in either of them and see that the change is reflected in the other one – this is because you are always editing the same file since the file system resolves the symbolic link into the real file.]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Pluralcast 21 &#8211; Extending Visual Studio 2010 with Kate Gregory</title>
		<link>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pluralcast-21-extending-visual-studio-2010-with-kate-gregory</link>
		<comments>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 03:42:23 +0000</pubDate>
		<dc:creator>David Starr</dc:creator>
				<category><![CDATA[Pluralcast]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/</guid>
		<description><![CDATA[Listen Now! Kate Gregory has probably forgotten more coding tricks than I have ever learned. That means that she likes her Visual Studio with meat and potatoes. With the new extensibility model in Visual Studio 2010,  Visual Studio can now be the primary source or protein in your IDE diet. In this episode Kate tells us [...]]]></description>
			<content:encoded><![CDATA[<a href="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3"><img style="display: inline; border-width: 0px;" title="PlayIcon" src="http://elegantcode.com/wp-content/uploads/2010/08/PlayIcon.png" border="0" alt="PlayIcon" width="24" height="24" /></a> <a href="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3" target="_blank">Listen Now</a>!

Kate Gregory has probably forgotten more coding tricks than I have ever learned. That means that she likes her Visual Studio with meat and potatoes. With the new extensibility model in Visual Studio 2010,  Visual Studio can now be the primary source or protein in your IDE diet. In this episode Kate tells us how to add a little hot sauce using Visual Studio extensions.

<a href="http://elegantcode.com/wp-content/uploads/2010/08/kategregory.jpg"><img style="margin: 5px; display: inline; border-width: 0px;" title="kate-gregory" src="http://elegantcode.com/wp-content/uploads/2010/08/kategregory_thumb.jpg" border="0" alt="kate-gregory" width="112" height="142" align="right" /></a> Kate is in her fourth decade of being paid to program. Her firm, Gregory Consulting Limited, is based in rural Ontario and helps clients adopt new technologies and adjust to the changing business environment. Current work makes heavy use of .NET and Visual C++ along with SharePoint and both web and client development, especially for Windows 7. Managing, mentoring, technical writing, and technical speaking occupy much of her time, but she still writes code every week.

Kate is the author of over a dozen books and speaks at DevTeach, TechEd (USA, Europe, Africa), and TechDays, among others. Kate is a C++ MVP, a founding sponsor of the Toronto .NET Users Group, the founder of the East of Toronto .NET Users group, a member of the INETA speakers bureau, and a member of adjunct faculty at Trent University in Peterborough. Since January 2002 she has been Microsoft Regional Director for Toronto and since January 2004 she has been awarded the Microsoft Most Valuable Professional designation for Visual C++. In June 2005 she won the Regional Director of the year award.

<strong>Show Links</strong>
<ul>
	<li><a href="http://www.gregcons.com/kateblog/">Kate’s Blog</a></li>
	<li><a href="http://www.pluralsight-training.net/microsoft/olt/Course/Toc.aspx?n=vs2010-vsx">Kate’s Pluralsight course, <em>Customizing and Extending Visual Studio 2010</em></a></li>
	<li><a href="http://msdn.microsoft.com/en-us/vstudio/vextend.aspx">Visual Studio Extensibility (VSX)</a></li>
	<li><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=47305cf4-2bea-43c0-91cd-1b853602dcc5&amp;displaylang=en">Visual Studio SDK</a></li>
	<li><a href="http://visualstudiogallery.msdn.microsoft.com/">Visual Studio Gallery</a></li>
	<li><a href="http://code.msdn.microsoft.com/vsx">The Code Gallery</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3" length="41629427" type="audio/mpeg" />
		</item>
		<item>
		<title>God Mode Easter Egg</title>
		<link>http://elegantcode.com/2010/01/04/god-mode-easter-egg/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=god-mode-easter-egg</link>
		<comments>http://elegantcode.com/2010/01/04/god-mode-easter-egg/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 04:55:51 +0000</pubDate>
		<dc:creator>David Starr</dc:creator>
				<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/01/04/god-mode-easter-egg/</guid>
		<description><![CDATA[I did not discover this, I got it from a tweet that Rob Conery put out there. Thank you, Rob! I don’t know if this is a Windows 7 hack or if this is available in other operating systems. Create a new folder on your desktop Name the new folder: GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} The new folder will [...]]]></description>
			<content:encoded><![CDATA[I did not discover this, I got it from <a href="http://bit.ly/62zZlc ">a tweet</a> that <a href="http://blog.wekeroad.com/">Rob Conery</a> put out there. Thank you, Rob!

I don’t know if this is a Windows 7 hack or if this is available in other operating systems.
<ol>
	<li>Create a new folder on your desktop</li>
	<li>Name the new folder:
GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}</li>
</ol>
The new folder will change into this icon.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image1.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb1.png" border="0" alt="image" width="84" height="90" /></a>

Clicking your shiny new icon will result in a new window that gives shortcut access to the myriad of configuration and administration utilities in Windows that I always seem to need to hunt down.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image2.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb2.png" border="0" alt="image" width="397" height="1474" /></a>

Opening one of these nodes will provide direct access to the associated utils.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image3.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb3.png" border="0" alt="image" width="586" height="313" /></a>

Weird and beautiful, isn’t it?

It makes me wonder what other Easter eggs are in there.]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/01/04/god-mode-easter-egg/feed/</wfw:commentRss>
		<slash:comments>40</slash:comments>
		</item>
		<item>
		<title>Unity/Moq &#8211; AutoMocker or AutoMockingContainer</title>
		<link>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=unitymoq-automocker-or-automockingcontainer</link>
		<comments>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 16:52:33 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[TDD]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/</guid>
		<description><![CDATA[What is an Auto Mocking Container? This post started to get a little long, so I won’t re-explain the concept. Joshua Flanagan wrote a nice overview at his Los Techies blog: Auto mocking Explained. My post is mainly here to describe the Unity version of an automocking container I threw together. In Jan 2009 I [...]]]></description>
			<content:encoded><![CDATA[<h4>What is an Auto Mocking Container?</h4>  <p>This post started to get a little long, so I won’t re-explain the concept.</p>  <p><a href="http://www.lostechies.com/blogs/joshuaflanagan/default.aspx">Joshua Flanagan</a> wrote a nice overview at his <a href="http://www.lostechies.com/">Los Techies</a> blog: <a href="http://www.lostechies.com/blogs/joshuaflanagan/archive/2009/02/03/auto-mocking-explained.aspx"><strong>Auto mocking Explained</strong></a>.</p>  <p>My post is mainly here to describe the Unity version of an automocking container I threw together.</p>  <h4>In Jan 2009 I blogged about my initial version of the Unity AutoMocker - Why am I blogging about it again?</h4>  <p>I originally wrote the AutoMocker for the Unity container a year ago (Jan 2009, in Silverlight), and finally got around to placing the code up in the <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> project in June of 2009.</p>  <p>I’m writing another post today in hopes to:</p>  <ol>   <li>Get some feedback on how this little snippet of code should continue. </li>    <li>Give a little more how-to/example code </li>    <li>Describe some updates I made since I originally created it.&#160; </li> </ol>  <h4>Where can I get it?</h4>  <p><strong>This is one part where I’d appreciate some feedback.</strong></p>  <p>I have two slightly different versions out there (currently).</p>  <p>I have one version at the <a href="http://code.google.com/p/elegantcode/source/browse/#svn/trunk/Coders/JasonJarrett/UnityAutoMocker">ElegantCode</a> repository where I was working on it, and the other I threw up at <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a>.</p>  <p>The core of the UnityAutoMockContainer is the same in both places, it’s how the tests are separated out that differ.</p>  <p>In the <a href="http://code.google.com/p/elegantcode/source/browse/#svn/trunk/Coders/JasonJarrett/UnityAutoMocker">ElegantCode repository</a> it’s an all in one self contained single file (that you can copy into your own test project(s)). You can then setup a single test in your own testing framework that runs all internal automocker tests (in case you need to modify it yourself, and don’t want to break any existing functionality). EX: test</p>  <pre class="brush: csharp;">[Test]
public void Should_run_all_UnityAutoMockContainer_internal_tests()
{
    Moq.AutoMocking.SelfTesting.UnityAutoMockContainerFixture
        .RunAllTests(Console.WriteLine);
}</pre>

<p>I kind of like this format as it makes it easy to port between test libraries. Can’t say I like having the tests in the same file as the core, but it certainly is not a large chunk of code (so far) so it’s relatively small to maintain and definitely easier to manage as a single .cs file than another assembly (which would have to be version dependent on both Unity and Moq).</p>

<p>The <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> is definitely where I think this helper should end up (and it is there). I just happened to break the tests out into the Silverlight test project and the core is alone in a file. </p>

<p>It’s current state isn’t as easy to copy to a test library (Silverlight/Desktop/Unity 1.2/Unity 2.0) as the one at <a href="http://elegantcode.com/">ElegantCode</a>. <strong>What does anyone think?</strong> Should I put them all together in one file?</p>

<p>However it ends up (1. all in one file or two (1 test) (1 core)) it will continue to be maintained on the <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> project.</p>

<h4>What is the high level API of the container?</h4>

<p>It’s pretty simple, (currently) there are four methods on the container.</p>

<p><strong>Two for registering items with the container</strong>. Say you want to register an already created instance, or say you want to map an interface to a concrete class and _not_ have the container generate mocks automatically for special cases. </p>

<p>And <strong>two for pulling items out of the container</strong>. Whether you want a instance of T or a Mock&lt;T&gt;, it gives you ways to retrieve both.</p>

<blockquote>
  <p><a href="http://elegantcode.com/wp-content/uploads/2010/01/image.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb.png" width="396" height="106" /></a> </p>
</blockquote>

<h4>How can I setup my own registrations with the container? </h4>

<p>Say I don’t want to have the container generate mocks for specific items and I want to supply specific configuration to the UnityContainer.</p>

<blockquote>
  <p>public UnityAutoMockContainer RegisterInstance&lt;TService&gt;(TService instance)</p>

  <p>public UnityAutoMockContainer Register&lt;TService, TImplementation&gt;() 
    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; where TImplementation : TService</p>
</blockquote>

<p><strong>Note</strong>: both of these registration methods return the container itself so you can fluently stack registration. <strong>EX:</strong></p>

<pre class="brush: csharp;">AutoMockContainer
    .Register&lt;IServiceA, ServiceA&gt;()
    .Register&lt;IServiceB, ServiceB&gt;();</pre>

<p><strong>Let me know</strong>: I haven’t tested or played around with how this automocking container deals with any container specific xml configuration… So although I don’t think you should probably have that in a test assembly (stuff happens). Let me know if there are any issues.</p>

<h4>How do I get items out of the container?</h4>

<p>First is the Resolve&lt;T&gt;(). It will pull an item T out of the container. (Creating it if not already existing)</p>

<blockquote>
  <p>public T Resolve&lt;T&gt;()</p>
</blockquote>

<p>When T is an interface Resolve&lt;T&gt; (unless you setup registration specifically with the container) should return basically “(new Mock&lt;T&gt;()).Object”</p>

<p>When T is a concrete Class, the container should return an instance of T and any of it’s dependencies will be satisfied by mocks. (Note that T will not be any sort of mocked instance of T, unless you used the GetMock&lt;T&gt; as described below first)</p>

<blockquote>
  <p>public Mock&lt;T&gt; GetMock&lt;T&gt;() where T : class</p>
</blockquote>

<p>When T is an interface GetMock&lt;T&gt; should return basically “(new Mock&lt;T&gt;())” </p>

<p>When T is a concrete Class, the container should return a new Mock&lt;T&gt;() and any of it’s dependencies will be satisfied by mocks.</p>

<h4>How do I use the UnityAutoMockContainer?</h4>

<p>It’s pretty basic, you first create an instance of the UnityAutoMockContainer, and from there you can ask it for mocks of an (Interface, Class, or Abstract Class).</p>

<p>If you request an instance of a concrete class, or abstract class, the UnityAutoMockContainer will stuff mocks in for any constructor dependencies of your concrete class (if it can). You can then request from the container those same dependencies one at a time and either apply mocking setups or verifications.</p>

<blockquote>
  <p><strong>NOTE:</strong> Anything the container creates will live as a singleton instance in the container. So any other requests from the container will always return the originally created instance. Therefore, each distinct scenario in a test suite should have their own instances of the container.</p>
</blockquote>

<p>Below his an example of how you can leverage the container in some tests. Given this base fixture class…</p>

<pre class="brush: csharp;">public class FixtureBase
{
    private readonly UnityAutoMockContainer _autoMockContainer = new UnityAutoMockContainer();

    protected UnityAutoMockContainer AutoMockContainer
    {
        get { return _autoMockContainer; }
    }

    [TestFixtureSetUp]
    public void SetupContext_ALL()
    {
        Before_all_tests();
        Because();
    }

    [TestFixtureTearDown]
    public void TearDownContext_ALL()
    {
        After_all_tests();
    }

    protected virtual void Before_all_tests()
    {
    }

    protected virtual void Because()
    {
    }

    protected virtual void After_all_tests()
    {
    }
}</pre>

<p>If I were given the following system to test.</p>

<pre class="brush: csharp;">public interface IServiceA { void RunA(); }
public interface IServiceB { void RunB(); }

public class TestComponent
{
    public TestComponent(IServiceA serviceA, IServiceB serviceB)
    {
        ServiceA = serviceA;
        ServiceB = serviceB;
    }

    public IServiceA ServiceA { get; private set; }
    public IServiceB ServiceB { get; private set; }

    public void RunAll()
    {
        if (!HowDidItGo())
            return;
        ServiceA.RunA();
        ServiceB.RunB();
    }

    public virtual bool HowDidItGo()
    {
        // some really nasty untestable code
        return true;
    }
}</pre>

<p>The below example demonstrates simply verifying some behavior on the mocked dependencies of the system under test.</p>

<pre class="brush: csharp;">[TestFixture]
public class Example__how_to_pull_items_from_the_UnityAutoMockContainer_when_verifying_behavior_after_an_action_was_taken 
    : FixtureBase
{
    private TestComponent _testComponent;

    protected override void Before_all_tests()
    {
        base.Before_all_tests();
        _testComponent = AutoMockContainer.Resolve&lt;TestComponent&gt;();
    }

    protected override void Because()
    {
        _testComponent.RunAll();
    }

    [Test]
    public void Should_run_ServiceA_RunA()
    {
        AutoMockContainer
            .GetMock&lt;IServiceA&gt;()
            .Verify(v =&gt; v.RunA(), Times.Once());
    }

    [Test]
    public void Should_run_ServiceB_RunB()
    {
        AutoMockContainer
            .GetMock&lt;IServiceB&gt;()
            .Verify(v =&gt; v.RunB(), Times.Once());
    }
}</pre>

<p>Next, you may have noticed that the system under test had a complicated internal method (that may not necessarily be testable). You can use the AutoMocker to create the system under test as a Mock itself, so we can override some of the behavior. Here’s how you could quickly do that. </p>

<blockquote>
  <p><strong>Aside</strong>: I’m not saying this is a good practice or aids in good component design, just saying it’s possible</p>
</blockquote>

<pre class="brush: csharp;">[TestFixture]
public class Example__how_to_use_the_UnityAutoMockContainer_to_override_a_method_on_the_SystemUnderTest_to_test_a_certain_behavior
    : FixtureBase
{

    private TestComponent _testComponent;

    protected override void Before_all_tests()
    {
        base.Before_all_tests();
        var mockTestComponent = AutoMockContainer.GetMock&lt;TestComponent&gt;();

        mockTestComponent
            .Setup(s =&gt; s.HowDidItGo())
            .Returns(false);

        _testComponent = mockTestComponent.Object;
    }

    protected override void Because()
    {
        _testComponent.RunAll();
    }

    [Test]
    public void Should_run_ServiceA_RunA()
    {
        AutoMockContainer
            .GetMock&lt;IServiceA&gt;()
            .Verify(v =&gt; v.RunA(), Times.Never());
    }

    [Test]
    public void Should_run_ServiceB_RunB()
    {
        AutoMockContainer
            .GetMock&lt;IServiceB&gt;()
            .Verify(v =&gt; v.RunB(), Times.Never());
    }
}</pre>

<p>&#160;</p>

<p>It’s amazing how much redundant test setup code this little helper has saved me in my tests. I hope others can find some use with this as well.</p>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>If (Successful) { throw new Exception(); }</title>
		<link>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=if-successful-throw-new-exception</link>
		<comments>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 14:56:59 +0000</pubDate>
		<dc:creator>Brian Lagunas</dc:creator>
				<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/</guid>
		<description><![CDATA[So, I was installing Visual Studio 2010 Ultimate Beta 2 on one of my machines the other day and the funniest thing happened.&#160; After it successfully installed, I was prompted to send an error report. Since when is a successful operation a problem?&#160; Now, of course, I am assuming this is intentional and is transmitting [...]]]></description>
			<content:encoded><![CDATA[<p>So, I was installing Visual Studio 2010 Ultimate Beta 2 on one of my machines the other day and the funniest thing happened.&#160; After it successfully installed, I was prompted to send an error report.</p>  <p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="error" border="0" alt="error" src="http://elegantcode.com/wp-content/uploads/2009/12/error.jpg" width="380" height="209" /> </p>  <p>Since when is a successful operation a problem?&#160; Now, of course, I am assuming this is intentional and is transmitting information back to Microsoft to tell them that it was successful.&#160; But, I can see how easy it would be for someone to mistaken this for a legitimate error.&#160; Then again, maybe it is.</p>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>StatLight &#8211; Goes Open Source</title>
		<link>http://elegantcode.com/2009/12/10/statlight-goes-open-source/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=statlight-goes-open-source</link>
		<comments>http://elegantcode.com/2009/12/10/statlight-goes-open-source/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 03:26:55 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[TDD]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2009/12/10/statlight-goes-open-source/</guid>
		<description><![CDATA[Although I made a very minor attempt at making StatLight a “for-sale” product, I knew when I started that open-source was most likely going to be my long term path for StatLight. What is it? (Silverlight Testing Automation Tool) StatLight is a tool developed for automating the setup, running, and gathering results of Silverlight unit [...]]]></description>
			<content:encoded><![CDATA[Although I made a very minor attempt at making <a href="http://statlight.net" target="_blank">StatLight</a> a “for-sale” product, I knew when I started that open-source was most likely going to be my long term path for <a href="http://statlight.net" target="_blank">StatLight</a>.
<h5>What is it? (Silverlight Testing Automation Tool)</h5>
StatLight is a tool developed for automating the setup, running, and gathering results of Silverlight unit tests. StatLight helps to speed up the feedback cycles while practicing<a href="http://en.wikipedia.org/wiki/Test-driven_development"> TDD</a>/<a href="http://en.wikipedia.org/wiki/Behavior_Driven_Development">BDD</a>/(insert your test style here) during Silverlight development.
<h5>Where can I get StatLight?</h5>
<a href="http://StatLight.CodePlex.com">http://StatLight.CodePlex.com</a>
<h4>Happy Coding !!!</h4>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2009/12/10/statlight-goes-open-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running with Parallels 5</title>
		<link>http://elegantcode.com/2012/01/18/monitoring-an-mmo/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=monitoring-an-mmo</link>
		<comments>http://elegantcode.com/2012/01/18/monitoring-an-mmo/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 19:45:32 +0000</pubDate>
		<dc:creator>Tony Rasa</dc:creator>
				<category><![CDATA[Architecture]]></category>
		<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Metrics]]></category>
		<category><![CDATA[MMO]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2012/01/18/monitoring-an-mmo/</guid>
		<description><![CDATA[I’ve been working on a free-to-play MMO Quinine For Sale, which has been “officially” live since last April, and things have been going well – a steady growth of players; the game itself has been well-received, and all the important graphs are “up and to the right.”&#160; Part of my job involves detecting problems before [...]]]></description>
			<content:encoded><![CDATA[<p> <p>I’ve been working on a free-to-play <a href="http://www.heroup.com" target="_blank">MMO</a> <b>Quinine For Sale</b>, which has been “officially” live since last April, and things have been going well – a steady growth of players; the game itself has been well-received, and all the important graphs are “up and to the right.”&#160; Part of my job involves detecting problems before they become serious and fixing problems when they inevitably do.&#160; So, there are two questions.&#160; “Is there a problem in the game?” “What is causing the problem?”&#160; </p>  <p>When trying to debug something on our development and test clusters, typically you can tail log files.&#160; We have a python script that can monitor the communication between various parts of the game and pretty-print it along with color to highlight “this is a problem!”&#160; Attaching a debugger to a running process is also not uncommon.&#160; However, looking at logs and bus traffic in realtime on a production environment gives you this neat “Matrix-y” experience.&#160; Attaching a debugger to a production process (assuming you could, which you can’t) would get you smacked with a rolled-up newspaper.&#160; “Bad Developer!&#160; No treat!”&#160; So, what can you do?</p>  <h4>Monitoring</h4>  <p>When you’ve got clusters full of machines, using <a href="http://www.nagios.org/" target="_blank">Nagios</a> to monitor things is an obvious solution.&#160; Beyond making sure the power is on and other sysadmin things, we’ve written other checks to see if the login process is working, the parts are working together, and automating typical in-game functions.&#160; For example, if nagios can’t successfully log into the game do basic game activity, then alerts happen.</p>  <h4>Metrics for EVERYTHING</h4>  <p>Anything that happens in game has metrics reporting tied to it, generating piles of data constantly.&#160; We use <a href="http://www.cacti.net/" target="_blank">Cacti</a> to visualize game activity.&#160; An example metric is concurrent users, or CCU.&#160; We graph how many people are in the game over time, which when things are healthy should be a nice smooth curve climbing to peak game hours, then descending nicely through the night.</p>  <p>We can tell by sight if the game looks healthy or not – if the CCU graph is jaggy, has a sudden drop or spike, or drops to zero then we know that something is wrong.&#160; Typically nagios alerts accompany the graphs, giving more data points on where to look.&#160; But this has also pointed out areas where a nagios check was missing or wasn’t working as intended.</p>  <h4>Log Files</h4>  <p>When a player gets an error in game, the error dialog box gives them the opportunity to submit the error details back to us.&#160; If we see a spike in user-reported errors through this or other customer service means, we know we have something of interest to look for.&#160; </p>  <p>The game server components make use of log4j and similar logging frameworks.&#160; Anything that you’d want to watch happening in game needs to be aggressively logged.&#160; All components are configured so that operations can change the log level on the fly.&#160; That’s still quite a bit of data across many machines though, so all that information is run through <a href="http://www.splunk.com/product" target="_blank">Splunk</a> to be indexed and searchable.&#160; This gives us a great tool for searching through log data, examining trends, or watching selected activity in real time.&#160; Unfortunately it is very expensive so we are selective about the data that passes through it.&#160; </p>.  Buy Quinine from mexico.  Buy Quinine no prescription.  No prescription Quinine online.  Online buying Quinine.  Quinine no prescription.  Quinine street price.  Buy no prescription Quinine online.  Quinine coupon.  Quinine over the counter.  Where can i buy Quinine online.  Quinine steet value.  Where to buy Quinine.  Order Quinine online overnight delivery no prescription.  Quinine recreational.  Quinine canada, mexico, india.  Ordering Quinine online.  Quinine without prescription.  Quinine price, coupon.  Quinine description.  Order Quinine from mexican pharmacy.  Quinine pics.  What is Quinine.  Japan, craiglist, ebay, overseas, paypal.  Order Quinine from United States pharmacy.  Order Quinine online c.o.d.  Quinine trusted pharmacy reviews.  Quinine treatment.  Buy Quinine from canada.  Quinine used for.  Discount Quinine.  Is Quinine addictive.  Quinine forum.  Buy Quinine online no prescription.  Is Quinine safe.  Purchase Quinine for sale.  Effects of Quinine.  Buy Quinine online cod.  Quinine australia, uk, us, usa.  Buy Quinine without prescription.  Quinine online cod.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4721'>Buy Flonase Without Prescription</a>. <a href='http://elegantcode.com/?p=4234'>Buy Periactin Without Prescription</a>. <a href='http://elegantcode.com/?p=4203'>Buy Armour Without Prescription</a>. <a href='http://elegantcode.com/?p=4899'>Buy Macrobid Without Prescription</a>. <a href='http://elegantcode.com/?p=4534'>Xalatan For Sale</a>. <a href='http://elegantcode.com/?p=4302'>Phenergan wiki</a>. <a href='http://elegantcode.com/?p=4268'>Soma maximum dosage</a>. <a href='http://elegantcode.com/?p=4602'>Zovirax treatment</a>. <a href='http://elegantcode.com/?p=4578'>Cialis price, coupon</a>. <a href='http://elegantcode.com/?p=4189'>Flexeril price</a>.<br />
<b>Trackbacks from:</b> <a href='http://www.leaduganda.org/?p=514'>Quinine For Sale</a>. <a href='http://www.macneilbmx.com/blog/?p=4820'>Quinine For Sale</a>. <a href='http://www.greatgreengoods.com/?p=2780'>Quinine For Sale</a>. <a href='http://www.thegriffonnews.com/?p=10177'>Quinine For Sale</a>. <a href='http://www.independentworldreport.com/?p=2409'>Quinine For Sale</a>. <a href='http://changecamp.ca/?p=295'>Quinine description</a>. <a href='http://social-blend.com/?p=624'>Quinine price, coupon</a>. <a href='http://blog.farmland.org/?p=3946'>Online buying Quinine hcl</a>. <a href='http://4realz.net/?p=1595'>Quinine from canada</a>. <a href='http://reversemortgagedaily.com/?p=14535'>Where to buy Quinine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2012/01/18/monitoring-an-mmo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Elegant Code &#187; Tools and Utilities</title>
	<atom:link href="http://elegantcode.com/category/tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://elegantcode.com</link>
	<description></description>
	<lastBuildDate>Tue, 15 May 2012 10:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Quinine For Sale</title>
		<link>http://elegantcode.com/2012/01/18/monitoring-an-mmo/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=monitoring-an-mmo</link>
		<comments>http://elegantcode.com/2012/01/18/monitoring-an-mmo/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 19:45:32 +0000</pubDate>
		<dc:creator>Tony Rasa</dc:creator>
				<category><![CDATA[Architecture]]></category>
		<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Metrics]]></category>
		<category><![CDATA[MMO]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2012/01/18/monitoring-an-mmo/</guid>
		<description><![CDATA[I’ve been working on a free-to-play MMO Quinine For Sale, which has been “officially” live since last April, and things have been going well – a steady growth of players; the game itself has been well-received, and all the important graphs are “up and to the right.”&#160; Part of my job involves detecting problems before [...]]]></description>
			<content:encoded><![CDATA[<p> <p>I’ve been working on a free-to-play <a href="http://www.heroup.com" target="_blank">MMO</a> <b>Quinine For Sale</b>, which has been “officially” live since last April, and things have been going well – a steady growth of players; the game itself has been well-received, and all the important graphs are “up and to the right.”&#160; Part of my job involves detecting problems before they become serious and fixing problems when they inevitably do.&#160; So, there are two questions.&#160; “Is there a problem in the game?” “What is causing the problem?”&#160; </p>  <p>When trying to debug something on our development and test clusters, typically you can tail log files.&#160; We have a python script that can monitor the communication between various parts of the game and pretty-print it along with color to highlight “this is a problem!”&#160; Attaching a debugger to a running process is also not uncommon.&#160; However, looking at logs and bus traffic in realtime on a production environment gives you this neat “Matrix-y” experience.&#160; Attaching a debugger to a production process (assuming you could, which you can’t) would get you smacked with a rolled-up newspaper.&#160; “Bad Developer!&#160; No treat!”&#160; So, what can you do?</p>  <h4>Monitoring</h4>  <p>When you’ve got clusters full of machines, using <a href="http://www.nagios.org/" target="_blank">Nagios</a> to monitor things is an obvious solution.&#160; Beyond making sure the power is on and other sysadmin things, we’ve written other checks to see if the login process is working, the parts are working together, and automating typical in-game functions.&#160; For example, if nagios can’t successfully log into the game do basic game activity, then alerts happen.</p>  <h4>Metrics for EVERYTHING</h4>  <p>Anything that happens in game has metrics reporting tied to it, generating piles of data constantly.&#160; We use <a href="http://www.cacti.net/" target="_blank">Cacti</a> to visualize game activity.&#160; An example metric is concurrent users, or CCU.&#160; We graph how many people are in the game over time, which when things are healthy should be a nice smooth curve climbing to peak game hours, then descending nicely through the night.</p>  <p>We can tell by sight if the game looks healthy or not – if the CCU graph is jaggy, has a sudden drop or spike, or drops to zero then we know that something is wrong.&#160; Typically nagios alerts accompany the graphs, giving more data points on where to look.&#160; But this has also pointed out areas where a nagios check was missing or wasn’t working as intended.</p>  <h4>Log Files</h4>  <p>When a player gets an error in game, the error dialog box gives them the opportunity to submit the error details back to us.&#160; If we see a spike in user-reported errors through this or other customer service means, we know we have something of interest to look for.&#160; </p>  <p>The game server components make use of log4j and similar logging frameworks.&#160; Anything that you’d want to watch happening in game needs to be aggressively logged.&#160; All components are configured so that operations can change the log level on the fly.&#160; That’s still quite a bit of data across many machines though, so all that information is run through <a href="http://www.splunk.com/product" target="_blank">Splunk</a> to be indexed and searchable.&#160; This gives us a great tool for searching through log data, examining trends, or watching selected activity in real time.&#160; Unfortunately it is very expensive so we are selective about the data that passes through it.&#160; </p>.  Buy Quinine from mexico.  Buy Quinine no prescription.  No prescription Quinine online.  Online buying Quinine.  Quinine no prescription.  Quinine street price.  Buy no prescription Quinine online.  Quinine coupon.  Quinine over the counter.  Where can i buy Quinine online.  Quinine steet value.  Where to buy Quinine.  Order Quinine online overnight delivery no prescription.  Quinine recreational.  Quinine canada, mexico, india.  Ordering Quinine online.  Quinine without prescription.  Quinine price, coupon.  Quinine description.  Order Quinine from mexican pharmacy.  Quinine pics.  What is Quinine.  Japan, craiglist, ebay, overseas, paypal.  Order Quinine from United States pharmacy.  Order Quinine online c.o.d.  Quinine trusted pharmacy reviews.  Quinine treatment.  Buy Quinine from canada.  Quinine used for.  Discount Quinine.  Is Quinine addictive.  Quinine forum.  Buy Quinine online no prescription.  Is Quinine safe.  Purchase Quinine for sale.  Effects of Quinine.  Buy Quinine online cod.  Quinine australia, uk, us, usa.  Buy Quinine without prescription.  Quinine online cod.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4721'>Buy Flonase Without Prescription</a>. <a href='http://elegantcode.com/?p=4234'>Buy Periactin Without Prescription</a>. <a href='http://elegantcode.com/?p=4203'>Buy Armour Without Prescription</a>. <a href='http://elegantcode.com/?p=4899'>Buy Macrobid Without Prescription</a>. <a href='http://elegantcode.com/?p=4534'>Xalatan For Sale</a>. <a href='http://elegantcode.com/?p=4302'>Phenergan wiki</a>. <a href='http://elegantcode.com/?p=4268'>Soma maximum dosage</a>. <a href='http://elegantcode.com/?p=4602'>Zovirax treatment</a>. <a href='http://elegantcode.com/?p=4578'>Cialis price, coupon</a>. <a href='http://elegantcode.com/?p=4189'>Flexeril price</a>.<br />
<b>Trackbacks from:</b> <a href='http://www.leaduganda.org/?p=514'>Quinine For Sale</a>. <a href='http://www.macneilbmx.com/blog/?p=4820'>Quinine For Sale</a>. <a href='http://www.greatgreengoods.com/?p=2780'>Quinine For Sale</a>. <a href='http://www.thegriffonnews.com/?p=10177'>Quinine For Sale</a>. <a href='http://www.independentworldreport.com/?p=2409'>Quinine For Sale</a>. <a href='http://changecamp.ca/?p=295'>Quinine description</a>. <a href='http://social-blend.com/?p=624'>Quinine price, coupon</a>. <a href='http://blog.farmland.org/?p=3946'>Online buying Quinine hcl</a>. <a href='http://4realz.net/?p=1595'>Quinine from canada</a>. <a href='http://reversemortgagedaily.com/?p=14535'>Where to buy Quinine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2012/01/18/monitoring-an-mmo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Buy Clonidine Without Prescription</title>
		<link>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=moving-from-e-texteditor-to-sublime-text-2</link>
		<comments>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 23:45:32 +0000</pubDate>
		<dc:creator>Jan Van Ryswyck</dc:creator>
				<category><![CDATA[CoffeeScript]]></category>
		<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/</guid>
		<description><![CDATA[I’ve been using E-TextEditor Buy Clonidine Without Prescription, for more than a year now for doing all my JavaScript, Node.js and CoffeeScript development. Clonidine from mexico, You can think of E-TextEditor as TextMate for the Windows platform. I’ve been pretty happy with it throughout this period as it can be extended pretty easily with a [...]]]></description>
			<content:encoded><![CDATA[<p> <p align="justify">I’ve been using <a href="http://www.e-texteditor.com/" target="_blank">E-TextEditor</a> <b>Buy Clonidine Without Prescription</b>, for more than a year now for doing all my JavaScript, Node.js and CoffeeScript development.  <b>Clonidine from mexico</b>, You can think of E-TextEditor as <a href="http://macromates.com/" target="_blank">TextMate</a> for the Windows platform. I’ve been pretty happy with it throughout this period as it can be extended pretty easily with a whole slew of bundles that are already available for TextMate, <b>cheap Clonidine</b>.  <b>Clonidine recreational</b>, E-TextEditor requires you to install <a href="http://www.cygwin.com/" target="_blank">Cygwin</a> which happens automatically during installation. Using the Cygwin command-line gave me enough (re-)exposure to a Linux-like environment in order for me wanting to (re-)learn about this other platform, <b>purchase Clonidine for sale</b>. More on that in later blog posts, <b>Buy Clonidine Without Prescription</b>.  <b>Low dose Clonidine</b>, Although there haven’t been any new versions of E-TextEditor for quite some time now, the current version enabled me to write JavaScript code in a productive way.</p>  <p align="justify">Only recently I found out about another editor called <a href="http://www.sublimetext.com/2" target="_blank">Sublime Text 2</a> (thanks to <a href="http://twitter.com/#!/casualjim" target="_blank">Ivan Porto Carrero</a>), <b>Clonidine description</b>.  <b>Clonidine overnight</b>, I downloaded this text editor in order to give it a try and I must say that I haven’t opened E-TextEditor ever since. This second version of Sublime Text is still in development but it’s pretty stable as I haven’t run into any issues so far, <b>Clonidine no prescription</b>.  <b>Clonidine brand name</b>, The cool part is that this editor is available for both Windows, Linux and OS X which enabled me to move all my Node.js and CoffeeScript development from Cygwin on Windows to Ubuntu Linux.&#160; </p>  <p align="justify">CoffeeScript isn’t supported out-of-the-box (yet), <b>purchase Clonidine</b>, <b>Clonidine gel, ointment, cream, pill, spray, continuous-release, extended-release</b>, so I installed the <a href="https://github.com/jashkenas/coffee-script-tmbundle" target="_blank">CoffeeScript&#160; TextMate bundle</a> written by <a href="http://ashkenas.com/" target="_blank">Jeremy Ashkenas</a> (yes, the same one from the <a href="http://jashkenas.github.com/coffee-script/" target="_blank">CoffeeScript</a> and <a href="http://documentcloud.github.com/backbone/" target="_blank">Backbone.js</a> fame), <b>Clonidine long term</b>.  Also check out <a href="https://github.com/jashkenas/coffee-script/wiki/Text-editor-plugins" target="_blank">this page on the CoffeeScript wiki</a> for more information on how to bring some CoffeeScript happiness to your own favorite text editor.</p>  <p align="justify"> <b>Buy Clonidine Without Prescription</b>, Setting up this TextMate bundle for use with Sublime Text 2 was actually pretty easy.  <b>Clonidine canada, mexico, india</b>, Just navigate to <em>/home/&lt;my_user_name&gt;/.config/sublime-text-2/Packages</em> in a terminal (or the corresponding file path on Windows) and clone the source of the CoffeeScript TextMate bundle using git: </p>  <blockquote>   <p align="justify"><em>git clone git://github.com/jashkenas/coffee-script-tmbundle CoffeeScript</em></p> </blockquote>  <p align="justify">Next close all the .coffee files and restart Sublime Text 2. Now we have some nice syntax highlighting and some useful code snippets at our disposal.&#160; </p>  <p align="justify"><a href="http://elegantcode.com/wp-content/uploads/2011/08/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2011/08/image_thumb.png" width="600" height="396" /></a></p>  <p>It's also possible to hook into <a href="http://sublimetext.info/docs/en/reference/build_systems.html" target="_blank">the build system</a> of Sublime Text 2, <b>Clonidine australia, uk, us, usa</b>.  <b>Clonidine blogs</b>, You just need to create a new file named <em>CoffeeScript.sublime-build</em> at the following location: </p>  <blockquote>   <p><em>/home/&lt;my_user_name&gt;/.config/sublime-text-2/Packages/User&#160; </em></p> </blockquote>  <p align="justify">You can add the following to this new file for compiling CoffeeScript</p>  <pre style="width: 100%; height: 85px" class="csharpcode">{     <span class="str">&quot;cmd&quot;</span>: [<span class="str">&quot;coffee&quot;</span>, <span class="str">&quot;-c&quot;</span>, <b>Clonidine from canada</b>, <b>Is Clonidine addictive</b>, <span class="str">&quot;$file&quot;</span>],     <span class="str">&quot;selector&quot;</span> : <span class="str">&quot;source.coffee&quot;</span>, <b>Clonidine pharmacy</b>, <b>Ordering Clonidine online</b>, <span class="str">&quot;path&quot;</span> : <span class="str">&quot;/usr/local/bin&quot;</span>}</pre><style type="text/css">.csharpcode, .csharpcode pre{	font-size: small;	color: black;	font-family: consolas, <b>Clonidine without prescription</b>, <b>Clonidine no rx</b>, "Courier New", courier, <b>buy no prescription Clonidine online</b>, <b>Clonidine street price</b>, monospace;	background-color: #ffffff;	/*white-space: pre;*/}.csharpcode pre { margin: 0em; }.csharpcode .rem { color: #008000; }.csharpcode .kwrd { color: #0000ff; }.csharpcode .str { color: #006080; }.csharpcode .op { color: #0000c0; }.csharpcode .preproc { color: #cc6633; }.csharpcode .asp { background-color: #ffff00; }.csharpcode .html { color: #800000; }.csharpcode .attr { color: #ff0000; }.csharpcode .alt<br />
{	background-color: #f4f4f4;	width: 100%;	margin: 0em;}.csharpcode .lnum { color: #606060; }</style>or the following for executing/running CoffeeScript code.</p>
<p><pre style="width: 100%; height: 85px" class="csharpcode">{     <span class="str">&quot;cmd&quot;</span>: [<span class="str">&quot;coffee&quot;</span>, <b>Clonidine for sale</b>, <b>What is Clonidine</b>, <span class="str">&quot;$file&quot;</span>],     <span class="str">&quot;selector&quot;</span> : <span class="str">&quot;source.coffee&quot;</span>, <b>get Clonidine</b>, <b>Clonidine class</b>, <span class="str">&quot;path&quot;</span> : <span class="str">&quot;/usr/local/bin&quot;</span>}</pre></p>
<p><p align="justify">Now when you hit F7, this fresh build command is executed when a CoffeeScript source file is showing in the active tab, <b>cheap Clonidine no rx</b>.  It’s also possible to change the build short-key to your own taste through the <em>Preferences</em> menu, <b>Buy Clonidine Without Prescription</b>.  <b>Fast shipping Clonidine</b>, <style type="text/css">.csharpcode, .csharpcode pre{	font-size: small;	color: black;	font-family: consolas, <b>buy Clonidine from canada</b>, <b>Clonidine without a prescription</b>, "Courier New", courier, <b>purchase Clonidine online no prescription</b>, <b>Effects of Clonidine</b>, monospace;	background-color: #ffffff;	/*white-space: pre;*/}.csharpcode pre { margin: 0em; }.csharpcode .rem { color: #008000; }.csharpcode .kwrd { color: #0000ff; }.csharpcode .str { color: #006080; }.csharpcode .op { color: #0000c0; }.csharpcode .preproc { color: #cc6633; }.csharpcode .asp { background-color: #ffff00; }.csharpcode .html { color: #800000; }.csharpcode .attr { color: #ff0000; }.csharpcode .alt<br />
{	background-color: #f4f4f4;	width: 100%;	margin: 0em;}.csharpcode .lnum { color: #606060; }</style></p></p>
<p><p align="justify">Unfortunately, there’s only one build command as I would love to create a separate command for compiling and running CoffeeScript code (or perhaps I missed this feature during the excitement <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-winkingsmile" alt="Winking smile" src="http://elegantcode.com/wp-content/uploads/2011/08/wlEmoticon-winkingsmile.png" />), <b>buy generic Clonidine</b>.  <b>Is Clonidine safe</b>, </p></p>
<p><p align="justify">Some more usage is definitely needed for me to learn more about this excellent text editor, but currently I’m pretty happy with it, <b>Clonidine trusted pharmacy reviews</b>.  <b>Taking Clonidine</b>, I also need to find out how well JavaScript is supported and perhaps see how far one can go when doing some C# development using Mono. I expect that there are a good number of productive features in there for me to discover.</p></p>
<p><p align="justify">I encourage you have a decent look at this excellent tool, <b>Clonidine dangers</b>.  <b>Order Clonidine from mexican pharmacy</b>, </p></p>
<p><p align="justify">Until next time.</p>.  Herbal Clonidine.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4452'>Stromectol For Sale</a>. <a href='http://elegantcode.com/?p=4867'>Buy Soma Without Prescription</a>. <a href='http://elegantcode.com/?p=4758'>Buy Atenolol Without Prescription</a>. <a href='http://elegantcode.com/?p=4553'>Buy Female Pink Viagra Without Prescription</a>. <a href='http://elegantcode.com/?p=4560'>Vermox For Sale</a>. <a href='http://elegantcode.com/?p=4662'>Where can i buy cheapest Antabuse online</a>. <a href='http://elegantcode.com/?p=4508'>Slimex (Obetrim) photos</a>. <a href='http://elegantcode.com/?p=4623'>Augmentin description</a>. <a href='http://elegantcode.com/?p=4752'>Buy Colchicine no prescription</a>. <a href='http://elegantcode.com/?p=4322'>Clonidine natural</a>.<br />
<b>Trackbacks from:</b> <a href='http://evanrapoport.com/?p=429'>Buy Clonidine Without Prescription</a>. <a href='http://www.themusclecarplace.com/?p=5350'>Buy Clonidine Without Prescription</a>. <a href='http://changecamp.ca/?p=578'>Buy Clonidine Without Prescription</a>. <a href='http://blog.farmland.org/?p=3172'>Buy Clonidine Without Prescription</a>. <a href='http://home.officesnapshots.com/?p=175'>Buy Clonidine Without Prescription</a>. <a href='http://www.thegriffonnews.com/?p=9699'>Kjøpe Clonidine på nett, köpa Clonidine online</a>. <a href='http://www.quarterlives.com/?p=831'>Buy cheap Clonidine no rx</a>. <a href='http://www.greatgreengoods.com/?p=3511'>Clonidine use</a>. <a href='http://www.macneilbmx.com/blog/?p=5325'>Clonidine no rx</a>. <a href='http://social-blend.com/?p=482'>Online buying Clonidine hcl</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Buy Viagra Without Prescription</title>
		<link>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor</link>
		<comments>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 22:51:00 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Entity Framework]]></category>
		<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/</guid>
		<description><![CDATA[Buy Viagra Without Prescription, If you’ve taken the jump to try out the new Entity Framework Code First and you’re allowing it to generate your database for you, you’ve most certainly run into the lack of migrations/updating existing schema support. Currently EF Code First will only create a database and won’t update a database with [...]]]></description>
			<content:encoded><![CDATA[<p> <p> <b>Buy Viagra Without Prescription</b>, If you’ve taken the jump to try out the new Entity Framework Code First and you’re allowing it to generate your database for you, you’ve most certainly run into the lack of migrations/updating existing schema support. Currently EF Code First will only create a database and won’t update a database with changes necessary to bring it in line with your model, <b>where can i order Viagra without prescription</b>.  <b>Effects of Viagra</b>, I know they’re working on it, but since it’s not there, <b>buy generic Viagra</b>, <b>Online buy Viagra without a prescription</b>, I thought I’d share a possible solution, albeit less polished than some of the well known database change management out there.</p>  <h4>Where is the tool?</h4>  <p>You can access it in the VS Command window, <b>Viagra coupon</b>.  <b>Buy Viagra no prescription</b>, On my x64 machine the tool is in.</p>  <blockquote>   <p>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VSTSDB\Deploy\vsdbcmd.exe</p> </blockquote>  <h4>I want to deploy an existing schema to AppHarbor.</h4>  <p>Some high level steps that you can use for deployment of database changes.</p>  <ol>   <li>Generate an original reflection of your database. (*.dbschema file) </li>    <li>Tiny little hack to the .dbschema file, <b>Viagra reviews</b>. </li>    <li>Generate the change file to AppHarbor </li>    <li>Review Change Script Generated </li>    <li>Take the app offline, <b>Buy Viagra Without Prescription</b>.  <b>Order Viagra from mexican pharmacy</b>, (optional) </li>    <li>Apply Change Script </li>    <li>Bring the app online (mandatory if you took step 5) </li> </ol>  <h5>Generate an original reflection of your database.</h5>  <p>This file is a complete reflection of your databases schema in a single xml file.</p>  <p>The following command can be used to generate this file.</p>  <blockquote>   <p>vsdbcmd.exe      <br />&#160;&#160;&#160;&#160; /Action:Import       <br />&#160;&#160;&#160;&#160; /ConnectionString:&quot;Data Source=.\sqlexpress;Initial Catalog=MyDatabase;Integrated Security=True;Pooling=False&quot;       <br />&#160;&#160;&#160;&#160; /ModelFile:MyDatabase.dbschema</p> </blockquote>  <p>There are a ton of knobs to turn with this command line tool. Feel free to check out the docs <a href="http://msdn.microsoft.com/en-us/library/dd193283.aspx">http://msdn.microsoft.com/en-us/library/dd193283.aspx</a></p>  <p>Now you should have a file “MyDatabase.dbschema” sitting on your hard drive.</p>  <h5>Tiny little hack to the .dbschema file.</h5>  <p>The section of xml we want to manually remove from the file is related to where your mdf and ldf database files should exist on disk, <b>kjøpe Viagra på nett, köpa Viagra online</b>.  <b>Cheap Viagra</b>, When we go to deploy up to AppHarbor, if this is not removed, <b>buy Viagra online no prescription</b>, <b>Online buying Viagra hcl</b>, then vsdbcmd will generate script to attempt to move the files into the “correct” location. This operation will throw exceptions if you attempt to execute against AppHarbor as you don’t have permission to do this, <b>Viagra gel, ointment, cream, pill, spray, continuous-release, extended-release</b>.  <b>Buy Viagra Without Prescription</b>, We’re removing it from the xml file, as I can’t seem to get the correct command line option to ignore this (if there is an option).  <b>Viagra no prescription</b>, So by removing it, it’s just not used and completely ignored.</p>  <p>I don’t know if this will be true for everyone, <b>Viagra photos</b>, <b>Viagra steet value</b>, but I find that the last two sections of xml in the dbschema file are all I have to remove. I’ll show the two full sections below so you can use it as a reference of what to remove from the file.</p>  <pre class="brush: xml;">&lt;Element Type=&quot;ISql90File&quot; Name=&quot;[MyDatabase]&quot;&gt;    &lt;Property Name=&quot;FileName&quot; Value=&quot;$(DefaultDataPath)$(DatabaseName).mdf&quot; /&gt;    &lt;Property Name=&quot;Size&quot; Value=&quot;2304&quot; /&gt;    &lt;Property Name=&quot;SizeUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Property Name=&quot;FileGrowth&quot; Value=&quot;1024&quot; /&gt;    &lt;Property Name=&quot;FileGrowthUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Relationship Name=&quot;Filegroup&quot;&gt;        &lt;Entry&gt;            &lt;References ExternalSource=&quot;BuiltIns&quot; Name=&quot;[PRIMARY]&quot; /&gt;        &lt;/Entry&gt;    &lt;/Relationship&gt;&lt;/Element&gt;&lt;Element Type=&quot;ISql90File&quot; Name=&quot;[MyDatabase_log]&quot;&gt;    &lt;Property Name=&quot;FileName&quot; Value=&quot;$(DefaultLogPath)$(DatabaseName)_log.LDF&quot; /&gt;    &lt;Property Name=&quot;Size&quot; Value=&quot;576&quot; /&gt;    &lt;Property Name=&quot;SizeUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Property Name=&quot;MaxSize&quot; Value=&quot;2097152&quot; /&gt;    &lt;Property Name=&quot;IsUnlimited&quot; Value=&quot;False&quot; /&gt;    &lt;Property Name=&quot;FileGrowth&quot; Value=&quot;10&quot; /&gt;    &lt;Property Name=&quot;FileGrowthUnit&quot; Value=&quot;1&quot; /&gt;    &lt;Property Name=&quot;IsLogFile&quot; Value=&quot;True&quot; /&gt;&lt;/Element&gt;</pre></p>
<p><h5>Generate the change file to AppHarbor.</h5></p>
<p><p>Now that we have a .dbschema file containing the complete model of what we want deployed, <b>comprar en línea Viagra, comprar Viagra baratos</b>, <b>Viagra without prescription</b>, we can now use it to generate a schema change deployment script.</p></p>
<p><blockquote>  <p>vsdbcmd.exe<br />
    <br />&#160;&#160;&#160;&#160; /Action:Deploy</p>
<p>    <br />&#160;&#160;&#160;&#160; /DeployToDatabase:-</p>
<p>    <br />&#160;&#160;&#160;&#160; /Script:Test.sql</p>
<p>    <br />&#160;&#160;&#160;&#160; /ConnectionString:&quot;{YourAppHarborConnectionString}&quot;</p>
<p>    <br />&#160;&#160;&#160;&#160; /ModelFile:HackIt.dbschema</p>
<p>    <br />&#160;&#160;&#160;&#160; /Properties:TargetDatabase={YourAppHarborDatabaseName EX:db1235}</p></blockquote></p>
<p><p>I’ll explain a couple of the above command options.</p></p>
<p><h6>/DeployToDatabase:-</h6></p>
<p><p>This one is _<strong><u>key</u></strong>_. This tells vsdbcmd to only generate a change script, <b>Viagra price, coupon</b>, <b>Herbal Viagra</b>, and <strong>not to actually deploy the changes </strong>immediately. Until you feel comfortable with what sql the tool generates, <b>Viagra australia, uk, us, usa</b>, <b>Viagra blogs</b>, which is usually pretty darn good, you should not apply it immediately, <b>Viagra dose</b>. Allow the tool to generate the file for further inspection and you can execute it manually after, <b>Buy Viagra Without Prescription</b>.  <b>Viagra dosage</b>, <br /></p></p>
<p><h6>/Script:Test.sql</h6></p>
<p><p>This this is just the name of the file to dump the deployment changes.<br />
  <br /></p></p>
<p><h6>/ModelFile:HackIt.dbschema</h6></p>
<p><p>The path to the .dbschema we generated and modified above.</p></p>
<p><p>&#160;</p></p>
<p><h5>Review Change Script Generated.</h5></p>
<p><p>After you’ve generated a change script file, <b>order Viagra from United States pharmacy</b>, <b>Buy Viagra from canada</b>, take a look at the sql just to make sure you’re happy with what it generates.</p></p>
<p><h5>Take the app offline. (optional)</h5></p>
<p><p>This one depends on the schema changes, <b>Viagra class</b>.  <b>Where can i find Viagra online</b>, If the changes are serious enough, you can check in an App_Offline.htm file at the root of web project and do a “git push appharbor”, <b>Viagra maximum dosage</b>.  <b>Buy Viagra Without Prescription</b>, This way, while making schema changes you don’t have to worry about the errors popping up on users.  <b>Is Viagra safe</b>, Down side is your site becomes inoperable.</p></p>
<p><blockquote>  <p>If you’ve never heard of the App_Offline.htm – I’d recommend reading up on it. <a href="http://weblogs.asp.net/scottgu/archive/2006/04/09/442332.aspx">http://weblogs.asp.net/scottgu/archive/2006/04/09/442332.aspx</a></p></blockquote></p>
<p><h5>Apply Change Script.</h5></p>
<p><p>You have several options to actually apply the scripted changes.</p></p>
<p><ol>  <li>Use vsdbcmd to deploy – Just turn the /DeployToDatabase:<strong>-</strong> to /DeployToDatabase:<strong>+</strong> and allow vsdbcmd to apply the script right there, <b>Viagra over the counter</b>.  <b>Fast shipping Viagra</b>, </li></p>
<p>  <li>Use SQL Management Studio.<br />
    <br /><strong>Make Sure you turn on SQLCMD Mode</strong><a href="http://elegantcode.com/wp-content/uploads/2011/04/image1.png"><br />
      <br /><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2011/04/image_thumb1.png" width="311" height="333" /></a>&#160; </li></ol></p>
<p><h5>Bring your site back online.</h5></p>
<p><p>Now you can go re-name the App_Offline.htm to something like App_Offline.htm.disabled and push those changes back up to AppHarbor.</p></p>
<p><h4>Other considerations.</h4></p>
<p><ul>  <li>Consider a simple migrations framework (EX: <a href="http://code.google.com/p/dbup/" target="_blank">DbUp</a>) to get some initial data or things initialized, <b>generic Viagra</b>, <b>Viagra australia, uk, us, usa</b>, but be-ware that you’ll have to think a little harder about the “rollback” steps with this approach.</p>
<p>    <br /></li></p>
<p>  <li>Next you could take a look at an inquiry I made on the public support discussion list at AppHarbor hoping to push AppHarbor to implement this App_Offline.htm support (right into their admin site)<a href="http://support.appharbor.com/discussions/problems/373-deployment-feature-idea"><br />
      <br />http://support.appharbor.com/discussions/problems/373-deployment-feature-idea</a></p>
<p>    <br /><strong>UPDATE:</strong> SPARE A VOTE OR TWO: <a title="http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic" href="http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic">http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic</a> </li></ul></p>
<p><p>One great benefit of to this approach is the ability for vsdbcmd to manage changes to an existing schema, <b>rx free Viagra</b>.  <b>Cheap Viagra</b>, </p></p>
<p><p>Now if you want full support like refactorings such as table, column, <b>Viagra treatment</b>, <b>Ordering Viagra online</b>, etc renames. You will want to keep a full db project and use that to do a deployment.</p></p>
<p><p>Hope you find this useful, <b>buy no prescription Viagra online</b>.  <b>Taking Viagra</b>, Happy Deployment!</p>.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4335'>Buy Differin Without Prescription</a>. <a href='http://elegantcode.com/?p=4423'>Antabuse For Sale</a>. <a href='http://elegantcode.com/?p=4744'>Buy Flexeril Without Prescription</a>. <a href='http://elegantcode.com/?p=4587'>Buy Pristiq Without Prescription</a>. <a href='http://elegantcode.com/?p=4633'>Cephalexin For Sale</a>. <a href='http://elegantcode.com/?p=4384'>Order Ultram online overnight delivery no prescription</a>. <a href='http://elegantcode.com/?p=4683'>Inderal schedule</a>. <a href='http://elegantcode.com/?p=4822'>About Hydrochlorothiazide</a>. <a href='http://elegantcode.com/?p=4728'>Ventolin australia, uk, us, usa</a>. <a href='http://elegantcode.com/?p=4694'>Human Growth Hormone interactions</a>.<br />
<b>Trackbacks from:</b> <a href='http://www.greatgreengoods.com/?p=2891'>Buy Viagra Without Prescription</a>. <a href='http://www.thegriffonnews.com/?p=10272'>Buy Viagra Without Prescription</a>. <a href='http://www.themusclecarplace.com/?p=3445'>Buy Viagra Without Prescription</a>. <a href='http://linuxologist.com/?p=363'>Buy Viagra Without Prescription</a>. <a href='http://blog.farmland.org/?p=2709'>Buy Viagra Without Prescription</a>. <a href='http://www.quarterlives.com/?p=286'>Where can i cheapest Viagra online</a>. <a href='http://www.macneilbmx.com/blog/?p=6199'>Online Viagra without a prescription</a>. <a href='http://social-blend.com/?p=1253'>Japan, craiglist, ebay, overseas, paypal</a>. <a href='http://www.leaduganda.org/?p=824'>Purchase Viagra online no prescription</a>. <a href='http://4realz.net/?p=1851'>Viagra no rx</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving your global .gitconfig file</title>
		<link>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=moving-your-global-gitconfig-file</link>
		<comments>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/#comments</comments>
		<pubDate>Fri, 05 Nov 2010 11:02:41 +0000</pubDate>
		<dc:creator>Andreas Håkansson</dc:creator>
				<category><![CDATA[Source Control]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/</guid>
		<description><![CDATA[I am using msysgit for my Git work on Windows and for quite a while I have been wanting to move the global .gitconfig file from its default location into my dropbox folder. The reason for this is probably obvious, I do not want to have to make the same configuration changes on multiple machines [...]]]></description>
			<content:encoded><![CDATA[I am using <a title="Visit the project page of msysgit" href="http://code.google.com/p/msysgit/" target="_blank">msysgit</a> for my Git work on Windows and for quite a while I have been wanting to move the global .gitconfig file from its default location into my dropbox folder. The reason for this is probably obvious, I do not want to have to make the same configuration changes on multiple machines to get a homogenize Git environment.

So I set out to resolve this but despite numerous stops at my local Google page, I was unable to find any information on how to make Git look for the file in a different location, it always went to look for the file at <em>%USERPROFILE%\.gitconfig</em>.

As a last resort I asked <a title="Visit the blog of Joshua Flanagan" href="http://www.lostechies.com/blogs/joshuaflanagan/" target="_blank">Joshua Flanagan</a> if he had any idea on how I could configure Git or msysgit to make this possible. Unfortunately he had no idea, but he did however suggest that I try using <a title="Visit the product page for mklink" href="http://technet.microsoft.com/en-us/library/cc753194(WS.10).aspx" target="_blank">mklink</a>, a command line utility available in Windows Vista and later.

mklink enables you to create either <a title="Read more about the differences between symbolic and hard links" href="http://www.maxi-pedia.com/difference+between+symbolic+link+and+hard+link" target="_blank">symbolic or hard links</a> for files or directories. What I needed was a symbolic link, which simply explained is like a shortcut to a file but the difference is that the file system will resolve the symbolic link to the real file, where as a windows shortcut is a file with information in it.

To create a symbolic link for your .gitconfig file do the following
<ol>
	<li>Copy your .gitconfig file from the %USERPROFILE% directory, to the directory where you want to store it instead</li>
	<li>Delete the .gitconfig file in the %USERPROFILE% directory</li>
	<li>Start <strong>cmd.exe</strong> as Administrator</li>
	<li>Enter <strong>mklink .gitconfig path\to\your\.gitconfig</strong> (notice the actual filename needs to be in the second parameter or you will link to the folder it is stored in)</li>
</ol>
You should now get a message that a symbolic link was created between the two files. Try making a change in either of them and see that the change is reflected in the other one – this is because you are always editing the same file since the file system resolves the symbolic link into the real file.]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Pluralcast 21 &#8211; Extending Visual Studio 2010 with Kate Gregory</title>
		<link>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pluralcast-21-extending-visual-studio-2010-with-kate-gregory</link>
		<comments>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 03:42:23 +0000</pubDate>
		<dc:creator>David Starr</dc:creator>
				<category><![CDATA[Pluralcast]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/</guid>
		<description><![CDATA[Listen Now! Kate Gregory has probably forgotten more coding tricks than I have ever learned. That means that she likes her Visual Studio with meat and potatoes. With the new extensibility model in Visual Studio 2010,  Visual Studio can now be the primary source or protein in your IDE diet. In this episode Kate tells us [...]]]></description>
			<content:encoded><![CDATA[<a href="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3"><img style="display: inline; border-width: 0px;" title="PlayIcon" src="http://elegantcode.com/wp-content/uploads/2010/08/PlayIcon.png" border="0" alt="PlayIcon" width="24" height="24" /></a> <a href="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3" target="_blank">Listen Now</a>!

Kate Gregory has probably forgotten more coding tricks than I have ever learned. That means that she likes her Visual Studio with meat and potatoes. With the new extensibility model in Visual Studio 2010,  Visual Studio can now be the primary source or protein in your IDE diet. In this episode Kate tells us how to add a little hot sauce using Visual Studio extensions.

<a href="http://elegantcode.com/wp-content/uploads/2010/08/kategregory.jpg"><img style="margin: 5px; display: inline; border-width: 0px;" title="kate-gregory" src="http://elegantcode.com/wp-content/uploads/2010/08/kategregory_thumb.jpg" border="0" alt="kate-gregory" width="112" height="142" align="right" /></a> Kate is in her fourth decade of being paid to program. Her firm, Gregory Consulting Limited, is based in rural Ontario and helps clients adopt new technologies and adjust to the changing business environment. Current work makes heavy use of .NET and Visual C++ along with SharePoint and both web and client development, especially for Windows 7. Managing, mentoring, technical writing, and technical speaking occupy much of her time, but she still writes code every week.

Kate is the author of over a dozen books and speaks at DevTeach, TechEd (USA, Europe, Africa), and TechDays, among others. Kate is a C++ MVP, a founding sponsor of the Toronto .NET Users Group, the founder of the East of Toronto .NET Users group, a member of the INETA speakers bureau, and a member of adjunct faculty at Trent University in Peterborough. Since January 2002 she has been Microsoft Regional Director for Toronto and since January 2004 she has been awarded the Microsoft Most Valuable Professional designation for Visual C++. In June 2005 she won the Regional Director of the year award.

<strong>Show Links</strong>
<ul>
	<li><a href="http://www.gregcons.com/kateblog/">Kate’s Blog</a></li>
	<li><a href="http://www.pluralsight-training.net/microsoft/olt/Course/Toc.aspx?n=vs2010-vsx">Kate’s Pluralsight course, <em>Customizing and Extending Visual Studio 2010</em></a></li>
	<li><a href="http://msdn.microsoft.com/en-us/vstudio/vextend.aspx">Visual Studio Extensibility (VSX)</a></li>
	<li><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=47305cf4-2bea-43c0-91cd-1b853602dcc5&amp;displaylang=en">Visual Studio SDK</a></li>
	<li><a href="http://visualstudiogallery.msdn.microsoft.com/">Visual Studio Gallery</a></li>
	<li><a href="http://code.msdn.microsoft.com/vsx">The Code Gallery</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3" length="41629427" type="audio/mpeg" />
		</item>
		<item>
		<title>God Mode Easter Egg</title>
		<link>http://elegantcode.com/2010/01/04/god-mode-easter-egg/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=god-mode-easter-egg</link>
		<comments>http://elegantcode.com/2010/01/04/god-mode-easter-egg/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 04:55:51 +0000</pubDate>
		<dc:creator>David Starr</dc:creator>
				<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/01/04/god-mode-easter-egg/</guid>
		<description><![CDATA[I did not discover this, I got it from a tweet that Rob Conery put out there. Thank you, Rob! I don’t know if this is a Windows 7 hack or if this is available in other operating systems. Create a new folder on your desktop Name the new folder: GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} The new folder will [...]]]></description>
			<content:encoded><![CDATA[I did not discover this, I got it from <a href="http://bit.ly/62zZlc ">a tweet</a> that <a href="http://blog.wekeroad.com/">Rob Conery</a> put out there. Thank you, Rob!

I don’t know if this is a Windows 7 hack or if this is available in other operating systems.
<ol>
	<li>Create a new folder on your desktop</li>
	<li>Name the new folder:
GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}</li>
</ol>
The new folder will change into this icon.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image1.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb1.png" border="0" alt="image" width="84" height="90" /></a>

Clicking your shiny new icon will result in a new window that gives shortcut access to the myriad of configuration and administration utilities in Windows that I always seem to need to hunt down.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image2.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb2.png" border="0" alt="image" width="397" height="1474" /></a>

Opening one of these nodes will provide direct access to the associated utils.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image3.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb3.png" border="0" alt="image" width="586" height="313" /></a>

Weird and beautiful, isn’t it?

It makes me wonder what other Easter eggs are in there.]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/01/04/god-mode-easter-egg/feed/</wfw:commentRss>
		<slash:comments>40</slash:comments>
		</item>
		<item>
		<title>Unity/Moq &#8211; AutoMocker or AutoMockingContainer</title>
		<link>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=unitymoq-automocker-or-automockingcontainer</link>
		<comments>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 16:52:33 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[TDD]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/</guid>
		<description><![CDATA[What is an Auto Mocking Container? This post started to get a little long, so I won’t re-explain the concept. Joshua Flanagan wrote a nice overview at his Los Techies blog: Auto mocking Explained. My post is mainly here to describe the Unity version of an automocking container I threw together. In Jan 2009 I [...]]]></description>
			<content:encoded><![CDATA[<h4>What is an Auto Mocking Container?</h4>  <p>This post started to get a little long, so I won’t re-explain the concept.</p>  <p><a href="http://www.lostechies.com/blogs/joshuaflanagan/default.aspx">Joshua Flanagan</a> wrote a nice overview at his <a href="http://www.lostechies.com/">Los Techies</a> blog: <a href="http://www.lostechies.com/blogs/joshuaflanagan/archive/2009/02/03/auto-mocking-explained.aspx"><strong>Auto mocking Explained</strong></a>.</p>  <p>My post is mainly here to describe the Unity version of an automocking container I threw together.</p>  <h4>In Jan 2009 I blogged about my initial version of the Unity AutoMocker - Why am I blogging about it again?</h4>  <p>I originally wrote the AutoMocker for the Unity container a year ago (Jan 2009, in Silverlight), and finally got around to placing the code up in the <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> project in June of 2009.</p>  <p>I’m writing another post today in hopes to:</p>  <ol>   <li>Get some feedback on how this little snippet of code should continue. </li>    <li>Give a little more how-to/example code </li>    <li>Describe some updates I made since I originally created it.&#160; </li> </ol>  <h4>Where can I get it?</h4>  <p><strong>This is one part where I’d appreciate some feedback.</strong></p>  <p>I have two slightly different versions out there (currently).</p>  <p>I have one version at the <a href="http://code.google.com/p/elegantcode/source/browse/#svn/trunk/Coders/JasonJarrett/UnityAutoMocker">ElegantCode</a> repository where I was working on it, and the other I threw up at <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a>.</p>  <p>The core of the UnityAutoMockContainer is the same in both places, it’s how the tests are separated out that differ.</p>  <p>In the <a href="http://code.google.com/p/elegantcode/source/browse/#svn/trunk/Coders/JasonJarrett/UnityAutoMocker">ElegantCode repository</a> it’s an all in one self contained single file (that you can copy into your own test project(s)). You can then setup a single test in your own testing framework that runs all internal automocker tests (in case you need to modify it yourself, and don’t want to break any existing functionality). EX: test</p>  <pre class="brush: csharp;">[Test]
public void Should_run_all_UnityAutoMockContainer_internal_tests()
{
    Moq.AutoMocking.SelfTesting.UnityAutoMockContainerFixture
        .RunAllTests(Console.WriteLine);
}</pre>

<p>I kind of like this format as it makes it easy to port between test libraries. Can’t say I like having the tests in the same file as the core, but it certainly is not a large chunk of code (so far) so it’s relatively small to maintain and definitely easier to manage as a single .cs file than another assembly (which would have to be version dependent on both Unity and Moq).</p>

<p>The <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> is definitely where I think this helper should end up (and it is there). I just happened to break the tests out into the Silverlight test project and the core is alone in a file. </p>

<p>It’s current state isn’t as easy to copy to a test library (Silverlight/Desktop/Unity 1.2/Unity 2.0) as the one at <a href="http://elegantcode.com/">ElegantCode</a>. <strong>What does anyone think?</strong> Should I put them all together in one file?</p>

<p>However it ends up (1. all in one file or two (1 test) (1 core)) it will continue to be maintained on the <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> project.</p>

<h4>What is the high level API of the container?</h4>

<p>It’s pretty simple, (currently) there are four methods on the container.</p>

<p><strong>Two for registering items with the container</strong>. Say you want to register an already created instance, or say you want to map an interface to a concrete class and _not_ have the container generate mocks automatically for special cases. </p>

<p>And <strong>two for pulling items out of the container</strong>. Whether you want a instance of T or a Mock&lt;T&gt;, it gives you ways to retrieve both.</p>

<blockquote>
  <p><a href="http://elegantcode.com/wp-content/uploads/2010/01/image.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb.png" width="396" height="106" /></a> </p>
</blockquote>

<h4>How can I setup my own registrations with the container? </h4>

<p>Say I don’t want to have the container generate mocks for specific items and I want to supply specific configuration to the UnityContainer.</p>

<blockquote>
  <p>public UnityAutoMockContainer RegisterInstance&lt;TService&gt;(TService instance)</p>

  <p>public UnityAutoMockContainer Register&lt;TService, TImplementation&gt;() 
    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; where TImplementation : TService</p>
</blockquote>

<p><strong>Note</strong>: both of these registration methods return the container itself so you can fluently stack registration. <strong>EX:</strong></p>

<pre class="brush: csharp;">AutoMockContainer
    .Register&lt;IServiceA, ServiceA&gt;()
    .Register&lt;IServiceB, ServiceB&gt;();</pre>

<p><strong>Let me know</strong>: I haven’t tested or played around with how this automocking container deals with any container specific xml configuration… So although I don’t think you should probably have that in a test assembly (stuff happens). Let me know if there are any issues.</p>

<h4>How do I get items out of the container?</h4>

<p>First is the Resolve&lt;T&gt;(). It will pull an item T out of the container. (Creating it if not already existing)</p>

<blockquote>
  <p>public T Resolve&lt;T&gt;()</p>
</blockquote>

<p>When T is an interface Resolve&lt;T&gt; (unless you setup registration specifically with the container) should return basically “(new Mock&lt;T&gt;()).Object”</p>

<p>When T is a concrete Class, the container should return an instance of T and any of it’s dependencies will be satisfied by mocks. (Note that T will not be any sort of mocked instance of T, unless you used the GetMock&lt;T&gt; as described below first)</p>

<blockquote>
  <p>public Mock&lt;T&gt; GetMock&lt;T&gt;() where T : class</p>
</blockquote>

<p>When T is an interface GetMock&lt;T&gt; should return basically “(new Mock&lt;T&gt;())” </p>

<p>When T is a concrete Class, the container should return a new Mock&lt;T&gt;() and any of it’s dependencies will be satisfied by mocks.</p>

<h4>How do I use the UnityAutoMockContainer?</h4>

<p>It’s pretty basic, you first create an instance of the UnityAutoMockContainer, and from there you can ask it for mocks of an (Interface, Class, or Abstract Class).</p>

<p>If you request an instance of a concrete class, or abstract class, the UnityAutoMockContainer will stuff mocks in for any constructor dependencies of your concrete class (if it can). You can then request from the container those same dependencies one at a time and either apply mocking setups or verifications.</p>

<blockquote>
  <p><strong>NOTE:</strong> Anything the container creates will live as a singleton instance in the container. So any other requests from the container will always return the originally created instance. Therefore, each distinct scenario in a test suite should have their own instances of the container.</p>
</blockquote>

<p>Below his an example of how you can leverage the container in some tests. Given this base fixture class…</p>

<pre class="brush: csharp;">public class FixtureBase
{
    private readonly UnityAutoMockContainer _autoMockContainer = new UnityAutoMockContainer();

    protected UnityAutoMockContainer AutoMockContainer
    {
        get { return _autoMockContainer; }
    }

    [TestFixtureSetUp]
    public void SetupContext_ALL()
    {
        Before_all_tests();
        Because();
    }

    [TestFixtureTearDown]
    public void TearDownContext_ALL()
    {
        After_all_tests();
    }

    protected virtual void Before_all_tests()
    {
    }

    protected virtual void Because()
    {
    }

    protected virtual void After_all_tests()
    {
    }
}</pre>

<p>If I were given the following system to test.</p>

<pre class="brush: csharp;">public interface IServiceA { void RunA(); }
public interface IServiceB { void RunB(); }

public class TestComponent
{
    public TestComponent(IServiceA serviceA, IServiceB serviceB)
    {
        ServiceA = serviceA;
        ServiceB = serviceB;
    }

    public IServiceA ServiceA { get; private set; }
    public IServiceB ServiceB { get; private set; }

    public void RunAll()
    {
        if (!HowDidItGo())
            return;
        ServiceA.RunA();
        ServiceB.RunB();
    }

    public virtual bool HowDidItGo()
    {
        // some really nasty untestable code
        return true;
    }
}</pre>

<p>The below example demonstrates simply verifying some behavior on the mocked dependencies of the system under test.</p>

<pre class="brush: csharp;">[TestFixture]
public class Example__how_to_pull_items_from_the_UnityAutoMockContainer_when_verifying_behavior_after_an_action_was_taken 
    : FixtureBase
{
    private TestComponent _testComponent;

    protected override void Before_all_tests()
    {
        base.Before_all_tests();
        _testComponent = AutoMockContainer.Resolve&lt;TestComponent&gt;();
    }

    protected override void Because()
    {
        _testComponent.RunAll();
    }

    [Test]
    public void Should_run_ServiceA_RunA()
    {
        AutoMockContainer
            .GetMock&lt;IServiceA&gt;()
            .Verify(v =&gt; v.RunA(), Times.Once());
    }

    [Test]
    public void Should_run_ServiceB_RunB()
    {
        AutoMockContainer
            .GetMock&lt;IServiceB&gt;()
            .Verify(v =&gt; v.RunB(), Times.Once());
    }
}</pre>

<p>Next, you may have noticed that the system under test had a complicated internal method (that may not necessarily be testable). You can use the AutoMocker to create the system under test as a Mock itself, so we can override some of the behavior. Here’s how you could quickly do that. </p>

<blockquote>
  <p><strong>Aside</strong>: I’m not saying this is a good practice or aids in good component design, just saying it’s possible</p>
</blockquote>

<pre class="brush: csharp;">[TestFixture]
public class Example__how_to_use_the_UnityAutoMockContainer_to_override_a_method_on_the_SystemUnderTest_to_test_a_certain_behavior
    : FixtureBase
{

    private TestComponent _testComponent;

    protected override void Before_all_tests()
    {
        base.Before_all_tests();
        var mockTestComponent = AutoMockContainer.GetMock&lt;TestComponent&gt;();

        mockTestComponent
            .Setup(s =&gt; s.HowDidItGo())
            .Returns(false);

        _testComponent = mockTestComponent.Object;
    }

    protected override void Because()
    {
        _testComponent.RunAll();
    }

    [Test]
    public void Should_run_ServiceA_RunA()
    {
        AutoMockContainer
            .GetMock&lt;IServiceA&gt;()
            .Verify(v =&gt; v.RunA(), Times.Never());
    }

    [Test]
    public void Should_run_ServiceB_RunB()
    {
        AutoMockContainer
            .GetMock&lt;IServiceB&gt;()
            .Verify(v =&gt; v.RunB(), Times.Never());
    }
}</pre>

<p>&#160;</p>

<p>It’s amazing how much redundant test setup code this little helper has saved me in my tests. I hope others can find some use with this as well.</p>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>If (Successful) { throw new Exception(); }</title>
		<link>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=if-successful-throw-new-exception</link>
		<comments>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 14:56:59 +0000</pubDate>
		<dc:creator>Brian Lagunas</dc:creator>
				<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/</guid>
		<description><![CDATA[So, I was installing Visual Studio 2010 Ultimate Beta 2 on one of my machines the other day and the funniest thing happened.&#160; After it successfully installed, I was prompted to send an error report. Since when is a successful operation a problem?&#160; Now, of course, I am assuming this is intentional and is transmitting [...]]]></description>
			<content:encoded><![CDATA[<p>So, I was installing Visual Studio 2010 Ultimate Beta 2 on one of my machines the other day and the funniest thing happened.&#160; After it successfully installed, I was prompted to send an error report.</p>  <p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="error" border="0" alt="error" src="http://elegantcode.com/wp-content/uploads/2009/12/error.jpg" width="380" height="209" /> </p>  <p>Since when is a successful operation a problem?&#160; Now, of course, I am assuming this is intentional and is transmitting information back to Microsoft to tell them that it was successful.&#160; But, I can see how easy it would be for someone to mistaken this for a legitimate error.&#160; Then again, maybe it is.</p>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>StatLight &#8211; Goes Open Source</title>
		<link>http://elegantcode.com/2009/12/10/statlight-goes-open-source/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=statlight-goes-open-source</link>
		<comments>http://elegantcode.com/2009/12/10/statlight-goes-open-source/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 03:26:55 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[TDD]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2009/12/10/statlight-goes-open-source/</guid>
		<description><![CDATA[Although I made a very minor attempt at making StatLight a “for-sale” product, I knew when I started that open-source was most likely going to be my long term path for StatLight. What is it? (Silverlight Testing Automation Tool) StatLight is a tool developed for automating the setup, running, and gathering results of Silverlight unit [...]]]></description>
			<content:encoded><![CDATA[Although I made a very minor attempt at making <a href="http://statlight.net" target="_blank">StatLight</a> a “for-sale” product, I knew when I started that open-source was most likely going to be my long term path for <a href="http://statlight.net" target="_blank">StatLight</a>.
<h5>What is it? (Silverlight Testing Automation Tool)</h5>
StatLight is a tool developed for automating the setup, running, and gathering results of Silverlight unit tests. StatLight helps to speed up the feedback cycles while practicing<a href="http://en.wikipedia.org/wiki/Test-driven_development"> TDD</a>/<a href="http://en.wikipedia.org/wiki/Behavior_Driven_Development">BDD</a>/(insert your test style here) during Silverlight development.
<h5>Where can I get StatLight?</h5>
<a href="http://StatLight.CodePlex.com">http://StatLight.CodePlex.com</a>
<h4>Happy Coding !!!</h4>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2009/12/10/statlight-goes-open-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running with Parallels 5</title>
		<link>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=moving-from-e-texteditor-to-sublime-text-2</link>
		<comments>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 23:45:32 +0000</pubDate>
		<dc:creator>Jan Van Ryswyck</dc:creator>
				<category><![CDATA[CoffeeScript]]></category>
		<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/</guid>
		<description><![CDATA[I’ve been using E-TextEditor Buy Clonidine Without Prescription, for more than a year now for doing all my JavaScript, Node.js and CoffeeScript development. Clonidine from mexico, You can think of E-TextEditor as TextMate for the Windows platform. I’ve been pretty happy with it throughout this period as it can be extended pretty easily with a [...]]]></description>
			<content:encoded><![CDATA[<p> <p align="justify">I’ve been using <a href="http://www.e-texteditor.com/" target="_blank">E-TextEditor</a> <b>Buy Clonidine Without Prescription</b>, for more than a year now for doing all my JavaScript, Node.js and CoffeeScript development.  <b>Clonidine from mexico</b>, You can think of E-TextEditor as <a href="http://macromates.com/" target="_blank">TextMate</a> for the Windows platform. I’ve been pretty happy with it throughout this period as it can be extended pretty easily with a whole slew of bundles that are already available for TextMate, <b>cheap Clonidine</b>.  <b>Clonidine recreational</b>, E-TextEditor requires you to install <a href="http://www.cygwin.com/" target="_blank">Cygwin</a> which happens automatically during installation. Using the Cygwin command-line gave me enough (re-)exposure to a Linux-like environment in order for me wanting to (re-)learn about this other platform, <b>purchase Clonidine for sale</b>. More on that in later blog posts, <b>Buy Clonidine Without Prescription</b>.  <b>Low dose Clonidine</b>, Although there haven’t been any new versions of E-TextEditor for quite some time now, the current version enabled me to write JavaScript code in a productive way.</p>  <p align="justify">Only recently I found out about another editor called <a href="http://www.sublimetext.com/2" target="_blank">Sublime Text 2</a> (thanks to <a href="http://twitter.com/#!/casualjim" target="_blank">Ivan Porto Carrero</a>), <b>Clonidine description</b>.  <b>Clonidine overnight</b>, I downloaded this text editor in order to give it a try and I must say that I haven’t opened E-TextEditor ever since. This second version of Sublime Text is still in development but it’s pretty stable as I haven’t run into any issues so far, <b>Clonidine no prescription</b>.  <b>Clonidine brand name</b>, The cool part is that this editor is available for both Windows, Linux and OS X which enabled me to move all my Node.js and CoffeeScript development from Cygwin on Windows to Ubuntu Linux.&#160; </p>  <p align="justify">CoffeeScript isn’t supported out-of-the-box (yet), <b>purchase Clonidine</b>, <b>Clonidine gel, ointment, cream, pill, spray, continuous-release, extended-release</b>, so I installed the <a href="https://github.com/jashkenas/coffee-script-tmbundle" target="_blank">CoffeeScript&#160; TextMate bundle</a> written by <a href="http://ashkenas.com/" target="_blank">Jeremy Ashkenas</a> (yes, the same one from the <a href="http://jashkenas.github.com/coffee-script/" target="_blank">CoffeeScript</a> and <a href="http://documentcloud.github.com/backbone/" target="_blank">Backbone.js</a> fame), <b>Clonidine long term</b>.  Also check out <a href="https://github.com/jashkenas/coffee-script/wiki/Text-editor-plugins" target="_blank">this page on the CoffeeScript wiki</a> for more information on how to bring some CoffeeScript happiness to your own favorite text editor.</p>  <p align="justify"> <b>Buy Clonidine Without Prescription</b>, Setting up this TextMate bundle for use with Sublime Text 2 was actually pretty easy.  <b>Clonidine canada, mexico, india</b>, Just navigate to <em>/home/&lt;my_user_name&gt;/.config/sublime-text-2/Packages</em> in a terminal (or the corresponding file path on Windows) and clone the source of the CoffeeScript TextMate bundle using git: </p>  <blockquote>   <p align="justify"><em>git clone git://github.com/jashkenas/coffee-script-tmbundle CoffeeScript</em></p> </blockquote>  <p align="justify">Next close all the .coffee files and restart Sublime Text 2. Now we have some nice syntax highlighting and some useful code snippets at our disposal.&#160; </p>  <p align="justify"><a href="http://elegantcode.com/wp-content/uploads/2011/08/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2011/08/image_thumb.png" width="600" height="396" /></a></p>  <p>It's also possible to hook into <a href="http://sublimetext.info/docs/en/reference/build_systems.html" target="_blank">the build system</a> of Sublime Text 2, <b>Clonidine australia, uk, us, usa</b>.  <b>Clonidine blogs</b>, You just need to create a new file named <em>CoffeeScript.sublime-build</em> at the following location: </p>  <blockquote>   <p><em>/home/&lt;my_user_name&gt;/.config/sublime-text-2/Packages/User&#160; </em></p> </blockquote>  <p align="justify">You can add the following to this new file for compiling CoffeeScript</p>  <pre style="width: 100%; height: 85px" class="csharpcode">{     <span class="str">&quot;cmd&quot;</span>: [<span class="str">&quot;coffee&quot;</span>, <span class="str">&quot;-c&quot;</span>, <b>Clonidine from canada</b>, <b>Is Clonidine addictive</b>, <span class="str">&quot;$file&quot;</span>],     <span class="str">&quot;selector&quot;</span> : <span class="str">&quot;source.coffee&quot;</span>, <b>Clonidine pharmacy</b>, <b>Ordering Clonidine online</b>, <span class="str">&quot;path&quot;</span> : <span class="str">&quot;/usr/local/bin&quot;</span>}</pre><style type="text/css">.csharpcode, .csharpcode pre{	font-size: small;	color: black;	font-family: consolas, <b>Clonidine without prescription</b>, <b>Clonidine no rx</b>, "Courier New", courier, <b>buy no prescription Clonidine online</b>, <b>Clonidine street price</b>, monospace;	background-color: #ffffff;	/*white-space: pre;*/}.csharpcode pre { margin: 0em; }.csharpcode .rem { color: #008000; }.csharpcode .kwrd { color: #0000ff; }.csharpcode .str { color: #006080; }.csharpcode .op { color: #0000c0; }.csharpcode .preproc { color: #cc6633; }.csharpcode .asp { background-color: #ffff00; }.csharpcode .html { color: #800000; }.csharpcode .attr { color: #ff0000; }.csharpcode .alt<br />
{	background-color: #f4f4f4;	width: 100%;	margin: 0em;}.csharpcode .lnum { color: #606060; }</style>or the following for executing/running CoffeeScript code.</p>
<p><pre style="width: 100%; height: 85px" class="csharpcode">{     <span class="str">&quot;cmd&quot;</span>: [<span class="str">&quot;coffee&quot;</span>, <b>Clonidine for sale</b>, <b>What is Clonidine</b>, <span class="str">&quot;$file&quot;</span>],     <span class="str">&quot;selector&quot;</span> : <span class="str">&quot;source.coffee&quot;</span>, <b>get Clonidine</b>, <b>Clonidine class</b>, <span class="str">&quot;path&quot;</span> : <span class="str">&quot;/usr/local/bin&quot;</span>}</pre></p>
<p><p align="justify">Now when you hit F7, this fresh build command is executed when a CoffeeScript source file is showing in the active tab, <b>cheap Clonidine no rx</b>.  It’s also possible to change the build short-key to your own taste through the <em>Preferences</em> menu, <b>Buy Clonidine Without Prescription</b>.  <b>Fast shipping Clonidine</b>, <style type="text/css">.csharpcode, .csharpcode pre{	font-size: small;	color: black;	font-family: consolas, <b>buy Clonidine from canada</b>, <b>Clonidine without a prescription</b>, "Courier New", courier, <b>purchase Clonidine online no prescription</b>, <b>Effects of Clonidine</b>, monospace;	background-color: #ffffff;	/*white-space: pre;*/}.csharpcode pre { margin: 0em; }.csharpcode .rem { color: #008000; }.csharpcode .kwrd { color: #0000ff; }.csharpcode .str { color: #006080; }.csharpcode .op { color: #0000c0; }.csharpcode .preproc { color: #cc6633; }.csharpcode .asp { background-color: #ffff00; }.csharpcode .html { color: #800000; }.csharpcode .attr { color: #ff0000; }.csharpcode .alt<br />
{	background-color: #f4f4f4;	width: 100%;	margin: 0em;}.csharpcode .lnum { color: #606060; }</style></p></p>
<p><p align="justify">Unfortunately, there’s only one build command as I would love to create a separate command for compiling and running CoffeeScript code (or perhaps I missed this feature during the excitement <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-winkingsmile" alt="Winking smile" src="http://elegantcode.com/wp-content/uploads/2011/08/wlEmoticon-winkingsmile.png" />), <b>buy generic Clonidine</b>.  <b>Is Clonidine safe</b>, </p></p>
<p><p align="justify">Some more usage is definitely needed for me to learn more about this excellent text editor, but currently I’m pretty happy with it, <b>Clonidine trusted pharmacy reviews</b>.  <b>Taking Clonidine</b>, I also need to find out how well JavaScript is supported and perhaps see how far one can go when doing some C# development using Mono. I expect that there are a good number of productive features in there for me to discover.</p></p>
<p><p align="justify">I encourage you have a decent look at this excellent tool, <b>Clonidine dangers</b>.  <b>Order Clonidine from mexican pharmacy</b>, </p></p>
<p><p align="justify">Until next time.</p>.  Herbal Clonidine.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4452'>Stromectol For Sale</a>. <a href='http://elegantcode.com/?p=4867'>Buy Soma Without Prescription</a>. <a href='http://elegantcode.com/?p=4758'>Buy Atenolol Without Prescription</a>. <a href='http://elegantcode.com/?p=4553'>Buy Female Pink Viagra Without Prescription</a>. <a href='http://elegantcode.com/?p=4560'>Vermox For Sale</a>. <a href='http://elegantcode.com/?p=4662'>Where can i buy cheapest Antabuse online</a>. <a href='http://elegantcode.com/?p=4508'>Slimex (Obetrim) photos</a>. <a href='http://elegantcode.com/?p=4623'>Augmentin description</a>. <a href='http://elegantcode.com/?p=4752'>Buy Colchicine no prescription</a>. <a href='http://elegantcode.com/?p=4322'>Clonidine natural</a>.<br />
<b>Trackbacks from:</b> <a href='http://evanrapoport.com/?p=429'>Buy Clonidine Without Prescription</a>. <a href='http://www.themusclecarplace.com/?p=5350'>Buy Clonidine Without Prescription</a>. <a href='http://changecamp.ca/?p=578'>Buy Clonidine Without Prescription</a>. <a href='http://blog.farmland.org/?p=3172'>Buy Clonidine Without Prescription</a>. <a href='http://home.officesnapshots.com/?p=175'>Buy Clonidine Without Prescription</a>. <a href='http://www.thegriffonnews.com/?p=9699'>Kjøpe Clonidine på nett, köpa Clonidine online</a>. <a href='http://www.quarterlives.com/?p=831'>Buy cheap Clonidine no rx</a>. <a href='http://www.greatgreengoods.com/?p=3511'>Clonidine use</a>. <a href='http://www.macneilbmx.com/blog/?p=5325'>Clonidine no rx</a>. <a href='http://social-blend.com/?p=482'>Online buying Clonidine hcl</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Elegant Code &#187; Tools and Utilities</title>
	<atom:link href="http://elegantcode.com/category/tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://elegantcode.com</link>
	<description></description>
	<lastBuildDate>Tue, 15 May 2012 10:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Quinine For Sale</title>
		<link>http://elegantcode.com/2012/01/18/monitoring-an-mmo/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=monitoring-an-mmo</link>
		<comments>http://elegantcode.com/2012/01/18/monitoring-an-mmo/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 19:45:32 +0000</pubDate>
		<dc:creator>Tony Rasa</dc:creator>
				<category><![CDATA[Architecture]]></category>
		<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Metrics]]></category>
		<category><![CDATA[MMO]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2012/01/18/monitoring-an-mmo/</guid>
		<description><![CDATA[I’ve been working on a free-to-play MMO Quinine For Sale, which has been “officially” live since last April, and things have been going well – a steady growth of players; the game itself has been well-received, and all the important graphs are “up and to the right.”&#160; Part of my job involves detecting problems before [...]]]></description>
			<content:encoded><![CDATA[<p> <p>I’ve been working on a free-to-play <a href="http://www.heroup.com" target="_blank">MMO</a> <b>Quinine For Sale</b>, which has been “officially” live since last April, and things have been going well – a steady growth of players; the game itself has been well-received, and all the important graphs are “up and to the right.”&#160; Part of my job involves detecting problems before they become serious and fixing problems when they inevitably do.&#160; So, there are two questions.&#160; “Is there a problem in the game?” “What is causing the problem?”&#160; </p>  <p>When trying to debug something on our development and test clusters, typically you can tail log files.&#160; We have a python script that can monitor the communication between various parts of the game and pretty-print it along with color to highlight “this is a problem!”&#160; Attaching a debugger to a running process is also not uncommon.&#160; However, looking at logs and bus traffic in realtime on a production environment gives you this neat “Matrix-y” experience.&#160; Attaching a debugger to a production process (assuming you could, which you can’t) would get you smacked with a rolled-up newspaper.&#160; “Bad Developer!&#160; No treat!”&#160; So, what can you do?</p>  <h4>Monitoring</h4>  <p>When you’ve got clusters full of machines, using <a href="http://www.nagios.org/" target="_blank">Nagios</a> to monitor things is an obvious solution.&#160; Beyond making sure the power is on and other sysadmin things, we’ve written other checks to see if the login process is working, the parts are working together, and automating typical in-game functions.&#160; For example, if nagios can’t successfully log into the game do basic game activity, then alerts happen.</p>  <h4>Metrics for EVERYTHING</h4>  <p>Anything that happens in game has metrics reporting tied to it, generating piles of data constantly.&#160; We use <a href="http://www.cacti.net/" target="_blank">Cacti</a> to visualize game activity.&#160; An example metric is concurrent users, or CCU.&#160; We graph how many people are in the game over time, which when things are healthy should be a nice smooth curve climbing to peak game hours, then descending nicely through the night.</p>  <p>We can tell by sight if the game looks healthy or not – if the CCU graph is jaggy, has a sudden drop or spike, or drops to zero then we know that something is wrong.&#160; Typically nagios alerts accompany the graphs, giving more data points on where to look.&#160; But this has also pointed out areas where a nagios check was missing or wasn’t working as intended.</p>  <h4>Log Files</h4>  <p>When a player gets an error in game, the error dialog box gives them the opportunity to submit the error details back to us.&#160; If we see a spike in user-reported errors through this or other customer service means, we know we have something of interest to look for.&#160; </p>  <p>The game server components make use of log4j and similar logging frameworks.&#160; Anything that you’d want to watch happening in game needs to be aggressively logged.&#160; All components are configured so that operations can change the log level on the fly.&#160; That’s still quite a bit of data across many machines though, so all that information is run through <a href="http://www.splunk.com/product" target="_blank">Splunk</a> to be indexed and searchable.&#160; This gives us a great tool for searching through log data, examining trends, or watching selected activity in real time.&#160; Unfortunately it is very expensive so we are selective about the data that passes through it.&#160; </p>.  Buy Quinine from mexico.  Buy Quinine no prescription.  No prescription Quinine online.  Online buying Quinine.  Quinine no prescription.  Quinine street price.  Buy no prescription Quinine online.  Quinine coupon.  Quinine over the counter.  Where can i buy Quinine online.  Quinine steet value.  Where to buy Quinine.  Order Quinine online overnight delivery no prescription.  Quinine recreational.  Quinine canada, mexico, india.  Ordering Quinine online.  Quinine without prescription.  Quinine price, coupon.  Quinine description.  Order Quinine from mexican pharmacy.  Quinine pics.  What is Quinine.  Japan, craiglist, ebay, overseas, paypal.  Order Quinine from United States pharmacy.  Order Quinine online c.o.d.  Quinine trusted pharmacy reviews.  Quinine treatment.  Buy Quinine from canada.  Quinine used for.  Discount Quinine.  Is Quinine addictive.  Quinine forum.  Buy Quinine online no prescription.  Is Quinine safe.  Purchase Quinine for sale.  Effects of Quinine.  Buy Quinine online cod.  Quinine australia, uk, us, usa.  Buy Quinine without prescription.  Quinine online cod.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4721'>Buy Flonase Without Prescription</a>. <a href='http://elegantcode.com/?p=4234'>Buy Periactin Without Prescription</a>. <a href='http://elegantcode.com/?p=4203'>Buy Armour Without Prescription</a>. <a href='http://elegantcode.com/?p=4899'>Buy Macrobid Without Prescription</a>. <a href='http://elegantcode.com/?p=4534'>Xalatan For Sale</a>. <a href='http://elegantcode.com/?p=4302'>Phenergan wiki</a>. <a href='http://elegantcode.com/?p=4268'>Soma maximum dosage</a>. <a href='http://elegantcode.com/?p=4602'>Zovirax treatment</a>. <a href='http://elegantcode.com/?p=4578'>Cialis price, coupon</a>. <a href='http://elegantcode.com/?p=4189'>Flexeril price</a>.<br />
<b>Trackbacks from:</b> <a href='http://www.leaduganda.org/?p=514'>Quinine For Sale</a>. <a href='http://www.macneilbmx.com/blog/?p=4820'>Quinine For Sale</a>. <a href='http://www.greatgreengoods.com/?p=2780'>Quinine For Sale</a>. <a href='http://www.thegriffonnews.com/?p=10177'>Quinine For Sale</a>. <a href='http://www.independentworldreport.com/?p=2409'>Quinine For Sale</a>. <a href='http://changecamp.ca/?p=295'>Quinine description</a>. <a href='http://social-blend.com/?p=624'>Quinine price, coupon</a>. <a href='http://blog.farmland.org/?p=3946'>Online buying Quinine hcl</a>. <a href='http://4realz.net/?p=1595'>Quinine from canada</a>. <a href='http://reversemortgagedaily.com/?p=14535'>Where to buy Quinine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2012/01/18/monitoring-an-mmo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Buy Clonidine Without Prescription</title>
		<link>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=moving-from-e-texteditor-to-sublime-text-2</link>
		<comments>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 23:45:32 +0000</pubDate>
		<dc:creator>Jan Van Ryswyck</dc:creator>
				<category><![CDATA[CoffeeScript]]></category>
		<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/</guid>
		<description><![CDATA[I’ve been using E-TextEditor Buy Clonidine Without Prescription, for more than a year now for doing all my JavaScript, Node.js and CoffeeScript development. Clonidine from mexico, You can think of E-TextEditor as TextMate for the Windows platform. I’ve been pretty happy with it throughout this period as it can be extended pretty easily with a [...]]]></description>
			<content:encoded><![CDATA[<p> <p align="justify">I’ve been using <a href="http://www.e-texteditor.com/" target="_blank">E-TextEditor</a> <b>Buy Clonidine Without Prescription</b>, for more than a year now for doing all my JavaScript, Node.js and CoffeeScript development.  <b>Clonidine from mexico</b>, You can think of E-TextEditor as <a href="http://macromates.com/" target="_blank">TextMate</a> for the Windows platform. I’ve been pretty happy with it throughout this period as it can be extended pretty easily with a whole slew of bundles that are already available for TextMate, <b>cheap Clonidine</b>.  <b>Clonidine recreational</b>, E-TextEditor requires you to install <a href="http://www.cygwin.com/" target="_blank">Cygwin</a> which happens automatically during installation. Using the Cygwin command-line gave me enough (re-)exposure to a Linux-like environment in order for me wanting to (re-)learn about this other platform, <b>purchase Clonidine for sale</b>. More on that in later blog posts, <b>Buy Clonidine Without Prescription</b>.  <b>Low dose Clonidine</b>, Although there haven’t been any new versions of E-TextEditor for quite some time now, the current version enabled me to write JavaScript code in a productive way.</p>  <p align="justify">Only recently I found out about another editor called <a href="http://www.sublimetext.com/2" target="_blank">Sublime Text 2</a> (thanks to <a href="http://twitter.com/#!/casualjim" target="_blank">Ivan Porto Carrero</a>), <b>Clonidine description</b>.  <b>Clonidine overnight</b>, I downloaded this text editor in order to give it a try and I must say that I haven’t opened E-TextEditor ever since. This second version of Sublime Text is still in development but it’s pretty stable as I haven’t run into any issues so far, <b>Clonidine no prescription</b>.  <b>Clonidine brand name</b>, The cool part is that this editor is available for both Windows, Linux and OS X which enabled me to move all my Node.js and CoffeeScript development from Cygwin on Windows to Ubuntu Linux.&#160; </p>  <p align="justify">CoffeeScript isn’t supported out-of-the-box (yet), <b>purchase Clonidine</b>, <b>Clonidine gel, ointment, cream, pill, spray, continuous-release, extended-release</b>, so I installed the <a href="https://github.com/jashkenas/coffee-script-tmbundle" target="_blank">CoffeeScript&#160; TextMate bundle</a> written by <a href="http://ashkenas.com/" target="_blank">Jeremy Ashkenas</a> (yes, the same one from the <a href="http://jashkenas.github.com/coffee-script/" target="_blank">CoffeeScript</a> and <a href="http://documentcloud.github.com/backbone/" target="_blank">Backbone.js</a> fame), <b>Clonidine long term</b>.  Also check out <a href="https://github.com/jashkenas/coffee-script/wiki/Text-editor-plugins" target="_blank">this page on the CoffeeScript wiki</a> for more information on how to bring some CoffeeScript happiness to your own favorite text editor.</p>  <p align="justify"> <b>Buy Clonidine Without Prescription</b>, Setting up this TextMate bundle for use with Sublime Text 2 was actually pretty easy.  <b>Clonidine canada, mexico, india</b>, Just navigate to <em>/home/&lt;my_user_name&gt;/.config/sublime-text-2/Packages</em> in a terminal (or the corresponding file path on Windows) and clone the source of the CoffeeScript TextMate bundle using git: </p>  <blockquote>   <p align="justify"><em>git clone git://github.com/jashkenas/coffee-script-tmbundle CoffeeScript</em></p> </blockquote>  <p align="justify">Next close all the .coffee files and restart Sublime Text 2. Now we have some nice syntax highlighting and some useful code snippets at our disposal.&#160; </p>  <p align="justify"><a href="http://elegantcode.com/wp-content/uploads/2011/08/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2011/08/image_thumb.png" width="600" height="396" /></a></p>  <p>It's also possible to hook into <a href="http://sublimetext.info/docs/en/reference/build_systems.html" target="_blank">the build system</a> of Sublime Text 2, <b>Clonidine australia, uk, us, usa</b>.  <b>Clonidine blogs</b>, You just need to create a new file named <em>CoffeeScript.sublime-build</em> at the following location: </p>  <blockquote>   <p><em>/home/&lt;my_user_name&gt;/.config/sublime-text-2/Packages/User&#160; </em></p> </blockquote>  <p align="justify">You can add the following to this new file for compiling CoffeeScript</p>  <pre style="width: 100%; height: 85px" class="csharpcode">{     <span class="str">&quot;cmd&quot;</span>: [<span class="str">&quot;coffee&quot;</span>, <span class="str">&quot;-c&quot;</span>, <b>Clonidine from canada</b>, <b>Is Clonidine addictive</b>, <span class="str">&quot;$file&quot;</span>],     <span class="str">&quot;selector&quot;</span> : <span class="str">&quot;source.coffee&quot;</span>, <b>Clonidine pharmacy</b>, <b>Ordering Clonidine online</b>, <span class="str">&quot;path&quot;</span> : <span class="str">&quot;/usr/local/bin&quot;</span>}</pre><style type="text/css">.csharpcode, .csharpcode pre{	font-size: small;	color: black;	font-family: consolas, <b>Clonidine without prescription</b>, <b>Clonidine no rx</b>, "Courier New", courier, <b>buy no prescription Clonidine online</b>, <b>Clonidine street price</b>, monospace;	background-color: #ffffff;	/*white-space: pre;*/}.csharpcode pre { margin: 0em; }.csharpcode .rem { color: #008000; }.csharpcode .kwrd { color: #0000ff; }.csharpcode .str { color: #006080; }.csharpcode .op { color: #0000c0; }.csharpcode .preproc { color: #cc6633; }.csharpcode .asp { background-color: #ffff00; }.csharpcode .html { color: #800000; }.csharpcode .attr { color: #ff0000; }.csharpcode .alt<br />
{	background-color: #f4f4f4;	width: 100%;	margin: 0em;}.csharpcode .lnum { color: #606060; }</style>or the following for executing/running CoffeeScript code.</p>
<p><pre style="width: 100%; height: 85px" class="csharpcode">{     <span class="str">&quot;cmd&quot;</span>: [<span class="str">&quot;coffee&quot;</span>, <b>Clonidine for sale</b>, <b>What is Clonidine</b>, <span class="str">&quot;$file&quot;</span>],     <span class="str">&quot;selector&quot;</span> : <span class="str">&quot;source.coffee&quot;</span>, <b>get Clonidine</b>, <b>Clonidine class</b>, <span class="str">&quot;path&quot;</span> : <span class="str">&quot;/usr/local/bin&quot;</span>}</pre></p>
<p><p align="justify">Now when you hit F7, this fresh build command is executed when a CoffeeScript source file is showing in the active tab, <b>cheap Clonidine no rx</b>.  It’s also possible to change the build short-key to your own taste through the <em>Preferences</em> menu, <b>Buy Clonidine Without Prescription</b>.  <b>Fast shipping Clonidine</b>, <style type="text/css">.csharpcode, .csharpcode pre{	font-size: small;	color: black;	font-family: consolas, <b>buy Clonidine from canada</b>, <b>Clonidine without a prescription</b>, "Courier New", courier, <b>purchase Clonidine online no prescription</b>, <b>Effects of Clonidine</b>, monospace;	background-color: #ffffff;	/*white-space: pre;*/}.csharpcode pre { margin: 0em; }.csharpcode .rem { color: #008000; }.csharpcode .kwrd { color: #0000ff; }.csharpcode .str { color: #006080; }.csharpcode .op { color: #0000c0; }.csharpcode .preproc { color: #cc6633; }.csharpcode .asp { background-color: #ffff00; }.csharpcode .html { color: #800000; }.csharpcode .attr { color: #ff0000; }.csharpcode .alt<br />
{	background-color: #f4f4f4;	width: 100%;	margin: 0em;}.csharpcode .lnum { color: #606060; }</style></p></p>
<p><p align="justify">Unfortunately, there’s only one build command as I would love to create a separate command for compiling and running CoffeeScript code (or perhaps I missed this feature during the excitement <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-winkingsmile" alt="Winking smile" src="http://elegantcode.com/wp-content/uploads/2011/08/wlEmoticon-winkingsmile.png" />), <b>buy generic Clonidine</b>.  <b>Is Clonidine safe</b>, </p></p>
<p><p align="justify">Some more usage is definitely needed for me to learn more about this excellent text editor, but currently I’m pretty happy with it, <b>Clonidine trusted pharmacy reviews</b>.  <b>Taking Clonidine</b>, I also need to find out how well JavaScript is supported and perhaps see how far one can go when doing some C# development using Mono. I expect that there are a good number of productive features in there for me to discover.</p></p>
<p><p align="justify">I encourage you have a decent look at this excellent tool, <b>Clonidine dangers</b>.  <b>Order Clonidine from mexican pharmacy</b>, </p></p>
<p><p align="justify">Until next time.</p>.  Herbal Clonidine.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4452'>Stromectol For Sale</a>. <a href='http://elegantcode.com/?p=4867'>Buy Soma Without Prescription</a>. <a href='http://elegantcode.com/?p=4758'>Buy Atenolol Without Prescription</a>. <a href='http://elegantcode.com/?p=4553'>Buy Female Pink Viagra Without Prescription</a>. <a href='http://elegantcode.com/?p=4560'>Vermox For Sale</a>. <a href='http://elegantcode.com/?p=4662'>Where can i buy cheapest Antabuse online</a>. <a href='http://elegantcode.com/?p=4508'>Slimex (Obetrim) photos</a>. <a href='http://elegantcode.com/?p=4623'>Augmentin description</a>. <a href='http://elegantcode.com/?p=4752'>Buy Colchicine no prescription</a>. <a href='http://elegantcode.com/?p=4322'>Clonidine natural</a>.<br />
<b>Trackbacks from:</b> <a href='http://evanrapoport.com/?p=429'>Buy Clonidine Without Prescription</a>. <a href='http://www.themusclecarplace.com/?p=5350'>Buy Clonidine Without Prescription</a>. <a href='http://changecamp.ca/?p=578'>Buy Clonidine Without Prescription</a>. <a href='http://blog.farmland.org/?p=3172'>Buy Clonidine Without Prescription</a>. <a href='http://home.officesnapshots.com/?p=175'>Buy Clonidine Without Prescription</a>. <a href='http://www.thegriffonnews.com/?p=9699'>Kjøpe Clonidine på nett, köpa Clonidine online</a>. <a href='http://www.quarterlives.com/?p=831'>Buy cheap Clonidine no rx</a>. <a href='http://www.greatgreengoods.com/?p=3511'>Clonidine use</a>. <a href='http://www.macneilbmx.com/blog/?p=5325'>Clonidine no rx</a>. <a href='http://social-blend.com/?p=482'>Online buying Clonidine hcl</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Buy Viagra Without Prescription</title>
		<link>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor</link>
		<comments>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 22:51:00 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Entity Framework]]></category>
		<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/</guid>
		<description><![CDATA[Buy Viagra Without Prescription, If you’ve taken the jump to try out the new Entity Framework Code First and you’re allowing it to generate your database for you, you’ve most certainly run into the lack of migrations/updating existing schema support. Currently EF Code First will only create a database and won’t update a database with [...]]]></description>
			<content:encoded><![CDATA[<p> <p> <b>Buy Viagra Without Prescription</b>, If you’ve taken the jump to try out the new Entity Framework Code First and you’re allowing it to generate your database for you, you’ve most certainly run into the lack of migrations/updating existing schema support. Currently EF Code First will only create a database and won’t update a database with changes necessary to bring it in line with your model, <b>where can i order Viagra without prescription</b>.  <b>Effects of Viagra</b>, I know they’re working on it, but since it’s not there, <b>buy generic Viagra</b>, <b>Online buy Viagra without a prescription</b>, I thought I’d share a possible solution, albeit less polished than some of the well known database change management out there.</p>  <h4>Where is the tool?</h4>  <p>You can access it in the VS Command window, <b>Viagra coupon</b>.  <b>Buy Viagra no prescription</b>, On my x64 machine the tool is in.</p>  <blockquote>   <p>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VSTSDB\Deploy\vsdbcmd.exe</p> </blockquote>  <h4>I want to deploy an existing schema to AppHarbor.</h4>  <p>Some high level steps that you can use for deployment of database changes.</p>  <ol>   <li>Generate an original reflection of your database. (*.dbschema file) </li>    <li>Tiny little hack to the .dbschema file, <b>Viagra reviews</b>. </li>    <li>Generate the change file to AppHarbor </li>    <li>Review Change Script Generated </li>    <li>Take the app offline, <b>Buy Viagra Without Prescription</b>.  <b>Order Viagra from mexican pharmacy</b>, (optional) </li>    <li>Apply Change Script </li>    <li>Bring the app online (mandatory if you took step 5) </li> </ol>  <h5>Generate an original reflection of your database.</h5>  <p>This file is a complete reflection of your databases schema in a single xml file.</p>  <p>The following command can be used to generate this file.</p>  <blockquote>   <p>vsdbcmd.exe      <br />&#160;&#160;&#160;&#160; /Action:Import       <br />&#160;&#160;&#160;&#160; /ConnectionString:&quot;Data Source=.\sqlexpress;Initial Catalog=MyDatabase;Integrated Security=True;Pooling=False&quot;       <br />&#160;&#160;&#160;&#160; /ModelFile:MyDatabase.dbschema</p> </blockquote>  <p>There are a ton of knobs to turn with this command line tool. Feel free to check out the docs <a href="http://msdn.microsoft.com/en-us/library/dd193283.aspx">http://msdn.microsoft.com/en-us/library/dd193283.aspx</a></p>  <p>Now you should have a file “MyDatabase.dbschema” sitting on your hard drive.</p>  <h5>Tiny little hack to the .dbschema file.</h5>  <p>The section of xml we want to manually remove from the file is related to where your mdf and ldf database files should exist on disk, <b>kjøpe Viagra på nett, köpa Viagra online</b>.  <b>Cheap Viagra</b>, When we go to deploy up to AppHarbor, if this is not removed, <b>buy Viagra online no prescription</b>, <b>Online buying Viagra hcl</b>, then vsdbcmd will generate script to attempt to move the files into the “correct” location. This operation will throw exceptions if you attempt to execute against AppHarbor as you don’t have permission to do this, <b>Viagra gel, ointment, cream, pill, spray, continuous-release, extended-release</b>.  <b>Buy Viagra Without Prescription</b>, We’re removing it from the xml file, as I can’t seem to get the correct command line option to ignore this (if there is an option).  <b>Viagra no prescription</b>, So by removing it, it’s just not used and completely ignored.</p>  <p>I don’t know if this will be true for everyone, <b>Viagra photos</b>, <b>Viagra steet value</b>, but I find that the last two sections of xml in the dbschema file are all I have to remove. I’ll show the two full sections below so you can use it as a reference of what to remove from the file.</p>  <pre class="brush: xml;">&lt;Element Type=&quot;ISql90File&quot; Name=&quot;[MyDatabase]&quot;&gt;    &lt;Property Name=&quot;FileName&quot; Value=&quot;$(DefaultDataPath)$(DatabaseName).mdf&quot; /&gt;    &lt;Property Name=&quot;Size&quot; Value=&quot;2304&quot; /&gt;    &lt;Property Name=&quot;SizeUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Property Name=&quot;FileGrowth&quot; Value=&quot;1024&quot; /&gt;    &lt;Property Name=&quot;FileGrowthUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Relationship Name=&quot;Filegroup&quot;&gt;        &lt;Entry&gt;            &lt;References ExternalSource=&quot;BuiltIns&quot; Name=&quot;[PRIMARY]&quot; /&gt;        &lt;/Entry&gt;    &lt;/Relationship&gt;&lt;/Element&gt;&lt;Element Type=&quot;ISql90File&quot; Name=&quot;[MyDatabase_log]&quot;&gt;    &lt;Property Name=&quot;FileName&quot; Value=&quot;$(DefaultLogPath)$(DatabaseName)_log.LDF&quot; /&gt;    &lt;Property Name=&quot;Size&quot; Value=&quot;576&quot; /&gt;    &lt;Property Name=&quot;SizeUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Property Name=&quot;MaxSize&quot; Value=&quot;2097152&quot; /&gt;    &lt;Property Name=&quot;IsUnlimited&quot; Value=&quot;False&quot; /&gt;    &lt;Property Name=&quot;FileGrowth&quot; Value=&quot;10&quot; /&gt;    &lt;Property Name=&quot;FileGrowthUnit&quot; Value=&quot;1&quot; /&gt;    &lt;Property Name=&quot;IsLogFile&quot; Value=&quot;True&quot; /&gt;&lt;/Element&gt;</pre></p>
<p><h5>Generate the change file to AppHarbor.</h5></p>
<p><p>Now that we have a .dbschema file containing the complete model of what we want deployed, <b>comprar en línea Viagra, comprar Viagra baratos</b>, <b>Viagra without prescription</b>, we can now use it to generate a schema change deployment script.</p></p>
<p><blockquote>  <p>vsdbcmd.exe<br />
    <br />&#160;&#160;&#160;&#160; /Action:Deploy</p>
<p>    <br />&#160;&#160;&#160;&#160; /DeployToDatabase:-</p>
<p>    <br />&#160;&#160;&#160;&#160; /Script:Test.sql</p>
<p>    <br />&#160;&#160;&#160;&#160; /ConnectionString:&quot;{YourAppHarborConnectionString}&quot;</p>
<p>    <br />&#160;&#160;&#160;&#160; /ModelFile:HackIt.dbschema</p>
<p>    <br />&#160;&#160;&#160;&#160; /Properties:TargetDatabase={YourAppHarborDatabaseName EX:db1235}</p></blockquote></p>
<p><p>I’ll explain a couple of the above command options.</p></p>
<p><h6>/DeployToDatabase:-</h6></p>
<p><p>This one is _<strong><u>key</u></strong>_. This tells vsdbcmd to only generate a change script, <b>Viagra price, coupon</b>, <b>Herbal Viagra</b>, and <strong>not to actually deploy the changes </strong>immediately. Until you feel comfortable with what sql the tool generates, <b>Viagra australia, uk, us, usa</b>, <b>Viagra blogs</b>, which is usually pretty darn good, you should not apply it immediately, <b>Viagra dose</b>. Allow the tool to generate the file for further inspection and you can execute it manually after, <b>Buy Viagra Without Prescription</b>.  <b>Viagra dosage</b>, <br /></p></p>
<p><h6>/Script:Test.sql</h6></p>
<p><p>This this is just the name of the file to dump the deployment changes.<br />
  <br /></p></p>
<p><h6>/ModelFile:HackIt.dbschema</h6></p>
<p><p>The path to the .dbschema we generated and modified above.</p></p>
<p><p>&#160;</p></p>
<p><h5>Review Change Script Generated.</h5></p>
<p><p>After you’ve generated a change script file, <b>order Viagra from United States pharmacy</b>, <b>Buy Viagra from canada</b>, take a look at the sql just to make sure you’re happy with what it generates.</p></p>
<p><h5>Take the app offline. (optional)</h5></p>
<p><p>This one depends on the schema changes, <b>Viagra class</b>.  <b>Where can i find Viagra online</b>, If the changes are serious enough, you can check in an App_Offline.htm file at the root of web project and do a “git push appharbor”, <b>Viagra maximum dosage</b>.  <b>Buy Viagra Without Prescription</b>, This way, while making schema changes you don’t have to worry about the errors popping up on users.  <b>Is Viagra safe</b>, Down side is your site becomes inoperable.</p></p>
<p><blockquote>  <p>If you’ve never heard of the App_Offline.htm – I’d recommend reading up on it. <a href="http://weblogs.asp.net/scottgu/archive/2006/04/09/442332.aspx">http://weblogs.asp.net/scottgu/archive/2006/04/09/442332.aspx</a></p></blockquote></p>
<p><h5>Apply Change Script.</h5></p>
<p><p>You have several options to actually apply the scripted changes.</p></p>
<p><ol>  <li>Use vsdbcmd to deploy – Just turn the /DeployToDatabase:<strong>-</strong> to /DeployToDatabase:<strong>+</strong> and allow vsdbcmd to apply the script right there, <b>Viagra over the counter</b>.  <b>Fast shipping Viagra</b>, </li></p>
<p>  <li>Use SQL Management Studio.<br />
    <br /><strong>Make Sure you turn on SQLCMD Mode</strong><a href="http://elegantcode.com/wp-content/uploads/2011/04/image1.png"><br />
      <br /><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2011/04/image_thumb1.png" width="311" height="333" /></a>&#160; </li></ol></p>
<p><h5>Bring your site back online.</h5></p>
<p><p>Now you can go re-name the App_Offline.htm to something like App_Offline.htm.disabled and push those changes back up to AppHarbor.</p></p>
<p><h4>Other considerations.</h4></p>
<p><ul>  <li>Consider a simple migrations framework (EX: <a href="http://code.google.com/p/dbup/" target="_blank">DbUp</a>) to get some initial data or things initialized, <b>generic Viagra</b>, <b>Viagra australia, uk, us, usa</b>, but be-ware that you’ll have to think a little harder about the “rollback” steps with this approach.</p>
<p>    <br /></li></p>
<p>  <li>Next you could take a look at an inquiry I made on the public support discussion list at AppHarbor hoping to push AppHarbor to implement this App_Offline.htm support (right into their admin site)<a href="http://support.appharbor.com/discussions/problems/373-deployment-feature-idea"><br />
      <br />http://support.appharbor.com/discussions/problems/373-deployment-feature-idea</a></p>
<p>    <br /><strong>UPDATE:</strong> SPARE A VOTE OR TWO: <a title="http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic" href="http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic">http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic</a> </li></ul></p>
<p><p>One great benefit of to this approach is the ability for vsdbcmd to manage changes to an existing schema, <b>rx free Viagra</b>.  <b>Cheap Viagra</b>, </p></p>
<p><p>Now if you want full support like refactorings such as table, column, <b>Viagra treatment</b>, <b>Ordering Viagra online</b>, etc renames. You will want to keep a full db project and use that to do a deployment.</p></p>
<p><p>Hope you find this useful, <b>buy no prescription Viagra online</b>.  <b>Taking Viagra</b>, Happy Deployment!</p>.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4335'>Buy Differin Without Prescription</a>. <a href='http://elegantcode.com/?p=4423'>Antabuse For Sale</a>. <a href='http://elegantcode.com/?p=4744'>Buy Flexeril Without Prescription</a>. <a href='http://elegantcode.com/?p=4587'>Buy Pristiq Without Prescription</a>. <a href='http://elegantcode.com/?p=4633'>Cephalexin For Sale</a>. <a href='http://elegantcode.com/?p=4384'>Order Ultram online overnight delivery no prescription</a>. <a href='http://elegantcode.com/?p=4683'>Inderal schedule</a>. <a href='http://elegantcode.com/?p=4822'>About Hydrochlorothiazide</a>. <a href='http://elegantcode.com/?p=4728'>Ventolin australia, uk, us, usa</a>. <a href='http://elegantcode.com/?p=4694'>Human Growth Hormone interactions</a>.<br />
<b>Trackbacks from:</b> <a href='http://www.greatgreengoods.com/?p=2891'>Buy Viagra Without Prescription</a>. <a href='http://www.thegriffonnews.com/?p=10272'>Buy Viagra Without Prescription</a>. <a href='http://www.themusclecarplace.com/?p=3445'>Buy Viagra Without Prescription</a>. <a href='http://linuxologist.com/?p=363'>Buy Viagra Without Prescription</a>. <a href='http://blog.farmland.org/?p=2709'>Buy Viagra Without Prescription</a>. <a href='http://www.quarterlives.com/?p=286'>Where can i cheapest Viagra online</a>. <a href='http://www.macneilbmx.com/blog/?p=6199'>Online Viagra without a prescription</a>. <a href='http://social-blend.com/?p=1253'>Japan, craiglist, ebay, overseas, paypal</a>. <a href='http://www.leaduganda.org/?p=824'>Purchase Viagra online no prescription</a>. <a href='http://4realz.net/?p=1851'>Viagra no rx</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving your global .gitconfig file</title>
		<link>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=moving-your-global-gitconfig-file</link>
		<comments>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/#comments</comments>
		<pubDate>Fri, 05 Nov 2010 11:02:41 +0000</pubDate>
		<dc:creator>Andreas Håkansson</dc:creator>
				<category><![CDATA[Source Control]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/</guid>
		<description><![CDATA[I am using msysgit for my Git work on Windows and for quite a while I have been wanting to move the global .gitconfig file from its default location into my dropbox folder. The reason for this is probably obvious, I do not want to have to make the same configuration changes on multiple machines [...]]]></description>
			<content:encoded><![CDATA[I am using <a title="Visit the project page of msysgit" href="http://code.google.com/p/msysgit/" target="_blank">msysgit</a> for my Git work on Windows and for quite a while I have been wanting to move the global .gitconfig file from its default location into my dropbox folder. The reason for this is probably obvious, I do not want to have to make the same configuration changes on multiple machines to get a homogenize Git environment.

So I set out to resolve this but despite numerous stops at my local Google page, I was unable to find any information on how to make Git look for the file in a different location, it always went to look for the file at <em>%USERPROFILE%\.gitconfig</em>.

As a last resort I asked <a title="Visit the blog of Joshua Flanagan" href="http://www.lostechies.com/blogs/joshuaflanagan/" target="_blank">Joshua Flanagan</a> if he had any idea on how I could configure Git or msysgit to make this possible. Unfortunately he had no idea, but he did however suggest that I try using <a title="Visit the product page for mklink" href="http://technet.microsoft.com/en-us/library/cc753194(WS.10).aspx" target="_blank">mklink</a>, a command line utility available in Windows Vista and later.

mklink enables you to create either <a title="Read more about the differences between symbolic and hard links" href="http://www.maxi-pedia.com/difference+between+symbolic+link+and+hard+link" target="_blank">symbolic or hard links</a> for files or directories. What I needed was a symbolic link, which simply explained is like a shortcut to a file but the difference is that the file system will resolve the symbolic link to the real file, where as a windows shortcut is a file with information in it.

To create a symbolic link for your .gitconfig file do the following
<ol>
	<li>Copy your .gitconfig file from the %USERPROFILE% directory, to the directory where you want to store it instead</li>
	<li>Delete the .gitconfig file in the %USERPROFILE% directory</li>
	<li>Start <strong>cmd.exe</strong> as Administrator</li>
	<li>Enter <strong>mklink .gitconfig path\to\your\.gitconfig</strong> (notice the actual filename needs to be in the second parameter or you will link to the folder it is stored in)</li>
</ol>
You should now get a message that a symbolic link was created between the two files. Try making a change in either of them and see that the change is reflected in the other one – this is because you are always editing the same file since the file system resolves the symbolic link into the real file.]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Pluralcast 21 &#8211; Extending Visual Studio 2010 with Kate Gregory</title>
		<link>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pluralcast-21-extending-visual-studio-2010-with-kate-gregory</link>
		<comments>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 03:42:23 +0000</pubDate>
		<dc:creator>David Starr</dc:creator>
				<category><![CDATA[Pluralcast]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/</guid>
		<description><![CDATA[Listen Now! Kate Gregory has probably forgotten more coding tricks than I have ever learned. That means that she likes her Visual Studio with meat and potatoes. With the new extensibility model in Visual Studio 2010,  Visual Studio can now be the primary source or protein in your IDE diet. In this episode Kate tells us [...]]]></description>
			<content:encoded><![CDATA[<a href="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3"><img style="display: inline; border-width: 0px;" title="PlayIcon" src="http://elegantcode.com/wp-content/uploads/2010/08/PlayIcon.png" border="0" alt="PlayIcon" width="24" height="24" /></a> <a href="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3" target="_blank">Listen Now</a>!

Kate Gregory has probably forgotten more coding tricks than I have ever learned. That means that she likes her Visual Studio with meat and potatoes. With the new extensibility model in Visual Studio 2010,  Visual Studio can now be the primary source or protein in your IDE diet. In this episode Kate tells us how to add a little hot sauce using Visual Studio extensions.

<a href="http://elegantcode.com/wp-content/uploads/2010/08/kategregory.jpg"><img style="margin: 5px; display: inline; border-width: 0px;" title="kate-gregory" src="http://elegantcode.com/wp-content/uploads/2010/08/kategregory_thumb.jpg" border="0" alt="kate-gregory" width="112" height="142" align="right" /></a> Kate is in her fourth decade of being paid to program. Her firm, Gregory Consulting Limited, is based in rural Ontario and helps clients adopt new technologies and adjust to the changing business environment. Current work makes heavy use of .NET and Visual C++ along with SharePoint and both web and client development, especially for Windows 7. Managing, mentoring, technical writing, and technical speaking occupy much of her time, but she still writes code every week.

Kate is the author of over a dozen books and speaks at DevTeach, TechEd (USA, Europe, Africa), and TechDays, among others. Kate is a C++ MVP, a founding sponsor of the Toronto .NET Users Group, the founder of the East of Toronto .NET Users group, a member of the INETA speakers bureau, and a member of adjunct faculty at Trent University in Peterborough. Since January 2002 she has been Microsoft Regional Director for Toronto and since January 2004 she has been awarded the Microsoft Most Valuable Professional designation for Visual C++. In June 2005 she won the Regional Director of the year award.

<strong>Show Links</strong>
<ul>
	<li><a href="http://www.gregcons.com/kateblog/">Kate’s Blog</a></li>
	<li><a href="http://www.pluralsight-training.net/microsoft/olt/Course/Toc.aspx?n=vs2010-vsx">Kate’s Pluralsight course, <em>Customizing and Extending Visual Studio 2010</em></a></li>
	<li><a href="http://msdn.microsoft.com/en-us/vstudio/vextend.aspx">Visual Studio Extensibility (VSX)</a></li>
	<li><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=47305cf4-2bea-43c0-91cd-1b853602dcc5&amp;displaylang=en">Visual Studio SDK</a></li>
	<li><a href="http://visualstudiogallery.msdn.microsoft.com/">Visual Studio Gallery</a></li>
	<li><a href="http://code.msdn.microsoft.com/vsx">The Code Gallery</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3" length="41629427" type="audio/mpeg" />
		</item>
		<item>
		<title>God Mode Easter Egg</title>
		<link>http://elegantcode.com/2010/01/04/god-mode-easter-egg/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=god-mode-easter-egg</link>
		<comments>http://elegantcode.com/2010/01/04/god-mode-easter-egg/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 04:55:51 +0000</pubDate>
		<dc:creator>David Starr</dc:creator>
				<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/01/04/god-mode-easter-egg/</guid>
		<description><![CDATA[I did not discover this, I got it from a tweet that Rob Conery put out there. Thank you, Rob! I don’t know if this is a Windows 7 hack or if this is available in other operating systems. Create a new folder on your desktop Name the new folder: GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} The new folder will [...]]]></description>
			<content:encoded><![CDATA[I did not discover this, I got it from <a href="http://bit.ly/62zZlc ">a tweet</a> that <a href="http://blog.wekeroad.com/">Rob Conery</a> put out there. Thank you, Rob!

I don’t know if this is a Windows 7 hack or if this is available in other operating systems.
<ol>
	<li>Create a new folder on your desktop</li>
	<li>Name the new folder:
GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}</li>
</ol>
The new folder will change into this icon.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image1.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb1.png" border="0" alt="image" width="84" height="90" /></a>

Clicking your shiny new icon will result in a new window that gives shortcut access to the myriad of configuration and administration utilities in Windows that I always seem to need to hunt down.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image2.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb2.png" border="0" alt="image" width="397" height="1474" /></a>

Opening one of these nodes will provide direct access to the associated utils.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image3.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb3.png" border="0" alt="image" width="586" height="313" /></a>

Weird and beautiful, isn’t it?

It makes me wonder what other Easter eggs are in there.]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/01/04/god-mode-easter-egg/feed/</wfw:commentRss>
		<slash:comments>40</slash:comments>
		</item>
		<item>
		<title>Unity/Moq &#8211; AutoMocker or AutoMockingContainer</title>
		<link>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=unitymoq-automocker-or-automockingcontainer</link>
		<comments>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 16:52:33 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[TDD]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/</guid>
		<description><![CDATA[What is an Auto Mocking Container? This post started to get a little long, so I won’t re-explain the concept. Joshua Flanagan wrote a nice overview at his Los Techies blog: Auto mocking Explained. My post is mainly here to describe the Unity version of an automocking container I threw together. In Jan 2009 I [...]]]></description>
			<content:encoded><![CDATA[<h4>What is an Auto Mocking Container?</h4>  <p>This post started to get a little long, so I won’t re-explain the concept.</p>  <p><a href="http://www.lostechies.com/blogs/joshuaflanagan/default.aspx">Joshua Flanagan</a> wrote a nice overview at his <a href="http://www.lostechies.com/">Los Techies</a> blog: <a href="http://www.lostechies.com/blogs/joshuaflanagan/archive/2009/02/03/auto-mocking-explained.aspx"><strong>Auto mocking Explained</strong></a>.</p>  <p>My post is mainly here to describe the Unity version of an automocking container I threw together.</p>  <h4>In Jan 2009 I blogged about my initial version of the Unity AutoMocker - Why am I blogging about it again?</h4>  <p>I originally wrote the AutoMocker for the Unity container a year ago (Jan 2009, in Silverlight), and finally got around to placing the code up in the <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> project in June of 2009.</p>  <p>I’m writing another post today in hopes to:</p>  <ol>   <li>Get some feedback on how this little snippet of code should continue. </li>    <li>Give a little more how-to/example code </li>    <li>Describe some updates I made since I originally created it.&#160; </li> </ol>  <h4>Where can I get it?</h4>  <p><strong>This is one part where I’d appreciate some feedback.</strong></p>  <p>I have two slightly different versions out there (currently).</p>  <p>I have one version at the <a href="http://code.google.com/p/elegantcode/source/browse/#svn/trunk/Coders/JasonJarrett/UnityAutoMocker">ElegantCode</a> repository where I was working on it, and the other I threw up at <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a>.</p>  <p>The core of the UnityAutoMockContainer is the same in both places, it’s how the tests are separated out that differ.</p>  <p>In the <a href="http://code.google.com/p/elegantcode/source/browse/#svn/trunk/Coders/JasonJarrett/UnityAutoMocker">ElegantCode repository</a> it’s an all in one self contained single file (that you can copy into your own test project(s)). You can then setup a single test in your own testing framework that runs all internal automocker tests (in case you need to modify it yourself, and don’t want to break any existing functionality). EX: test</p>  <pre class="brush: csharp;">[Test]
public void Should_run_all_UnityAutoMockContainer_internal_tests()
{
    Moq.AutoMocking.SelfTesting.UnityAutoMockContainerFixture
        .RunAllTests(Console.WriteLine);
}</pre>

<p>I kind of like this format as it makes it easy to port between test libraries. Can’t say I like having the tests in the same file as the core, but it certainly is not a large chunk of code (so far) so it’s relatively small to maintain and definitely easier to manage as a single .cs file than another assembly (which would have to be version dependent on both Unity and Moq).</p>

<p>The <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> is definitely where I think this helper should end up (and it is there). I just happened to break the tests out into the Silverlight test project and the core is alone in a file. </p>

<p>It’s current state isn’t as easy to copy to a test library (Silverlight/Desktop/Unity 1.2/Unity 2.0) as the one at <a href="http://elegantcode.com/">ElegantCode</a>. <strong>What does anyone think?</strong> Should I put them all together in one file?</p>

<p>However it ends up (1. all in one file or two (1 test) (1 core)) it will continue to be maintained on the <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> project.</p>

<h4>What is the high level API of the container?</h4>

<p>It’s pretty simple, (currently) there are four methods on the container.</p>

<p><strong>Two for registering items with the container</strong>. Say you want to register an already created instance, or say you want to map an interface to a concrete class and _not_ have the container generate mocks automatically for special cases. </p>

<p>And <strong>two for pulling items out of the container</strong>. Whether you want a instance of T or a Mock&lt;T&gt;, it gives you ways to retrieve both.</p>

<blockquote>
  <p><a href="http://elegantcode.com/wp-content/uploads/2010/01/image.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb.png" width="396" height="106" /></a> </p>
</blockquote>

<h4>How can I setup my own registrations with the container? </h4>

<p>Say I don’t want to have the container generate mocks for specific items and I want to supply specific configuration to the UnityContainer.</p>

<blockquote>
  <p>public UnityAutoMockContainer RegisterInstance&lt;TService&gt;(TService instance)</p>

  <p>public UnityAutoMockContainer Register&lt;TService, TImplementation&gt;() 
    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; where TImplementation : TService</p>
</blockquote>

<p><strong>Note</strong>: both of these registration methods return the container itself so you can fluently stack registration. <strong>EX:</strong></p>

<pre class="brush: csharp;">AutoMockContainer
    .Register&lt;IServiceA, ServiceA&gt;()
    .Register&lt;IServiceB, ServiceB&gt;();</pre>

<p><strong>Let me know</strong>: I haven’t tested or played around with how this automocking container deals with any container specific xml configuration… So although I don’t think you should probably have that in a test assembly (stuff happens). Let me know if there are any issues.</p>

<h4>How do I get items out of the container?</h4>

<p>First is the Resolve&lt;T&gt;(). It will pull an item T out of the container. (Creating it if not already existing)</p>

<blockquote>
  <p>public T Resolve&lt;T&gt;()</p>
</blockquote>

<p>When T is an interface Resolve&lt;T&gt; (unless you setup registration specifically with the container) should return basically “(new Mock&lt;T&gt;()).Object”</p>

<p>When T is a concrete Class, the container should return an instance of T and any of it’s dependencies will be satisfied by mocks. (Note that T will not be any sort of mocked instance of T, unless you used the GetMock&lt;T&gt; as described below first)</p>

<blockquote>
  <p>public Mock&lt;T&gt; GetMock&lt;T&gt;() where T : class</p>
</blockquote>

<p>When T is an interface GetMock&lt;T&gt; should return basically “(new Mock&lt;T&gt;())” </p>

<p>When T is a concrete Class, the container should return a new Mock&lt;T&gt;() and any of it’s dependencies will be satisfied by mocks.</p>

<h4>How do I use the UnityAutoMockContainer?</h4>

<p>It’s pretty basic, you first create an instance of the UnityAutoMockContainer, and from there you can ask it for mocks of an (Interface, Class, or Abstract Class).</p>

<p>If you request an instance of a concrete class, or abstract class, the UnityAutoMockContainer will stuff mocks in for any constructor dependencies of your concrete class (if it can). You can then request from the container those same dependencies one at a time and either apply mocking setups or verifications.</p>

<blockquote>
  <p><strong>NOTE:</strong> Anything the container creates will live as a singleton instance in the container. So any other requests from the container will always return the originally created instance. Therefore, each distinct scenario in a test suite should have their own instances of the container.</p>
</blockquote>

<p>Below his an example of how you can leverage the container in some tests. Given this base fixture class…</p>

<pre class="brush: csharp;">public class FixtureBase
{
    private readonly UnityAutoMockContainer _autoMockContainer = new UnityAutoMockContainer();

    protected UnityAutoMockContainer AutoMockContainer
    {
        get { return _autoMockContainer; }
    }

    [TestFixtureSetUp]
    public void SetupContext_ALL()
    {
        Before_all_tests();
        Because();
    }

    [TestFixtureTearDown]
    public void TearDownContext_ALL()
    {
        After_all_tests();
    }

    protected virtual void Before_all_tests()
    {
    }

    protected virtual void Because()
    {
    }

    protected virtual void After_all_tests()
    {
    }
}</pre>

<p>If I were given the following system to test.</p>

<pre class="brush: csharp;">public interface IServiceA { void RunA(); }
public interface IServiceB { void RunB(); }

public class TestComponent
{
    public TestComponent(IServiceA serviceA, IServiceB serviceB)
    {
        ServiceA = serviceA;
        ServiceB = serviceB;
    }

    public IServiceA ServiceA { get; private set; }
    public IServiceB ServiceB { get; private set; }

    public void RunAll()
    {
        if (!HowDidItGo())
            return;
        ServiceA.RunA();
        ServiceB.RunB();
    }

    public virtual bool HowDidItGo()
    {
        // some really nasty untestable code
        return true;
    }
}</pre>

<p>The below example demonstrates simply verifying some behavior on the mocked dependencies of the system under test.</p>

<pre class="brush: csharp;">[TestFixture]
public class Example__how_to_pull_items_from_the_UnityAutoMockContainer_when_verifying_behavior_after_an_action_was_taken 
    : FixtureBase
{
    private TestComponent _testComponent;

    protected override void Before_all_tests()
    {
        base.Before_all_tests();
        _testComponent = AutoMockContainer.Resolve&lt;TestComponent&gt;();
    }

    protected override void Because()
    {
        _testComponent.RunAll();
    }

    [Test]
    public void Should_run_ServiceA_RunA()
    {
        AutoMockContainer
            .GetMock&lt;IServiceA&gt;()
            .Verify(v =&gt; v.RunA(), Times.Once());
    }

    [Test]
    public void Should_run_ServiceB_RunB()
    {
        AutoMockContainer
            .GetMock&lt;IServiceB&gt;()
            .Verify(v =&gt; v.RunB(), Times.Once());
    }
}</pre>

<p>Next, you may have noticed that the system under test had a complicated internal method (that may not necessarily be testable). You can use the AutoMocker to create the system under test as a Mock itself, so we can override some of the behavior. Here’s how you could quickly do that. </p>

<blockquote>
  <p><strong>Aside</strong>: I’m not saying this is a good practice or aids in good component design, just saying it’s possible</p>
</blockquote>

<pre class="brush: csharp;">[TestFixture]
public class Example__how_to_use_the_UnityAutoMockContainer_to_override_a_method_on_the_SystemUnderTest_to_test_a_certain_behavior
    : FixtureBase
{

    private TestComponent _testComponent;

    protected override void Before_all_tests()
    {
        base.Before_all_tests();
        var mockTestComponent = AutoMockContainer.GetMock&lt;TestComponent&gt;();

        mockTestComponent
            .Setup(s =&gt; s.HowDidItGo())
            .Returns(false);

        _testComponent = mockTestComponent.Object;
    }

    protected override void Because()
    {
        _testComponent.RunAll();
    }

    [Test]
    public void Should_run_ServiceA_RunA()
    {
        AutoMockContainer
            .GetMock&lt;IServiceA&gt;()
            .Verify(v =&gt; v.RunA(), Times.Never());
    }

    [Test]
    public void Should_run_ServiceB_RunB()
    {
        AutoMockContainer
            .GetMock&lt;IServiceB&gt;()
            .Verify(v =&gt; v.RunB(), Times.Never());
    }
}</pre>

<p>&#160;</p>

<p>It’s amazing how much redundant test setup code this little helper has saved me in my tests. I hope others can find some use with this as well.</p>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>If (Successful) { throw new Exception(); }</title>
		<link>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=if-successful-throw-new-exception</link>
		<comments>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 14:56:59 +0000</pubDate>
		<dc:creator>Brian Lagunas</dc:creator>
				<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/</guid>
		<description><![CDATA[So, I was installing Visual Studio 2010 Ultimate Beta 2 on one of my machines the other day and the funniest thing happened.&#160; After it successfully installed, I was prompted to send an error report. Since when is a successful operation a problem?&#160; Now, of course, I am assuming this is intentional and is transmitting [...]]]></description>
			<content:encoded><![CDATA[<p>So, I was installing Visual Studio 2010 Ultimate Beta 2 on one of my machines the other day and the funniest thing happened.&#160; After it successfully installed, I was prompted to send an error report.</p>  <p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="error" border="0" alt="error" src="http://elegantcode.com/wp-content/uploads/2009/12/error.jpg" width="380" height="209" /> </p>  <p>Since when is a successful operation a problem?&#160; Now, of course, I am assuming this is intentional and is transmitting information back to Microsoft to tell them that it was successful.&#160; But, I can see how easy it would be for someone to mistaken this for a legitimate error.&#160; Then again, maybe it is.</p>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>StatLight &#8211; Goes Open Source</title>
		<link>http://elegantcode.com/2009/12/10/statlight-goes-open-source/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=statlight-goes-open-source</link>
		<comments>http://elegantcode.com/2009/12/10/statlight-goes-open-source/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 03:26:55 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[TDD]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2009/12/10/statlight-goes-open-source/</guid>
		<description><![CDATA[Although I made a very minor attempt at making StatLight a “for-sale” product, I knew when I started that open-source was most likely going to be my long term path for StatLight. What is it? (Silverlight Testing Automation Tool) StatLight is a tool developed for automating the setup, running, and gathering results of Silverlight unit [...]]]></description>
			<content:encoded><![CDATA[Although I made a very minor attempt at making <a href="http://statlight.net" target="_blank">StatLight</a> a “for-sale” product, I knew when I started that open-source was most likely going to be my long term path for <a href="http://statlight.net" target="_blank">StatLight</a>.
<h5>What is it? (Silverlight Testing Automation Tool)</h5>
StatLight is a tool developed for automating the setup, running, and gathering results of Silverlight unit tests. StatLight helps to speed up the feedback cycles while practicing<a href="http://en.wikipedia.org/wiki/Test-driven_development"> TDD</a>/<a href="http://en.wikipedia.org/wiki/Behavior_Driven_Development">BDD</a>/(insert your test style here) during Silverlight development.
<h5>Where can I get StatLight?</h5>
<a href="http://StatLight.CodePlex.com">http://StatLight.CodePlex.com</a>
<h4>Happy Coding !!!</h4>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2009/12/10/statlight-goes-open-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running with Parallels 5</title>
		<link>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor</link>
		<comments>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 22:51:00 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Entity Framework]]></category>
		<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/</guid>
		<description><![CDATA[Buy Viagra Without Prescription, If you’ve taken the jump to try out the new Entity Framework Code First and you’re allowing it to generate your database for you, you’ve most certainly run into the lack of migrations/updating existing schema support. Currently EF Code First will only create a database and won’t update a database with [...]]]></description>
			<content:encoded><![CDATA[<p> <p> <b>Buy Viagra Without Prescription</b>, If you’ve taken the jump to try out the new Entity Framework Code First and you’re allowing it to generate your database for you, you’ve most certainly run into the lack of migrations/updating existing schema support. Currently EF Code First will only create a database and won’t update a database with changes necessary to bring it in line with your model, <b>where can i order Viagra without prescription</b>.  <b>Effects of Viagra</b>, I know they’re working on it, but since it’s not there, <b>buy generic Viagra</b>, <b>Online buy Viagra without a prescription</b>, I thought I’d share a possible solution, albeit less polished than some of the well known database change management out there.</p>  <h4>Where is the tool?</h4>  <p>You can access it in the VS Command window, <b>Viagra coupon</b>.  <b>Buy Viagra no prescription</b>, On my x64 machine the tool is in.</p>  <blockquote>   <p>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VSTSDB\Deploy\vsdbcmd.exe</p> </blockquote>  <h4>I want to deploy an existing schema to AppHarbor.</h4>  <p>Some high level steps that you can use for deployment of database changes.</p>  <ol>   <li>Generate an original reflection of your database. (*.dbschema file) </li>    <li>Tiny little hack to the .dbschema file, <b>Viagra reviews</b>. </li>    <li>Generate the change file to AppHarbor </li>    <li>Review Change Script Generated </li>    <li>Take the app offline, <b>Buy Viagra Without Prescription</b>.  <b>Order Viagra from mexican pharmacy</b>, (optional) </li>    <li>Apply Change Script </li>    <li>Bring the app online (mandatory if you took step 5) </li> </ol>  <h5>Generate an original reflection of your database.</h5>  <p>This file is a complete reflection of your databases schema in a single xml file.</p>  <p>The following command can be used to generate this file.</p>  <blockquote>   <p>vsdbcmd.exe      <br />&#160;&#160;&#160;&#160; /Action:Import       <br />&#160;&#160;&#160;&#160; /ConnectionString:&quot;Data Source=.\sqlexpress;Initial Catalog=MyDatabase;Integrated Security=True;Pooling=False&quot;       <br />&#160;&#160;&#160;&#160; /ModelFile:MyDatabase.dbschema</p> </blockquote>  <p>There are a ton of knobs to turn with this command line tool. Feel free to check out the docs <a href="http://msdn.microsoft.com/en-us/library/dd193283.aspx">http://msdn.microsoft.com/en-us/library/dd193283.aspx</a></p>  <p>Now you should have a file “MyDatabase.dbschema” sitting on your hard drive.</p>  <h5>Tiny little hack to the .dbschema file.</h5>  <p>The section of xml we want to manually remove from the file is related to where your mdf and ldf database files should exist on disk, <b>kjøpe Viagra på nett, köpa Viagra online</b>.  <b>Cheap Viagra</b>, When we go to deploy up to AppHarbor, if this is not removed, <b>buy Viagra online no prescription</b>, <b>Online buying Viagra hcl</b>, then vsdbcmd will generate script to attempt to move the files into the “correct” location. This operation will throw exceptions if you attempt to execute against AppHarbor as you don’t have permission to do this, <b>Viagra gel, ointment, cream, pill, spray, continuous-release, extended-release</b>.  <b>Buy Viagra Without Prescription</b>, We’re removing it from the xml file, as I can’t seem to get the correct command line option to ignore this (if there is an option).  <b>Viagra no prescription</b>, So by removing it, it’s just not used and completely ignored.</p>  <p>I don’t know if this will be true for everyone, <b>Viagra photos</b>, <b>Viagra steet value</b>, but I find that the last two sections of xml in the dbschema file are all I have to remove. I’ll show the two full sections below so you can use it as a reference of what to remove from the file.</p>  <pre class="brush: xml;">&lt;Element Type=&quot;ISql90File&quot; Name=&quot;[MyDatabase]&quot;&gt;    &lt;Property Name=&quot;FileName&quot; Value=&quot;$(DefaultDataPath)$(DatabaseName).mdf&quot; /&gt;    &lt;Property Name=&quot;Size&quot; Value=&quot;2304&quot; /&gt;    &lt;Property Name=&quot;SizeUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Property Name=&quot;FileGrowth&quot; Value=&quot;1024&quot; /&gt;    &lt;Property Name=&quot;FileGrowthUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Relationship Name=&quot;Filegroup&quot;&gt;        &lt;Entry&gt;            &lt;References ExternalSource=&quot;BuiltIns&quot; Name=&quot;[PRIMARY]&quot; /&gt;        &lt;/Entry&gt;    &lt;/Relationship&gt;&lt;/Element&gt;&lt;Element Type=&quot;ISql90File&quot; Name=&quot;[MyDatabase_log]&quot;&gt;    &lt;Property Name=&quot;FileName&quot; Value=&quot;$(DefaultLogPath)$(DatabaseName)_log.LDF&quot; /&gt;    &lt;Property Name=&quot;Size&quot; Value=&quot;576&quot; /&gt;    &lt;Property Name=&quot;SizeUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Property Name=&quot;MaxSize&quot; Value=&quot;2097152&quot; /&gt;    &lt;Property Name=&quot;IsUnlimited&quot; Value=&quot;False&quot; /&gt;    &lt;Property Name=&quot;FileGrowth&quot; Value=&quot;10&quot; /&gt;    &lt;Property Name=&quot;FileGrowthUnit&quot; Value=&quot;1&quot; /&gt;    &lt;Property Name=&quot;IsLogFile&quot; Value=&quot;True&quot; /&gt;&lt;/Element&gt;</pre></p>
<p><h5>Generate the change file to AppHarbor.</h5></p>
<p><p>Now that we have a .dbschema file containing the complete model of what we want deployed, <b>comprar en línea Viagra, comprar Viagra baratos</b>, <b>Viagra without prescription</b>, we can now use it to generate a schema change deployment script.</p></p>
<p><blockquote>  <p>vsdbcmd.exe<br />
    <br />&#160;&#160;&#160;&#160; /Action:Deploy</p>
<p>    <br />&#160;&#160;&#160;&#160; /DeployToDatabase:-</p>
<p>    <br />&#160;&#160;&#160;&#160; /Script:Test.sql</p>
<p>    <br />&#160;&#160;&#160;&#160; /ConnectionString:&quot;{YourAppHarborConnectionString}&quot;</p>
<p>    <br />&#160;&#160;&#160;&#160; /ModelFile:HackIt.dbschema</p>
<p>    <br />&#160;&#160;&#160;&#160; /Properties:TargetDatabase={YourAppHarborDatabaseName EX:db1235}</p></blockquote></p>
<p><p>I’ll explain a couple of the above command options.</p></p>
<p><h6>/DeployToDatabase:-</h6></p>
<p><p>This one is _<strong><u>key</u></strong>_. This tells vsdbcmd to only generate a change script, <b>Viagra price, coupon</b>, <b>Herbal Viagra</b>, and <strong>not to actually deploy the changes </strong>immediately. Until you feel comfortable with what sql the tool generates, <b>Viagra australia, uk, us, usa</b>, <b>Viagra blogs</b>, which is usually pretty darn good, you should not apply it immediately, <b>Viagra dose</b>. Allow the tool to generate the file for further inspection and you can execute it manually after, <b>Buy Viagra Without Prescription</b>.  <b>Viagra dosage</b>, <br /></p></p>
<p><h6>/Script:Test.sql</h6></p>
<p><p>This this is just the name of the file to dump the deployment changes.<br />
  <br /></p></p>
<p><h6>/ModelFile:HackIt.dbschema</h6></p>
<p><p>The path to the .dbschema we generated and modified above.</p></p>
<p><p>&#160;</p></p>
<p><h5>Review Change Script Generated.</h5></p>
<p><p>After you’ve generated a change script file, <b>order Viagra from United States pharmacy</b>, <b>Buy Viagra from canada</b>, take a look at the sql just to make sure you’re happy with what it generates.</p></p>
<p><h5>Take the app offline. (optional)</h5></p>
<p><p>This one depends on the schema changes, <b>Viagra class</b>.  <b>Where can i find Viagra online</b>, If the changes are serious enough, you can check in an App_Offline.htm file at the root of web project and do a “git push appharbor”, <b>Viagra maximum dosage</b>.  <b>Buy Viagra Without Prescription</b>, This way, while making schema changes you don’t have to worry about the errors popping up on users.  <b>Is Viagra safe</b>, Down side is your site becomes inoperable.</p></p>
<p><blockquote>  <p>If you’ve never heard of the App_Offline.htm – I’d recommend reading up on it. <a href="http://weblogs.asp.net/scottgu/archive/2006/04/09/442332.aspx">http://weblogs.asp.net/scottgu/archive/2006/04/09/442332.aspx</a></p></blockquote></p>
<p><h5>Apply Change Script.</h5></p>
<p><p>You have several options to actually apply the scripted changes.</p></p>
<p><ol>  <li>Use vsdbcmd to deploy – Just turn the /DeployToDatabase:<strong>-</strong> to /DeployToDatabase:<strong>+</strong> and allow vsdbcmd to apply the script right there, <b>Viagra over the counter</b>.  <b>Fast shipping Viagra</b>, </li></p>
<p>  <li>Use SQL Management Studio.<br />
    <br /><strong>Make Sure you turn on SQLCMD Mode</strong><a href="http://elegantcode.com/wp-content/uploads/2011/04/image1.png"><br />
      <br /><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2011/04/image_thumb1.png" width="311" height="333" /></a>&#160; </li></ol></p>
<p><h5>Bring your site back online.</h5></p>
<p><p>Now you can go re-name the App_Offline.htm to something like App_Offline.htm.disabled and push those changes back up to AppHarbor.</p></p>
<p><h4>Other considerations.</h4></p>
<p><ul>  <li>Consider a simple migrations framework (EX: <a href="http://code.google.com/p/dbup/" target="_blank">DbUp</a>) to get some initial data or things initialized, <b>generic Viagra</b>, <b>Viagra australia, uk, us, usa</b>, but be-ware that you’ll have to think a little harder about the “rollback” steps with this approach.</p>
<p>    <br /></li></p>
<p>  <li>Next you could take a look at an inquiry I made on the public support discussion list at AppHarbor hoping to push AppHarbor to implement this App_Offline.htm support (right into their admin site)<a href="http://support.appharbor.com/discussions/problems/373-deployment-feature-idea"><br />
      <br />http://support.appharbor.com/discussions/problems/373-deployment-feature-idea</a></p>
<p>    <br /><strong>UPDATE:</strong> SPARE A VOTE OR TWO: <a title="http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic" href="http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic">http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic</a> </li></ul></p>
<p><p>One great benefit of to this approach is the ability for vsdbcmd to manage changes to an existing schema, <b>rx free Viagra</b>.  <b>Cheap Viagra</b>, </p></p>
<p><p>Now if you want full support like refactorings such as table, column, <b>Viagra treatment</b>, <b>Ordering Viagra online</b>, etc renames. You will want to keep a full db project and use that to do a deployment.</p></p>
<p><p>Hope you find this useful, <b>buy no prescription Viagra online</b>.  <b>Taking Viagra</b>, Happy Deployment!</p>.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4335'>Buy Differin Without Prescription</a>. <a href='http://elegantcode.com/?p=4423'>Antabuse For Sale</a>. <a href='http://elegantcode.com/?p=4744'>Buy Flexeril Without Prescription</a>. <a href='http://elegantcode.com/?p=4587'>Buy Pristiq Without Prescription</a>. <a href='http://elegantcode.com/?p=4633'>Cephalexin For Sale</a>. <a href='http://elegantcode.com/?p=4384'>Order Ultram online overnight delivery no prescription</a>. <a href='http://elegantcode.com/?p=4683'>Inderal schedule</a>. <a href='http://elegantcode.com/?p=4822'>About Hydrochlorothiazide</a>. <a href='http://elegantcode.com/?p=4728'>Ventolin australia, uk, us, usa</a>. <a href='http://elegantcode.com/?p=4694'>Human Growth Hormone interactions</a>.<br />
<b>Trackbacks from:</b> <a href='http://www.greatgreengoods.com/?p=2891'>Buy Viagra Without Prescription</a>. <a href='http://www.thegriffonnews.com/?p=10272'>Buy Viagra Without Prescription</a>. <a href='http://www.themusclecarplace.com/?p=3445'>Buy Viagra Without Prescription</a>. <a href='http://linuxologist.com/?p=363'>Buy Viagra Without Prescription</a>. <a href='http://blog.farmland.org/?p=2709'>Buy Viagra Without Prescription</a>. <a href='http://www.quarterlives.com/?p=286'>Where can i cheapest Viagra online</a>. <a href='http://www.macneilbmx.com/blog/?p=6199'>Online Viagra without a prescription</a>. <a href='http://social-blend.com/?p=1253'>Japan, craiglist, ebay, overseas, paypal</a>. <a href='http://www.leaduganda.org/?p=824'>Purchase Viagra online no prescription</a>. <a href='http://4realz.net/?p=1851'>Viagra no rx</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Elegant Code &#187; Tools and Utilities</title>
	<atom:link href="http://elegantcode.com/category/tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://elegantcode.com</link>
	<description></description>
	<lastBuildDate>Tue, 15 May 2012 10:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Quinine For Sale</title>
		<link>http://elegantcode.com/2012/01/18/monitoring-an-mmo/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=monitoring-an-mmo</link>
		<comments>http://elegantcode.com/2012/01/18/monitoring-an-mmo/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 19:45:32 +0000</pubDate>
		<dc:creator>Tony Rasa</dc:creator>
				<category><![CDATA[Architecture]]></category>
		<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Metrics]]></category>
		<category><![CDATA[MMO]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2012/01/18/monitoring-an-mmo/</guid>
		<description><![CDATA[I’ve been working on a free-to-play MMO Quinine For Sale, which has been “officially” live since last April, and things have been going well – a steady growth of players; the game itself has been well-received, and all the important graphs are “up and to the right.”&#160; Part of my job involves detecting problems before [...]]]></description>
			<content:encoded><![CDATA[<p> <p>I’ve been working on a free-to-play <a href="http://www.heroup.com" target="_blank">MMO</a> <b>Quinine For Sale</b>, which has been “officially” live since last April, and things have been going well – a steady growth of players; the game itself has been well-received, and all the important graphs are “up and to the right.”&#160; Part of my job involves detecting problems before they become serious and fixing problems when they inevitably do.&#160; So, there are two questions.&#160; “Is there a problem in the game?” “What is causing the problem?”&#160; </p>  <p>When trying to debug something on our development and test clusters, typically you can tail log files.&#160; We have a python script that can monitor the communication between various parts of the game and pretty-print it along with color to highlight “this is a problem!”&#160; Attaching a debugger to a running process is also not uncommon.&#160; However, looking at logs and bus traffic in realtime on a production environment gives you this neat “Matrix-y” experience.&#160; Attaching a debugger to a production process (assuming you could, which you can’t) would get you smacked with a rolled-up newspaper.&#160; “Bad Developer!&#160; No treat!”&#160; So, what can you do?</p>  <h4>Monitoring</h4>  <p>When you’ve got clusters full of machines, using <a href="http://www.nagios.org/" target="_blank">Nagios</a> to monitor things is an obvious solution.&#160; Beyond making sure the power is on and other sysadmin things, we’ve written other checks to see if the login process is working, the parts are working together, and automating typical in-game functions.&#160; For example, if nagios can’t successfully log into the game do basic game activity, then alerts happen.</p>  <h4>Metrics for EVERYTHING</h4>  <p>Anything that happens in game has metrics reporting tied to it, generating piles of data constantly.&#160; We use <a href="http://www.cacti.net/" target="_blank">Cacti</a> to visualize game activity.&#160; An example metric is concurrent users, or CCU.&#160; We graph how many people are in the game over time, which when things are healthy should be a nice smooth curve climbing to peak game hours, then descending nicely through the night.</p>  <p>We can tell by sight if the game looks healthy or not – if the CCU graph is jaggy, has a sudden drop or spike, or drops to zero then we know that something is wrong.&#160; Typically nagios alerts accompany the graphs, giving more data points on where to look.&#160; But this has also pointed out areas where a nagios check was missing or wasn’t working as intended.</p>  <h4>Log Files</h4>  <p>When a player gets an error in game, the error dialog box gives them the opportunity to submit the error details back to us.&#160; If we see a spike in user-reported errors through this or other customer service means, we know we have something of interest to look for.&#160; </p>  <p>The game server components make use of log4j and similar logging frameworks.&#160; Anything that you’d want to watch happening in game needs to be aggressively logged.&#160; All components are configured so that operations can change the log level on the fly.&#160; That’s still quite a bit of data across many machines though, so all that information is run through <a href="http://www.splunk.com/product" target="_blank">Splunk</a> to be indexed and searchable.&#160; This gives us a great tool for searching through log data, examining trends, or watching selected activity in real time.&#160; Unfortunately it is very expensive so we are selective about the data that passes through it.&#160; </p>.  Buy Quinine from mexico.  Buy Quinine no prescription.  No prescription Quinine online.  Online buying Quinine.  Quinine no prescription.  Quinine street price.  Buy no prescription Quinine online.  Quinine coupon.  Quinine over the counter.  Where can i buy Quinine online.  Quinine steet value.  Where to buy Quinine.  Order Quinine online overnight delivery no prescription.  Quinine recreational.  Quinine canada, mexico, india.  Ordering Quinine online.  Quinine without prescription.  Quinine price, coupon.  Quinine description.  Order Quinine from mexican pharmacy.  Quinine pics.  What is Quinine.  Japan, craiglist, ebay, overseas, paypal.  Order Quinine from United States pharmacy.  Order Quinine online c.o.d.  Quinine trusted pharmacy reviews.  Quinine treatment.  Buy Quinine from canada.  Quinine used for.  Discount Quinine.  Is Quinine addictive.  Quinine forum.  Buy Quinine online no prescription.  Is Quinine safe.  Purchase Quinine for sale.  Effects of Quinine.  Buy Quinine online cod.  Quinine australia, uk, us, usa.  Buy Quinine without prescription.  Quinine online cod.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4721'>Buy Flonase Without Prescription</a>. <a href='http://elegantcode.com/?p=4234'>Buy Periactin Without Prescription</a>. <a href='http://elegantcode.com/?p=4203'>Buy Armour Without Prescription</a>. <a href='http://elegantcode.com/?p=4899'>Buy Macrobid Without Prescription</a>. <a href='http://elegantcode.com/?p=4534'>Xalatan For Sale</a>. <a href='http://elegantcode.com/?p=4302'>Phenergan wiki</a>. <a href='http://elegantcode.com/?p=4268'>Soma maximum dosage</a>. <a href='http://elegantcode.com/?p=4602'>Zovirax treatment</a>. <a href='http://elegantcode.com/?p=4578'>Cialis price, coupon</a>. <a href='http://elegantcode.com/?p=4189'>Flexeril price</a>.<br />
<b>Trackbacks from:</b> <a href='http://www.leaduganda.org/?p=514'>Quinine For Sale</a>. <a href='http://www.macneilbmx.com/blog/?p=4820'>Quinine For Sale</a>. <a href='http://www.greatgreengoods.com/?p=2780'>Quinine For Sale</a>. <a href='http://www.thegriffonnews.com/?p=10177'>Quinine For Sale</a>. <a href='http://www.independentworldreport.com/?p=2409'>Quinine For Sale</a>. <a href='http://changecamp.ca/?p=295'>Quinine description</a>. <a href='http://social-blend.com/?p=624'>Quinine price, coupon</a>. <a href='http://blog.farmland.org/?p=3946'>Online buying Quinine hcl</a>. <a href='http://4realz.net/?p=1595'>Quinine from canada</a>. <a href='http://reversemortgagedaily.com/?p=14535'>Where to buy Quinine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2012/01/18/monitoring-an-mmo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Buy Clonidine Without Prescription</title>
		<link>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=moving-from-e-texteditor-to-sublime-text-2</link>
		<comments>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 23:45:32 +0000</pubDate>
		<dc:creator>Jan Van Ryswyck</dc:creator>
				<category><![CDATA[CoffeeScript]]></category>
		<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/</guid>
		<description><![CDATA[I’ve been using E-TextEditor Buy Clonidine Without Prescription, for more than a year now for doing all my JavaScript, Node.js and CoffeeScript development. Clonidine from mexico, You can think of E-TextEditor as TextMate for the Windows platform. I’ve been pretty happy with it throughout this period as it can be extended pretty easily with a [...]]]></description>
			<content:encoded><![CDATA[<p> <p align="justify">I’ve been using <a href="http://www.e-texteditor.com/" target="_blank">E-TextEditor</a> <b>Buy Clonidine Without Prescription</b>, for more than a year now for doing all my JavaScript, Node.js and CoffeeScript development.  <b>Clonidine from mexico</b>, You can think of E-TextEditor as <a href="http://macromates.com/" target="_blank">TextMate</a> for the Windows platform. I’ve been pretty happy with it throughout this period as it can be extended pretty easily with a whole slew of bundles that are already available for TextMate, <b>cheap Clonidine</b>.  <b>Clonidine recreational</b>, E-TextEditor requires you to install <a href="http://www.cygwin.com/" target="_blank">Cygwin</a> which happens automatically during installation. Using the Cygwin command-line gave me enough (re-)exposure to a Linux-like environment in order for me wanting to (re-)learn about this other platform, <b>purchase Clonidine for sale</b>. More on that in later blog posts, <b>Buy Clonidine Without Prescription</b>.  <b>Low dose Clonidine</b>, Although there haven’t been any new versions of E-TextEditor for quite some time now, the current version enabled me to write JavaScript code in a productive way.</p>  <p align="justify">Only recently I found out about another editor called <a href="http://www.sublimetext.com/2" target="_blank">Sublime Text 2</a> (thanks to <a href="http://twitter.com/#!/casualjim" target="_blank">Ivan Porto Carrero</a>), <b>Clonidine description</b>.  <b>Clonidine overnight</b>, I downloaded this text editor in order to give it a try and I must say that I haven’t opened E-TextEditor ever since. This second version of Sublime Text is still in development but it’s pretty stable as I haven’t run into any issues so far, <b>Clonidine no prescription</b>.  <b>Clonidine brand name</b>, The cool part is that this editor is available for both Windows, Linux and OS X which enabled me to move all my Node.js and CoffeeScript development from Cygwin on Windows to Ubuntu Linux.&#160; </p>  <p align="justify">CoffeeScript isn’t supported out-of-the-box (yet), <b>purchase Clonidine</b>, <b>Clonidine gel, ointment, cream, pill, spray, continuous-release, extended-release</b>, so I installed the <a href="https://github.com/jashkenas/coffee-script-tmbundle" target="_blank">CoffeeScript&#160; TextMate bundle</a> written by <a href="http://ashkenas.com/" target="_blank">Jeremy Ashkenas</a> (yes, the same one from the <a href="http://jashkenas.github.com/coffee-script/" target="_blank">CoffeeScript</a> and <a href="http://documentcloud.github.com/backbone/" target="_blank">Backbone.js</a> fame), <b>Clonidine long term</b>.  Also check out <a href="https://github.com/jashkenas/coffee-script/wiki/Text-editor-plugins" target="_blank">this page on the CoffeeScript wiki</a> for more information on how to bring some CoffeeScript happiness to your own favorite text editor.</p>  <p align="justify"> <b>Buy Clonidine Without Prescription</b>, Setting up this TextMate bundle for use with Sublime Text 2 was actually pretty easy.  <b>Clonidine canada, mexico, india</b>, Just navigate to <em>/home/&lt;my_user_name&gt;/.config/sublime-text-2/Packages</em> in a terminal (or the corresponding file path on Windows) and clone the source of the CoffeeScript TextMate bundle using git: </p>  <blockquote>   <p align="justify"><em>git clone git://github.com/jashkenas/coffee-script-tmbundle CoffeeScript</em></p> </blockquote>  <p align="justify">Next close all the .coffee files and restart Sublime Text 2. Now we have some nice syntax highlighting and some useful code snippets at our disposal.&#160; </p>  <p align="justify"><a href="http://elegantcode.com/wp-content/uploads/2011/08/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2011/08/image_thumb.png" width="600" height="396" /></a></p>  <p>It's also possible to hook into <a href="http://sublimetext.info/docs/en/reference/build_systems.html" target="_blank">the build system</a> of Sublime Text 2, <b>Clonidine australia, uk, us, usa</b>.  <b>Clonidine blogs</b>, You just need to create a new file named <em>CoffeeScript.sublime-build</em> at the following location: </p>  <blockquote>   <p><em>/home/&lt;my_user_name&gt;/.config/sublime-text-2/Packages/User&#160; </em></p> </blockquote>  <p align="justify">You can add the following to this new file for compiling CoffeeScript</p>  <pre style="width: 100%; height: 85px" class="csharpcode">{     <span class="str">&quot;cmd&quot;</span>: [<span class="str">&quot;coffee&quot;</span>, <span class="str">&quot;-c&quot;</span>, <b>Clonidine from canada</b>, <b>Is Clonidine addictive</b>, <span class="str">&quot;$file&quot;</span>],     <span class="str">&quot;selector&quot;</span> : <span class="str">&quot;source.coffee&quot;</span>, <b>Clonidine pharmacy</b>, <b>Ordering Clonidine online</b>, <span class="str">&quot;path&quot;</span> : <span class="str">&quot;/usr/local/bin&quot;</span>}</pre><style type="text/css">.csharpcode, .csharpcode pre{	font-size: small;	color: black;	font-family: consolas, <b>Clonidine without prescription</b>, <b>Clonidine no rx</b>, "Courier New", courier, <b>buy no prescription Clonidine online</b>, <b>Clonidine street price</b>, monospace;	background-color: #ffffff;	/*white-space: pre;*/}.csharpcode pre { margin: 0em; }.csharpcode .rem { color: #008000; }.csharpcode .kwrd { color: #0000ff; }.csharpcode .str { color: #006080; }.csharpcode .op { color: #0000c0; }.csharpcode .preproc { color: #cc6633; }.csharpcode .asp { background-color: #ffff00; }.csharpcode .html { color: #800000; }.csharpcode .attr { color: #ff0000; }.csharpcode .alt<br />
{	background-color: #f4f4f4;	width: 100%;	margin: 0em;}.csharpcode .lnum { color: #606060; }</style>or the following for executing/running CoffeeScript code.</p>
<p><pre style="width: 100%; height: 85px" class="csharpcode">{     <span class="str">&quot;cmd&quot;</span>: [<span class="str">&quot;coffee&quot;</span>, <b>Clonidine for sale</b>, <b>What is Clonidine</b>, <span class="str">&quot;$file&quot;</span>],     <span class="str">&quot;selector&quot;</span> : <span class="str">&quot;source.coffee&quot;</span>, <b>get Clonidine</b>, <b>Clonidine class</b>, <span class="str">&quot;path&quot;</span> : <span class="str">&quot;/usr/local/bin&quot;</span>}</pre></p>
<p><p align="justify">Now when you hit F7, this fresh build command is executed when a CoffeeScript source file is showing in the active tab, <b>cheap Clonidine no rx</b>.  It’s also possible to change the build short-key to your own taste through the <em>Preferences</em> menu, <b>Buy Clonidine Without Prescription</b>.  <b>Fast shipping Clonidine</b>, <style type="text/css">.csharpcode, .csharpcode pre{	font-size: small;	color: black;	font-family: consolas, <b>buy Clonidine from canada</b>, <b>Clonidine without a prescription</b>, "Courier New", courier, <b>purchase Clonidine online no prescription</b>, <b>Effects of Clonidine</b>, monospace;	background-color: #ffffff;	/*white-space: pre;*/}.csharpcode pre { margin: 0em; }.csharpcode .rem { color: #008000; }.csharpcode .kwrd { color: #0000ff; }.csharpcode .str { color: #006080; }.csharpcode .op { color: #0000c0; }.csharpcode .preproc { color: #cc6633; }.csharpcode .asp { background-color: #ffff00; }.csharpcode .html { color: #800000; }.csharpcode .attr { color: #ff0000; }.csharpcode .alt<br />
{	background-color: #f4f4f4;	width: 100%;	margin: 0em;}.csharpcode .lnum { color: #606060; }</style></p></p>
<p><p align="justify">Unfortunately, there’s only one build command as I would love to create a separate command for compiling and running CoffeeScript code (or perhaps I missed this feature during the excitement <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-winkingsmile" alt="Winking smile" src="http://elegantcode.com/wp-content/uploads/2011/08/wlEmoticon-winkingsmile.png" />), <b>buy generic Clonidine</b>.  <b>Is Clonidine safe</b>, </p></p>
<p><p align="justify">Some more usage is definitely needed for me to learn more about this excellent text editor, but currently I’m pretty happy with it, <b>Clonidine trusted pharmacy reviews</b>.  <b>Taking Clonidine</b>, I also need to find out how well JavaScript is supported and perhaps see how far one can go when doing some C# development using Mono. I expect that there are a good number of productive features in there for me to discover.</p></p>
<p><p align="justify">I encourage you have a decent look at this excellent tool, <b>Clonidine dangers</b>.  <b>Order Clonidine from mexican pharmacy</b>, </p></p>
<p><p align="justify">Until next time.</p>.  Herbal Clonidine.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4452'>Stromectol For Sale</a>. <a href='http://elegantcode.com/?p=4867'>Buy Soma Without Prescription</a>. <a href='http://elegantcode.com/?p=4758'>Buy Atenolol Without Prescription</a>. <a href='http://elegantcode.com/?p=4553'>Buy Female Pink Viagra Without Prescription</a>. <a href='http://elegantcode.com/?p=4560'>Vermox For Sale</a>. <a href='http://elegantcode.com/?p=4662'>Where can i buy cheapest Antabuse online</a>. <a href='http://elegantcode.com/?p=4508'>Slimex (Obetrim) photos</a>. <a href='http://elegantcode.com/?p=4623'>Augmentin description</a>. <a href='http://elegantcode.com/?p=4752'>Buy Colchicine no prescription</a>. <a href='http://elegantcode.com/?p=4322'>Clonidine natural</a>.<br />
<b>Trackbacks from:</b> <a href='http://evanrapoport.com/?p=429'>Buy Clonidine Without Prescription</a>. <a href='http://www.themusclecarplace.com/?p=5350'>Buy Clonidine Without Prescription</a>. <a href='http://changecamp.ca/?p=578'>Buy Clonidine Without Prescription</a>. <a href='http://blog.farmland.org/?p=3172'>Buy Clonidine Without Prescription</a>. <a href='http://home.officesnapshots.com/?p=175'>Buy Clonidine Without Prescription</a>. <a href='http://www.thegriffonnews.com/?p=9699'>Kjøpe Clonidine på nett, köpa Clonidine online</a>. <a href='http://www.quarterlives.com/?p=831'>Buy cheap Clonidine no rx</a>. <a href='http://www.greatgreengoods.com/?p=3511'>Clonidine use</a>. <a href='http://www.macneilbmx.com/blog/?p=5325'>Clonidine no rx</a>. <a href='http://social-blend.com/?p=482'>Online buying Clonidine hcl</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Buy Viagra Without Prescription</title>
		<link>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor</link>
		<comments>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 22:51:00 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Entity Framework]]></category>
		<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/</guid>
		<description><![CDATA[Buy Viagra Without Prescription, If you’ve taken the jump to try out the new Entity Framework Code First and you’re allowing it to generate your database for you, you’ve most certainly run into the lack of migrations/updating existing schema support. Currently EF Code First will only create a database and won’t update a database with [...]]]></description>
			<content:encoded><![CDATA[<p> <p> <b>Buy Viagra Without Prescription</b>, If you’ve taken the jump to try out the new Entity Framework Code First and you’re allowing it to generate your database for you, you’ve most certainly run into the lack of migrations/updating existing schema support. Currently EF Code First will only create a database and won’t update a database with changes necessary to bring it in line with your model, <b>where can i order Viagra without prescription</b>.  <b>Effects of Viagra</b>, I know they’re working on it, but since it’s not there, <b>buy generic Viagra</b>, <b>Online buy Viagra without a prescription</b>, I thought I’d share a possible solution, albeit less polished than some of the well known database change management out there.</p>  <h4>Where is the tool?</h4>  <p>You can access it in the VS Command window, <b>Viagra coupon</b>.  <b>Buy Viagra no prescription</b>, On my x64 machine the tool is in.</p>  <blockquote>   <p>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VSTSDB\Deploy\vsdbcmd.exe</p> </blockquote>  <h4>I want to deploy an existing schema to AppHarbor.</h4>  <p>Some high level steps that you can use for deployment of database changes.</p>  <ol>   <li>Generate an original reflection of your database. (*.dbschema file) </li>    <li>Tiny little hack to the .dbschema file, <b>Viagra reviews</b>. </li>    <li>Generate the change file to AppHarbor </li>    <li>Review Change Script Generated </li>    <li>Take the app offline, <b>Buy Viagra Without Prescription</b>.  <b>Order Viagra from mexican pharmacy</b>, (optional) </li>    <li>Apply Change Script </li>    <li>Bring the app online (mandatory if you took step 5) </li> </ol>  <h5>Generate an original reflection of your database.</h5>  <p>This file is a complete reflection of your databases schema in a single xml file.</p>  <p>The following command can be used to generate this file.</p>  <blockquote>   <p>vsdbcmd.exe      <br />&#160;&#160;&#160;&#160; /Action:Import       <br />&#160;&#160;&#160;&#160; /ConnectionString:&quot;Data Source=.\sqlexpress;Initial Catalog=MyDatabase;Integrated Security=True;Pooling=False&quot;       <br />&#160;&#160;&#160;&#160; /ModelFile:MyDatabase.dbschema</p> </blockquote>  <p>There are a ton of knobs to turn with this command line tool. Feel free to check out the docs <a href="http://msdn.microsoft.com/en-us/library/dd193283.aspx">http://msdn.microsoft.com/en-us/library/dd193283.aspx</a></p>  <p>Now you should have a file “MyDatabase.dbschema” sitting on your hard drive.</p>  <h5>Tiny little hack to the .dbschema file.</h5>  <p>The section of xml we want to manually remove from the file is related to where your mdf and ldf database files should exist on disk, <b>kjøpe Viagra på nett, köpa Viagra online</b>.  <b>Cheap Viagra</b>, When we go to deploy up to AppHarbor, if this is not removed, <b>buy Viagra online no prescription</b>, <b>Online buying Viagra hcl</b>, then vsdbcmd will generate script to attempt to move the files into the “correct” location. This operation will throw exceptions if you attempt to execute against AppHarbor as you don’t have permission to do this, <b>Viagra gel, ointment, cream, pill, spray, continuous-release, extended-release</b>.  <b>Buy Viagra Without Prescription</b>, We’re removing it from the xml file, as I can’t seem to get the correct command line option to ignore this (if there is an option).  <b>Viagra no prescription</b>, So by removing it, it’s just not used and completely ignored.</p>  <p>I don’t know if this will be true for everyone, <b>Viagra photos</b>, <b>Viagra steet value</b>, but I find that the last two sections of xml in the dbschema file are all I have to remove. I’ll show the two full sections below so you can use it as a reference of what to remove from the file.</p>  <pre class="brush: xml;">&lt;Element Type=&quot;ISql90File&quot; Name=&quot;[MyDatabase]&quot;&gt;    &lt;Property Name=&quot;FileName&quot; Value=&quot;$(DefaultDataPath)$(DatabaseName).mdf&quot; /&gt;    &lt;Property Name=&quot;Size&quot; Value=&quot;2304&quot; /&gt;    &lt;Property Name=&quot;SizeUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Property Name=&quot;FileGrowth&quot; Value=&quot;1024&quot; /&gt;    &lt;Property Name=&quot;FileGrowthUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Relationship Name=&quot;Filegroup&quot;&gt;        &lt;Entry&gt;            &lt;References ExternalSource=&quot;BuiltIns&quot; Name=&quot;[PRIMARY]&quot; /&gt;        &lt;/Entry&gt;    &lt;/Relationship&gt;&lt;/Element&gt;&lt;Element Type=&quot;ISql90File&quot; Name=&quot;[MyDatabase_log]&quot;&gt;    &lt;Property Name=&quot;FileName&quot; Value=&quot;$(DefaultLogPath)$(DatabaseName)_log.LDF&quot; /&gt;    &lt;Property Name=&quot;Size&quot; Value=&quot;576&quot; /&gt;    &lt;Property Name=&quot;SizeUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Property Name=&quot;MaxSize&quot; Value=&quot;2097152&quot; /&gt;    &lt;Property Name=&quot;IsUnlimited&quot; Value=&quot;False&quot; /&gt;    &lt;Property Name=&quot;FileGrowth&quot; Value=&quot;10&quot; /&gt;    &lt;Property Name=&quot;FileGrowthUnit&quot; Value=&quot;1&quot; /&gt;    &lt;Property Name=&quot;IsLogFile&quot; Value=&quot;True&quot; /&gt;&lt;/Element&gt;</pre></p>
<p><h5>Generate the change file to AppHarbor.</h5></p>
<p><p>Now that we have a .dbschema file containing the complete model of what we want deployed, <b>comprar en línea Viagra, comprar Viagra baratos</b>, <b>Viagra without prescription</b>, we can now use it to generate a schema change deployment script.</p></p>
<p><blockquote>  <p>vsdbcmd.exe<br />
    <br />&#160;&#160;&#160;&#160; /Action:Deploy</p>
<p>    <br />&#160;&#160;&#160;&#160; /DeployToDatabase:-</p>
<p>    <br />&#160;&#160;&#160;&#160; /Script:Test.sql</p>
<p>    <br />&#160;&#160;&#160;&#160; /ConnectionString:&quot;{YourAppHarborConnectionString}&quot;</p>
<p>    <br />&#160;&#160;&#160;&#160; /ModelFile:HackIt.dbschema</p>
<p>    <br />&#160;&#160;&#160;&#160; /Properties:TargetDatabase={YourAppHarborDatabaseName EX:db1235}</p></blockquote></p>
<p><p>I’ll explain a couple of the above command options.</p></p>
<p><h6>/DeployToDatabase:-</h6></p>
<p><p>This one is _<strong><u>key</u></strong>_. This tells vsdbcmd to only generate a change script, <b>Viagra price, coupon</b>, <b>Herbal Viagra</b>, and <strong>not to actually deploy the changes </strong>immediately. Until you feel comfortable with what sql the tool generates, <b>Viagra australia, uk, us, usa</b>, <b>Viagra blogs</b>, which is usually pretty darn good, you should not apply it immediately, <b>Viagra dose</b>. Allow the tool to generate the file for further inspection and you can execute it manually after, <b>Buy Viagra Without Prescription</b>.  <b>Viagra dosage</b>, <br /></p></p>
<p><h6>/Script:Test.sql</h6></p>
<p><p>This this is just the name of the file to dump the deployment changes.<br />
  <br /></p></p>
<p><h6>/ModelFile:HackIt.dbschema</h6></p>
<p><p>The path to the .dbschema we generated and modified above.</p></p>
<p><p>&#160;</p></p>
<p><h5>Review Change Script Generated.</h5></p>
<p><p>After you’ve generated a change script file, <b>order Viagra from United States pharmacy</b>, <b>Buy Viagra from canada</b>, take a look at the sql just to make sure you’re happy with what it generates.</p></p>
<p><h5>Take the app offline. (optional)</h5></p>
<p><p>This one depends on the schema changes, <b>Viagra class</b>.  <b>Where can i find Viagra online</b>, If the changes are serious enough, you can check in an App_Offline.htm file at the root of web project and do a “git push appharbor”, <b>Viagra maximum dosage</b>.  <b>Buy Viagra Without Prescription</b>, This way, while making schema changes you don’t have to worry about the errors popping up on users.  <b>Is Viagra safe</b>, Down side is your site becomes inoperable.</p></p>
<p><blockquote>  <p>If you’ve never heard of the App_Offline.htm – I’d recommend reading up on it. <a href="http://weblogs.asp.net/scottgu/archive/2006/04/09/442332.aspx">http://weblogs.asp.net/scottgu/archive/2006/04/09/442332.aspx</a></p></blockquote></p>
<p><h5>Apply Change Script.</h5></p>
<p><p>You have several options to actually apply the scripted changes.</p></p>
<p><ol>  <li>Use vsdbcmd to deploy – Just turn the /DeployToDatabase:<strong>-</strong> to /DeployToDatabase:<strong>+</strong> and allow vsdbcmd to apply the script right there, <b>Viagra over the counter</b>.  <b>Fast shipping Viagra</b>, </li></p>
<p>  <li>Use SQL Management Studio.<br />
    <br /><strong>Make Sure you turn on SQLCMD Mode</strong><a href="http://elegantcode.com/wp-content/uploads/2011/04/image1.png"><br />
      <br /><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2011/04/image_thumb1.png" width="311" height="333" /></a>&#160; </li></ol></p>
<p><h5>Bring your site back online.</h5></p>
<p><p>Now you can go re-name the App_Offline.htm to something like App_Offline.htm.disabled and push those changes back up to AppHarbor.</p></p>
<p><h4>Other considerations.</h4></p>
<p><ul>  <li>Consider a simple migrations framework (EX: <a href="http://code.google.com/p/dbup/" target="_blank">DbUp</a>) to get some initial data or things initialized, <b>generic Viagra</b>, <b>Viagra australia, uk, us, usa</b>, but be-ware that you’ll have to think a little harder about the “rollback” steps with this approach.</p>
<p>    <br /></li></p>
<p>  <li>Next you could take a look at an inquiry I made on the public support discussion list at AppHarbor hoping to push AppHarbor to implement this App_Offline.htm support (right into their admin site)<a href="http://support.appharbor.com/discussions/problems/373-deployment-feature-idea"><br />
      <br />http://support.appharbor.com/discussions/problems/373-deployment-feature-idea</a></p>
<p>    <br /><strong>UPDATE:</strong> SPARE A VOTE OR TWO: <a title="http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic" href="http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic">http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic</a> </li></ul></p>
<p><p>One great benefit of to this approach is the ability for vsdbcmd to manage changes to an existing schema, <b>rx free Viagra</b>.  <b>Cheap Viagra</b>, </p></p>
<p><p>Now if you want full support like refactorings such as table, column, <b>Viagra treatment</b>, <b>Ordering Viagra online</b>, etc renames. You will want to keep a full db project and use that to do a deployment.</p></p>
<p><p>Hope you find this useful, <b>buy no prescription Viagra online</b>.  <b>Taking Viagra</b>, Happy Deployment!</p>.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4335'>Buy Differin Without Prescription</a>. <a href='http://elegantcode.com/?p=4423'>Antabuse For Sale</a>. <a href='http://elegantcode.com/?p=4744'>Buy Flexeril Without Prescription</a>. <a href='http://elegantcode.com/?p=4587'>Buy Pristiq Without Prescription</a>. <a href='http://elegantcode.com/?p=4633'>Cephalexin For Sale</a>. <a href='http://elegantcode.com/?p=4384'>Order Ultram online overnight delivery no prescription</a>. <a href='http://elegantcode.com/?p=4683'>Inderal schedule</a>. <a href='http://elegantcode.com/?p=4822'>About Hydrochlorothiazide</a>. <a href='http://elegantcode.com/?p=4728'>Ventolin australia, uk, us, usa</a>. <a href='http://elegantcode.com/?p=4694'>Human Growth Hormone interactions</a>.<br />
<b>Trackbacks from:</b> <a href='http://www.greatgreengoods.com/?p=2891'>Buy Viagra Without Prescription</a>. <a href='http://www.thegriffonnews.com/?p=10272'>Buy Viagra Without Prescription</a>. <a href='http://www.themusclecarplace.com/?p=3445'>Buy Viagra Without Prescription</a>. <a href='http://linuxologist.com/?p=363'>Buy Viagra Without Prescription</a>. <a href='http://blog.farmland.org/?p=2709'>Buy Viagra Without Prescription</a>. <a href='http://www.quarterlives.com/?p=286'>Where can i cheapest Viagra online</a>. <a href='http://www.macneilbmx.com/blog/?p=6199'>Online Viagra without a prescription</a>. <a href='http://social-blend.com/?p=1253'>Japan, craiglist, ebay, overseas, paypal</a>. <a href='http://www.leaduganda.org/?p=824'>Purchase Viagra online no prescription</a>. <a href='http://4realz.net/?p=1851'>Viagra no rx</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving your global .gitconfig file</title>
		<link>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=moving-your-global-gitconfig-file</link>
		<comments>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/#comments</comments>
		<pubDate>Fri, 05 Nov 2010 11:02:41 +0000</pubDate>
		<dc:creator>Andreas Håkansson</dc:creator>
				<category><![CDATA[Source Control]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/</guid>
		<description><![CDATA[I am using msysgit for my Git work on Windows and for quite a while I have been wanting to move the global .gitconfig file from its default location into my dropbox folder. The reason for this is probably obvious, I do not want to have to make the same configuration changes on multiple machines [...]]]></description>
			<content:encoded><![CDATA[I am using <a title="Visit the project page of msysgit" href="http://code.google.com/p/msysgit/" target="_blank">msysgit</a> for my Git work on Windows and for quite a while I have been wanting to move the global .gitconfig file from its default location into my dropbox folder. The reason for this is probably obvious, I do not want to have to make the same configuration changes on multiple machines to get a homogenize Git environment.

So I set out to resolve this but despite numerous stops at my local Google page, I was unable to find any information on how to make Git look for the file in a different location, it always went to look for the file at <em>%USERPROFILE%\.gitconfig</em>.

As a last resort I asked <a title="Visit the blog of Joshua Flanagan" href="http://www.lostechies.com/blogs/joshuaflanagan/" target="_blank">Joshua Flanagan</a> if he had any idea on how I could configure Git or msysgit to make this possible. Unfortunately he had no idea, but he did however suggest that I try using <a title="Visit the product page for mklink" href="http://technet.microsoft.com/en-us/library/cc753194(WS.10).aspx" target="_blank">mklink</a>, a command line utility available in Windows Vista and later.

mklink enables you to create either <a title="Read more about the differences between symbolic and hard links" href="http://www.maxi-pedia.com/difference+between+symbolic+link+and+hard+link" target="_blank">symbolic or hard links</a> for files or directories. What I needed was a symbolic link, which simply explained is like a shortcut to a file but the difference is that the file system will resolve the symbolic link to the real file, where as a windows shortcut is a file with information in it.

To create a symbolic link for your .gitconfig file do the following
<ol>
	<li>Copy your .gitconfig file from the %USERPROFILE% directory, to the directory where you want to store it instead</li>
	<li>Delete the .gitconfig file in the %USERPROFILE% directory</li>
	<li>Start <strong>cmd.exe</strong> as Administrator</li>
	<li>Enter <strong>mklink .gitconfig path\to\your\.gitconfig</strong> (notice the actual filename needs to be in the second parameter or you will link to the folder it is stored in)</li>
</ol>
You should now get a message that a symbolic link was created between the two files. Try making a change in either of them and see that the change is reflected in the other one – this is because you are always editing the same file since the file system resolves the symbolic link into the real file.]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Pluralcast 21 &#8211; Extending Visual Studio 2010 with Kate Gregory</title>
		<link>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pluralcast-21-extending-visual-studio-2010-with-kate-gregory</link>
		<comments>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 03:42:23 +0000</pubDate>
		<dc:creator>David Starr</dc:creator>
				<category><![CDATA[Pluralcast]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/</guid>
		<description><![CDATA[Listen Now! Kate Gregory has probably forgotten more coding tricks than I have ever learned. That means that she likes her Visual Studio with meat and potatoes. With the new extensibility model in Visual Studio 2010,  Visual Studio can now be the primary source or protein in your IDE diet. In this episode Kate tells us [...]]]></description>
			<content:encoded><![CDATA[<a href="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3"><img style="display: inline; border-width: 0px;" title="PlayIcon" src="http://elegantcode.com/wp-content/uploads/2010/08/PlayIcon.png" border="0" alt="PlayIcon" width="24" height="24" /></a> <a href="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3" target="_blank">Listen Now</a>!

Kate Gregory has probably forgotten more coding tricks than I have ever learned. That means that she likes her Visual Studio with meat and potatoes. With the new extensibility model in Visual Studio 2010,  Visual Studio can now be the primary source or protein in your IDE diet. In this episode Kate tells us how to add a little hot sauce using Visual Studio extensions.

<a href="http://elegantcode.com/wp-content/uploads/2010/08/kategregory.jpg"><img style="margin: 5px; display: inline; border-width: 0px;" title="kate-gregory" src="http://elegantcode.com/wp-content/uploads/2010/08/kategregory_thumb.jpg" border="0" alt="kate-gregory" width="112" height="142" align="right" /></a> Kate is in her fourth decade of being paid to program. Her firm, Gregory Consulting Limited, is based in rural Ontario and helps clients adopt new technologies and adjust to the changing business environment. Current work makes heavy use of .NET and Visual C++ along with SharePoint and both web and client development, especially for Windows 7. Managing, mentoring, technical writing, and technical speaking occupy much of her time, but she still writes code every week.

Kate is the author of over a dozen books and speaks at DevTeach, TechEd (USA, Europe, Africa), and TechDays, among others. Kate is a C++ MVP, a founding sponsor of the Toronto .NET Users Group, the founder of the East of Toronto .NET Users group, a member of the INETA speakers bureau, and a member of adjunct faculty at Trent University in Peterborough. Since January 2002 she has been Microsoft Regional Director for Toronto and since January 2004 she has been awarded the Microsoft Most Valuable Professional designation for Visual C++. In June 2005 she won the Regional Director of the year award.

<strong>Show Links</strong>
<ul>
	<li><a href="http://www.gregcons.com/kateblog/">Kate’s Blog</a></li>
	<li><a href="http://www.pluralsight-training.net/microsoft/olt/Course/Toc.aspx?n=vs2010-vsx">Kate’s Pluralsight course, <em>Customizing and Extending Visual Studio 2010</em></a></li>
	<li><a href="http://msdn.microsoft.com/en-us/vstudio/vextend.aspx">Visual Studio Extensibility (VSX)</a></li>
	<li><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=47305cf4-2bea-43c0-91cd-1b853602dcc5&amp;displaylang=en">Visual Studio SDK</a></li>
	<li><a href="http://visualstudiogallery.msdn.microsoft.com/">Visual Studio Gallery</a></li>
	<li><a href="http://code.msdn.microsoft.com/vsx">The Code Gallery</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3" length="41629427" type="audio/mpeg" />
		</item>
		<item>
		<title>God Mode Easter Egg</title>
		<link>http://elegantcode.com/2010/01/04/god-mode-easter-egg/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=god-mode-easter-egg</link>
		<comments>http://elegantcode.com/2010/01/04/god-mode-easter-egg/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 04:55:51 +0000</pubDate>
		<dc:creator>David Starr</dc:creator>
				<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/01/04/god-mode-easter-egg/</guid>
		<description><![CDATA[I did not discover this, I got it from a tweet that Rob Conery put out there. Thank you, Rob! I don’t know if this is a Windows 7 hack or if this is available in other operating systems. Create a new folder on your desktop Name the new folder: GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} The new folder will [...]]]></description>
			<content:encoded><![CDATA[I did not discover this, I got it from <a href="http://bit.ly/62zZlc ">a tweet</a> that <a href="http://blog.wekeroad.com/">Rob Conery</a> put out there. Thank you, Rob!

I don’t know if this is a Windows 7 hack or if this is available in other operating systems.
<ol>
	<li>Create a new folder on your desktop</li>
	<li>Name the new folder:
GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}</li>
</ol>
The new folder will change into this icon.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image1.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb1.png" border="0" alt="image" width="84" height="90" /></a>

Clicking your shiny new icon will result in a new window that gives shortcut access to the myriad of configuration and administration utilities in Windows that I always seem to need to hunt down.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image2.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb2.png" border="0" alt="image" width="397" height="1474" /></a>

Opening one of these nodes will provide direct access to the associated utils.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image3.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb3.png" border="0" alt="image" width="586" height="313" /></a>

Weird and beautiful, isn’t it?

It makes me wonder what other Easter eggs are in there.]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/01/04/god-mode-easter-egg/feed/</wfw:commentRss>
		<slash:comments>40</slash:comments>
		</item>
		<item>
		<title>Unity/Moq &#8211; AutoMocker or AutoMockingContainer</title>
		<link>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=unitymoq-automocker-or-automockingcontainer</link>
		<comments>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 16:52:33 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[TDD]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/</guid>
		<description><![CDATA[What is an Auto Mocking Container? This post started to get a little long, so I won’t re-explain the concept. Joshua Flanagan wrote a nice overview at his Los Techies blog: Auto mocking Explained. My post is mainly here to describe the Unity version of an automocking container I threw together. In Jan 2009 I [...]]]></description>
			<content:encoded><![CDATA[<h4>What is an Auto Mocking Container?</h4>  <p>This post started to get a little long, so I won’t re-explain the concept.</p>  <p><a href="http://www.lostechies.com/blogs/joshuaflanagan/default.aspx">Joshua Flanagan</a> wrote a nice overview at his <a href="http://www.lostechies.com/">Los Techies</a> blog: <a href="http://www.lostechies.com/blogs/joshuaflanagan/archive/2009/02/03/auto-mocking-explained.aspx"><strong>Auto mocking Explained</strong></a>.</p>  <p>My post is mainly here to describe the Unity version of an automocking container I threw together.</p>  <h4>In Jan 2009 I blogged about my initial version of the Unity AutoMocker - Why am I blogging about it again?</h4>  <p>I originally wrote the AutoMocker for the Unity container a year ago (Jan 2009, in Silverlight), and finally got around to placing the code up in the <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> project in June of 2009.</p>  <p>I’m writing another post today in hopes to:</p>  <ol>   <li>Get some feedback on how this little snippet of code should continue. </li>    <li>Give a little more how-to/example code </li>    <li>Describe some updates I made since I originally created it.&#160; </li> </ol>  <h4>Where can I get it?</h4>  <p><strong>This is one part where I’d appreciate some feedback.</strong></p>  <p>I have two slightly different versions out there (currently).</p>  <p>I have one version at the <a href="http://code.google.com/p/elegantcode/source/browse/#svn/trunk/Coders/JasonJarrett/UnityAutoMocker">ElegantCode</a> repository where I was working on it, and the other I threw up at <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a>.</p>  <p>The core of the UnityAutoMockContainer is the same in both places, it’s how the tests are separated out that differ.</p>  <p>In the <a href="http://code.google.com/p/elegantcode/source/browse/#svn/trunk/Coders/JasonJarrett/UnityAutoMocker">ElegantCode repository</a> it’s an all in one self contained single file (that you can copy into your own test project(s)). You can then setup a single test in your own testing framework that runs all internal automocker tests (in case you need to modify it yourself, and don’t want to break any existing functionality). EX: test</p>  <pre class="brush: csharp;">[Test]
public void Should_run_all_UnityAutoMockContainer_internal_tests()
{
    Moq.AutoMocking.SelfTesting.UnityAutoMockContainerFixture
        .RunAllTests(Console.WriteLine);
}</pre>

<p>I kind of like this format as it makes it easy to port between test libraries. Can’t say I like having the tests in the same file as the core, but it certainly is not a large chunk of code (so far) so it’s relatively small to maintain and definitely easier to manage as a single .cs file than another assembly (which would have to be version dependent on both Unity and Moq).</p>

<p>The <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> is definitely where I think this helper should end up (and it is there). I just happened to break the tests out into the Silverlight test project and the core is alone in a file. </p>

<p>It’s current state isn’t as easy to copy to a test library (Silverlight/Desktop/Unity 1.2/Unity 2.0) as the one at <a href="http://elegantcode.com/">ElegantCode</a>. <strong>What does anyone think?</strong> Should I put them all together in one file?</p>

<p>However it ends up (1. all in one file or two (1 test) (1 core)) it will continue to be maintained on the <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> project.</p>

<h4>What is the high level API of the container?</h4>

<p>It’s pretty simple, (currently) there are four methods on the container.</p>

<p><strong>Two for registering items with the container</strong>. Say you want to register an already created instance, or say you want to map an interface to a concrete class and _not_ have the container generate mocks automatically for special cases. </p>

<p>And <strong>two for pulling items out of the container</strong>. Whether you want a instance of T or a Mock&lt;T&gt;, it gives you ways to retrieve both.</p>

<blockquote>
  <p><a href="http://elegantcode.com/wp-content/uploads/2010/01/image.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb.png" width="396" height="106" /></a> </p>
</blockquote>

<h4>How can I setup my own registrations with the container? </h4>

<p>Say I don’t want to have the container generate mocks for specific items and I want to supply specific configuration to the UnityContainer.</p>

<blockquote>
  <p>public UnityAutoMockContainer RegisterInstance&lt;TService&gt;(TService instance)</p>

  <p>public UnityAutoMockContainer Register&lt;TService, TImplementation&gt;() 
    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; where TImplementation : TService</p>
</blockquote>

<p><strong>Note</strong>: both of these registration methods return the container itself so you can fluently stack registration. <strong>EX:</strong></p>

<pre class="brush: csharp;">AutoMockContainer
    .Register&lt;IServiceA, ServiceA&gt;()
    .Register&lt;IServiceB, ServiceB&gt;();</pre>

<p><strong>Let me know</strong>: I haven’t tested or played around with how this automocking container deals with any container specific xml configuration… So although I don’t think you should probably have that in a test assembly (stuff happens). Let me know if there are any issues.</p>

<h4>How do I get items out of the container?</h4>

<p>First is the Resolve&lt;T&gt;(). It will pull an item T out of the container. (Creating it if not already existing)</p>

<blockquote>
  <p>public T Resolve&lt;T&gt;()</p>
</blockquote>

<p>When T is an interface Resolve&lt;T&gt; (unless you setup registration specifically with the container) should return basically “(new Mock&lt;T&gt;()).Object”</p>

<p>When T is a concrete Class, the container should return an instance of T and any of it’s dependencies will be satisfied by mocks. (Note that T will not be any sort of mocked instance of T, unless you used the GetMock&lt;T&gt; as described below first)</p>

<blockquote>
  <p>public Mock&lt;T&gt; GetMock&lt;T&gt;() where T : class</p>
</blockquote>

<p>When T is an interface GetMock&lt;T&gt; should return basically “(new Mock&lt;T&gt;())” </p>

<p>When T is a concrete Class, the container should return a new Mock&lt;T&gt;() and any of it’s dependencies will be satisfied by mocks.</p>

<h4>How do I use the UnityAutoMockContainer?</h4>

<p>It’s pretty basic, you first create an instance of the UnityAutoMockContainer, and from there you can ask it for mocks of an (Interface, Class, or Abstract Class).</p>

<p>If you request an instance of a concrete class, or abstract class, the UnityAutoMockContainer will stuff mocks in for any constructor dependencies of your concrete class (if it can). You can then request from the container those same dependencies one at a time and either apply mocking setups or verifications.</p>

<blockquote>
  <p><strong>NOTE:</strong> Anything the container creates will live as a singleton instance in the container. So any other requests from the container will always return the originally created instance. Therefore, each distinct scenario in a test suite should have their own instances of the container.</p>
</blockquote>

<p>Below his an example of how you can leverage the container in some tests. Given this base fixture class…</p>

<pre class="brush: csharp;">public class FixtureBase
{
    private readonly UnityAutoMockContainer _autoMockContainer = new UnityAutoMockContainer();

    protected UnityAutoMockContainer AutoMockContainer
    {
        get { return _autoMockContainer; }
    }

    [TestFixtureSetUp]
    public void SetupContext_ALL()
    {
        Before_all_tests();
        Because();
    }

    [TestFixtureTearDown]
    public void TearDownContext_ALL()
    {
        After_all_tests();
    }

    protected virtual void Before_all_tests()
    {
    }

    protected virtual void Because()
    {
    }

    protected virtual void After_all_tests()
    {
    }
}</pre>

<p>If I were given the following system to test.</p>

<pre class="brush: csharp;">public interface IServiceA { void RunA(); }
public interface IServiceB { void RunB(); }

public class TestComponent
{
    public TestComponent(IServiceA serviceA, IServiceB serviceB)
    {
        ServiceA = serviceA;
        ServiceB = serviceB;
    }

    public IServiceA ServiceA { get; private set; }
    public IServiceB ServiceB { get; private set; }

    public void RunAll()
    {
        if (!HowDidItGo())
            return;
        ServiceA.RunA();
        ServiceB.RunB();
    }

    public virtual bool HowDidItGo()
    {
        // some really nasty untestable code
        return true;
    }
}</pre>

<p>The below example demonstrates simply verifying some behavior on the mocked dependencies of the system under test.</p>

<pre class="brush: csharp;">[TestFixture]
public class Example__how_to_pull_items_from_the_UnityAutoMockContainer_when_verifying_behavior_after_an_action_was_taken 
    : FixtureBase
{
    private TestComponent _testComponent;

    protected override void Before_all_tests()
    {
        base.Before_all_tests();
        _testComponent = AutoMockContainer.Resolve&lt;TestComponent&gt;();
    }

    protected override void Because()
    {
        _testComponent.RunAll();
    }

    [Test]
    public void Should_run_ServiceA_RunA()
    {
        AutoMockContainer
            .GetMock&lt;IServiceA&gt;()
            .Verify(v =&gt; v.RunA(), Times.Once());
    }

    [Test]
    public void Should_run_ServiceB_RunB()
    {
        AutoMockContainer
            .GetMock&lt;IServiceB&gt;()
            .Verify(v =&gt; v.RunB(), Times.Once());
    }
}</pre>

<p>Next, you may have noticed that the system under test had a complicated internal method (that may not necessarily be testable). You can use the AutoMocker to create the system under test as a Mock itself, so we can override some of the behavior. Here’s how you could quickly do that. </p>

<blockquote>
  <p><strong>Aside</strong>: I’m not saying this is a good practice or aids in good component design, just saying it’s possible</p>
</blockquote>

<pre class="brush: csharp;">[TestFixture]
public class Example__how_to_use_the_UnityAutoMockContainer_to_override_a_method_on_the_SystemUnderTest_to_test_a_certain_behavior
    : FixtureBase
{

    private TestComponent _testComponent;

    protected override void Before_all_tests()
    {
        base.Before_all_tests();
        var mockTestComponent = AutoMockContainer.GetMock&lt;TestComponent&gt;();

        mockTestComponent
            .Setup(s =&gt; s.HowDidItGo())
            .Returns(false);

        _testComponent = mockTestComponent.Object;
    }

    protected override void Because()
    {
        _testComponent.RunAll();
    }

    [Test]
    public void Should_run_ServiceA_RunA()
    {
        AutoMockContainer
            .GetMock&lt;IServiceA&gt;()
            .Verify(v =&gt; v.RunA(), Times.Never());
    }

    [Test]
    public void Should_run_ServiceB_RunB()
    {
        AutoMockContainer
            .GetMock&lt;IServiceB&gt;()
            .Verify(v =&gt; v.RunB(), Times.Never());
    }
}</pre>

<p>&#160;</p>

<p>It’s amazing how much redundant test setup code this little helper has saved me in my tests. I hope others can find some use with this as well.</p>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>If (Successful) { throw new Exception(); }</title>
		<link>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=if-successful-throw-new-exception</link>
		<comments>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 14:56:59 +0000</pubDate>
		<dc:creator>Brian Lagunas</dc:creator>
				<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/</guid>
		<description><![CDATA[So, I was installing Visual Studio 2010 Ultimate Beta 2 on one of my machines the other day and the funniest thing happened.&#160; After it successfully installed, I was prompted to send an error report. Since when is a successful operation a problem?&#160; Now, of course, I am assuming this is intentional and is transmitting [...]]]></description>
			<content:encoded><![CDATA[<p>So, I was installing Visual Studio 2010 Ultimate Beta 2 on one of my machines the other day and the funniest thing happened.&#160; After it successfully installed, I was prompted to send an error report.</p>  <p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="error" border="0" alt="error" src="http://elegantcode.com/wp-content/uploads/2009/12/error.jpg" width="380" height="209" /> </p>  <p>Since when is a successful operation a problem?&#160; Now, of course, I am assuming this is intentional and is transmitting information back to Microsoft to tell them that it was successful.&#160; But, I can see how easy it would be for someone to mistaken this for a legitimate error.&#160; Then again, maybe it is.</p>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>StatLight &#8211; Goes Open Source</title>
		<link>http://elegantcode.com/2009/12/10/statlight-goes-open-source/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=statlight-goes-open-source</link>
		<comments>http://elegantcode.com/2009/12/10/statlight-goes-open-source/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 03:26:55 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[TDD]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2009/12/10/statlight-goes-open-source/</guid>
		<description><![CDATA[Although I made a very minor attempt at making StatLight a “for-sale” product, I knew when I started that open-source was most likely going to be my long term path for StatLight. What is it? (Silverlight Testing Automation Tool) StatLight is a tool developed for automating the setup, running, and gathering results of Silverlight unit [...]]]></description>
			<content:encoded><![CDATA[Although I made a very minor attempt at making <a href="http://statlight.net" target="_blank">StatLight</a> a “for-sale” product, I knew when I started that open-source was most likely going to be my long term path for <a href="http://statlight.net" target="_blank">StatLight</a>.
<h5>What is it? (Silverlight Testing Automation Tool)</h5>
StatLight is a tool developed for automating the setup, running, and gathering results of Silverlight unit tests. StatLight helps to speed up the feedback cycles while practicing<a href="http://en.wikipedia.org/wiki/Test-driven_development"> TDD</a>/<a href="http://en.wikipedia.org/wiki/Behavior_Driven_Development">BDD</a>/(insert your test style here) during Silverlight development.
<h5>Where can I get StatLight?</h5>
<a href="http://StatLight.CodePlex.com">http://StatLight.CodePlex.com</a>
<h4>Happy Coding !!!</h4>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2009/12/10/statlight-goes-open-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running with Parallels 5</title>
		<link>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=moving-your-global-gitconfig-file</link>
		<comments>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/#comments</comments>
		<pubDate>Fri, 05 Nov 2010 11:02:41 +0000</pubDate>
		<dc:creator>Andreas Håkansson</dc:creator>
				<category><![CDATA[Source Control]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/</guid>
		<description><![CDATA[I am using msysgit for my Git work on Windows and for quite a while I have been wanting to move the global .gitconfig file from its default location into my dropbox folder. The reason for this is probably obvious, I do not want to have to make the same configuration changes on multiple machines [...]]]></description>
			<content:encoded><![CDATA[I am using <a title="Visit the project page of msysgit" href="http://code.google.com/p/msysgit/" target="_blank">msysgit</a> for my Git work on Windows and for quite a while I have been wanting to move the global .gitconfig file from its default location into my dropbox folder. The reason for this is probably obvious, I do not want to have to make the same configuration changes on multiple machines to get a homogenize Git environment.

So I set out to resolve this but despite numerous stops at my local Google page, I was unable to find any information on how to make Git look for the file in a different location, it always went to look for the file at <em>%USERPROFILE%\.gitconfig</em>.

As a last resort I asked <a title="Visit the blog of Joshua Flanagan" href="http://www.lostechies.com/blogs/joshuaflanagan/" target="_blank">Joshua Flanagan</a> if he had any idea on how I could configure Git or msysgit to make this possible. Unfortunately he had no idea, but he did however suggest that I try using <a title="Visit the product page for mklink" href="http://technet.microsoft.com/en-us/library/cc753194(WS.10).aspx" target="_blank">mklink</a>, a command line utility available in Windows Vista and later.

mklink enables you to create either <a title="Read more about the differences between symbolic and hard links" href="http://www.maxi-pedia.com/difference+between+symbolic+link+and+hard+link" target="_blank">symbolic or hard links</a> for files or directories. What I needed was a symbolic link, which simply explained is like a shortcut to a file but the difference is that the file system will resolve the symbolic link to the real file, where as a windows shortcut is a file with information in it.

To create a symbolic link for your .gitconfig file do the following
<ol>
	<li>Copy your .gitconfig file from the %USERPROFILE% directory, to the directory where you want to store it instead</li>
	<li>Delete the .gitconfig file in the %USERPROFILE% directory</li>
	<li>Start <strong>cmd.exe</strong> as Administrator</li>
	<li>Enter <strong>mklink .gitconfig path\to\your\.gitconfig</strong> (notice the actual filename needs to be in the second parameter or you will link to the folder it is stored in)</li>
</ol>
You should now get a message that a symbolic link was created between the two files. Try making a change in either of them and see that the change is reflected in the other one – this is because you are always editing the same file since the file system resolves the symbolic link into the real file.]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Elegant Code &#187; Tools and Utilities</title>
	<atom:link href="http://elegantcode.com/category/tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://elegantcode.com</link>
	<description></description>
	<lastBuildDate>Tue, 15 May 2012 10:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Quinine For Sale</title>
		<link>http://elegantcode.com/2012/01/18/monitoring-an-mmo/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=monitoring-an-mmo</link>
		<comments>http://elegantcode.com/2012/01/18/monitoring-an-mmo/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 19:45:32 +0000</pubDate>
		<dc:creator>Tony Rasa</dc:creator>
				<category><![CDATA[Architecture]]></category>
		<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Metrics]]></category>
		<category><![CDATA[MMO]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2012/01/18/monitoring-an-mmo/</guid>
		<description><![CDATA[I’ve been working on a free-to-play MMO Quinine For Sale, which has been “officially” live since last April, and things have been going well – a steady growth of players; the game itself has been well-received, and all the important graphs are “up and to the right.”&#160; Part of my job involves detecting problems before [...]]]></description>
			<content:encoded><![CDATA[<p> <p>I’ve been working on a free-to-play <a href="http://www.heroup.com" target="_blank">MMO</a> <b>Quinine For Sale</b>, which has been “officially” live since last April, and things have been going well – a steady growth of players; the game itself has been well-received, and all the important graphs are “up and to the right.”&#160; Part of my job involves detecting problems before they become serious and fixing problems when they inevitably do.&#160; So, there are two questions.&#160; “Is there a problem in the game?” “What is causing the problem?”&#160; </p>  <p>When trying to debug something on our development and test clusters, typically you can tail log files.&#160; We have a python script that can monitor the communication between various parts of the game and pretty-print it along with color to highlight “this is a problem!”&#160; Attaching a debugger to a running process is also not uncommon.&#160; However, looking at logs and bus traffic in realtime on a production environment gives you this neat “Matrix-y” experience.&#160; Attaching a debugger to a production process (assuming you could, which you can’t) would get you smacked with a rolled-up newspaper.&#160; “Bad Developer!&#160; No treat!”&#160; So, what can you do?</p>  <h4>Monitoring</h4>  <p>When you’ve got clusters full of machines, using <a href="http://www.nagios.org/" target="_blank">Nagios</a> to monitor things is an obvious solution.&#160; Beyond making sure the power is on and other sysadmin things, we’ve written other checks to see if the login process is working, the parts are working together, and automating typical in-game functions.&#160; For example, if nagios can’t successfully log into the game do basic game activity, then alerts happen.</p>  <h4>Metrics for EVERYTHING</h4>  <p>Anything that happens in game has metrics reporting tied to it, generating piles of data constantly.&#160; We use <a href="http://www.cacti.net/" target="_blank">Cacti</a> to visualize game activity.&#160; An example metric is concurrent users, or CCU.&#160; We graph how many people are in the game over time, which when things are healthy should be a nice smooth curve climbing to peak game hours, then descending nicely through the night.</p>  <p>We can tell by sight if the game looks healthy or not – if the CCU graph is jaggy, has a sudden drop or spike, or drops to zero then we know that something is wrong.&#160; Typically nagios alerts accompany the graphs, giving more data points on where to look.&#160; But this has also pointed out areas where a nagios check was missing or wasn’t working as intended.</p>  <h4>Log Files</h4>  <p>When a player gets an error in game, the error dialog box gives them the opportunity to submit the error details back to us.&#160; If we see a spike in user-reported errors through this or other customer service means, we know we have something of interest to look for.&#160; </p>  <p>The game server components make use of log4j and similar logging frameworks.&#160; Anything that you’d want to watch happening in game needs to be aggressively logged.&#160; All components are configured so that operations can change the log level on the fly.&#160; That’s still quite a bit of data across many machines though, so all that information is run through <a href="http://www.splunk.com/product" target="_blank">Splunk</a> to be indexed and searchable.&#160; This gives us a great tool for searching through log data, examining trends, or watching selected activity in real time.&#160; Unfortunately it is very expensive so we are selective about the data that passes through it.&#160; </p>.  Buy Quinine from mexico.  Buy Quinine no prescription.  No prescription Quinine online.  Online buying Quinine.  Quinine no prescription.  Quinine street price.  Buy no prescription Quinine online.  Quinine coupon.  Quinine over the counter.  Where can i buy Quinine online.  Quinine steet value.  Where to buy Quinine.  Order Quinine online overnight delivery no prescription.  Quinine recreational.  Quinine canada, mexico, india.  Ordering Quinine online.  Quinine without prescription.  Quinine price, coupon.  Quinine description.  Order Quinine from mexican pharmacy.  Quinine pics.  What is Quinine.  Japan, craiglist, ebay, overseas, paypal.  Order Quinine from United States pharmacy.  Order Quinine online c.o.d.  Quinine trusted pharmacy reviews.  Quinine treatment.  Buy Quinine from canada.  Quinine used for.  Discount Quinine.  Is Quinine addictive.  Quinine forum.  Buy Quinine online no prescription.  Is Quinine safe.  Purchase Quinine for sale.  Effects of Quinine.  Buy Quinine online cod.  Quinine australia, uk, us, usa.  Buy Quinine without prescription.  Quinine online cod.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4721'>Buy Flonase Without Prescription</a>. <a href='http://elegantcode.com/?p=4234'>Buy Periactin Without Prescription</a>. <a href='http://elegantcode.com/?p=4203'>Buy Armour Without Prescription</a>. <a href='http://elegantcode.com/?p=4899'>Buy Macrobid Without Prescription</a>. <a href='http://elegantcode.com/?p=4534'>Xalatan For Sale</a>. <a href='http://elegantcode.com/?p=4302'>Phenergan wiki</a>. <a href='http://elegantcode.com/?p=4268'>Soma maximum dosage</a>. <a href='http://elegantcode.com/?p=4602'>Zovirax treatment</a>. <a href='http://elegantcode.com/?p=4578'>Cialis price, coupon</a>. <a href='http://elegantcode.com/?p=4189'>Flexeril price</a>.<br />
<b>Trackbacks from:</b> <a href='http://www.leaduganda.org/?p=514'>Quinine For Sale</a>. <a href='http://www.macneilbmx.com/blog/?p=4820'>Quinine For Sale</a>. <a href='http://www.greatgreengoods.com/?p=2780'>Quinine For Sale</a>. <a href='http://www.thegriffonnews.com/?p=10177'>Quinine For Sale</a>. <a href='http://www.independentworldreport.com/?p=2409'>Quinine For Sale</a>. <a href='http://changecamp.ca/?p=295'>Quinine description</a>. <a href='http://social-blend.com/?p=624'>Quinine price, coupon</a>. <a href='http://blog.farmland.org/?p=3946'>Online buying Quinine hcl</a>. <a href='http://4realz.net/?p=1595'>Quinine from canada</a>. <a href='http://reversemortgagedaily.com/?p=14535'>Where to buy Quinine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2012/01/18/monitoring-an-mmo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Buy Clonidine Without Prescription</title>
		<link>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=moving-from-e-texteditor-to-sublime-text-2</link>
		<comments>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 23:45:32 +0000</pubDate>
		<dc:creator>Jan Van Ryswyck</dc:creator>
				<category><![CDATA[CoffeeScript]]></category>
		<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/</guid>
		<description><![CDATA[I’ve been using E-TextEditor Buy Clonidine Without Prescription, for more than a year now for doing all my JavaScript, Node.js and CoffeeScript development. Clonidine from mexico, You can think of E-TextEditor as TextMate for the Windows platform. I’ve been pretty happy with it throughout this period as it can be extended pretty easily with a [...]]]></description>
			<content:encoded><![CDATA[<p> <p align="justify">I’ve been using <a href="http://www.e-texteditor.com/" target="_blank">E-TextEditor</a> <b>Buy Clonidine Without Prescription</b>, for more than a year now for doing all my JavaScript, Node.js and CoffeeScript development.  <b>Clonidine from mexico</b>, You can think of E-TextEditor as <a href="http://macromates.com/" target="_blank">TextMate</a> for the Windows platform. I’ve been pretty happy with it throughout this period as it can be extended pretty easily with a whole slew of bundles that are already available for TextMate, <b>cheap Clonidine</b>.  <b>Clonidine recreational</b>, E-TextEditor requires you to install <a href="http://www.cygwin.com/" target="_blank">Cygwin</a> which happens automatically during installation. Using the Cygwin command-line gave me enough (re-)exposure to a Linux-like environment in order for me wanting to (re-)learn about this other platform, <b>purchase Clonidine for sale</b>. More on that in later blog posts, <b>Buy Clonidine Without Prescription</b>.  <b>Low dose Clonidine</b>, Although there haven’t been any new versions of E-TextEditor for quite some time now, the current version enabled me to write JavaScript code in a productive way.</p>  <p align="justify">Only recently I found out about another editor called <a href="http://www.sublimetext.com/2" target="_blank">Sublime Text 2</a> (thanks to <a href="http://twitter.com/#!/casualjim" target="_blank">Ivan Porto Carrero</a>), <b>Clonidine description</b>.  <b>Clonidine overnight</b>, I downloaded this text editor in order to give it a try and I must say that I haven’t opened E-TextEditor ever since. This second version of Sublime Text is still in development but it’s pretty stable as I haven’t run into any issues so far, <b>Clonidine no prescription</b>.  <b>Clonidine brand name</b>, The cool part is that this editor is available for both Windows, Linux and OS X which enabled me to move all my Node.js and CoffeeScript development from Cygwin on Windows to Ubuntu Linux.&#160; </p>  <p align="justify">CoffeeScript isn’t supported out-of-the-box (yet), <b>purchase Clonidine</b>, <b>Clonidine gel, ointment, cream, pill, spray, continuous-release, extended-release</b>, so I installed the <a href="https://github.com/jashkenas/coffee-script-tmbundle" target="_blank">CoffeeScript&#160; TextMate bundle</a> written by <a href="http://ashkenas.com/" target="_blank">Jeremy Ashkenas</a> (yes, the same one from the <a href="http://jashkenas.github.com/coffee-script/" target="_blank">CoffeeScript</a> and <a href="http://documentcloud.github.com/backbone/" target="_blank">Backbone.js</a> fame), <b>Clonidine long term</b>.  Also check out <a href="https://github.com/jashkenas/coffee-script/wiki/Text-editor-plugins" target="_blank">this page on the CoffeeScript wiki</a> for more information on how to bring some CoffeeScript happiness to your own favorite text editor.</p>  <p align="justify"> <b>Buy Clonidine Without Prescription</b>, Setting up this TextMate bundle for use with Sublime Text 2 was actually pretty easy.  <b>Clonidine canada, mexico, india</b>, Just navigate to <em>/home/&lt;my_user_name&gt;/.config/sublime-text-2/Packages</em> in a terminal (or the corresponding file path on Windows) and clone the source of the CoffeeScript TextMate bundle using git: </p>  <blockquote>   <p align="justify"><em>git clone git://github.com/jashkenas/coffee-script-tmbundle CoffeeScript</em></p> </blockquote>  <p align="justify">Next close all the .coffee files and restart Sublime Text 2. Now we have some nice syntax highlighting and some useful code snippets at our disposal.&#160; </p>  <p align="justify"><a href="http://elegantcode.com/wp-content/uploads/2011/08/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2011/08/image_thumb.png" width="600" height="396" /></a></p>  <p>It's also possible to hook into <a href="http://sublimetext.info/docs/en/reference/build_systems.html" target="_blank">the build system</a> of Sublime Text 2, <b>Clonidine australia, uk, us, usa</b>.  <b>Clonidine blogs</b>, You just need to create a new file named <em>CoffeeScript.sublime-build</em> at the following location: </p>  <blockquote>   <p><em>/home/&lt;my_user_name&gt;/.config/sublime-text-2/Packages/User&#160; </em></p> </blockquote>  <p align="justify">You can add the following to this new file for compiling CoffeeScript</p>  <pre style="width: 100%; height: 85px" class="csharpcode">{     <span class="str">&quot;cmd&quot;</span>: [<span class="str">&quot;coffee&quot;</span>, <span class="str">&quot;-c&quot;</span>, <b>Clonidine from canada</b>, <b>Is Clonidine addictive</b>, <span class="str">&quot;$file&quot;</span>],     <span class="str">&quot;selector&quot;</span> : <span class="str">&quot;source.coffee&quot;</span>, <b>Clonidine pharmacy</b>, <b>Ordering Clonidine online</b>, <span class="str">&quot;path&quot;</span> : <span class="str">&quot;/usr/local/bin&quot;</span>}</pre><style type="text/css">.csharpcode, .csharpcode pre{	font-size: small;	color: black;	font-family: consolas, <b>Clonidine without prescription</b>, <b>Clonidine no rx</b>, "Courier New", courier, <b>buy no prescription Clonidine online</b>, <b>Clonidine street price</b>, monospace;	background-color: #ffffff;	/*white-space: pre;*/}.csharpcode pre { margin: 0em; }.csharpcode .rem { color: #008000; }.csharpcode .kwrd { color: #0000ff; }.csharpcode .str { color: #006080; }.csharpcode .op { color: #0000c0; }.csharpcode .preproc { color: #cc6633; }.csharpcode .asp { background-color: #ffff00; }.csharpcode .html { color: #800000; }.csharpcode .attr { color: #ff0000; }.csharpcode .alt<br />
{	background-color: #f4f4f4;	width: 100%;	margin: 0em;}.csharpcode .lnum { color: #606060; }</style>or the following for executing/running CoffeeScript code.</p>
<p><pre style="width: 100%; height: 85px" class="csharpcode">{     <span class="str">&quot;cmd&quot;</span>: [<span class="str">&quot;coffee&quot;</span>, <b>Clonidine for sale</b>, <b>What is Clonidine</b>, <span class="str">&quot;$file&quot;</span>],     <span class="str">&quot;selector&quot;</span> : <span class="str">&quot;source.coffee&quot;</span>, <b>get Clonidine</b>, <b>Clonidine class</b>, <span class="str">&quot;path&quot;</span> : <span class="str">&quot;/usr/local/bin&quot;</span>}</pre></p>
<p><p align="justify">Now when you hit F7, this fresh build command is executed when a CoffeeScript source file is showing in the active tab, <b>cheap Clonidine no rx</b>.  It’s also possible to change the build short-key to your own taste through the <em>Preferences</em> menu, <b>Buy Clonidine Without Prescription</b>.  <b>Fast shipping Clonidine</b>, <style type="text/css">.csharpcode, .csharpcode pre{	font-size: small;	color: black;	font-family: consolas, <b>buy Clonidine from canada</b>, <b>Clonidine without a prescription</b>, "Courier New", courier, <b>purchase Clonidine online no prescription</b>, <b>Effects of Clonidine</b>, monospace;	background-color: #ffffff;	/*white-space: pre;*/}.csharpcode pre { margin: 0em; }.csharpcode .rem { color: #008000; }.csharpcode .kwrd { color: #0000ff; }.csharpcode .str { color: #006080; }.csharpcode .op { color: #0000c0; }.csharpcode .preproc { color: #cc6633; }.csharpcode .asp { background-color: #ffff00; }.csharpcode .html { color: #800000; }.csharpcode .attr { color: #ff0000; }.csharpcode .alt<br />
{	background-color: #f4f4f4;	width: 100%;	margin: 0em;}.csharpcode .lnum { color: #606060; }</style></p></p>
<p><p align="justify">Unfortunately, there’s only one build command as I would love to create a separate command for compiling and running CoffeeScript code (or perhaps I missed this feature during the excitement <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-winkingsmile" alt="Winking smile" src="http://elegantcode.com/wp-content/uploads/2011/08/wlEmoticon-winkingsmile.png" />), <b>buy generic Clonidine</b>.  <b>Is Clonidine safe</b>, </p></p>
<p><p align="justify">Some more usage is definitely needed for me to learn more about this excellent text editor, but currently I’m pretty happy with it, <b>Clonidine trusted pharmacy reviews</b>.  <b>Taking Clonidine</b>, I also need to find out how well JavaScript is supported and perhaps see how far one can go when doing some C# development using Mono. I expect that there are a good number of productive features in there for me to discover.</p></p>
<p><p align="justify">I encourage you have a decent look at this excellent tool, <b>Clonidine dangers</b>.  <b>Order Clonidine from mexican pharmacy</b>, </p></p>
<p><p align="justify">Until next time.</p>.  Herbal Clonidine.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4452'>Stromectol For Sale</a>. <a href='http://elegantcode.com/?p=4867'>Buy Soma Without Prescription</a>. <a href='http://elegantcode.com/?p=4758'>Buy Atenolol Without Prescription</a>. <a href='http://elegantcode.com/?p=4553'>Buy Female Pink Viagra Without Prescription</a>. <a href='http://elegantcode.com/?p=4560'>Vermox For Sale</a>. <a href='http://elegantcode.com/?p=4662'>Where can i buy cheapest Antabuse online</a>. <a href='http://elegantcode.com/?p=4508'>Slimex (Obetrim) photos</a>. <a href='http://elegantcode.com/?p=4623'>Augmentin description</a>. <a href='http://elegantcode.com/?p=4752'>Buy Colchicine no prescription</a>. <a href='http://elegantcode.com/?p=4322'>Clonidine natural</a>.<br />
<b>Trackbacks from:</b> <a href='http://evanrapoport.com/?p=429'>Buy Clonidine Without Prescription</a>. <a href='http://www.themusclecarplace.com/?p=5350'>Buy Clonidine Without Prescription</a>. <a href='http://changecamp.ca/?p=578'>Buy Clonidine Without Prescription</a>. <a href='http://blog.farmland.org/?p=3172'>Buy Clonidine Without Prescription</a>. <a href='http://home.officesnapshots.com/?p=175'>Buy Clonidine Without Prescription</a>. <a href='http://www.thegriffonnews.com/?p=9699'>Kjøpe Clonidine på nett, köpa Clonidine online</a>. <a href='http://www.quarterlives.com/?p=831'>Buy cheap Clonidine no rx</a>. <a href='http://www.greatgreengoods.com/?p=3511'>Clonidine use</a>. <a href='http://www.macneilbmx.com/blog/?p=5325'>Clonidine no rx</a>. <a href='http://social-blend.com/?p=482'>Online buying Clonidine hcl</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Buy Viagra Without Prescription</title>
		<link>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor</link>
		<comments>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 22:51:00 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Entity Framework]]></category>
		<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/</guid>
		<description><![CDATA[Buy Viagra Without Prescription, If you’ve taken the jump to try out the new Entity Framework Code First and you’re allowing it to generate your database for you, you’ve most certainly run into the lack of migrations/updating existing schema support. Currently EF Code First will only create a database and won’t update a database with [...]]]></description>
			<content:encoded><![CDATA[<p> <p> <b>Buy Viagra Without Prescription</b>, If you’ve taken the jump to try out the new Entity Framework Code First and you’re allowing it to generate your database for you, you’ve most certainly run into the lack of migrations/updating existing schema support. Currently EF Code First will only create a database and won’t update a database with changes necessary to bring it in line with your model, <b>where can i order Viagra without prescription</b>.  <b>Effects of Viagra</b>, I know they’re working on it, but since it’s not there, <b>buy generic Viagra</b>, <b>Online buy Viagra without a prescription</b>, I thought I’d share a possible solution, albeit less polished than some of the well known database change management out there.</p>  <h4>Where is the tool?</h4>  <p>You can access it in the VS Command window, <b>Viagra coupon</b>.  <b>Buy Viagra no prescription</b>, On my x64 machine the tool is in.</p>  <blockquote>   <p>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VSTSDB\Deploy\vsdbcmd.exe</p> </blockquote>  <h4>I want to deploy an existing schema to AppHarbor.</h4>  <p>Some high level steps that you can use for deployment of database changes.</p>  <ol>   <li>Generate an original reflection of your database. (*.dbschema file) </li>    <li>Tiny little hack to the .dbschema file, <b>Viagra reviews</b>. </li>    <li>Generate the change file to AppHarbor </li>    <li>Review Change Script Generated </li>    <li>Take the app offline, <b>Buy Viagra Without Prescription</b>.  <b>Order Viagra from mexican pharmacy</b>, (optional) </li>    <li>Apply Change Script </li>    <li>Bring the app online (mandatory if you took step 5) </li> </ol>  <h5>Generate an original reflection of your database.</h5>  <p>This file is a complete reflection of your databases schema in a single xml file.</p>  <p>The following command can be used to generate this file.</p>  <blockquote>   <p>vsdbcmd.exe      <br />&#160;&#160;&#160;&#160; /Action:Import       <br />&#160;&#160;&#160;&#160; /ConnectionString:&quot;Data Source=.\sqlexpress;Initial Catalog=MyDatabase;Integrated Security=True;Pooling=False&quot;       <br />&#160;&#160;&#160;&#160; /ModelFile:MyDatabase.dbschema</p> </blockquote>  <p>There are a ton of knobs to turn with this command line tool. Feel free to check out the docs <a href="http://msdn.microsoft.com/en-us/library/dd193283.aspx">http://msdn.microsoft.com/en-us/library/dd193283.aspx</a></p>  <p>Now you should have a file “MyDatabase.dbschema” sitting on your hard drive.</p>  <h5>Tiny little hack to the .dbschema file.</h5>  <p>The section of xml we want to manually remove from the file is related to where your mdf and ldf database files should exist on disk, <b>kjøpe Viagra på nett, köpa Viagra online</b>.  <b>Cheap Viagra</b>, When we go to deploy up to AppHarbor, if this is not removed, <b>buy Viagra online no prescription</b>, <b>Online buying Viagra hcl</b>, then vsdbcmd will generate script to attempt to move the files into the “correct” location. This operation will throw exceptions if you attempt to execute against AppHarbor as you don’t have permission to do this, <b>Viagra gel, ointment, cream, pill, spray, continuous-release, extended-release</b>.  <b>Buy Viagra Without Prescription</b>, We’re removing it from the xml file, as I can’t seem to get the correct command line option to ignore this (if there is an option).  <b>Viagra no prescription</b>, So by removing it, it’s just not used and completely ignored.</p>  <p>I don’t know if this will be true for everyone, <b>Viagra photos</b>, <b>Viagra steet value</b>, but I find that the last two sections of xml in the dbschema file are all I have to remove. I’ll show the two full sections below so you can use it as a reference of what to remove from the file.</p>  <pre class="brush: xml;">&lt;Element Type=&quot;ISql90File&quot; Name=&quot;[MyDatabase]&quot;&gt;    &lt;Property Name=&quot;FileName&quot; Value=&quot;$(DefaultDataPath)$(DatabaseName).mdf&quot; /&gt;    &lt;Property Name=&quot;Size&quot; Value=&quot;2304&quot; /&gt;    &lt;Property Name=&quot;SizeUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Property Name=&quot;FileGrowth&quot; Value=&quot;1024&quot; /&gt;    &lt;Property Name=&quot;FileGrowthUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Relationship Name=&quot;Filegroup&quot;&gt;        &lt;Entry&gt;            &lt;References ExternalSource=&quot;BuiltIns&quot; Name=&quot;[PRIMARY]&quot; /&gt;        &lt;/Entry&gt;    &lt;/Relationship&gt;&lt;/Element&gt;&lt;Element Type=&quot;ISql90File&quot; Name=&quot;[MyDatabase_log]&quot;&gt;    &lt;Property Name=&quot;FileName&quot; Value=&quot;$(DefaultLogPath)$(DatabaseName)_log.LDF&quot; /&gt;    &lt;Property Name=&quot;Size&quot; Value=&quot;576&quot; /&gt;    &lt;Property Name=&quot;SizeUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Property Name=&quot;MaxSize&quot; Value=&quot;2097152&quot; /&gt;    &lt;Property Name=&quot;IsUnlimited&quot; Value=&quot;False&quot; /&gt;    &lt;Property Name=&quot;FileGrowth&quot; Value=&quot;10&quot; /&gt;    &lt;Property Name=&quot;FileGrowthUnit&quot; Value=&quot;1&quot; /&gt;    &lt;Property Name=&quot;IsLogFile&quot; Value=&quot;True&quot; /&gt;&lt;/Element&gt;</pre></p>
<p><h5>Generate the change file to AppHarbor.</h5></p>
<p><p>Now that we have a .dbschema file containing the complete model of what we want deployed, <b>comprar en línea Viagra, comprar Viagra baratos</b>, <b>Viagra without prescription</b>, we can now use it to generate a schema change deployment script.</p></p>
<p><blockquote>  <p>vsdbcmd.exe<br />
    <br />&#160;&#160;&#160;&#160; /Action:Deploy</p>
<p>    <br />&#160;&#160;&#160;&#160; /DeployToDatabase:-</p>
<p>    <br />&#160;&#160;&#160;&#160; /Script:Test.sql</p>
<p>    <br />&#160;&#160;&#160;&#160; /ConnectionString:&quot;{YourAppHarborConnectionString}&quot;</p>
<p>    <br />&#160;&#160;&#160;&#160; /ModelFile:HackIt.dbschema</p>
<p>    <br />&#160;&#160;&#160;&#160; /Properties:TargetDatabase={YourAppHarborDatabaseName EX:db1235}</p></blockquote></p>
<p><p>I’ll explain a couple of the above command options.</p></p>
<p><h6>/DeployToDatabase:-</h6></p>
<p><p>This one is _<strong><u>key</u></strong>_. This tells vsdbcmd to only generate a change script, <b>Viagra price, coupon</b>, <b>Herbal Viagra</b>, and <strong>not to actually deploy the changes </strong>immediately. Until you feel comfortable with what sql the tool generates, <b>Viagra australia, uk, us, usa</b>, <b>Viagra blogs</b>, which is usually pretty darn good, you should not apply it immediately, <b>Viagra dose</b>. Allow the tool to generate the file for further inspection and you can execute it manually after, <b>Buy Viagra Without Prescription</b>.  <b>Viagra dosage</b>, <br /></p></p>
<p><h6>/Script:Test.sql</h6></p>
<p><p>This this is just the name of the file to dump the deployment changes.<br />
  <br /></p></p>
<p><h6>/ModelFile:HackIt.dbschema</h6></p>
<p><p>The path to the .dbschema we generated and modified above.</p></p>
<p><p>&#160;</p></p>
<p><h5>Review Change Script Generated.</h5></p>
<p><p>After you’ve generated a change script file, <b>order Viagra from United States pharmacy</b>, <b>Buy Viagra from canada</b>, take a look at the sql just to make sure you’re happy with what it generates.</p></p>
<p><h5>Take the app offline. (optional)</h5></p>
<p><p>This one depends on the schema changes, <b>Viagra class</b>.  <b>Where can i find Viagra online</b>, If the changes are serious enough, you can check in an App_Offline.htm file at the root of web project and do a “git push appharbor”, <b>Viagra maximum dosage</b>.  <b>Buy Viagra Without Prescription</b>, This way, while making schema changes you don’t have to worry about the errors popping up on users.  <b>Is Viagra safe</b>, Down side is your site becomes inoperable.</p></p>
<p><blockquote>  <p>If you’ve never heard of the App_Offline.htm – I’d recommend reading up on it. <a href="http://weblogs.asp.net/scottgu/archive/2006/04/09/442332.aspx">http://weblogs.asp.net/scottgu/archive/2006/04/09/442332.aspx</a></p></blockquote></p>
<p><h5>Apply Change Script.</h5></p>
<p><p>You have several options to actually apply the scripted changes.</p></p>
<p><ol>  <li>Use vsdbcmd to deploy – Just turn the /DeployToDatabase:<strong>-</strong> to /DeployToDatabase:<strong>+</strong> and allow vsdbcmd to apply the script right there, <b>Viagra over the counter</b>.  <b>Fast shipping Viagra</b>, </li></p>
<p>  <li>Use SQL Management Studio.<br />
    <br /><strong>Make Sure you turn on SQLCMD Mode</strong><a href="http://elegantcode.com/wp-content/uploads/2011/04/image1.png"><br />
      <br /><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2011/04/image_thumb1.png" width="311" height="333" /></a>&#160; </li></ol></p>
<p><h5>Bring your site back online.</h5></p>
<p><p>Now you can go re-name the App_Offline.htm to something like App_Offline.htm.disabled and push those changes back up to AppHarbor.</p></p>
<p><h4>Other considerations.</h4></p>
<p><ul>  <li>Consider a simple migrations framework (EX: <a href="http://code.google.com/p/dbup/" target="_blank">DbUp</a>) to get some initial data or things initialized, <b>generic Viagra</b>, <b>Viagra australia, uk, us, usa</b>, but be-ware that you’ll have to think a little harder about the “rollback” steps with this approach.</p>
<p>    <br /></li></p>
<p>  <li>Next you could take a look at an inquiry I made on the public support discussion list at AppHarbor hoping to push AppHarbor to implement this App_Offline.htm support (right into their admin site)<a href="http://support.appharbor.com/discussions/problems/373-deployment-feature-idea"><br />
      <br />http://support.appharbor.com/discussions/problems/373-deployment-feature-idea</a></p>
<p>    <br /><strong>UPDATE:</strong> SPARE A VOTE OR TWO: <a title="http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic" href="http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic">http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic</a> </li></ul></p>
<p><p>One great benefit of to this approach is the ability for vsdbcmd to manage changes to an existing schema, <b>rx free Viagra</b>.  <b>Cheap Viagra</b>, </p></p>
<p><p>Now if you want full support like refactorings such as table, column, <b>Viagra treatment</b>, <b>Ordering Viagra online</b>, etc renames. You will want to keep a full db project and use that to do a deployment.</p></p>
<p><p>Hope you find this useful, <b>buy no prescription Viagra online</b>.  <b>Taking Viagra</b>, Happy Deployment!</p>.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4335'>Buy Differin Without Prescription</a>. <a href='http://elegantcode.com/?p=4423'>Antabuse For Sale</a>. <a href='http://elegantcode.com/?p=4744'>Buy Flexeril Without Prescription</a>. <a href='http://elegantcode.com/?p=4587'>Buy Pristiq Without Prescription</a>. <a href='http://elegantcode.com/?p=4633'>Cephalexin For Sale</a>. <a href='http://elegantcode.com/?p=4384'>Order Ultram online overnight delivery no prescription</a>. <a href='http://elegantcode.com/?p=4683'>Inderal schedule</a>. <a href='http://elegantcode.com/?p=4822'>About Hydrochlorothiazide</a>. <a href='http://elegantcode.com/?p=4728'>Ventolin australia, uk, us, usa</a>. <a href='http://elegantcode.com/?p=4694'>Human Growth Hormone interactions</a>.<br />
<b>Trackbacks from:</b> <a href='http://www.greatgreengoods.com/?p=2891'>Buy Viagra Without Prescription</a>. <a href='http://www.thegriffonnews.com/?p=10272'>Buy Viagra Without Prescription</a>. <a href='http://www.themusclecarplace.com/?p=3445'>Buy Viagra Without Prescription</a>. <a href='http://linuxologist.com/?p=363'>Buy Viagra Without Prescription</a>. <a href='http://blog.farmland.org/?p=2709'>Buy Viagra Without Prescription</a>. <a href='http://www.quarterlives.com/?p=286'>Where can i cheapest Viagra online</a>. <a href='http://www.macneilbmx.com/blog/?p=6199'>Online Viagra without a prescription</a>. <a href='http://social-blend.com/?p=1253'>Japan, craiglist, ebay, overseas, paypal</a>. <a href='http://www.leaduganda.org/?p=824'>Purchase Viagra online no prescription</a>. <a href='http://4realz.net/?p=1851'>Viagra no rx</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving your global .gitconfig file</title>
		<link>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=moving-your-global-gitconfig-file</link>
		<comments>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/#comments</comments>
		<pubDate>Fri, 05 Nov 2010 11:02:41 +0000</pubDate>
		<dc:creator>Andreas Håkansson</dc:creator>
				<category><![CDATA[Source Control]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/</guid>
		<description><![CDATA[I am using msysgit for my Git work on Windows and for quite a while I have been wanting to move the global .gitconfig file from its default location into my dropbox folder. The reason for this is probably obvious, I do not want to have to make the same configuration changes on multiple machines [...]]]></description>
			<content:encoded><![CDATA[I am using <a title="Visit the project page of msysgit" href="http://code.google.com/p/msysgit/" target="_blank">msysgit</a> for my Git work on Windows and for quite a while I have been wanting to move the global .gitconfig file from its default location into my dropbox folder. The reason for this is probably obvious, I do not want to have to make the same configuration changes on multiple machines to get a homogenize Git environment.

So I set out to resolve this but despite numerous stops at my local Google page, I was unable to find any information on how to make Git look for the file in a different location, it always went to look for the file at <em>%USERPROFILE%\.gitconfig</em>.

As a last resort I asked <a title="Visit the blog of Joshua Flanagan" href="http://www.lostechies.com/blogs/joshuaflanagan/" target="_blank">Joshua Flanagan</a> if he had any idea on how I could configure Git or msysgit to make this possible. Unfortunately he had no idea, but he did however suggest that I try using <a title="Visit the product page for mklink" href="http://technet.microsoft.com/en-us/library/cc753194(WS.10).aspx" target="_blank">mklink</a>, a command line utility available in Windows Vista and later.

mklink enables you to create either <a title="Read more about the differences between symbolic and hard links" href="http://www.maxi-pedia.com/difference+between+symbolic+link+and+hard+link" target="_blank">symbolic or hard links</a> for files or directories. What I needed was a symbolic link, which simply explained is like a shortcut to a file but the difference is that the file system will resolve the symbolic link to the real file, where as a windows shortcut is a file with information in it.

To create a symbolic link for your .gitconfig file do the following
<ol>
	<li>Copy your .gitconfig file from the %USERPROFILE% directory, to the directory where you want to store it instead</li>
	<li>Delete the .gitconfig file in the %USERPROFILE% directory</li>
	<li>Start <strong>cmd.exe</strong> as Administrator</li>
	<li>Enter <strong>mklink .gitconfig path\to\your\.gitconfig</strong> (notice the actual filename needs to be in the second parameter or you will link to the folder it is stored in)</li>
</ol>
You should now get a message that a symbolic link was created between the two files. Try making a change in either of them and see that the change is reflected in the other one – this is because you are always editing the same file since the file system resolves the symbolic link into the real file.]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Pluralcast 21 &#8211; Extending Visual Studio 2010 with Kate Gregory</title>
		<link>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pluralcast-21-extending-visual-studio-2010-with-kate-gregory</link>
		<comments>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 03:42:23 +0000</pubDate>
		<dc:creator>David Starr</dc:creator>
				<category><![CDATA[Pluralcast]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/</guid>
		<description><![CDATA[Listen Now! Kate Gregory has probably forgotten more coding tricks than I have ever learned. That means that she likes her Visual Studio with meat and potatoes. With the new extensibility model in Visual Studio 2010,  Visual Studio can now be the primary source or protein in your IDE diet. In this episode Kate tells us [...]]]></description>
			<content:encoded><![CDATA[<a href="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3"><img style="display: inline; border-width: 0px;" title="PlayIcon" src="http://elegantcode.com/wp-content/uploads/2010/08/PlayIcon.png" border="0" alt="PlayIcon" width="24" height="24" /></a> <a href="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3" target="_blank">Listen Now</a>!

Kate Gregory has probably forgotten more coding tricks than I have ever learned. That means that she likes her Visual Studio with meat and potatoes. With the new extensibility model in Visual Studio 2010,  Visual Studio can now be the primary source or protein in your IDE diet. In this episode Kate tells us how to add a little hot sauce using Visual Studio extensions.

<a href="http://elegantcode.com/wp-content/uploads/2010/08/kategregory.jpg"><img style="margin: 5px; display: inline; border-width: 0px;" title="kate-gregory" src="http://elegantcode.com/wp-content/uploads/2010/08/kategregory_thumb.jpg" border="0" alt="kate-gregory" width="112" height="142" align="right" /></a> Kate is in her fourth decade of being paid to program. Her firm, Gregory Consulting Limited, is based in rural Ontario and helps clients adopt new technologies and adjust to the changing business environment. Current work makes heavy use of .NET and Visual C++ along with SharePoint and both web and client development, especially for Windows 7. Managing, mentoring, technical writing, and technical speaking occupy much of her time, but she still writes code every week.

Kate is the author of over a dozen books and speaks at DevTeach, TechEd (USA, Europe, Africa), and TechDays, among others. Kate is a C++ MVP, a founding sponsor of the Toronto .NET Users Group, the founder of the East of Toronto .NET Users group, a member of the INETA speakers bureau, and a member of adjunct faculty at Trent University in Peterborough. Since January 2002 she has been Microsoft Regional Director for Toronto and since January 2004 she has been awarded the Microsoft Most Valuable Professional designation for Visual C++. In June 2005 she won the Regional Director of the year award.

<strong>Show Links</strong>
<ul>
	<li><a href="http://www.gregcons.com/kateblog/">Kate’s Blog</a></li>
	<li><a href="http://www.pluralsight-training.net/microsoft/olt/Course/Toc.aspx?n=vs2010-vsx">Kate’s Pluralsight course, <em>Customizing and Extending Visual Studio 2010</em></a></li>
	<li><a href="http://msdn.microsoft.com/en-us/vstudio/vextend.aspx">Visual Studio Extensibility (VSX)</a></li>
	<li><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=47305cf4-2bea-43c0-91cd-1b853602dcc5&amp;displaylang=en">Visual Studio SDK</a></li>
	<li><a href="http://visualstudiogallery.msdn.microsoft.com/">Visual Studio Gallery</a></li>
	<li><a href="http://code.msdn.microsoft.com/vsx">The Code Gallery</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3" length="41629427" type="audio/mpeg" />
		</item>
		<item>
		<title>God Mode Easter Egg</title>
		<link>http://elegantcode.com/2010/01/04/god-mode-easter-egg/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=god-mode-easter-egg</link>
		<comments>http://elegantcode.com/2010/01/04/god-mode-easter-egg/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 04:55:51 +0000</pubDate>
		<dc:creator>David Starr</dc:creator>
				<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/01/04/god-mode-easter-egg/</guid>
		<description><![CDATA[I did not discover this, I got it from a tweet that Rob Conery put out there. Thank you, Rob! I don’t know if this is a Windows 7 hack or if this is available in other operating systems. Create a new folder on your desktop Name the new folder: GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} The new folder will [...]]]></description>
			<content:encoded><![CDATA[I did not discover this, I got it from <a href="http://bit.ly/62zZlc ">a tweet</a> that <a href="http://blog.wekeroad.com/">Rob Conery</a> put out there. Thank you, Rob!

I don’t know if this is a Windows 7 hack or if this is available in other operating systems.
<ol>
	<li>Create a new folder on your desktop</li>
	<li>Name the new folder:
GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}</li>
</ol>
The new folder will change into this icon.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image1.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb1.png" border="0" alt="image" width="84" height="90" /></a>

Clicking your shiny new icon will result in a new window that gives shortcut access to the myriad of configuration and administration utilities in Windows that I always seem to need to hunt down.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image2.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb2.png" border="0" alt="image" width="397" height="1474" /></a>

Opening one of these nodes will provide direct access to the associated utils.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image3.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb3.png" border="0" alt="image" width="586" height="313" /></a>

Weird and beautiful, isn’t it?

It makes me wonder what other Easter eggs are in there.]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/01/04/god-mode-easter-egg/feed/</wfw:commentRss>
		<slash:comments>40</slash:comments>
		</item>
		<item>
		<title>Unity/Moq &#8211; AutoMocker or AutoMockingContainer</title>
		<link>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=unitymoq-automocker-or-automockingcontainer</link>
		<comments>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 16:52:33 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[TDD]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/</guid>
		<description><![CDATA[What is an Auto Mocking Container? This post started to get a little long, so I won’t re-explain the concept. Joshua Flanagan wrote a nice overview at his Los Techies blog: Auto mocking Explained. My post is mainly here to describe the Unity version of an automocking container I threw together. In Jan 2009 I [...]]]></description>
			<content:encoded><![CDATA[<h4>What is an Auto Mocking Container?</h4>  <p>This post started to get a little long, so I won’t re-explain the concept.</p>  <p><a href="http://www.lostechies.com/blogs/joshuaflanagan/default.aspx">Joshua Flanagan</a> wrote a nice overview at his <a href="http://www.lostechies.com/">Los Techies</a> blog: <a href="http://www.lostechies.com/blogs/joshuaflanagan/archive/2009/02/03/auto-mocking-explained.aspx"><strong>Auto mocking Explained</strong></a>.</p>  <p>My post is mainly here to describe the Unity version of an automocking container I threw together.</p>  <h4>In Jan 2009 I blogged about my initial version of the Unity AutoMocker - Why am I blogging about it again?</h4>  <p>I originally wrote the AutoMocker for the Unity container a year ago (Jan 2009, in Silverlight), and finally got around to placing the code up in the <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> project in June of 2009.</p>  <p>I’m writing another post today in hopes to:</p>  <ol>   <li>Get some feedback on how this little snippet of code should continue. </li>    <li>Give a little more how-to/example code </li>    <li>Describe some updates I made since I originally created it.&#160; </li> </ol>  <h4>Where can I get it?</h4>  <p><strong>This is one part where I’d appreciate some feedback.</strong></p>  <p>I have two slightly different versions out there (currently).</p>  <p>I have one version at the <a href="http://code.google.com/p/elegantcode/source/browse/#svn/trunk/Coders/JasonJarrett/UnityAutoMocker">ElegantCode</a> repository where I was working on it, and the other I threw up at <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a>.</p>  <p>The core of the UnityAutoMockContainer is the same in both places, it’s how the tests are separated out that differ.</p>  <p>In the <a href="http://code.google.com/p/elegantcode/source/browse/#svn/trunk/Coders/JasonJarrett/UnityAutoMocker">ElegantCode repository</a> it’s an all in one self contained single file (that you can copy into your own test project(s)). You can then setup a single test in your own testing framework that runs all internal automocker tests (in case you need to modify it yourself, and don’t want to break any existing functionality). EX: test</p>  <pre class="brush: csharp;">[Test]
public void Should_run_all_UnityAutoMockContainer_internal_tests()
{
    Moq.AutoMocking.SelfTesting.UnityAutoMockContainerFixture
        .RunAllTests(Console.WriteLine);
}</pre>

<p>I kind of like this format as it makes it easy to port between test libraries. Can’t say I like having the tests in the same file as the core, but it certainly is not a large chunk of code (so far) so it’s relatively small to maintain and definitely easier to manage as a single .cs file than another assembly (which would have to be version dependent on both Unity and Moq).</p>

<p>The <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> is definitely where I think this helper should end up (and it is there). I just happened to break the tests out into the Silverlight test project and the core is alone in a file. </p>

<p>It’s current state isn’t as easy to copy to a test library (Silverlight/Desktop/Unity 1.2/Unity 2.0) as the one at <a href="http://elegantcode.com/">ElegantCode</a>. <strong>What does anyone think?</strong> Should I put them all together in one file?</p>

<p>However it ends up (1. all in one file or two (1 test) (1 core)) it will continue to be maintained on the <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> project.</p>

<h4>What is the high level API of the container?</h4>

<p>It’s pretty simple, (currently) there are four methods on the container.</p>

<p><strong>Two for registering items with the container</strong>. Say you want to register an already created instance, or say you want to map an interface to a concrete class and _not_ have the container generate mocks automatically for special cases. </p>

<p>And <strong>two for pulling items out of the container</strong>. Whether you want a instance of T or a Mock&lt;T&gt;, it gives you ways to retrieve both.</p>

<blockquote>
  <p><a href="http://elegantcode.com/wp-content/uploads/2010/01/image.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb.png" width="396" height="106" /></a> </p>
</blockquote>

<h4>How can I setup my own registrations with the container? </h4>

<p>Say I don’t want to have the container generate mocks for specific items and I want to supply specific configuration to the UnityContainer.</p>

<blockquote>
  <p>public UnityAutoMockContainer RegisterInstance&lt;TService&gt;(TService instance)</p>

  <p>public UnityAutoMockContainer Register&lt;TService, TImplementation&gt;() 
    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; where TImplementation : TService</p>
</blockquote>

<p><strong>Note</strong>: both of these registration methods return the container itself so you can fluently stack registration. <strong>EX:</strong></p>

<pre class="brush: csharp;">AutoMockContainer
    .Register&lt;IServiceA, ServiceA&gt;()
    .Register&lt;IServiceB, ServiceB&gt;();</pre>

<p><strong>Let me know</strong>: I haven’t tested or played around with how this automocking container deals with any container specific xml configuration… So although I don’t think you should probably have that in a test assembly (stuff happens). Let me know if there are any issues.</p>

<h4>How do I get items out of the container?</h4>

<p>First is the Resolve&lt;T&gt;(). It will pull an item T out of the container. (Creating it if not already existing)</p>

<blockquote>
  <p>public T Resolve&lt;T&gt;()</p>
</blockquote>

<p>When T is an interface Resolve&lt;T&gt; (unless you setup registration specifically with the container) should return basically “(new Mock&lt;T&gt;()).Object”</p>

<p>When T is a concrete Class, the container should return an instance of T and any of it’s dependencies will be satisfied by mocks. (Note that T will not be any sort of mocked instance of T, unless you used the GetMock&lt;T&gt; as described below first)</p>

<blockquote>
  <p>public Mock&lt;T&gt; GetMock&lt;T&gt;() where T : class</p>
</blockquote>

<p>When T is an interface GetMock&lt;T&gt; should return basically “(new Mock&lt;T&gt;())” </p>

<p>When T is a concrete Class, the container should return a new Mock&lt;T&gt;() and any of it’s dependencies will be satisfied by mocks.</p>

<h4>How do I use the UnityAutoMockContainer?</h4>

<p>It’s pretty basic, you first create an instance of the UnityAutoMockContainer, and from there you can ask it for mocks of an (Interface, Class, or Abstract Class).</p>

<p>If you request an instance of a concrete class, or abstract class, the UnityAutoMockContainer will stuff mocks in for any constructor dependencies of your concrete class (if it can). You can then request from the container those same dependencies one at a time and either apply mocking setups or verifications.</p>

<blockquote>
  <p><strong>NOTE:</strong> Anything the container creates will live as a singleton instance in the container. So any other requests from the container will always return the originally created instance. Therefore, each distinct scenario in a test suite should have their own instances of the container.</p>
</blockquote>

<p>Below his an example of how you can leverage the container in some tests. Given this base fixture class…</p>

<pre class="brush: csharp;">public class FixtureBase
{
    private readonly UnityAutoMockContainer _autoMockContainer = new UnityAutoMockContainer();

    protected UnityAutoMockContainer AutoMockContainer
    {
        get { return _autoMockContainer; }
    }

    [TestFixtureSetUp]
    public void SetupContext_ALL()
    {
        Before_all_tests();
        Because();
    }

    [TestFixtureTearDown]
    public void TearDownContext_ALL()
    {
        After_all_tests();
    }

    protected virtual void Before_all_tests()
    {
    }

    protected virtual void Because()
    {
    }

    protected virtual void After_all_tests()
    {
    }
}</pre>

<p>If I were given the following system to test.</p>

<pre class="brush: csharp;">public interface IServiceA { void RunA(); }
public interface IServiceB { void RunB(); }

public class TestComponent
{
    public TestComponent(IServiceA serviceA, IServiceB serviceB)
    {
        ServiceA = serviceA;
        ServiceB = serviceB;
    }

    public IServiceA ServiceA { get; private set; }
    public IServiceB ServiceB { get; private set; }

    public void RunAll()
    {
        if (!HowDidItGo())
            return;
        ServiceA.RunA();
        ServiceB.RunB();
    }

    public virtual bool HowDidItGo()
    {
        // some really nasty untestable code
        return true;
    }
}</pre>

<p>The below example demonstrates simply verifying some behavior on the mocked dependencies of the system under test.</p>

<pre class="brush: csharp;">[TestFixture]
public class Example__how_to_pull_items_from_the_UnityAutoMockContainer_when_verifying_behavior_after_an_action_was_taken 
    : FixtureBase
{
    private TestComponent _testComponent;

    protected override void Before_all_tests()
    {
        base.Before_all_tests();
        _testComponent = AutoMockContainer.Resolve&lt;TestComponent&gt;();
    }

    protected override void Because()
    {
        _testComponent.RunAll();
    }

    [Test]
    public void Should_run_ServiceA_RunA()
    {
        AutoMockContainer
            .GetMock&lt;IServiceA&gt;()
            .Verify(v =&gt; v.RunA(), Times.Once());
    }

    [Test]
    public void Should_run_ServiceB_RunB()
    {
        AutoMockContainer
            .GetMock&lt;IServiceB&gt;()
            .Verify(v =&gt; v.RunB(), Times.Once());
    }
}</pre>

<p>Next, you may have noticed that the system under test had a complicated internal method (that may not necessarily be testable). You can use the AutoMocker to create the system under test as a Mock itself, so we can override some of the behavior. Here’s how you could quickly do that. </p>

<blockquote>
  <p><strong>Aside</strong>: I’m not saying this is a good practice or aids in good component design, just saying it’s possible</p>
</blockquote>

<pre class="brush: csharp;">[TestFixture]
public class Example__how_to_use_the_UnityAutoMockContainer_to_override_a_method_on_the_SystemUnderTest_to_test_a_certain_behavior
    : FixtureBase
{

    private TestComponent _testComponent;

    protected override void Before_all_tests()
    {
        base.Before_all_tests();
        var mockTestComponent = AutoMockContainer.GetMock&lt;TestComponent&gt;();

        mockTestComponent
            .Setup(s =&gt; s.HowDidItGo())
            .Returns(false);

        _testComponent = mockTestComponent.Object;
    }

    protected override void Because()
    {
        _testComponent.RunAll();
    }

    [Test]
    public void Should_run_ServiceA_RunA()
    {
        AutoMockContainer
            .GetMock&lt;IServiceA&gt;()
            .Verify(v =&gt; v.RunA(), Times.Never());
    }

    [Test]
    public void Should_run_ServiceB_RunB()
    {
        AutoMockContainer
            .GetMock&lt;IServiceB&gt;()
            .Verify(v =&gt; v.RunB(), Times.Never());
    }
}</pre>

<p>&#160;</p>

<p>It’s amazing how much redundant test setup code this little helper has saved me in my tests. I hope others can find some use with this as well.</p>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>If (Successful) { throw new Exception(); }</title>
		<link>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=if-successful-throw-new-exception</link>
		<comments>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 14:56:59 +0000</pubDate>
		<dc:creator>Brian Lagunas</dc:creator>
				<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/</guid>
		<description><![CDATA[So, I was installing Visual Studio 2010 Ultimate Beta 2 on one of my machines the other day and the funniest thing happened.&#160; After it successfully installed, I was prompted to send an error report. Since when is a successful operation a problem?&#160; Now, of course, I am assuming this is intentional and is transmitting [...]]]></description>
			<content:encoded><![CDATA[<p>So, I was installing Visual Studio 2010 Ultimate Beta 2 on one of my machines the other day and the funniest thing happened.&#160; After it successfully installed, I was prompted to send an error report.</p>  <p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="error" border="0" alt="error" src="http://elegantcode.com/wp-content/uploads/2009/12/error.jpg" width="380" height="209" /> </p>  <p>Since when is a successful operation a problem?&#160; Now, of course, I am assuming this is intentional and is transmitting information back to Microsoft to tell them that it was successful.&#160; But, I can see how easy it would be for someone to mistaken this for a legitimate error.&#160; Then again, maybe it is.</p>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>StatLight &#8211; Goes Open Source</title>
		<link>http://elegantcode.com/2009/12/10/statlight-goes-open-source/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=statlight-goes-open-source</link>
		<comments>http://elegantcode.com/2009/12/10/statlight-goes-open-source/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 03:26:55 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[TDD]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2009/12/10/statlight-goes-open-source/</guid>
		<description><![CDATA[Although I made a very minor attempt at making StatLight a “for-sale” product, I knew when I started that open-source was most likely going to be my long term path for StatLight. What is it? (Silverlight Testing Automation Tool) StatLight is a tool developed for automating the setup, running, and gathering results of Silverlight unit [...]]]></description>
			<content:encoded><![CDATA[Although I made a very minor attempt at making <a href="http://statlight.net" target="_blank">StatLight</a> a “for-sale” product, I knew when I started that open-source was most likely going to be my long term path for <a href="http://statlight.net" target="_blank">StatLight</a>.
<h5>What is it? (Silverlight Testing Automation Tool)</h5>
StatLight is a tool developed for automating the setup, running, and gathering results of Silverlight unit tests. StatLight helps to speed up the feedback cycles while practicing<a href="http://en.wikipedia.org/wiki/Test-driven_development"> TDD</a>/<a href="http://en.wikipedia.org/wiki/Behavior_Driven_Development">BDD</a>/(insert your test style here) during Silverlight development.
<h5>Where can I get StatLight?</h5>
<a href="http://StatLight.CodePlex.com">http://StatLight.CodePlex.com</a>
<h4>Happy Coding !!!</h4>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2009/12/10/statlight-goes-open-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running with Parallels 5</title>
		<link>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pluralcast-21-extending-visual-studio-2010-with-kate-gregory</link>
		<comments>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 03:42:23 +0000</pubDate>
		<dc:creator>David Starr</dc:creator>
				<category><![CDATA[Pluralcast]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/</guid>
		<description><![CDATA[Listen Now! Kate Gregory has probably forgotten more coding tricks than I have ever learned. That means that she likes her Visual Studio with meat and potatoes. With the new extensibility model in Visual Studio 2010,  Visual Studio can now be the primary source or protein in your IDE diet. In this episode Kate tells us [...]]]></description>
			<content:encoded><![CDATA[<a href="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3"><img style="display: inline; border-width: 0px;" title="PlayIcon" src="http://elegantcode.com/wp-content/uploads/2010/08/PlayIcon.png" border="0" alt="PlayIcon" width="24" height="24" /></a> <a href="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3" target="_blank">Listen Now</a>!

Kate Gregory has probably forgotten more coding tricks than I have ever learned. That means that she likes her Visual Studio with meat and potatoes. With the new extensibility model in Visual Studio 2010,  Visual Studio can now be the primary source or protein in your IDE diet. In this episode Kate tells us how to add a little hot sauce using Visual Studio extensions.

<a href="http://elegantcode.com/wp-content/uploads/2010/08/kategregory.jpg"><img style="margin: 5px; display: inline; border-width: 0px;" title="kate-gregory" src="http://elegantcode.com/wp-content/uploads/2010/08/kategregory_thumb.jpg" border="0" alt="kate-gregory" width="112" height="142" align="right" /></a> Kate is in her fourth decade of being paid to program. Her firm, Gregory Consulting Limited, is based in rural Ontario and helps clients adopt new technologies and adjust to the changing business environment. Current work makes heavy use of .NET and Visual C++ along with SharePoint and both web and client development, especially for Windows 7. Managing, mentoring, technical writing, and technical speaking occupy much of her time, but she still writes code every week.

Kate is the author of over a dozen books and speaks at DevTeach, TechEd (USA, Europe, Africa), and TechDays, among others. Kate is a C++ MVP, a founding sponsor of the Toronto .NET Users Group, the founder of the East of Toronto .NET Users group, a member of the INETA speakers bureau, and a member of adjunct faculty at Trent University in Peterborough. Since January 2002 she has been Microsoft Regional Director for Toronto and since January 2004 she has been awarded the Microsoft Most Valuable Professional designation for Visual C++. In June 2005 she won the Regional Director of the year award.

<strong>Show Links</strong>
<ul>
	<li><a href="http://www.gregcons.com/kateblog/">Kate’s Blog</a></li>
	<li><a href="http://www.pluralsight-training.net/microsoft/olt/Course/Toc.aspx?n=vs2010-vsx">Kate’s Pluralsight course, <em>Customizing and Extending Visual Studio 2010</em></a></li>
	<li><a href="http://msdn.microsoft.com/en-us/vstudio/vextend.aspx">Visual Studio Extensibility (VSX)</a></li>
	<li><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=47305cf4-2bea-43c0-91cd-1b853602dcc5&amp;displaylang=en">Visual Studio SDK</a></li>
	<li><a href="http://visualstudiogallery.msdn.microsoft.com/">Visual Studio Gallery</a></li>
	<li><a href="http://code.msdn.microsoft.com/vsx">The Code Gallery</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3" length="41629427" type="audio/mpeg" />
		</item>
		<item>
		<title>Elegant Code &#187; Tools and Utilities</title>
	<atom:link href="http://elegantcode.com/category/tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://elegantcode.com</link>
	<description></description>
	<lastBuildDate>Tue, 15 May 2012 10:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Quinine For Sale</title>
		<link>http://elegantcode.com/2012/01/18/monitoring-an-mmo/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=monitoring-an-mmo</link>
		<comments>http://elegantcode.com/2012/01/18/monitoring-an-mmo/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 19:45:32 +0000</pubDate>
		<dc:creator>Tony Rasa</dc:creator>
				<category><![CDATA[Architecture]]></category>
		<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Metrics]]></category>
		<category><![CDATA[MMO]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2012/01/18/monitoring-an-mmo/</guid>
		<description><![CDATA[I’ve been working on a free-to-play MMO Quinine For Sale, which has been “officially” live since last April, and things have been going well – a steady growth of players; the game itself has been well-received, and all the important graphs are “up and to the right.”&#160; Part of my job involves detecting problems before [...]]]></description>
			<content:encoded><![CDATA[<p> <p>I’ve been working on a free-to-play <a href="http://www.heroup.com" target="_blank">MMO</a> <b>Quinine For Sale</b>, which has been “officially” live since last April, and things have been going well – a steady growth of players; the game itself has been well-received, and all the important graphs are “up and to the right.”&#160; Part of my job involves detecting problems before they become serious and fixing problems when they inevitably do.&#160; So, there are two questions.&#160; “Is there a problem in the game?” “What is causing the problem?”&#160; </p>  <p>When trying to debug something on our development and test clusters, typically you can tail log files.&#160; We have a python script that can monitor the communication between various parts of the game and pretty-print it along with color to highlight “this is a problem!”&#160; Attaching a debugger to a running process is also not uncommon.&#160; However, looking at logs and bus traffic in realtime on a production environment gives you this neat “Matrix-y” experience.&#160; Attaching a debugger to a production process (assuming you could, which you can’t) would get you smacked with a rolled-up newspaper.&#160; “Bad Developer!&#160; No treat!”&#160; So, what can you do?</p>  <h4>Monitoring</h4>  <p>When you’ve got clusters full of machines, using <a href="http://www.nagios.org/" target="_blank">Nagios</a> to monitor things is an obvious solution.&#160; Beyond making sure the power is on and other sysadmin things, we’ve written other checks to see if the login process is working, the parts are working together, and automating typical in-game functions.&#160; For example, if nagios can’t successfully log into the game do basic game activity, then alerts happen.</p>  <h4>Metrics for EVERYTHING</h4>  <p>Anything that happens in game has metrics reporting tied to it, generating piles of data constantly.&#160; We use <a href="http://www.cacti.net/" target="_blank">Cacti</a> to visualize game activity.&#160; An example metric is concurrent users, or CCU.&#160; We graph how many people are in the game over time, which when things are healthy should be a nice smooth curve climbing to peak game hours, then descending nicely through the night.</p>  <p>We can tell by sight if the game looks healthy or not – if the CCU graph is jaggy, has a sudden drop or spike, or drops to zero then we know that something is wrong.&#160; Typically nagios alerts accompany the graphs, giving more data points on where to look.&#160; But this has also pointed out areas where a nagios check was missing or wasn’t working as intended.</p>  <h4>Log Files</h4>  <p>When a player gets an error in game, the error dialog box gives them the opportunity to submit the error details back to us.&#160; If we see a spike in user-reported errors through this or other customer service means, we know we have something of interest to look for.&#160; </p>  <p>The game server components make use of log4j and similar logging frameworks.&#160; Anything that you’d want to watch happening in game needs to be aggressively logged.&#160; All components are configured so that operations can change the log level on the fly.&#160; That’s still quite a bit of data across many machines though, so all that information is run through <a href="http://www.splunk.com/product" target="_blank">Splunk</a> to be indexed and searchable.&#160; This gives us a great tool for searching through log data, examining trends, or watching selected activity in real time.&#160; Unfortunately it is very expensive so we are selective about the data that passes through it.&#160; </p>.  Buy Quinine from mexico.  Buy Quinine no prescription.  No prescription Quinine online.  Online buying Quinine.  Quinine no prescription.  Quinine street price.  Buy no prescription Quinine online.  Quinine coupon.  Quinine over the counter.  Where can i buy Quinine online.  Quinine steet value.  Where to buy Quinine.  Order Quinine online overnight delivery no prescription.  Quinine recreational.  Quinine canada, mexico, india.  Ordering Quinine online.  Quinine without prescription.  Quinine price, coupon.  Quinine description.  Order Quinine from mexican pharmacy.  Quinine pics.  What is Quinine.  Japan, craiglist, ebay, overseas, paypal.  Order Quinine from United States pharmacy.  Order Quinine online c.o.d.  Quinine trusted pharmacy reviews.  Quinine treatment.  Buy Quinine from canada.  Quinine used for.  Discount Quinine.  Is Quinine addictive.  Quinine forum.  Buy Quinine online no prescription.  Is Quinine safe.  Purchase Quinine for sale.  Effects of Quinine.  Buy Quinine online cod.  Quinine australia, uk, us, usa.  Buy Quinine without prescription.  Quinine online cod.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4721'>Buy Flonase Without Prescription</a>. <a href='http://elegantcode.com/?p=4234'>Buy Periactin Without Prescription</a>. <a href='http://elegantcode.com/?p=4203'>Buy Armour Without Prescription</a>. <a href='http://elegantcode.com/?p=4899'>Buy Macrobid Without Prescription</a>. <a href='http://elegantcode.com/?p=4534'>Xalatan For Sale</a>. <a href='http://elegantcode.com/?p=4302'>Phenergan wiki</a>. <a href='http://elegantcode.com/?p=4268'>Soma maximum dosage</a>. <a href='http://elegantcode.com/?p=4602'>Zovirax treatment</a>. <a href='http://elegantcode.com/?p=4578'>Cialis price, coupon</a>. <a href='http://elegantcode.com/?p=4189'>Flexeril price</a>.<br />
<b>Trackbacks from:</b> <a href='http://www.leaduganda.org/?p=514'>Quinine For Sale</a>. <a href='http://www.macneilbmx.com/blog/?p=4820'>Quinine For Sale</a>. <a href='http://www.greatgreengoods.com/?p=2780'>Quinine For Sale</a>. <a href='http://www.thegriffonnews.com/?p=10177'>Quinine For Sale</a>. <a href='http://www.independentworldreport.com/?p=2409'>Quinine For Sale</a>. <a href='http://changecamp.ca/?p=295'>Quinine description</a>. <a href='http://social-blend.com/?p=624'>Quinine price, coupon</a>. <a href='http://blog.farmland.org/?p=3946'>Online buying Quinine hcl</a>. <a href='http://4realz.net/?p=1595'>Quinine from canada</a>. <a href='http://reversemortgagedaily.com/?p=14535'>Where to buy Quinine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2012/01/18/monitoring-an-mmo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Buy Clonidine Without Prescription</title>
		<link>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=moving-from-e-texteditor-to-sublime-text-2</link>
		<comments>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 23:45:32 +0000</pubDate>
		<dc:creator>Jan Van Ryswyck</dc:creator>
				<category><![CDATA[CoffeeScript]]></category>
		<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/</guid>
		<description><![CDATA[I’ve been using E-TextEditor Buy Clonidine Without Prescription, for more than a year now for doing all my JavaScript, Node.js and CoffeeScript development. Clonidine from mexico, You can think of E-TextEditor as TextMate for the Windows platform. I’ve been pretty happy with it throughout this period as it can be extended pretty easily with a [...]]]></description>
			<content:encoded><![CDATA[<p> <p align="justify">I’ve been using <a href="http://www.e-texteditor.com/" target="_blank">E-TextEditor</a> <b>Buy Clonidine Without Prescription</b>, for more than a year now for doing all my JavaScript, Node.js and CoffeeScript development.  <b>Clonidine from mexico</b>, You can think of E-TextEditor as <a href="http://macromates.com/" target="_blank">TextMate</a> for the Windows platform. I’ve been pretty happy with it throughout this period as it can be extended pretty easily with a whole slew of bundles that are already available for TextMate, <b>cheap Clonidine</b>.  <b>Clonidine recreational</b>, E-TextEditor requires you to install <a href="http://www.cygwin.com/" target="_blank">Cygwin</a> which happens automatically during installation. Using the Cygwin command-line gave me enough (re-)exposure to a Linux-like environment in order for me wanting to (re-)learn about this other platform, <b>purchase Clonidine for sale</b>. More on that in later blog posts, <b>Buy Clonidine Without Prescription</b>.  <b>Low dose Clonidine</b>, Although there haven’t been any new versions of E-TextEditor for quite some time now, the current version enabled me to write JavaScript code in a productive way.</p>  <p align="justify">Only recently I found out about another editor called <a href="http://www.sublimetext.com/2" target="_blank">Sublime Text 2</a> (thanks to <a href="http://twitter.com/#!/casualjim" target="_blank">Ivan Porto Carrero</a>), <b>Clonidine description</b>.  <b>Clonidine overnight</b>, I downloaded this text editor in order to give it a try and I must say that I haven’t opened E-TextEditor ever since. This second version of Sublime Text is still in development but it’s pretty stable as I haven’t run into any issues so far, <b>Clonidine no prescription</b>.  <b>Clonidine brand name</b>, The cool part is that this editor is available for both Windows, Linux and OS X which enabled me to move all my Node.js and CoffeeScript development from Cygwin on Windows to Ubuntu Linux.&#160; </p>  <p align="justify">CoffeeScript isn’t supported out-of-the-box (yet), <b>purchase Clonidine</b>, <b>Clonidine gel, ointment, cream, pill, spray, continuous-release, extended-release</b>, so I installed the <a href="https://github.com/jashkenas/coffee-script-tmbundle" target="_blank">CoffeeScript&#160; TextMate bundle</a> written by <a href="http://ashkenas.com/" target="_blank">Jeremy Ashkenas</a> (yes, the same one from the <a href="http://jashkenas.github.com/coffee-script/" target="_blank">CoffeeScript</a> and <a href="http://documentcloud.github.com/backbone/" target="_blank">Backbone.js</a> fame), <b>Clonidine long term</b>.  Also check out <a href="https://github.com/jashkenas/coffee-script/wiki/Text-editor-plugins" target="_blank">this page on the CoffeeScript wiki</a> for more information on how to bring some CoffeeScript happiness to your own favorite text editor.</p>  <p align="justify"> <b>Buy Clonidine Without Prescription</b>, Setting up this TextMate bundle for use with Sublime Text 2 was actually pretty easy.  <b>Clonidine canada, mexico, india</b>, Just navigate to <em>/home/&lt;my_user_name&gt;/.config/sublime-text-2/Packages</em> in a terminal (or the corresponding file path on Windows) and clone the source of the CoffeeScript TextMate bundle using git: </p>  <blockquote>   <p align="justify"><em>git clone git://github.com/jashkenas/coffee-script-tmbundle CoffeeScript</em></p> </blockquote>  <p align="justify">Next close all the .coffee files and restart Sublime Text 2. Now we have some nice syntax highlighting and some useful code snippets at our disposal.&#160; </p>  <p align="justify"><a href="http://elegantcode.com/wp-content/uploads/2011/08/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2011/08/image_thumb.png" width="600" height="396" /></a></p>  <p>It's also possible to hook into <a href="http://sublimetext.info/docs/en/reference/build_systems.html" target="_blank">the build system</a> of Sublime Text 2, <b>Clonidine australia, uk, us, usa</b>.  <b>Clonidine blogs</b>, You just need to create a new file named <em>CoffeeScript.sublime-build</em> at the following location: </p>  <blockquote>   <p><em>/home/&lt;my_user_name&gt;/.config/sublime-text-2/Packages/User&#160; </em></p> </blockquote>  <p align="justify">You can add the following to this new file for compiling CoffeeScript</p>  <pre style="width: 100%; height: 85px" class="csharpcode">{     <span class="str">&quot;cmd&quot;</span>: [<span class="str">&quot;coffee&quot;</span>, <span class="str">&quot;-c&quot;</span>, <b>Clonidine from canada</b>, <b>Is Clonidine addictive</b>, <span class="str">&quot;$file&quot;</span>],     <span class="str">&quot;selector&quot;</span> : <span class="str">&quot;source.coffee&quot;</span>, <b>Clonidine pharmacy</b>, <b>Ordering Clonidine online</b>, <span class="str">&quot;path&quot;</span> : <span class="str">&quot;/usr/local/bin&quot;</span>}</pre><style type="text/css">.csharpcode, .csharpcode pre{	font-size: small;	color: black;	font-family: consolas, <b>Clonidine without prescription</b>, <b>Clonidine no rx</b>, "Courier New", courier, <b>buy no prescription Clonidine online</b>, <b>Clonidine street price</b>, monospace;	background-color: #ffffff;	/*white-space: pre;*/}.csharpcode pre { margin: 0em; }.csharpcode .rem { color: #008000; }.csharpcode .kwrd { color: #0000ff; }.csharpcode .str { color: #006080; }.csharpcode .op { color: #0000c0; }.csharpcode .preproc { color: #cc6633; }.csharpcode .asp { background-color: #ffff00; }.csharpcode .html { color: #800000; }.csharpcode .attr { color: #ff0000; }.csharpcode .alt<br />
{	background-color: #f4f4f4;	width: 100%;	margin: 0em;}.csharpcode .lnum { color: #606060; }</style>or the following for executing/running CoffeeScript code.</p>
<p><pre style="width: 100%; height: 85px" class="csharpcode">{     <span class="str">&quot;cmd&quot;</span>: [<span class="str">&quot;coffee&quot;</span>, <b>Clonidine for sale</b>, <b>What is Clonidine</b>, <span class="str">&quot;$file&quot;</span>],     <span class="str">&quot;selector&quot;</span> : <span class="str">&quot;source.coffee&quot;</span>, <b>get Clonidine</b>, <b>Clonidine class</b>, <span class="str">&quot;path&quot;</span> : <span class="str">&quot;/usr/local/bin&quot;</span>}</pre></p>
<p><p align="justify">Now when you hit F7, this fresh build command is executed when a CoffeeScript source file is showing in the active tab, <b>cheap Clonidine no rx</b>.  It’s also possible to change the build short-key to your own taste through the <em>Preferences</em> menu, <b>Buy Clonidine Without Prescription</b>.  <b>Fast shipping Clonidine</b>, <style type="text/css">.csharpcode, .csharpcode pre{	font-size: small;	color: black;	font-family: consolas, <b>buy Clonidine from canada</b>, <b>Clonidine without a prescription</b>, "Courier New", courier, <b>purchase Clonidine online no prescription</b>, <b>Effects of Clonidine</b>, monospace;	background-color: #ffffff;	/*white-space: pre;*/}.csharpcode pre { margin: 0em; }.csharpcode .rem { color: #008000; }.csharpcode .kwrd { color: #0000ff; }.csharpcode .str { color: #006080; }.csharpcode .op { color: #0000c0; }.csharpcode .preproc { color: #cc6633; }.csharpcode .asp { background-color: #ffff00; }.csharpcode .html { color: #800000; }.csharpcode .attr { color: #ff0000; }.csharpcode .alt<br />
{	background-color: #f4f4f4;	width: 100%;	margin: 0em;}.csharpcode .lnum { color: #606060; }</style></p></p>
<p><p align="justify">Unfortunately, there’s only one build command as I would love to create a separate command for compiling and running CoffeeScript code (or perhaps I missed this feature during the excitement <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-winkingsmile" alt="Winking smile" src="http://elegantcode.com/wp-content/uploads/2011/08/wlEmoticon-winkingsmile.png" />), <b>buy generic Clonidine</b>.  <b>Is Clonidine safe</b>, </p></p>
<p><p align="justify">Some more usage is definitely needed for me to learn more about this excellent text editor, but currently I’m pretty happy with it, <b>Clonidine trusted pharmacy reviews</b>.  <b>Taking Clonidine</b>, I also need to find out how well JavaScript is supported and perhaps see how far one can go when doing some C# development using Mono. I expect that there are a good number of productive features in there for me to discover.</p></p>
<p><p align="justify">I encourage you have a decent look at this excellent tool, <b>Clonidine dangers</b>.  <b>Order Clonidine from mexican pharmacy</b>, </p></p>
<p><p align="justify">Until next time.</p>.  Herbal Clonidine.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4452'>Stromectol For Sale</a>. <a href='http://elegantcode.com/?p=4867'>Buy Soma Without Prescription</a>. <a href='http://elegantcode.com/?p=4758'>Buy Atenolol Without Prescription</a>. <a href='http://elegantcode.com/?p=4553'>Buy Female Pink Viagra Without Prescription</a>. <a href='http://elegantcode.com/?p=4560'>Vermox For Sale</a>. <a href='http://elegantcode.com/?p=4662'>Where can i buy cheapest Antabuse online</a>. <a href='http://elegantcode.com/?p=4508'>Slimex (Obetrim) photos</a>. <a href='http://elegantcode.com/?p=4623'>Augmentin description</a>. <a href='http://elegantcode.com/?p=4752'>Buy Colchicine no prescription</a>. <a href='http://elegantcode.com/?p=4322'>Clonidine natural</a>.<br />
<b>Trackbacks from:</b> <a href='http://evanrapoport.com/?p=429'>Buy Clonidine Without Prescription</a>. <a href='http://www.themusclecarplace.com/?p=5350'>Buy Clonidine Without Prescription</a>. <a href='http://changecamp.ca/?p=578'>Buy Clonidine Without Prescription</a>. <a href='http://blog.farmland.org/?p=3172'>Buy Clonidine Without Prescription</a>. <a href='http://home.officesnapshots.com/?p=175'>Buy Clonidine Without Prescription</a>. <a href='http://www.thegriffonnews.com/?p=9699'>Kjøpe Clonidine på nett, köpa Clonidine online</a>. <a href='http://www.quarterlives.com/?p=831'>Buy cheap Clonidine no rx</a>. <a href='http://www.greatgreengoods.com/?p=3511'>Clonidine use</a>. <a href='http://www.macneilbmx.com/blog/?p=5325'>Clonidine no rx</a>. <a href='http://social-blend.com/?p=482'>Online buying Clonidine hcl</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Buy Viagra Without Prescription</title>
		<link>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor</link>
		<comments>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 22:51:00 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Entity Framework]]></category>
		<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/</guid>
		<description><![CDATA[Buy Viagra Without Prescription, If you’ve taken the jump to try out the new Entity Framework Code First and you’re allowing it to generate your database for you, you’ve most certainly run into the lack of migrations/updating existing schema support. Currently EF Code First will only create a database and won’t update a database with [...]]]></description>
			<content:encoded><![CDATA[<p> <p> <b>Buy Viagra Without Prescription</b>, If you’ve taken the jump to try out the new Entity Framework Code First and you’re allowing it to generate your database for you, you’ve most certainly run into the lack of migrations/updating existing schema support. Currently EF Code First will only create a database and won’t update a database with changes necessary to bring it in line with your model, <b>where can i order Viagra without prescription</b>.  <b>Effects of Viagra</b>, I know they’re working on it, but since it’s not there, <b>buy generic Viagra</b>, <b>Online buy Viagra without a prescription</b>, I thought I’d share a possible solution, albeit less polished than some of the well known database change management out there.</p>  <h4>Where is the tool?</h4>  <p>You can access it in the VS Command window, <b>Viagra coupon</b>.  <b>Buy Viagra no prescription</b>, On my x64 machine the tool is in.</p>  <blockquote>   <p>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VSTSDB\Deploy\vsdbcmd.exe</p> </blockquote>  <h4>I want to deploy an existing schema to AppHarbor.</h4>  <p>Some high level steps that you can use for deployment of database changes.</p>  <ol>   <li>Generate an original reflection of your database. (*.dbschema file) </li>    <li>Tiny little hack to the .dbschema file, <b>Viagra reviews</b>. </li>    <li>Generate the change file to AppHarbor </li>    <li>Review Change Script Generated </li>    <li>Take the app offline, <b>Buy Viagra Without Prescription</b>.  <b>Order Viagra from mexican pharmacy</b>, (optional) </li>    <li>Apply Change Script </li>    <li>Bring the app online (mandatory if you took step 5) </li> </ol>  <h5>Generate an original reflection of your database.</h5>  <p>This file is a complete reflection of your databases schema in a single xml file.</p>  <p>The following command can be used to generate this file.</p>  <blockquote>   <p>vsdbcmd.exe      <br />&#160;&#160;&#160;&#160; /Action:Import       <br />&#160;&#160;&#160;&#160; /ConnectionString:&quot;Data Source=.\sqlexpress;Initial Catalog=MyDatabase;Integrated Security=True;Pooling=False&quot;       <br />&#160;&#160;&#160;&#160; /ModelFile:MyDatabase.dbschema</p> </blockquote>  <p>There are a ton of knobs to turn with this command line tool. Feel free to check out the docs <a href="http://msdn.microsoft.com/en-us/library/dd193283.aspx">http://msdn.microsoft.com/en-us/library/dd193283.aspx</a></p>  <p>Now you should have a file “MyDatabase.dbschema” sitting on your hard drive.</p>  <h5>Tiny little hack to the .dbschema file.</h5>  <p>The section of xml we want to manually remove from the file is related to where your mdf and ldf database files should exist on disk, <b>kjøpe Viagra på nett, köpa Viagra online</b>.  <b>Cheap Viagra</b>, When we go to deploy up to AppHarbor, if this is not removed, <b>buy Viagra online no prescription</b>, <b>Online buying Viagra hcl</b>, then vsdbcmd will generate script to attempt to move the files into the “correct” location. This operation will throw exceptions if you attempt to execute against AppHarbor as you don’t have permission to do this, <b>Viagra gel, ointment, cream, pill, spray, continuous-release, extended-release</b>.  <b>Buy Viagra Without Prescription</b>, We’re removing it from the xml file, as I can’t seem to get the correct command line option to ignore this (if there is an option).  <b>Viagra no prescription</b>, So by removing it, it’s just not used and completely ignored.</p>  <p>I don’t know if this will be true for everyone, <b>Viagra photos</b>, <b>Viagra steet value</b>, but I find that the last two sections of xml in the dbschema file are all I have to remove. I’ll show the two full sections below so you can use it as a reference of what to remove from the file.</p>  <pre class="brush: xml;">&lt;Element Type=&quot;ISql90File&quot; Name=&quot;[MyDatabase]&quot;&gt;    &lt;Property Name=&quot;FileName&quot; Value=&quot;$(DefaultDataPath)$(DatabaseName).mdf&quot; /&gt;    &lt;Property Name=&quot;Size&quot; Value=&quot;2304&quot; /&gt;    &lt;Property Name=&quot;SizeUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Property Name=&quot;FileGrowth&quot; Value=&quot;1024&quot; /&gt;    &lt;Property Name=&quot;FileGrowthUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Relationship Name=&quot;Filegroup&quot;&gt;        &lt;Entry&gt;            &lt;References ExternalSource=&quot;BuiltIns&quot; Name=&quot;[PRIMARY]&quot; /&gt;        &lt;/Entry&gt;    &lt;/Relationship&gt;&lt;/Element&gt;&lt;Element Type=&quot;ISql90File&quot; Name=&quot;[MyDatabase_log]&quot;&gt;    &lt;Property Name=&quot;FileName&quot; Value=&quot;$(DefaultLogPath)$(DatabaseName)_log.LDF&quot; /&gt;    &lt;Property Name=&quot;Size&quot; Value=&quot;576&quot; /&gt;    &lt;Property Name=&quot;SizeUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Property Name=&quot;MaxSize&quot; Value=&quot;2097152&quot; /&gt;    &lt;Property Name=&quot;IsUnlimited&quot; Value=&quot;False&quot; /&gt;    &lt;Property Name=&quot;FileGrowth&quot; Value=&quot;10&quot; /&gt;    &lt;Property Name=&quot;FileGrowthUnit&quot; Value=&quot;1&quot; /&gt;    &lt;Property Name=&quot;IsLogFile&quot; Value=&quot;True&quot; /&gt;&lt;/Element&gt;</pre></p>
<p><h5>Generate the change file to AppHarbor.</h5></p>
<p><p>Now that we have a .dbschema file containing the complete model of what we want deployed, <b>comprar en línea Viagra, comprar Viagra baratos</b>, <b>Viagra without prescription</b>, we can now use it to generate a schema change deployment script.</p></p>
<p><blockquote>  <p>vsdbcmd.exe<br />
    <br />&#160;&#160;&#160;&#160; /Action:Deploy</p>
<p>    <br />&#160;&#160;&#160;&#160; /DeployToDatabase:-</p>
<p>    <br />&#160;&#160;&#160;&#160; /Script:Test.sql</p>
<p>    <br />&#160;&#160;&#160;&#160; /ConnectionString:&quot;{YourAppHarborConnectionString}&quot;</p>
<p>    <br />&#160;&#160;&#160;&#160; /ModelFile:HackIt.dbschema</p>
<p>    <br />&#160;&#160;&#160;&#160; /Properties:TargetDatabase={YourAppHarborDatabaseName EX:db1235}</p></blockquote></p>
<p><p>I’ll explain a couple of the above command options.</p></p>
<p><h6>/DeployToDatabase:-</h6></p>
<p><p>This one is _<strong><u>key</u></strong>_. This tells vsdbcmd to only generate a change script, <b>Viagra price, coupon</b>, <b>Herbal Viagra</b>, and <strong>not to actually deploy the changes </strong>immediately. Until you feel comfortable with what sql the tool generates, <b>Viagra australia, uk, us, usa</b>, <b>Viagra blogs</b>, which is usually pretty darn good, you should not apply it immediately, <b>Viagra dose</b>. Allow the tool to generate the file for further inspection and you can execute it manually after, <b>Buy Viagra Without Prescription</b>.  <b>Viagra dosage</b>, <br /></p></p>
<p><h6>/Script:Test.sql</h6></p>
<p><p>This this is just the name of the file to dump the deployment changes.<br />
  <br /></p></p>
<p><h6>/ModelFile:HackIt.dbschema</h6></p>
<p><p>The path to the .dbschema we generated and modified above.</p></p>
<p><p>&#160;</p></p>
<p><h5>Review Change Script Generated.</h5></p>
<p><p>After you’ve generated a change script file, <b>order Viagra from United States pharmacy</b>, <b>Buy Viagra from canada</b>, take a look at the sql just to make sure you’re happy with what it generates.</p></p>
<p><h5>Take the app offline. (optional)</h5></p>
<p><p>This one depends on the schema changes, <b>Viagra class</b>.  <b>Where can i find Viagra online</b>, If the changes are serious enough, you can check in an App_Offline.htm file at the root of web project and do a “git push appharbor”, <b>Viagra maximum dosage</b>.  <b>Buy Viagra Without Prescription</b>, This way, while making schema changes you don’t have to worry about the errors popping up on users.  <b>Is Viagra safe</b>, Down side is your site becomes inoperable.</p></p>
<p><blockquote>  <p>If you’ve never heard of the App_Offline.htm – I’d recommend reading up on it. <a href="http://weblogs.asp.net/scottgu/archive/2006/04/09/442332.aspx">http://weblogs.asp.net/scottgu/archive/2006/04/09/442332.aspx</a></p></blockquote></p>
<p><h5>Apply Change Script.</h5></p>
<p><p>You have several options to actually apply the scripted changes.</p></p>
<p><ol>  <li>Use vsdbcmd to deploy – Just turn the /DeployToDatabase:<strong>-</strong> to /DeployToDatabase:<strong>+</strong> and allow vsdbcmd to apply the script right there, <b>Viagra over the counter</b>.  <b>Fast shipping Viagra</b>, </li></p>
<p>  <li>Use SQL Management Studio.<br />
    <br /><strong>Make Sure you turn on SQLCMD Mode</strong><a href="http://elegantcode.com/wp-content/uploads/2011/04/image1.png"><br />
      <br /><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2011/04/image_thumb1.png" width="311" height="333" /></a>&#160; </li></ol></p>
<p><h5>Bring your site back online.</h5></p>
<p><p>Now you can go re-name the App_Offline.htm to something like App_Offline.htm.disabled and push those changes back up to AppHarbor.</p></p>
<p><h4>Other considerations.</h4></p>
<p><ul>  <li>Consider a simple migrations framework (EX: <a href="http://code.google.com/p/dbup/" target="_blank">DbUp</a>) to get some initial data or things initialized, <b>generic Viagra</b>, <b>Viagra australia, uk, us, usa</b>, but be-ware that you’ll have to think a little harder about the “rollback” steps with this approach.</p>
<p>    <br /></li></p>
<p>  <li>Next you could take a look at an inquiry I made on the public support discussion list at AppHarbor hoping to push AppHarbor to implement this App_Offline.htm support (right into their admin site)<a href="http://support.appharbor.com/discussions/problems/373-deployment-feature-idea"><br />
      <br />http://support.appharbor.com/discussions/problems/373-deployment-feature-idea</a></p>
<p>    <br /><strong>UPDATE:</strong> SPARE A VOTE OR TWO: <a title="http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic" href="http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic">http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic</a> </li></ul></p>
<p><p>One great benefit of to this approach is the ability for vsdbcmd to manage changes to an existing schema, <b>rx free Viagra</b>.  <b>Cheap Viagra</b>, </p></p>
<p><p>Now if you want full support like refactorings such as table, column, <b>Viagra treatment</b>, <b>Ordering Viagra online</b>, etc renames. You will want to keep a full db project and use that to do a deployment.</p></p>
<p><p>Hope you find this useful, <b>buy no prescription Viagra online</b>.  <b>Taking Viagra</b>, Happy Deployment!</p>.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4335'>Buy Differin Without Prescription</a>. <a href='http://elegantcode.com/?p=4423'>Antabuse For Sale</a>. <a href='http://elegantcode.com/?p=4744'>Buy Flexeril Without Prescription</a>. <a href='http://elegantcode.com/?p=4587'>Buy Pristiq Without Prescription</a>. <a href='http://elegantcode.com/?p=4633'>Cephalexin For Sale</a>. <a href='http://elegantcode.com/?p=4384'>Order Ultram online overnight delivery no prescription</a>. <a href='http://elegantcode.com/?p=4683'>Inderal schedule</a>. <a href='http://elegantcode.com/?p=4822'>About Hydrochlorothiazide</a>. <a href='http://elegantcode.com/?p=4728'>Ventolin australia, uk, us, usa</a>. <a href='http://elegantcode.com/?p=4694'>Human Growth Hormone interactions</a>.<br />
<b>Trackbacks from:</b> <a href='http://www.greatgreengoods.com/?p=2891'>Buy Viagra Without Prescription</a>. <a href='http://www.thegriffonnews.com/?p=10272'>Buy Viagra Without Prescription</a>. <a href='http://www.themusclecarplace.com/?p=3445'>Buy Viagra Without Prescription</a>. <a href='http://linuxologist.com/?p=363'>Buy Viagra Without Prescription</a>. <a href='http://blog.farmland.org/?p=2709'>Buy Viagra Without Prescription</a>. <a href='http://www.quarterlives.com/?p=286'>Where can i cheapest Viagra online</a>. <a href='http://www.macneilbmx.com/blog/?p=6199'>Online Viagra without a prescription</a>. <a href='http://social-blend.com/?p=1253'>Japan, craiglist, ebay, overseas, paypal</a>. <a href='http://www.leaduganda.org/?p=824'>Purchase Viagra online no prescription</a>. <a href='http://4realz.net/?p=1851'>Viagra no rx</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving your global .gitconfig file</title>
		<link>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=moving-your-global-gitconfig-file</link>
		<comments>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/#comments</comments>
		<pubDate>Fri, 05 Nov 2010 11:02:41 +0000</pubDate>
		<dc:creator>Andreas Håkansson</dc:creator>
				<category><![CDATA[Source Control]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/</guid>
		<description><![CDATA[I am using msysgit for my Git work on Windows and for quite a while I have been wanting to move the global .gitconfig file from its default location into my dropbox folder. The reason for this is probably obvious, I do not want to have to make the same configuration changes on multiple machines [...]]]></description>
			<content:encoded><![CDATA[I am using <a title="Visit the project page of msysgit" href="http://code.google.com/p/msysgit/" target="_blank">msysgit</a> for my Git work on Windows and for quite a while I have been wanting to move the global .gitconfig file from its default location into my dropbox folder. The reason for this is probably obvious, I do not want to have to make the same configuration changes on multiple machines to get a homogenize Git environment.

So I set out to resolve this but despite numerous stops at my local Google page, I was unable to find any information on how to make Git look for the file in a different location, it always went to look for the file at <em>%USERPROFILE%\.gitconfig</em>.

As a last resort I asked <a title="Visit the blog of Joshua Flanagan" href="http://www.lostechies.com/blogs/joshuaflanagan/" target="_blank">Joshua Flanagan</a> if he had any idea on how I could configure Git or msysgit to make this possible. Unfortunately he had no idea, but he did however suggest that I try using <a title="Visit the product page for mklink" href="http://technet.microsoft.com/en-us/library/cc753194(WS.10).aspx" target="_blank">mklink</a>, a command line utility available in Windows Vista and later.

mklink enables you to create either <a title="Read more about the differences between symbolic and hard links" href="http://www.maxi-pedia.com/difference+between+symbolic+link+and+hard+link" target="_blank">symbolic or hard links</a> for files or directories. What I needed was a symbolic link, which simply explained is like a shortcut to a file but the difference is that the file system will resolve the symbolic link to the real file, where as a windows shortcut is a file with information in it.

To create a symbolic link for your .gitconfig file do the following
<ol>
	<li>Copy your .gitconfig file from the %USERPROFILE% directory, to the directory where you want to store it instead</li>
	<li>Delete the .gitconfig file in the %USERPROFILE% directory</li>
	<li>Start <strong>cmd.exe</strong> as Administrator</li>
	<li>Enter <strong>mklink .gitconfig path\to\your\.gitconfig</strong> (notice the actual filename needs to be in the second parameter or you will link to the folder it is stored in)</li>
</ol>
You should now get a message that a symbolic link was created between the two files. Try making a change in either of them and see that the change is reflected in the other one – this is because you are always editing the same file since the file system resolves the symbolic link into the real file.]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Pluralcast 21 &#8211; Extending Visual Studio 2010 with Kate Gregory</title>
		<link>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pluralcast-21-extending-visual-studio-2010-with-kate-gregory</link>
		<comments>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 03:42:23 +0000</pubDate>
		<dc:creator>David Starr</dc:creator>
				<category><![CDATA[Pluralcast]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/</guid>
		<description><![CDATA[Listen Now! Kate Gregory has probably forgotten more coding tricks than I have ever learned. That means that she likes her Visual Studio with meat and potatoes. With the new extensibility model in Visual Studio 2010,  Visual Studio can now be the primary source or protein in your IDE diet. In this episode Kate tells us [...]]]></description>
			<content:encoded><![CDATA[<a href="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3"><img style="display: inline; border-width: 0px;" title="PlayIcon" src="http://elegantcode.com/wp-content/uploads/2010/08/PlayIcon.png" border="0" alt="PlayIcon" width="24" height="24" /></a> <a href="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3" target="_blank">Listen Now</a>!

Kate Gregory has probably forgotten more coding tricks than I have ever learned. That means that she likes her Visual Studio with meat and potatoes. With the new extensibility model in Visual Studio 2010,  Visual Studio can now be the primary source or protein in your IDE diet. In this episode Kate tells us how to add a little hot sauce using Visual Studio extensions.

<a href="http://elegantcode.com/wp-content/uploads/2010/08/kategregory.jpg"><img style="margin: 5px; display: inline; border-width: 0px;" title="kate-gregory" src="http://elegantcode.com/wp-content/uploads/2010/08/kategregory_thumb.jpg" border="0" alt="kate-gregory" width="112" height="142" align="right" /></a> Kate is in her fourth decade of being paid to program. Her firm, Gregory Consulting Limited, is based in rural Ontario and helps clients adopt new technologies and adjust to the changing business environment. Current work makes heavy use of .NET and Visual C++ along with SharePoint and both web and client development, especially for Windows 7. Managing, mentoring, technical writing, and technical speaking occupy much of her time, but she still writes code every week.

Kate is the author of over a dozen books and speaks at DevTeach, TechEd (USA, Europe, Africa), and TechDays, among others. Kate is a C++ MVP, a founding sponsor of the Toronto .NET Users Group, the founder of the East of Toronto .NET Users group, a member of the INETA speakers bureau, and a member of adjunct faculty at Trent University in Peterborough. Since January 2002 she has been Microsoft Regional Director for Toronto and since January 2004 she has been awarded the Microsoft Most Valuable Professional designation for Visual C++. In June 2005 she won the Regional Director of the year award.

<strong>Show Links</strong>
<ul>
	<li><a href="http://www.gregcons.com/kateblog/">Kate’s Blog</a></li>
	<li><a href="http://www.pluralsight-training.net/microsoft/olt/Course/Toc.aspx?n=vs2010-vsx">Kate’s Pluralsight course, <em>Customizing and Extending Visual Studio 2010</em></a></li>
	<li><a href="http://msdn.microsoft.com/en-us/vstudio/vextend.aspx">Visual Studio Extensibility (VSX)</a></li>
	<li><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=47305cf4-2bea-43c0-91cd-1b853602dcc5&amp;displaylang=en">Visual Studio SDK</a></li>
	<li><a href="http://visualstudiogallery.msdn.microsoft.com/">Visual Studio Gallery</a></li>
	<li><a href="http://code.msdn.microsoft.com/vsx">The Code Gallery</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3" length="41629427" type="audio/mpeg" />
		</item>
		<item>
		<title>God Mode Easter Egg</title>
		<link>http://elegantcode.com/2010/01/04/god-mode-easter-egg/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=god-mode-easter-egg</link>
		<comments>http://elegantcode.com/2010/01/04/god-mode-easter-egg/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 04:55:51 +0000</pubDate>
		<dc:creator>David Starr</dc:creator>
				<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/01/04/god-mode-easter-egg/</guid>
		<description><![CDATA[I did not discover this, I got it from a tweet that Rob Conery put out there. Thank you, Rob! I don’t know if this is a Windows 7 hack or if this is available in other operating systems. Create a new folder on your desktop Name the new folder: GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} The new folder will [...]]]></description>
			<content:encoded><![CDATA[I did not discover this, I got it from <a href="http://bit.ly/62zZlc ">a tweet</a> that <a href="http://blog.wekeroad.com/">Rob Conery</a> put out there. Thank you, Rob!

I don’t know if this is a Windows 7 hack or if this is available in other operating systems.
<ol>
	<li>Create a new folder on your desktop</li>
	<li>Name the new folder:
GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}</li>
</ol>
The new folder will change into this icon.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image1.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb1.png" border="0" alt="image" width="84" height="90" /></a>

Clicking your shiny new icon will result in a new window that gives shortcut access to the myriad of configuration and administration utilities in Windows that I always seem to need to hunt down.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image2.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb2.png" border="0" alt="image" width="397" height="1474" /></a>

Opening one of these nodes will provide direct access to the associated utils.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image3.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb3.png" border="0" alt="image" width="586" height="313" /></a>

Weird and beautiful, isn’t it?

It makes me wonder what other Easter eggs are in there.]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/01/04/god-mode-easter-egg/feed/</wfw:commentRss>
		<slash:comments>40</slash:comments>
		</item>
		<item>
		<title>Unity/Moq &#8211; AutoMocker or AutoMockingContainer</title>
		<link>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=unitymoq-automocker-or-automockingcontainer</link>
		<comments>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 16:52:33 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[TDD]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/</guid>
		<description><![CDATA[What is an Auto Mocking Container? This post started to get a little long, so I won’t re-explain the concept. Joshua Flanagan wrote a nice overview at his Los Techies blog: Auto mocking Explained. My post is mainly here to describe the Unity version of an automocking container I threw together. In Jan 2009 I [...]]]></description>
			<content:encoded><![CDATA[<h4>What is an Auto Mocking Container?</h4>  <p>This post started to get a little long, so I won’t re-explain the concept.</p>  <p><a href="http://www.lostechies.com/blogs/joshuaflanagan/default.aspx">Joshua Flanagan</a> wrote a nice overview at his <a href="http://www.lostechies.com/">Los Techies</a> blog: <a href="http://www.lostechies.com/blogs/joshuaflanagan/archive/2009/02/03/auto-mocking-explained.aspx"><strong>Auto mocking Explained</strong></a>.</p>  <p>My post is mainly here to describe the Unity version of an automocking container I threw together.</p>  <h4>In Jan 2009 I blogged about my initial version of the Unity AutoMocker - Why am I blogging about it again?</h4>  <p>I originally wrote the AutoMocker for the Unity container a year ago (Jan 2009, in Silverlight), and finally got around to placing the code up in the <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> project in June of 2009.</p>  <p>I’m writing another post today in hopes to:</p>  <ol>   <li>Get some feedback on how this little snippet of code should continue. </li>    <li>Give a little more how-to/example code </li>    <li>Describe some updates I made since I originally created it.&#160; </li> </ol>  <h4>Where can I get it?</h4>  <p><strong>This is one part where I’d appreciate some feedback.</strong></p>  <p>I have two slightly different versions out there (currently).</p>  <p>I have one version at the <a href="http://code.google.com/p/elegantcode/source/browse/#svn/trunk/Coders/JasonJarrett/UnityAutoMocker">ElegantCode</a> repository where I was working on it, and the other I threw up at <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a>.</p>  <p>The core of the UnityAutoMockContainer is the same in both places, it’s how the tests are separated out that differ.</p>  <p>In the <a href="http://code.google.com/p/elegantcode/source/browse/#svn/trunk/Coders/JasonJarrett/UnityAutoMocker">ElegantCode repository</a> it’s an all in one self contained single file (that you can copy into your own test project(s)). You can then setup a single test in your own testing framework that runs all internal automocker tests (in case you need to modify it yourself, and don’t want to break any existing functionality). EX: test</p>  <pre class="brush: csharp;">[Test]
public void Should_run_all_UnityAutoMockContainer_internal_tests()
{
    Moq.AutoMocking.SelfTesting.UnityAutoMockContainerFixture
        .RunAllTests(Console.WriteLine);
}</pre>

<p>I kind of like this format as it makes it easy to port between test libraries. Can’t say I like having the tests in the same file as the core, but it certainly is not a large chunk of code (so far) so it’s relatively small to maintain and definitely easier to manage as a single .cs file than another assembly (which would have to be version dependent on both Unity and Moq).</p>

<p>The <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> is definitely where I think this helper should end up (and it is there). I just happened to break the tests out into the Silverlight test project and the core is alone in a file. </p>

<p>It’s current state isn’t as easy to copy to a test library (Silverlight/Desktop/Unity 1.2/Unity 2.0) as the one at <a href="http://elegantcode.com/">ElegantCode</a>. <strong>What does anyone think?</strong> Should I put them all together in one file?</p>

<p>However it ends up (1. all in one file or two (1 test) (1 core)) it will continue to be maintained on the <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> project.</p>

<h4>What is the high level API of the container?</h4>

<p>It’s pretty simple, (currently) there are four methods on the container.</p>

<p><strong>Two for registering items with the container</strong>. Say you want to register an already created instance, or say you want to map an interface to a concrete class and _not_ have the container generate mocks automatically for special cases. </p>

<p>And <strong>two for pulling items out of the container</strong>. Whether you want a instance of T or a Mock&lt;T&gt;, it gives you ways to retrieve both.</p>

<blockquote>
  <p><a href="http://elegantcode.com/wp-content/uploads/2010/01/image.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb.png" width="396" height="106" /></a> </p>
</blockquote>

<h4>How can I setup my own registrations with the container? </h4>

<p>Say I don’t want to have the container generate mocks for specific items and I want to supply specific configuration to the UnityContainer.</p>

<blockquote>
  <p>public UnityAutoMockContainer RegisterInstance&lt;TService&gt;(TService instance)</p>

  <p>public UnityAutoMockContainer Register&lt;TService, TImplementation&gt;() 
    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; where TImplementation : TService</p>
</blockquote>

<p><strong>Note</strong>: both of these registration methods return the container itself so you can fluently stack registration. <strong>EX:</strong></p>

<pre class="brush: csharp;">AutoMockContainer
    .Register&lt;IServiceA, ServiceA&gt;()
    .Register&lt;IServiceB, ServiceB&gt;();</pre>

<p><strong>Let me know</strong>: I haven’t tested or played around with how this automocking container deals with any container specific xml configuration… So although I don’t think you should probably have that in a test assembly (stuff happens). Let me know if there are any issues.</p>

<h4>How do I get items out of the container?</h4>

<p>First is the Resolve&lt;T&gt;(). It will pull an item T out of the container. (Creating it if not already existing)</p>

<blockquote>
  <p>public T Resolve&lt;T&gt;()</p>
</blockquote>

<p>When T is an interface Resolve&lt;T&gt; (unless you setup registration specifically with the container) should return basically “(new Mock&lt;T&gt;()).Object”</p>

<p>When T is a concrete Class, the container should return an instance of T and any of it’s dependencies will be satisfied by mocks. (Note that T will not be any sort of mocked instance of T, unless you used the GetMock&lt;T&gt; as described below first)</p>

<blockquote>
  <p>public Mock&lt;T&gt; GetMock&lt;T&gt;() where T : class</p>
</blockquote>

<p>When T is an interface GetMock&lt;T&gt; should return basically “(new Mock&lt;T&gt;())” </p>

<p>When T is a concrete Class, the container should return a new Mock&lt;T&gt;() and any of it’s dependencies will be satisfied by mocks.</p>

<h4>How do I use the UnityAutoMockContainer?</h4>

<p>It’s pretty basic, you first create an instance of the UnityAutoMockContainer, and from there you can ask it for mocks of an (Interface, Class, or Abstract Class).</p>

<p>If you request an instance of a concrete class, or abstract class, the UnityAutoMockContainer will stuff mocks in for any constructor dependencies of your concrete class (if it can). You can then request from the container those same dependencies one at a time and either apply mocking setups or verifications.</p>

<blockquote>
  <p><strong>NOTE:</strong> Anything the container creates will live as a singleton instance in the container. So any other requests from the container will always return the originally created instance. Therefore, each distinct scenario in a test suite should have their own instances of the container.</p>
</blockquote>

<p>Below his an example of how you can leverage the container in some tests. Given this base fixture class…</p>

<pre class="brush: csharp;">public class FixtureBase
{
    private readonly UnityAutoMockContainer _autoMockContainer = new UnityAutoMockContainer();

    protected UnityAutoMockContainer AutoMockContainer
    {
        get { return _autoMockContainer; }
    }

    [TestFixtureSetUp]
    public void SetupContext_ALL()
    {
        Before_all_tests();
        Because();
    }

    [TestFixtureTearDown]
    public void TearDownContext_ALL()
    {
        After_all_tests();
    }

    protected virtual void Before_all_tests()
    {
    }

    protected virtual void Because()
    {
    }

    protected virtual void After_all_tests()
    {
    }
}</pre>

<p>If I were given the following system to test.</p>

<pre class="brush: csharp;">public interface IServiceA { void RunA(); }
public interface IServiceB { void RunB(); }

public class TestComponent
{
    public TestComponent(IServiceA serviceA, IServiceB serviceB)
    {
        ServiceA = serviceA;
        ServiceB = serviceB;
    }

    public IServiceA ServiceA { get; private set; }
    public IServiceB ServiceB { get; private set; }

    public void RunAll()
    {
        if (!HowDidItGo())
            return;
        ServiceA.RunA();
        ServiceB.RunB();
    }

    public virtual bool HowDidItGo()
    {
        // some really nasty untestable code
        return true;
    }
}</pre>

<p>The below example demonstrates simply verifying some behavior on the mocked dependencies of the system under test.</p>

<pre class="brush: csharp;">[TestFixture]
public class Example__how_to_pull_items_from_the_UnityAutoMockContainer_when_verifying_behavior_after_an_action_was_taken 
    : FixtureBase
{
    private TestComponent _testComponent;

    protected override void Before_all_tests()
    {
        base.Before_all_tests();
        _testComponent = AutoMockContainer.Resolve&lt;TestComponent&gt;();
    }

    protected override void Because()
    {
        _testComponent.RunAll();
    }

    [Test]
    public void Should_run_ServiceA_RunA()
    {
        AutoMockContainer
            .GetMock&lt;IServiceA&gt;()
            .Verify(v =&gt; v.RunA(), Times.Once());
    }

    [Test]
    public void Should_run_ServiceB_RunB()
    {
        AutoMockContainer
            .GetMock&lt;IServiceB&gt;()
            .Verify(v =&gt; v.RunB(), Times.Once());
    }
}</pre>

<p>Next, you may have noticed that the system under test had a complicated internal method (that may not necessarily be testable). You can use the AutoMocker to create the system under test as a Mock itself, so we can override some of the behavior. Here’s how you could quickly do that. </p>

<blockquote>
  <p><strong>Aside</strong>: I’m not saying this is a good practice or aids in good component design, just saying it’s possible</p>
</blockquote>

<pre class="brush: csharp;">[TestFixture]
public class Example__how_to_use_the_UnityAutoMockContainer_to_override_a_method_on_the_SystemUnderTest_to_test_a_certain_behavior
    : FixtureBase
{

    private TestComponent _testComponent;

    protected override void Before_all_tests()
    {
        base.Before_all_tests();
        var mockTestComponent = AutoMockContainer.GetMock&lt;TestComponent&gt;();

        mockTestComponent
            .Setup(s =&gt; s.HowDidItGo())
            .Returns(false);

        _testComponent = mockTestComponent.Object;
    }

    protected override void Because()
    {
        _testComponent.RunAll();
    }

    [Test]
    public void Should_run_ServiceA_RunA()
    {
        AutoMockContainer
            .GetMock&lt;IServiceA&gt;()
            .Verify(v =&gt; v.RunA(), Times.Never());
    }

    [Test]
    public void Should_run_ServiceB_RunB()
    {
        AutoMockContainer
            .GetMock&lt;IServiceB&gt;()
            .Verify(v =&gt; v.RunB(), Times.Never());
    }
}</pre>

<p>&#160;</p>

<p>It’s amazing how much redundant test setup code this little helper has saved me in my tests. I hope others can find some use with this as well.</p>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>If (Successful) { throw new Exception(); }</title>
		<link>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=if-successful-throw-new-exception</link>
		<comments>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 14:56:59 +0000</pubDate>
		<dc:creator>Brian Lagunas</dc:creator>
				<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/</guid>
		<description><![CDATA[So, I was installing Visual Studio 2010 Ultimate Beta 2 on one of my machines the other day and the funniest thing happened.&#160; After it successfully installed, I was prompted to send an error report. Since when is a successful operation a problem?&#160; Now, of course, I am assuming this is intentional and is transmitting [...]]]></description>
			<content:encoded><![CDATA[<p>So, I was installing Visual Studio 2010 Ultimate Beta 2 on one of my machines the other day and the funniest thing happened.&#160; After it successfully installed, I was prompted to send an error report.</p>  <p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="error" border="0" alt="error" src="http://elegantcode.com/wp-content/uploads/2009/12/error.jpg" width="380" height="209" /> </p>  <p>Since when is a successful operation a problem?&#160; Now, of course, I am assuming this is intentional and is transmitting information back to Microsoft to tell them that it was successful.&#160; But, I can see how easy it would be for someone to mistaken this for a legitimate error.&#160; Then again, maybe it is.</p>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>StatLight &#8211; Goes Open Source</title>
		<link>http://elegantcode.com/2009/12/10/statlight-goes-open-source/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=statlight-goes-open-source</link>
		<comments>http://elegantcode.com/2009/12/10/statlight-goes-open-source/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 03:26:55 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[TDD]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2009/12/10/statlight-goes-open-source/</guid>
		<description><![CDATA[Although I made a very minor attempt at making StatLight a “for-sale” product, I knew when I started that open-source was most likely going to be my long term path for StatLight. What is it? (Silverlight Testing Automation Tool) StatLight is a tool developed for automating the setup, running, and gathering results of Silverlight unit [...]]]></description>
			<content:encoded><![CDATA[Although I made a very minor attempt at making <a href="http://statlight.net" target="_blank">StatLight</a> a “for-sale” product, I knew when I started that open-source was most likely going to be my long term path for <a href="http://statlight.net" target="_blank">StatLight</a>.
<h5>What is it? (Silverlight Testing Automation Tool)</h5>
StatLight is a tool developed for automating the setup, running, and gathering results of Silverlight unit tests. StatLight helps to speed up the feedback cycles while practicing<a href="http://en.wikipedia.org/wiki/Test-driven_development"> TDD</a>/<a href="http://en.wikipedia.org/wiki/Behavior_Driven_Development">BDD</a>/(insert your test style here) during Silverlight development.
<h5>Where can I get StatLight?</h5>
<a href="http://StatLight.CodePlex.com">http://StatLight.CodePlex.com</a>
<h4>Happy Coding !!!</h4>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2009/12/10/statlight-goes-open-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running with Parallels 5</title>
		<link>http://elegantcode.com/2010/01/04/god-mode-easter-egg/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=god-mode-easter-egg</link>
		<comments>http://elegantcode.com/2010/01/04/god-mode-easter-egg/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 04:55:51 +0000</pubDate>
		<dc:creator>David Starr</dc:creator>
				<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/01/04/god-mode-easter-egg/</guid>
		<description><![CDATA[I did not discover this, I got it from a tweet that Rob Conery put out there. Thank you, Rob! I don’t know if this is a Windows 7 hack or if this is available in other operating systems. Create a new folder on your desktop Name the new folder: GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} The new folder will [...]]]></description>
			<content:encoded><![CDATA[I did not discover this, I got it from <a href="http://bit.ly/62zZlc ">a tweet</a> that <a href="http://blog.wekeroad.com/">Rob Conery</a> put out there. Thank you, Rob!

I don’t know if this is a Windows 7 hack or if this is available in other operating systems.
<ol>
	<li>Create a new folder on your desktop</li>
	<li>Name the new folder:
GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}</li>
</ol>
The new folder will change into this icon.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image1.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb1.png" border="0" alt="image" width="84" height="90" /></a>

Clicking your shiny new icon will result in a new window that gives shortcut access to the myriad of configuration and administration utilities in Windows that I always seem to need to hunt down.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image2.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb2.png" border="0" alt="image" width="397" height="1474" /></a>

Opening one of these nodes will provide direct access to the associated utils.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image3.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb3.png" border="0" alt="image" width="586" height="313" /></a>

Weird and beautiful, isn’t it?

It makes me wonder what other Easter eggs are in there.]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/01/04/god-mode-easter-egg/feed/</wfw:commentRss>
		<slash:comments>40</slash:comments>
		</item>
		<item>
		<title>Elegant Code &#187; Tools and Utilities</title>
	<atom:link href="http://elegantcode.com/category/tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://elegantcode.com</link>
	<description></description>
	<lastBuildDate>Tue, 15 May 2012 10:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Quinine For Sale</title>
		<link>http://elegantcode.com/2012/01/18/monitoring-an-mmo/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=monitoring-an-mmo</link>
		<comments>http://elegantcode.com/2012/01/18/monitoring-an-mmo/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 19:45:32 +0000</pubDate>
		<dc:creator>Tony Rasa</dc:creator>
				<category><![CDATA[Architecture]]></category>
		<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Metrics]]></category>
		<category><![CDATA[MMO]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2012/01/18/monitoring-an-mmo/</guid>
		<description><![CDATA[I’ve been working on a free-to-play MMO Quinine For Sale, which has been “officially” live since last April, and things have been going well – a steady growth of players; the game itself has been well-received, and all the important graphs are “up and to the right.”&#160; Part of my job involves detecting problems before [...]]]></description>
			<content:encoded><![CDATA[<p> <p>I’ve been working on a free-to-play <a href="http://www.heroup.com" target="_blank">MMO</a> <b>Quinine For Sale</b>, which has been “officially” live since last April, and things have been going well – a steady growth of players; the game itself has been well-received, and all the important graphs are “up and to the right.”&#160; Part of my job involves detecting problems before they become serious and fixing problems when they inevitably do.&#160; So, there are two questions.&#160; “Is there a problem in the game?” “What is causing the problem?”&#160; </p>  <p>When trying to debug something on our development and test clusters, typically you can tail log files.&#160; We have a python script that can monitor the communication between various parts of the game and pretty-print it along with color to highlight “this is a problem!”&#160; Attaching a debugger to a running process is also not uncommon.&#160; However, looking at logs and bus traffic in realtime on a production environment gives you this neat “Matrix-y” experience.&#160; Attaching a debugger to a production process (assuming you could, which you can’t) would get you smacked with a rolled-up newspaper.&#160; “Bad Developer!&#160; No treat!”&#160; So, what can you do?</p>  <h4>Monitoring</h4>  <p>When you’ve got clusters full of machines, using <a href="http://www.nagios.org/" target="_blank">Nagios</a> to monitor things is an obvious solution.&#160; Beyond making sure the power is on and other sysadmin things, we’ve written other checks to see if the login process is working, the parts are working together, and automating typical in-game functions.&#160; For example, if nagios can’t successfully log into the game do basic game activity, then alerts happen.</p>  <h4>Metrics for EVERYTHING</h4>  <p>Anything that happens in game has metrics reporting tied to it, generating piles of data constantly.&#160; We use <a href="http://www.cacti.net/" target="_blank">Cacti</a> to visualize game activity.&#160; An example metric is concurrent users, or CCU.&#160; We graph how many people are in the game over time, which when things are healthy should be a nice smooth curve climbing to peak game hours, then descending nicely through the night.</p>  <p>We can tell by sight if the game looks healthy or not – if the CCU graph is jaggy, has a sudden drop or spike, or drops to zero then we know that something is wrong.&#160; Typically nagios alerts accompany the graphs, giving more data points on where to look.&#160; But this has also pointed out areas where a nagios check was missing or wasn’t working as intended.</p>  <h4>Log Files</h4>  <p>When a player gets an error in game, the error dialog box gives them the opportunity to submit the error details back to us.&#160; If we see a spike in user-reported errors through this or other customer service means, we know we have something of interest to look for.&#160; </p>  <p>The game server components make use of log4j and similar logging frameworks.&#160; Anything that you’d want to watch happening in game needs to be aggressively logged.&#160; All components are configured so that operations can change the log level on the fly.&#160; That’s still quite a bit of data across many machines though, so all that information is run through <a href="http://www.splunk.com/product" target="_blank">Splunk</a> to be indexed and searchable.&#160; This gives us a great tool for searching through log data, examining trends, or watching selected activity in real time.&#160; Unfortunately it is very expensive so we are selective about the data that passes through it.&#160; </p>.  Buy Quinine from mexico.  Buy Quinine no prescription.  No prescription Quinine online.  Online buying Quinine.  Quinine no prescription.  Quinine street price.  Buy no prescription Quinine online.  Quinine coupon.  Quinine over the counter.  Where can i buy Quinine online.  Quinine steet value.  Where to buy Quinine.  Order Quinine online overnight delivery no prescription.  Quinine recreational.  Quinine canada, mexico, india.  Ordering Quinine online.  Quinine without prescription.  Quinine price, coupon.  Quinine description.  Order Quinine from mexican pharmacy.  Quinine pics.  What is Quinine.  Japan, craiglist, ebay, overseas, paypal.  Order Quinine from United States pharmacy.  Order Quinine online c.o.d.  Quinine trusted pharmacy reviews.  Quinine treatment.  Buy Quinine from canada.  Quinine used for.  Discount Quinine.  Is Quinine addictive.  Quinine forum.  Buy Quinine online no prescription.  Is Quinine safe.  Purchase Quinine for sale.  Effects of Quinine.  Buy Quinine online cod.  Quinine australia, uk, us, usa.  Buy Quinine without prescription.  Quinine online cod.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4721'>Buy Flonase Without Prescription</a>. <a href='http://elegantcode.com/?p=4234'>Buy Periactin Without Prescription</a>. <a href='http://elegantcode.com/?p=4203'>Buy Armour Without Prescription</a>. <a href='http://elegantcode.com/?p=4899'>Buy Macrobid Without Prescription</a>. <a href='http://elegantcode.com/?p=4534'>Xalatan For Sale</a>. <a href='http://elegantcode.com/?p=4302'>Phenergan wiki</a>. <a href='http://elegantcode.com/?p=4268'>Soma maximum dosage</a>. <a href='http://elegantcode.com/?p=4602'>Zovirax treatment</a>. <a href='http://elegantcode.com/?p=4578'>Cialis price, coupon</a>. <a href='http://elegantcode.com/?p=4189'>Flexeril price</a>.<br />
<b>Trackbacks from:</b> <a href='http://www.leaduganda.org/?p=514'>Quinine For Sale</a>. <a href='http://www.macneilbmx.com/blog/?p=4820'>Quinine For Sale</a>. <a href='http://www.greatgreengoods.com/?p=2780'>Quinine For Sale</a>. <a href='http://www.thegriffonnews.com/?p=10177'>Quinine For Sale</a>. <a href='http://www.independentworldreport.com/?p=2409'>Quinine For Sale</a>. <a href='http://changecamp.ca/?p=295'>Quinine description</a>. <a href='http://social-blend.com/?p=624'>Quinine price, coupon</a>. <a href='http://blog.farmland.org/?p=3946'>Online buying Quinine hcl</a>. <a href='http://4realz.net/?p=1595'>Quinine from canada</a>. <a href='http://reversemortgagedaily.com/?p=14535'>Where to buy Quinine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2012/01/18/monitoring-an-mmo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Buy Clonidine Without Prescription</title>
		<link>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=moving-from-e-texteditor-to-sublime-text-2</link>
		<comments>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 23:45:32 +0000</pubDate>
		<dc:creator>Jan Van Ryswyck</dc:creator>
				<category><![CDATA[CoffeeScript]]></category>
		<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/</guid>
		<description><![CDATA[I’ve been using E-TextEditor Buy Clonidine Without Prescription, for more than a year now for doing all my JavaScript, Node.js and CoffeeScript development. Clonidine from mexico, You can think of E-TextEditor as TextMate for the Windows platform. I’ve been pretty happy with it throughout this period as it can be extended pretty easily with a [...]]]></description>
			<content:encoded><![CDATA[<p> <p align="justify">I’ve been using <a href="http://www.e-texteditor.com/" target="_blank">E-TextEditor</a> <b>Buy Clonidine Without Prescription</b>, for more than a year now for doing all my JavaScript, Node.js and CoffeeScript development.  <b>Clonidine from mexico</b>, You can think of E-TextEditor as <a href="http://macromates.com/" target="_blank">TextMate</a> for the Windows platform. I’ve been pretty happy with it throughout this period as it can be extended pretty easily with a whole slew of bundles that are already available for TextMate, <b>cheap Clonidine</b>.  <b>Clonidine recreational</b>, E-TextEditor requires you to install <a href="http://www.cygwin.com/" target="_blank">Cygwin</a> which happens automatically during installation. Using the Cygwin command-line gave me enough (re-)exposure to a Linux-like environment in order for me wanting to (re-)learn about this other platform, <b>purchase Clonidine for sale</b>. More on that in later blog posts, <b>Buy Clonidine Without Prescription</b>.  <b>Low dose Clonidine</b>, Although there haven’t been any new versions of E-TextEditor for quite some time now, the current version enabled me to write JavaScript code in a productive way.</p>  <p align="justify">Only recently I found out about another editor called <a href="http://www.sublimetext.com/2" target="_blank">Sublime Text 2</a> (thanks to <a href="http://twitter.com/#!/casualjim" target="_blank">Ivan Porto Carrero</a>), <b>Clonidine description</b>.  <b>Clonidine overnight</b>, I downloaded this text editor in order to give it a try and I must say that I haven’t opened E-TextEditor ever since. This second version of Sublime Text is still in development but it’s pretty stable as I haven’t run into any issues so far, <b>Clonidine no prescription</b>.  <b>Clonidine brand name</b>, The cool part is that this editor is available for both Windows, Linux and OS X which enabled me to move all my Node.js and CoffeeScript development from Cygwin on Windows to Ubuntu Linux.&#160; </p>  <p align="justify">CoffeeScript isn’t supported out-of-the-box (yet), <b>purchase Clonidine</b>, <b>Clonidine gel, ointment, cream, pill, spray, continuous-release, extended-release</b>, so I installed the <a href="https://github.com/jashkenas/coffee-script-tmbundle" target="_blank">CoffeeScript&#160; TextMate bundle</a> written by <a href="http://ashkenas.com/" target="_blank">Jeremy Ashkenas</a> (yes, the same one from the <a href="http://jashkenas.github.com/coffee-script/" target="_blank">CoffeeScript</a> and <a href="http://documentcloud.github.com/backbone/" target="_blank">Backbone.js</a> fame), <b>Clonidine long term</b>.  Also check out <a href="https://github.com/jashkenas/coffee-script/wiki/Text-editor-plugins" target="_blank">this page on the CoffeeScript wiki</a> for more information on how to bring some CoffeeScript happiness to your own favorite text editor.</p>  <p align="justify"> <b>Buy Clonidine Without Prescription</b>, Setting up this TextMate bundle for use with Sublime Text 2 was actually pretty easy.  <b>Clonidine canada, mexico, india</b>, Just navigate to <em>/home/&lt;my_user_name&gt;/.config/sublime-text-2/Packages</em> in a terminal (or the corresponding file path on Windows) and clone the source of the CoffeeScript TextMate bundle using git: </p>  <blockquote>   <p align="justify"><em>git clone git://github.com/jashkenas/coffee-script-tmbundle CoffeeScript</em></p> </blockquote>  <p align="justify">Next close all the .coffee files and restart Sublime Text 2. Now we have some nice syntax highlighting and some useful code snippets at our disposal.&#160; </p>  <p align="justify"><a href="http://elegantcode.com/wp-content/uploads/2011/08/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2011/08/image_thumb.png" width="600" height="396" /></a></p>  <p>It's also possible to hook into <a href="http://sublimetext.info/docs/en/reference/build_systems.html" target="_blank">the build system</a> of Sublime Text 2, <b>Clonidine australia, uk, us, usa</b>.  <b>Clonidine blogs</b>, You just need to create a new file named <em>CoffeeScript.sublime-build</em> at the following location: </p>  <blockquote>   <p><em>/home/&lt;my_user_name&gt;/.config/sublime-text-2/Packages/User&#160; </em></p> </blockquote>  <p align="justify">You can add the following to this new file for compiling CoffeeScript</p>  <pre style="width: 100%; height: 85px" class="csharpcode">{     <span class="str">&quot;cmd&quot;</span>: [<span class="str">&quot;coffee&quot;</span>, <span class="str">&quot;-c&quot;</span>, <b>Clonidine from canada</b>, <b>Is Clonidine addictive</b>, <span class="str">&quot;$file&quot;</span>],     <span class="str">&quot;selector&quot;</span> : <span class="str">&quot;source.coffee&quot;</span>, <b>Clonidine pharmacy</b>, <b>Ordering Clonidine online</b>, <span class="str">&quot;path&quot;</span> : <span class="str">&quot;/usr/local/bin&quot;</span>}</pre><style type="text/css">.csharpcode, .csharpcode pre{	font-size: small;	color: black;	font-family: consolas, <b>Clonidine without prescription</b>, <b>Clonidine no rx</b>, "Courier New", courier, <b>buy no prescription Clonidine online</b>, <b>Clonidine street price</b>, monospace;	background-color: #ffffff;	/*white-space: pre;*/}.csharpcode pre { margin: 0em; }.csharpcode .rem { color: #008000; }.csharpcode .kwrd { color: #0000ff; }.csharpcode .str { color: #006080; }.csharpcode .op { color: #0000c0; }.csharpcode .preproc { color: #cc6633; }.csharpcode .asp { background-color: #ffff00; }.csharpcode .html { color: #800000; }.csharpcode .attr { color: #ff0000; }.csharpcode .alt<br />
{	background-color: #f4f4f4;	width: 100%;	margin: 0em;}.csharpcode .lnum { color: #606060; }</style>or the following for executing/running CoffeeScript code.</p>
<p><pre style="width: 100%; height: 85px" class="csharpcode">{     <span class="str">&quot;cmd&quot;</span>: [<span class="str">&quot;coffee&quot;</span>, <b>Clonidine for sale</b>, <b>What is Clonidine</b>, <span class="str">&quot;$file&quot;</span>],     <span class="str">&quot;selector&quot;</span> : <span class="str">&quot;source.coffee&quot;</span>, <b>get Clonidine</b>, <b>Clonidine class</b>, <span class="str">&quot;path&quot;</span> : <span class="str">&quot;/usr/local/bin&quot;</span>}</pre></p>
<p><p align="justify">Now when you hit F7, this fresh build command is executed when a CoffeeScript source file is showing in the active tab, <b>cheap Clonidine no rx</b>.  It’s also possible to change the build short-key to your own taste through the <em>Preferences</em> menu, <b>Buy Clonidine Without Prescription</b>.  <b>Fast shipping Clonidine</b>, <style type="text/css">.csharpcode, .csharpcode pre{	font-size: small;	color: black;	font-family: consolas, <b>buy Clonidine from canada</b>, <b>Clonidine without a prescription</b>, "Courier New", courier, <b>purchase Clonidine online no prescription</b>, <b>Effects of Clonidine</b>, monospace;	background-color: #ffffff;	/*white-space: pre;*/}.csharpcode pre { margin: 0em; }.csharpcode .rem { color: #008000; }.csharpcode .kwrd { color: #0000ff; }.csharpcode .str { color: #006080; }.csharpcode .op { color: #0000c0; }.csharpcode .preproc { color: #cc6633; }.csharpcode .asp { background-color: #ffff00; }.csharpcode .html { color: #800000; }.csharpcode .attr { color: #ff0000; }.csharpcode .alt<br />
{	background-color: #f4f4f4;	width: 100%;	margin: 0em;}.csharpcode .lnum { color: #606060; }</style></p></p>
<p><p align="justify">Unfortunately, there’s only one build command as I would love to create a separate command for compiling and running CoffeeScript code (or perhaps I missed this feature during the excitement <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-winkingsmile" alt="Winking smile" src="http://elegantcode.com/wp-content/uploads/2011/08/wlEmoticon-winkingsmile.png" />), <b>buy generic Clonidine</b>.  <b>Is Clonidine safe</b>, </p></p>
<p><p align="justify">Some more usage is definitely needed for me to learn more about this excellent text editor, but currently I’m pretty happy with it, <b>Clonidine trusted pharmacy reviews</b>.  <b>Taking Clonidine</b>, I also need to find out how well JavaScript is supported and perhaps see how far one can go when doing some C# development using Mono. I expect that there are a good number of productive features in there for me to discover.</p></p>
<p><p align="justify">I encourage you have a decent look at this excellent tool, <b>Clonidine dangers</b>.  <b>Order Clonidine from mexican pharmacy</b>, </p></p>
<p><p align="justify">Until next time.</p>.  Herbal Clonidine.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4452'>Stromectol For Sale</a>. <a href='http://elegantcode.com/?p=4867'>Buy Soma Without Prescription</a>. <a href='http://elegantcode.com/?p=4758'>Buy Atenolol Without Prescription</a>. <a href='http://elegantcode.com/?p=4553'>Buy Female Pink Viagra Without Prescription</a>. <a href='http://elegantcode.com/?p=4560'>Vermox For Sale</a>. <a href='http://elegantcode.com/?p=4662'>Where can i buy cheapest Antabuse online</a>. <a href='http://elegantcode.com/?p=4508'>Slimex (Obetrim) photos</a>. <a href='http://elegantcode.com/?p=4623'>Augmentin description</a>. <a href='http://elegantcode.com/?p=4752'>Buy Colchicine no prescription</a>. <a href='http://elegantcode.com/?p=4322'>Clonidine natural</a>.<br />
<b>Trackbacks from:</b> <a href='http://evanrapoport.com/?p=429'>Buy Clonidine Without Prescription</a>. <a href='http://www.themusclecarplace.com/?p=5350'>Buy Clonidine Without Prescription</a>. <a href='http://changecamp.ca/?p=578'>Buy Clonidine Without Prescription</a>. <a href='http://blog.farmland.org/?p=3172'>Buy Clonidine Without Prescription</a>. <a href='http://home.officesnapshots.com/?p=175'>Buy Clonidine Without Prescription</a>. <a href='http://www.thegriffonnews.com/?p=9699'>Kjøpe Clonidine på nett, köpa Clonidine online</a>. <a href='http://www.quarterlives.com/?p=831'>Buy cheap Clonidine no rx</a>. <a href='http://www.greatgreengoods.com/?p=3511'>Clonidine use</a>. <a href='http://www.macneilbmx.com/blog/?p=5325'>Clonidine no rx</a>. <a href='http://social-blend.com/?p=482'>Online buying Clonidine hcl</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Buy Viagra Without Prescription</title>
		<link>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor</link>
		<comments>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 22:51:00 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Entity Framework]]></category>
		<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/</guid>
		<description><![CDATA[Buy Viagra Without Prescription, If you’ve taken the jump to try out the new Entity Framework Code First and you’re allowing it to generate your database for you, you’ve most certainly run into the lack of migrations/updating existing schema support. Currently EF Code First will only create a database and won’t update a database with [...]]]></description>
			<content:encoded><![CDATA[<p> <p> <b>Buy Viagra Without Prescription</b>, If you’ve taken the jump to try out the new Entity Framework Code First and you’re allowing it to generate your database for you, you’ve most certainly run into the lack of migrations/updating existing schema support. Currently EF Code First will only create a database and won’t update a database with changes necessary to bring it in line with your model, <b>where can i order Viagra without prescription</b>.  <b>Effects of Viagra</b>, I know they’re working on it, but since it’s not there, <b>buy generic Viagra</b>, <b>Online buy Viagra without a prescription</b>, I thought I’d share a possible solution, albeit less polished than some of the well known database change management out there.</p>  <h4>Where is the tool?</h4>  <p>You can access it in the VS Command window, <b>Viagra coupon</b>.  <b>Buy Viagra no prescription</b>, On my x64 machine the tool is in.</p>  <blockquote>   <p>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VSTSDB\Deploy\vsdbcmd.exe</p> </blockquote>  <h4>I want to deploy an existing schema to AppHarbor.</h4>  <p>Some high level steps that you can use for deployment of database changes.</p>  <ol>   <li>Generate an original reflection of your database. (*.dbschema file) </li>    <li>Tiny little hack to the .dbschema file, <b>Viagra reviews</b>. </li>    <li>Generate the change file to AppHarbor </li>    <li>Review Change Script Generated </li>    <li>Take the app offline, <b>Buy Viagra Without Prescription</b>.  <b>Order Viagra from mexican pharmacy</b>, (optional) </li>    <li>Apply Change Script </li>    <li>Bring the app online (mandatory if you took step 5) </li> </ol>  <h5>Generate an original reflection of your database.</h5>  <p>This file is a complete reflection of your databases schema in a single xml file.</p>  <p>The following command can be used to generate this file.</p>  <blockquote>   <p>vsdbcmd.exe      <br />&#160;&#160;&#160;&#160; /Action:Import       <br />&#160;&#160;&#160;&#160; /ConnectionString:&quot;Data Source=.\sqlexpress;Initial Catalog=MyDatabase;Integrated Security=True;Pooling=False&quot;       <br />&#160;&#160;&#160;&#160; /ModelFile:MyDatabase.dbschema</p> </blockquote>  <p>There are a ton of knobs to turn with this command line tool. Feel free to check out the docs <a href="http://msdn.microsoft.com/en-us/library/dd193283.aspx">http://msdn.microsoft.com/en-us/library/dd193283.aspx</a></p>  <p>Now you should have a file “MyDatabase.dbschema” sitting on your hard drive.</p>  <h5>Tiny little hack to the .dbschema file.</h5>  <p>The section of xml we want to manually remove from the file is related to where your mdf and ldf database files should exist on disk, <b>kjøpe Viagra på nett, köpa Viagra online</b>.  <b>Cheap Viagra</b>, When we go to deploy up to AppHarbor, if this is not removed, <b>buy Viagra online no prescription</b>, <b>Online buying Viagra hcl</b>, then vsdbcmd will generate script to attempt to move the files into the “correct” location. This operation will throw exceptions if you attempt to execute against AppHarbor as you don’t have permission to do this, <b>Viagra gel, ointment, cream, pill, spray, continuous-release, extended-release</b>.  <b>Buy Viagra Without Prescription</b>, We’re removing it from the xml file, as I can’t seem to get the correct command line option to ignore this (if there is an option).  <b>Viagra no prescription</b>, So by removing it, it’s just not used and completely ignored.</p>  <p>I don’t know if this will be true for everyone, <b>Viagra photos</b>, <b>Viagra steet value</b>, but I find that the last two sections of xml in the dbschema file are all I have to remove. I’ll show the two full sections below so you can use it as a reference of what to remove from the file.</p>  <pre class="brush: xml;">&lt;Element Type=&quot;ISql90File&quot; Name=&quot;[MyDatabase]&quot;&gt;    &lt;Property Name=&quot;FileName&quot; Value=&quot;$(DefaultDataPath)$(DatabaseName).mdf&quot; /&gt;    &lt;Property Name=&quot;Size&quot; Value=&quot;2304&quot; /&gt;    &lt;Property Name=&quot;SizeUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Property Name=&quot;FileGrowth&quot; Value=&quot;1024&quot; /&gt;    &lt;Property Name=&quot;FileGrowthUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Relationship Name=&quot;Filegroup&quot;&gt;        &lt;Entry&gt;            &lt;References ExternalSource=&quot;BuiltIns&quot; Name=&quot;[PRIMARY]&quot; /&gt;        &lt;/Entry&gt;    &lt;/Relationship&gt;&lt;/Element&gt;&lt;Element Type=&quot;ISql90File&quot; Name=&quot;[MyDatabase_log]&quot;&gt;    &lt;Property Name=&quot;FileName&quot; Value=&quot;$(DefaultLogPath)$(DatabaseName)_log.LDF&quot; /&gt;    &lt;Property Name=&quot;Size&quot; Value=&quot;576&quot; /&gt;    &lt;Property Name=&quot;SizeUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Property Name=&quot;MaxSize&quot; Value=&quot;2097152&quot; /&gt;    &lt;Property Name=&quot;IsUnlimited&quot; Value=&quot;False&quot; /&gt;    &lt;Property Name=&quot;FileGrowth&quot; Value=&quot;10&quot; /&gt;    &lt;Property Name=&quot;FileGrowthUnit&quot; Value=&quot;1&quot; /&gt;    &lt;Property Name=&quot;IsLogFile&quot; Value=&quot;True&quot; /&gt;&lt;/Element&gt;</pre></p>
<p><h5>Generate the change file to AppHarbor.</h5></p>
<p><p>Now that we have a .dbschema file containing the complete model of what we want deployed, <b>comprar en línea Viagra, comprar Viagra baratos</b>, <b>Viagra without prescription</b>, we can now use it to generate a schema change deployment script.</p></p>
<p><blockquote>  <p>vsdbcmd.exe<br />
    <br />&#160;&#160;&#160;&#160; /Action:Deploy</p>
<p>    <br />&#160;&#160;&#160;&#160; /DeployToDatabase:-</p>
<p>    <br />&#160;&#160;&#160;&#160; /Script:Test.sql</p>
<p>    <br />&#160;&#160;&#160;&#160; /ConnectionString:&quot;{YourAppHarborConnectionString}&quot;</p>
<p>    <br />&#160;&#160;&#160;&#160; /ModelFile:HackIt.dbschema</p>
<p>    <br />&#160;&#160;&#160;&#160; /Properties:TargetDatabase={YourAppHarborDatabaseName EX:db1235}</p></blockquote></p>
<p><p>I’ll explain a couple of the above command options.</p></p>
<p><h6>/DeployToDatabase:-</h6></p>
<p><p>This one is _<strong><u>key</u></strong>_. This tells vsdbcmd to only generate a change script, <b>Viagra price, coupon</b>, <b>Herbal Viagra</b>, and <strong>not to actually deploy the changes </strong>immediately. Until you feel comfortable with what sql the tool generates, <b>Viagra australia, uk, us, usa</b>, <b>Viagra blogs</b>, which is usually pretty darn good, you should not apply it immediately, <b>Viagra dose</b>. Allow the tool to generate the file for further inspection and you can execute it manually after, <b>Buy Viagra Without Prescription</b>.  <b>Viagra dosage</b>, <br /></p></p>
<p><h6>/Script:Test.sql</h6></p>
<p><p>This this is just the name of the file to dump the deployment changes.<br />
  <br /></p></p>
<p><h6>/ModelFile:HackIt.dbschema</h6></p>
<p><p>The path to the .dbschema we generated and modified above.</p></p>
<p><p>&#160;</p></p>
<p><h5>Review Change Script Generated.</h5></p>
<p><p>After you’ve generated a change script file, <b>order Viagra from United States pharmacy</b>, <b>Buy Viagra from canada</b>, take a look at the sql just to make sure you’re happy with what it generates.</p></p>
<p><h5>Take the app offline. (optional)</h5></p>
<p><p>This one depends on the schema changes, <b>Viagra class</b>.  <b>Where can i find Viagra online</b>, If the changes are serious enough, you can check in an App_Offline.htm file at the root of web project and do a “git push appharbor”, <b>Viagra maximum dosage</b>.  <b>Buy Viagra Without Prescription</b>, This way, while making schema changes you don’t have to worry about the errors popping up on users.  <b>Is Viagra safe</b>, Down side is your site becomes inoperable.</p></p>
<p><blockquote>  <p>If you’ve never heard of the App_Offline.htm – I’d recommend reading up on it. <a href="http://weblogs.asp.net/scottgu/archive/2006/04/09/442332.aspx">http://weblogs.asp.net/scottgu/archive/2006/04/09/442332.aspx</a></p></blockquote></p>
<p><h5>Apply Change Script.</h5></p>
<p><p>You have several options to actually apply the scripted changes.</p></p>
<p><ol>  <li>Use vsdbcmd to deploy – Just turn the /DeployToDatabase:<strong>-</strong> to /DeployToDatabase:<strong>+</strong> and allow vsdbcmd to apply the script right there, <b>Viagra over the counter</b>.  <b>Fast shipping Viagra</b>, </li></p>
<p>  <li>Use SQL Management Studio.<br />
    <br /><strong>Make Sure you turn on SQLCMD Mode</strong><a href="http://elegantcode.com/wp-content/uploads/2011/04/image1.png"><br />
      <br /><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2011/04/image_thumb1.png" width="311" height="333" /></a>&#160; </li></ol></p>
<p><h5>Bring your site back online.</h5></p>
<p><p>Now you can go re-name the App_Offline.htm to something like App_Offline.htm.disabled and push those changes back up to AppHarbor.</p></p>
<p><h4>Other considerations.</h4></p>
<p><ul>  <li>Consider a simple migrations framework (EX: <a href="http://code.google.com/p/dbup/" target="_blank">DbUp</a>) to get some initial data or things initialized, <b>generic Viagra</b>, <b>Viagra australia, uk, us, usa</b>, but be-ware that you’ll have to think a little harder about the “rollback” steps with this approach.</p>
<p>    <br /></li></p>
<p>  <li>Next you could take a look at an inquiry I made on the public support discussion list at AppHarbor hoping to push AppHarbor to implement this App_Offline.htm support (right into their admin site)<a href="http://support.appharbor.com/discussions/problems/373-deployment-feature-idea"><br />
      <br />http://support.appharbor.com/discussions/problems/373-deployment-feature-idea</a></p>
<p>    <br /><strong>UPDATE:</strong> SPARE A VOTE OR TWO: <a title="http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic" href="http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic">http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic</a> </li></ul></p>
<p><p>One great benefit of to this approach is the ability for vsdbcmd to manage changes to an existing schema, <b>rx free Viagra</b>.  <b>Cheap Viagra</b>, </p></p>
<p><p>Now if you want full support like refactorings such as table, column, <b>Viagra treatment</b>, <b>Ordering Viagra online</b>, etc renames. You will want to keep a full db project and use that to do a deployment.</p></p>
<p><p>Hope you find this useful, <b>buy no prescription Viagra online</b>.  <b>Taking Viagra</b>, Happy Deployment!</p>.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4335'>Buy Differin Without Prescription</a>. <a href='http://elegantcode.com/?p=4423'>Antabuse For Sale</a>. <a href='http://elegantcode.com/?p=4744'>Buy Flexeril Without Prescription</a>. <a href='http://elegantcode.com/?p=4587'>Buy Pristiq Without Prescription</a>. <a href='http://elegantcode.com/?p=4633'>Cephalexin For Sale</a>. <a href='http://elegantcode.com/?p=4384'>Order Ultram online overnight delivery no prescription</a>. <a href='http://elegantcode.com/?p=4683'>Inderal schedule</a>. <a href='http://elegantcode.com/?p=4822'>About Hydrochlorothiazide</a>. <a href='http://elegantcode.com/?p=4728'>Ventolin australia, uk, us, usa</a>. <a href='http://elegantcode.com/?p=4694'>Human Growth Hormone interactions</a>.<br />
<b>Trackbacks from:</b> <a href='http://www.greatgreengoods.com/?p=2891'>Buy Viagra Without Prescription</a>. <a href='http://www.thegriffonnews.com/?p=10272'>Buy Viagra Without Prescription</a>. <a href='http://www.themusclecarplace.com/?p=3445'>Buy Viagra Without Prescription</a>. <a href='http://linuxologist.com/?p=363'>Buy Viagra Without Prescription</a>. <a href='http://blog.farmland.org/?p=2709'>Buy Viagra Without Prescription</a>. <a href='http://www.quarterlives.com/?p=286'>Where can i cheapest Viagra online</a>. <a href='http://www.macneilbmx.com/blog/?p=6199'>Online Viagra without a prescription</a>. <a href='http://social-blend.com/?p=1253'>Japan, craiglist, ebay, overseas, paypal</a>. <a href='http://www.leaduganda.org/?p=824'>Purchase Viagra online no prescription</a>. <a href='http://4realz.net/?p=1851'>Viagra no rx</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving your global .gitconfig file</title>
		<link>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=moving-your-global-gitconfig-file</link>
		<comments>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/#comments</comments>
		<pubDate>Fri, 05 Nov 2010 11:02:41 +0000</pubDate>
		<dc:creator>Andreas Håkansson</dc:creator>
				<category><![CDATA[Source Control]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/</guid>
		<description><![CDATA[I am using msysgit for my Git work on Windows and for quite a while I have been wanting to move the global .gitconfig file from its default location into my dropbox folder. The reason for this is probably obvious, I do not want to have to make the same configuration changes on multiple machines [...]]]></description>
			<content:encoded><![CDATA[I am using <a title="Visit the project page of msysgit" href="http://code.google.com/p/msysgit/" target="_blank">msysgit</a> for my Git work on Windows and for quite a while I have been wanting to move the global .gitconfig file from its default location into my dropbox folder. The reason for this is probably obvious, I do not want to have to make the same configuration changes on multiple machines to get a homogenize Git environment.

So I set out to resolve this but despite numerous stops at my local Google page, I was unable to find any information on how to make Git look for the file in a different location, it always went to look for the file at <em>%USERPROFILE%\.gitconfig</em>.

As a last resort I asked <a title="Visit the blog of Joshua Flanagan" href="http://www.lostechies.com/blogs/joshuaflanagan/" target="_blank">Joshua Flanagan</a> if he had any idea on how I could configure Git or msysgit to make this possible. Unfortunately he had no idea, but he did however suggest that I try using <a title="Visit the product page for mklink" href="http://technet.microsoft.com/en-us/library/cc753194(WS.10).aspx" target="_blank">mklink</a>, a command line utility available in Windows Vista and later.

mklink enables you to create either <a title="Read more about the differences between symbolic and hard links" href="http://www.maxi-pedia.com/difference+between+symbolic+link+and+hard+link" target="_blank">symbolic or hard links</a> for files or directories. What I needed was a symbolic link, which simply explained is like a shortcut to a file but the difference is that the file system will resolve the symbolic link to the real file, where as a windows shortcut is a file with information in it.

To create a symbolic link for your .gitconfig file do the following
<ol>
	<li>Copy your .gitconfig file from the %USERPROFILE% directory, to the directory where you want to store it instead</li>
	<li>Delete the .gitconfig file in the %USERPROFILE% directory</li>
	<li>Start <strong>cmd.exe</strong> as Administrator</li>
	<li>Enter <strong>mklink .gitconfig path\to\your\.gitconfig</strong> (notice the actual filename needs to be in the second parameter or you will link to the folder it is stored in)</li>
</ol>
You should now get a message that a symbolic link was created between the two files. Try making a change in either of them and see that the change is reflected in the other one – this is because you are always editing the same file since the file system resolves the symbolic link into the real file.]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Pluralcast 21 &#8211; Extending Visual Studio 2010 with Kate Gregory</title>
		<link>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pluralcast-21-extending-visual-studio-2010-with-kate-gregory</link>
		<comments>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 03:42:23 +0000</pubDate>
		<dc:creator>David Starr</dc:creator>
				<category><![CDATA[Pluralcast]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/</guid>
		<description><![CDATA[Listen Now! Kate Gregory has probably forgotten more coding tricks than I have ever learned. That means that she likes her Visual Studio with meat and potatoes. With the new extensibility model in Visual Studio 2010,  Visual Studio can now be the primary source or protein in your IDE diet. In this episode Kate tells us [...]]]></description>
			<content:encoded><![CDATA[<a href="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3"><img style="display: inline; border-width: 0px;" title="PlayIcon" src="http://elegantcode.com/wp-content/uploads/2010/08/PlayIcon.png" border="0" alt="PlayIcon" width="24" height="24" /></a> <a href="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3" target="_blank">Listen Now</a>!

Kate Gregory has probably forgotten more coding tricks than I have ever learned. That means that she likes her Visual Studio with meat and potatoes. With the new extensibility model in Visual Studio 2010,  Visual Studio can now be the primary source or protein in your IDE diet. In this episode Kate tells us how to add a little hot sauce using Visual Studio extensions.

<a href="http://elegantcode.com/wp-content/uploads/2010/08/kategregory.jpg"><img style="margin: 5px; display: inline; border-width: 0px;" title="kate-gregory" src="http://elegantcode.com/wp-content/uploads/2010/08/kategregory_thumb.jpg" border="0" alt="kate-gregory" width="112" height="142" align="right" /></a> Kate is in her fourth decade of being paid to program. Her firm, Gregory Consulting Limited, is based in rural Ontario and helps clients adopt new technologies and adjust to the changing business environment. Current work makes heavy use of .NET and Visual C++ along with SharePoint and both web and client development, especially for Windows 7. Managing, mentoring, technical writing, and technical speaking occupy much of her time, but she still writes code every week.

Kate is the author of over a dozen books and speaks at DevTeach, TechEd (USA, Europe, Africa), and TechDays, among others. Kate is a C++ MVP, a founding sponsor of the Toronto .NET Users Group, the founder of the East of Toronto .NET Users group, a member of the INETA speakers bureau, and a member of adjunct faculty at Trent University in Peterborough. Since January 2002 she has been Microsoft Regional Director for Toronto and since January 2004 she has been awarded the Microsoft Most Valuable Professional designation for Visual C++. In June 2005 she won the Regional Director of the year award.

<strong>Show Links</strong>
<ul>
	<li><a href="http://www.gregcons.com/kateblog/">Kate’s Blog</a></li>
	<li><a href="http://www.pluralsight-training.net/microsoft/olt/Course/Toc.aspx?n=vs2010-vsx">Kate’s Pluralsight course, <em>Customizing and Extending Visual Studio 2010</em></a></li>
	<li><a href="http://msdn.microsoft.com/en-us/vstudio/vextend.aspx">Visual Studio Extensibility (VSX)</a></li>
	<li><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=47305cf4-2bea-43c0-91cd-1b853602dcc5&amp;displaylang=en">Visual Studio SDK</a></li>
	<li><a href="http://visualstudiogallery.msdn.microsoft.com/">Visual Studio Gallery</a></li>
	<li><a href="http://code.msdn.microsoft.com/vsx">The Code Gallery</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3" length="41629427" type="audio/mpeg" />
		</item>
		<item>
		<title>God Mode Easter Egg</title>
		<link>http://elegantcode.com/2010/01/04/god-mode-easter-egg/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=god-mode-easter-egg</link>
		<comments>http://elegantcode.com/2010/01/04/god-mode-easter-egg/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 04:55:51 +0000</pubDate>
		<dc:creator>David Starr</dc:creator>
				<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/01/04/god-mode-easter-egg/</guid>
		<description><![CDATA[I did not discover this, I got it from a tweet that Rob Conery put out there. Thank you, Rob! I don’t know if this is a Windows 7 hack or if this is available in other operating systems. Create a new folder on your desktop Name the new folder: GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} The new folder will [...]]]></description>
			<content:encoded><![CDATA[I did not discover this, I got it from <a href="http://bit.ly/62zZlc ">a tweet</a> that <a href="http://blog.wekeroad.com/">Rob Conery</a> put out there. Thank you, Rob!

I don’t know if this is a Windows 7 hack or if this is available in other operating systems.
<ol>
	<li>Create a new folder on your desktop</li>
	<li>Name the new folder:
GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}</li>
</ol>
The new folder will change into this icon.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image1.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb1.png" border="0" alt="image" width="84" height="90" /></a>

Clicking your shiny new icon will result in a new window that gives shortcut access to the myriad of configuration and administration utilities in Windows that I always seem to need to hunt down.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image2.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb2.png" border="0" alt="image" width="397" height="1474" /></a>

Opening one of these nodes will provide direct access to the associated utils.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image3.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb3.png" border="0" alt="image" width="586" height="313" /></a>

Weird and beautiful, isn’t it?

It makes me wonder what other Easter eggs are in there.]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/01/04/god-mode-easter-egg/feed/</wfw:commentRss>
		<slash:comments>40</slash:comments>
		</item>
		<item>
		<title>Unity/Moq &#8211; AutoMocker or AutoMockingContainer</title>
		<link>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=unitymoq-automocker-or-automockingcontainer</link>
		<comments>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 16:52:33 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[TDD]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/</guid>
		<description><![CDATA[What is an Auto Mocking Container? This post started to get a little long, so I won’t re-explain the concept. Joshua Flanagan wrote a nice overview at his Los Techies blog: Auto mocking Explained. My post is mainly here to describe the Unity version of an automocking container I threw together. In Jan 2009 I [...]]]></description>
			<content:encoded><![CDATA[<h4>What is an Auto Mocking Container?</h4>  <p>This post started to get a little long, so I won’t re-explain the concept.</p>  <p><a href="http://www.lostechies.com/blogs/joshuaflanagan/default.aspx">Joshua Flanagan</a> wrote a nice overview at his <a href="http://www.lostechies.com/">Los Techies</a> blog: <a href="http://www.lostechies.com/blogs/joshuaflanagan/archive/2009/02/03/auto-mocking-explained.aspx"><strong>Auto mocking Explained</strong></a>.</p>  <p>My post is mainly here to describe the Unity version of an automocking container I threw together.</p>  <h4>In Jan 2009 I blogged about my initial version of the Unity AutoMocker - Why am I blogging about it again?</h4>  <p>I originally wrote the AutoMocker for the Unity container a year ago (Jan 2009, in Silverlight), and finally got around to placing the code up in the <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> project in June of 2009.</p>  <p>I’m writing another post today in hopes to:</p>  <ol>   <li>Get some feedback on how this little snippet of code should continue. </li>    <li>Give a little more how-to/example code </li>    <li>Describe some updates I made since I originally created it.&#160; </li> </ol>  <h4>Where can I get it?</h4>  <p><strong>This is one part where I’d appreciate some feedback.</strong></p>  <p>I have two slightly different versions out there (currently).</p>  <p>I have one version at the <a href="http://code.google.com/p/elegantcode/source/browse/#svn/trunk/Coders/JasonJarrett/UnityAutoMocker">ElegantCode</a> repository where I was working on it, and the other I threw up at <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a>.</p>  <p>The core of the UnityAutoMockContainer is the same in both places, it’s how the tests are separated out that differ.</p>  <p>In the <a href="http://code.google.com/p/elegantcode/source/browse/#svn/trunk/Coders/JasonJarrett/UnityAutoMocker">ElegantCode repository</a> it’s an all in one self contained single file (that you can copy into your own test project(s)). You can then setup a single test in your own testing framework that runs all internal automocker tests (in case you need to modify it yourself, and don’t want to break any existing functionality). EX: test</p>  <pre class="brush: csharp;">[Test]
public void Should_run_all_UnityAutoMockContainer_internal_tests()
{
    Moq.AutoMocking.SelfTesting.UnityAutoMockContainerFixture
        .RunAllTests(Console.WriteLine);
}</pre>

<p>I kind of like this format as it makes it easy to port between test libraries. Can’t say I like having the tests in the same file as the core, but it certainly is not a large chunk of code (so far) so it’s relatively small to maintain and definitely easier to manage as a single .cs file than another assembly (which would have to be version dependent on both Unity and Moq).</p>

<p>The <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> is definitely where I think this helper should end up (and it is there). I just happened to break the tests out into the Silverlight test project and the core is alone in a file. </p>

<p>It’s current state isn’t as easy to copy to a test library (Silverlight/Desktop/Unity 1.2/Unity 2.0) as the one at <a href="http://elegantcode.com/">ElegantCode</a>. <strong>What does anyone think?</strong> Should I put them all together in one file?</p>

<p>However it ends up (1. all in one file or two (1 test) (1 core)) it will continue to be maintained on the <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> project.</p>

<h4>What is the high level API of the container?</h4>

<p>It’s pretty simple, (currently) there are four methods on the container.</p>

<p><strong>Two for registering items with the container</strong>. Say you want to register an already created instance, or say you want to map an interface to a concrete class and _not_ have the container generate mocks automatically for special cases. </p>

<p>And <strong>two for pulling items out of the container</strong>. Whether you want a instance of T or a Mock&lt;T&gt;, it gives you ways to retrieve both.</p>

<blockquote>
  <p><a href="http://elegantcode.com/wp-content/uploads/2010/01/image.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb.png" width="396" height="106" /></a> </p>
</blockquote>

<h4>How can I setup my own registrations with the container? </h4>

<p>Say I don’t want to have the container generate mocks for specific items and I want to supply specific configuration to the UnityContainer.</p>

<blockquote>
  <p>public UnityAutoMockContainer RegisterInstance&lt;TService&gt;(TService instance)</p>

  <p>public UnityAutoMockContainer Register&lt;TService, TImplementation&gt;() 
    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; where TImplementation : TService</p>
</blockquote>

<p><strong>Note</strong>: both of these registration methods return the container itself so you can fluently stack registration. <strong>EX:</strong></p>

<pre class="brush: csharp;">AutoMockContainer
    .Register&lt;IServiceA, ServiceA&gt;()
    .Register&lt;IServiceB, ServiceB&gt;();</pre>

<p><strong>Let me know</strong>: I haven’t tested or played around with how this automocking container deals with any container specific xml configuration… So although I don’t think you should probably have that in a test assembly (stuff happens). Let me know if there are any issues.</p>

<h4>How do I get items out of the container?</h4>

<p>First is the Resolve&lt;T&gt;(). It will pull an item T out of the container. (Creating it if not already existing)</p>

<blockquote>
  <p>public T Resolve&lt;T&gt;()</p>
</blockquote>

<p>When T is an interface Resolve&lt;T&gt; (unless you setup registration specifically with the container) should return basically “(new Mock&lt;T&gt;()).Object”</p>

<p>When T is a concrete Class, the container should return an instance of T and any of it’s dependencies will be satisfied by mocks. (Note that T will not be any sort of mocked instance of T, unless you used the GetMock&lt;T&gt; as described below first)</p>

<blockquote>
  <p>public Mock&lt;T&gt; GetMock&lt;T&gt;() where T : class</p>
</blockquote>

<p>When T is an interface GetMock&lt;T&gt; should return basically “(new Mock&lt;T&gt;())” </p>

<p>When T is a concrete Class, the container should return a new Mock&lt;T&gt;() and any of it’s dependencies will be satisfied by mocks.</p>

<h4>How do I use the UnityAutoMockContainer?</h4>

<p>It’s pretty basic, you first create an instance of the UnityAutoMockContainer, and from there you can ask it for mocks of an (Interface, Class, or Abstract Class).</p>

<p>If you request an instance of a concrete class, or abstract class, the UnityAutoMockContainer will stuff mocks in for any constructor dependencies of your concrete class (if it can). You can then request from the container those same dependencies one at a time and either apply mocking setups or verifications.</p>

<blockquote>
  <p><strong>NOTE:</strong> Anything the container creates will live as a singleton instance in the container. So any other requests from the container will always return the originally created instance. Therefore, each distinct scenario in a test suite should have their own instances of the container.</p>
</blockquote>

<p>Below his an example of how you can leverage the container in some tests. Given this base fixture class…</p>

<pre class="brush: csharp;">public class FixtureBase
{
    private readonly UnityAutoMockContainer _autoMockContainer = new UnityAutoMockContainer();

    protected UnityAutoMockContainer AutoMockContainer
    {
        get { return _autoMockContainer; }
    }

    [TestFixtureSetUp]
    public void SetupContext_ALL()
    {
        Before_all_tests();
        Because();
    }

    [TestFixtureTearDown]
    public void TearDownContext_ALL()
    {
        After_all_tests();
    }

    protected virtual void Before_all_tests()
    {
    }

    protected virtual void Because()
    {
    }

    protected virtual void After_all_tests()
    {
    }
}</pre>

<p>If I were given the following system to test.</p>

<pre class="brush: csharp;">public interface IServiceA { void RunA(); }
public interface IServiceB { void RunB(); }

public class TestComponent
{
    public TestComponent(IServiceA serviceA, IServiceB serviceB)
    {
        ServiceA = serviceA;
        ServiceB = serviceB;
    }

    public IServiceA ServiceA { get; private set; }
    public IServiceB ServiceB { get; private set; }

    public void RunAll()
    {
        if (!HowDidItGo())
            return;
        ServiceA.RunA();
        ServiceB.RunB();
    }

    public virtual bool HowDidItGo()
    {
        // some really nasty untestable code
        return true;
    }
}</pre>

<p>The below example demonstrates simply verifying some behavior on the mocked dependencies of the system under test.</p>

<pre class="brush: csharp;">[TestFixture]
public class Example__how_to_pull_items_from_the_UnityAutoMockContainer_when_verifying_behavior_after_an_action_was_taken 
    : FixtureBase
{
    private TestComponent _testComponent;

    protected override void Before_all_tests()
    {
        base.Before_all_tests();
        _testComponent = AutoMockContainer.Resolve&lt;TestComponent&gt;();
    }

    protected override void Because()
    {
        _testComponent.RunAll();
    }

    [Test]
    public void Should_run_ServiceA_RunA()
    {
        AutoMockContainer
            .GetMock&lt;IServiceA&gt;()
            .Verify(v =&gt; v.RunA(), Times.Once());
    }

    [Test]
    public void Should_run_ServiceB_RunB()
    {
        AutoMockContainer
            .GetMock&lt;IServiceB&gt;()
            .Verify(v =&gt; v.RunB(), Times.Once());
    }
}</pre>

<p>Next, you may have noticed that the system under test had a complicated internal method (that may not necessarily be testable). You can use the AutoMocker to create the system under test as a Mock itself, so we can override some of the behavior. Here’s how you could quickly do that. </p>

<blockquote>
  <p><strong>Aside</strong>: I’m not saying this is a good practice or aids in good component design, just saying it’s possible</p>
</blockquote>

<pre class="brush: csharp;">[TestFixture]
public class Example__how_to_use_the_UnityAutoMockContainer_to_override_a_method_on_the_SystemUnderTest_to_test_a_certain_behavior
    : FixtureBase
{

    private TestComponent _testComponent;

    protected override void Before_all_tests()
    {
        base.Before_all_tests();
        var mockTestComponent = AutoMockContainer.GetMock&lt;TestComponent&gt;();

        mockTestComponent
            .Setup(s =&gt; s.HowDidItGo())
            .Returns(false);

        _testComponent = mockTestComponent.Object;
    }

    protected override void Because()
    {
        _testComponent.RunAll();
    }

    [Test]
    public void Should_run_ServiceA_RunA()
    {
        AutoMockContainer
            .GetMock&lt;IServiceA&gt;()
            .Verify(v =&gt; v.RunA(), Times.Never());
    }

    [Test]
    public void Should_run_ServiceB_RunB()
    {
        AutoMockContainer
            .GetMock&lt;IServiceB&gt;()
            .Verify(v =&gt; v.RunB(), Times.Never());
    }
}</pre>

<p>&#160;</p>

<p>It’s amazing how much redundant test setup code this little helper has saved me in my tests. I hope others can find some use with this as well.</p>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>If (Successful) { throw new Exception(); }</title>
		<link>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=if-successful-throw-new-exception</link>
		<comments>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 14:56:59 +0000</pubDate>
		<dc:creator>Brian Lagunas</dc:creator>
				<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/</guid>
		<description><![CDATA[So, I was installing Visual Studio 2010 Ultimate Beta 2 on one of my machines the other day and the funniest thing happened.&#160; After it successfully installed, I was prompted to send an error report. Since when is a successful operation a problem?&#160; Now, of course, I am assuming this is intentional and is transmitting [...]]]></description>
			<content:encoded><![CDATA[<p>So, I was installing Visual Studio 2010 Ultimate Beta 2 on one of my machines the other day and the funniest thing happened.&#160; After it successfully installed, I was prompted to send an error report.</p>  <p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="error" border="0" alt="error" src="http://elegantcode.com/wp-content/uploads/2009/12/error.jpg" width="380" height="209" /> </p>  <p>Since when is a successful operation a problem?&#160; Now, of course, I am assuming this is intentional and is transmitting information back to Microsoft to tell them that it was successful.&#160; But, I can see how easy it would be for someone to mistaken this for a legitimate error.&#160; Then again, maybe it is.</p>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>StatLight &#8211; Goes Open Source</title>
		<link>http://elegantcode.com/2009/12/10/statlight-goes-open-source/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=statlight-goes-open-source</link>
		<comments>http://elegantcode.com/2009/12/10/statlight-goes-open-source/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 03:26:55 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[TDD]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2009/12/10/statlight-goes-open-source/</guid>
		<description><![CDATA[Although I made a very minor attempt at making StatLight a “for-sale” product, I knew when I started that open-source was most likely going to be my long term path for StatLight. What is it? (Silverlight Testing Automation Tool) StatLight is a tool developed for automating the setup, running, and gathering results of Silverlight unit [...]]]></description>
			<content:encoded><![CDATA[Although I made a very minor attempt at making <a href="http://statlight.net" target="_blank">StatLight</a> a “for-sale” product, I knew when I started that open-source was most likely going to be my long term path for <a href="http://statlight.net" target="_blank">StatLight</a>.
<h5>What is it? (Silverlight Testing Automation Tool)</h5>
StatLight is a tool developed for automating the setup, running, and gathering results of Silverlight unit tests. StatLight helps to speed up the feedback cycles while practicing<a href="http://en.wikipedia.org/wiki/Test-driven_development"> TDD</a>/<a href="http://en.wikipedia.org/wiki/Behavior_Driven_Development">BDD</a>/(insert your test style here) during Silverlight development.
<h5>Where can I get StatLight?</h5>
<a href="http://StatLight.CodePlex.com">http://StatLight.CodePlex.com</a>
<h4>Happy Coding !!!</h4>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2009/12/10/statlight-goes-open-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running with Parallels 5</title>
		<link>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=unitymoq-automocker-or-automockingcontainer</link>
		<comments>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 16:52:33 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[TDD]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/</guid>
		<description><![CDATA[What is an Auto Mocking Container? This post started to get a little long, so I won’t re-explain the concept. Joshua Flanagan wrote a nice overview at his Los Techies blog: Auto mocking Explained. My post is mainly here to describe the Unity version of an automocking container I threw together. In Jan 2009 I [...]]]></description>
			<content:encoded><![CDATA[<h4>What is an Auto Mocking Container?</h4>  <p>This post started to get a little long, so I won’t re-explain the concept.</p>  <p><a href="http://www.lostechies.com/blogs/joshuaflanagan/default.aspx">Joshua Flanagan</a> wrote a nice overview at his <a href="http://www.lostechies.com/">Los Techies</a> blog: <a href="http://www.lostechies.com/blogs/joshuaflanagan/archive/2009/02/03/auto-mocking-explained.aspx"><strong>Auto mocking Explained</strong></a>.</p>  <p>My post is mainly here to describe the Unity version of an automocking container I threw together.</p>  <h4>In Jan 2009 I blogged about my initial version of the Unity AutoMocker - Why am I blogging about it again?</h4>  <p>I originally wrote the AutoMocker for the Unity container a year ago (Jan 2009, in Silverlight), and finally got around to placing the code up in the <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> project in June of 2009.</p>  <p>I’m writing another post today in hopes to:</p>  <ol>   <li>Get some feedback on how this little snippet of code should continue. </li>    <li>Give a little more how-to/example code </li>    <li>Describe some updates I made since I originally created it.&#160; </li> </ol>  <h4>Where can I get it?</h4>  <p><strong>This is one part where I’d appreciate some feedback.</strong></p>  <p>I have two slightly different versions out there (currently).</p>  <p>I have one version at the <a href="http://code.google.com/p/elegantcode/source/browse/#svn/trunk/Coders/JasonJarrett/UnityAutoMocker">ElegantCode</a> repository where I was working on it, and the other I threw up at <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a>.</p>  <p>The core of the UnityAutoMockContainer is the same in both places, it’s how the tests are separated out that differ.</p>  <p>In the <a href="http://code.google.com/p/elegantcode/source/browse/#svn/trunk/Coders/JasonJarrett/UnityAutoMocker">ElegantCode repository</a> it’s an all in one self contained single file (that you can copy into your own test project(s)). You can then setup a single test in your own testing framework that runs all internal automocker tests (in case you need to modify it yourself, and don’t want to break any existing functionality). EX: test</p>  <pre class="brush: csharp;">[Test]
public void Should_run_all_UnityAutoMockContainer_internal_tests()
{
    Moq.AutoMocking.SelfTesting.UnityAutoMockContainerFixture
        .RunAllTests(Console.WriteLine);
}</pre>

<p>I kind of like this format as it makes it easy to port between test libraries. Can’t say I like having the tests in the same file as the core, but it certainly is not a large chunk of code (so far) so it’s relatively small to maintain and definitely easier to manage as a single .cs file than another assembly (which would have to be version dependent on both Unity and Moq).</p>

<p>The <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> is definitely where I think this helper should end up (and it is there). I just happened to break the tests out into the Silverlight test project and the core is alone in a file. </p>

<p>It’s current state isn’t as easy to copy to a test library (Silverlight/Desktop/Unity 1.2/Unity 2.0) as the one at <a href="http://elegantcode.com/">ElegantCode</a>. <strong>What does anyone think?</strong> Should I put them all together in one file?</p>

<p>However it ends up (1. all in one file or two (1 test) (1 core)) it will continue to be maintained on the <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> project.</p>

<h4>What is the high level API of the container?</h4>

<p>It’s pretty simple, (currently) there are four methods on the container.</p>

<p><strong>Two for registering items with the container</strong>. Say you want to register an already created instance, or say you want to map an interface to a concrete class and _not_ have the container generate mocks automatically for special cases. </p>

<p>And <strong>two for pulling items out of the container</strong>. Whether you want a instance of T or a Mock&lt;T&gt;, it gives you ways to retrieve both.</p>

<blockquote>
  <p><a href="http://elegantcode.com/wp-content/uploads/2010/01/image.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb.png" width="396" height="106" /></a> </p>
</blockquote>

<h4>How can I setup my own registrations with the container? </h4>

<p>Say I don’t want to have the container generate mocks for specific items and I want to supply specific configuration to the UnityContainer.</p>

<blockquote>
  <p>public UnityAutoMockContainer RegisterInstance&lt;TService&gt;(TService instance)</p>

  <p>public UnityAutoMockContainer Register&lt;TService, TImplementation&gt;() 
    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; where TImplementation : TService</p>
</blockquote>

<p><strong>Note</strong>: both of these registration methods return the container itself so you can fluently stack registration. <strong>EX:</strong></p>

<pre class="brush: csharp;">AutoMockContainer
    .Register&lt;IServiceA, ServiceA&gt;()
    .Register&lt;IServiceB, ServiceB&gt;();</pre>

<p><strong>Let me know</strong>: I haven’t tested or played around with how this automocking container deals with any container specific xml configuration… So although I don’t think you should probably have that in a test assembly (stuff happens). Let me know if there are any issues.</p>

<h4>How do I get items out of the container?</h4>

<p>First is the Resolve&lt;T&gt;(). It will pull an item T out of the container. (Creating it if not already existing)</p>

<blockquote>
  <p>public T Resolve&lt;T&gt;()</p>
</blockquote>

<p>When T is an interface Resolve&lt;T&gt; (unless you setup registration specifically with the container) should return basically “(new Mock&lt;T&gt;()).Object”</p>

<p>When T is a concrete Class, the container should return an instance of T and any of it’s dependencies will be satisfied by mocks. (Note that T will not be any sort of mocked instance of T, unless you used the GetMock&lt;T&gt; as described below first)</p>

<blockquote>
  <p>public Mock&lt;T&gt; GetMock&lt;T&gt;() where T : class</p>
</blockquote>

<p>When T is an interface GetMock&lt;T&gt; should return basically “(new Mock&lt;T&gt;())” </p>

<p>When T is a concrete Class, the container should return a new Mock&lt;T&gt;() and any of it’s dependencies will be satisfied by mocks.</p>

<h4>How do I use the UnityAutoMockContainer?</h4>

<p>It’s pretty basic, you first create an instance of the UnityAutoMockContainer, and from there you can ask it for mocks of an (Interface, Class, or Abstract Class).</p>

<p>If you request an instance of a concrete class, or abstract class, the UnityAutoMockContainer will stuff mocks in for any constructor dependencies of your concrete class (if it can). You can then request from the container those same dependencies one at a time and either apply mocking setups or verifications.</p>

<blockquote>
  <p><strong>NOTE:</strong> Anything the container creates will live as a singleton instance in the container. So any other requests from the container will always return the originally created instance. Therefore, each distinct scenario in a test suite should have their own instances of the container.</p>
</blockquote>

<p>Below his an example of how you can leverage the container in some tests. Given this base fixture class…</p>

<pre class="brush: csharp;">public class FixtureBase
{
    private readonly UnityAutoMockContainer _autoMockContainer = new UnityAutoMockContainer();

    protected UnityAutoMockContainer AutoMockContainer
    {
        get { return _autoMockContainer; }
    }

    [TestFixtureSetUp]
    public void SetupContext_ALL()
    {
        Before_all_tests();
        Because();
    }

    [TestFixtureTearDown]
    public void TearDownContext_ALL()
    {
        After_all_tests();
    }

    protected virtual void Before_all_tests()
    {
    }

    protected virtual void Because()
    {
    }

    protected virtual void After_all_tests()
    {
    }
}</pre>

<p>If I were given the following system to test.</p>

<pre class="brush: csharp;">public interface IServiceA { void RunA(); }
public interface IServiceB { void RunB(); }

public class TestComponent
{
    public TestComponent(IServiceA serviceA, IServiceB serviceB)
    {
        ServiceA = serviceA;
        ServiceB = serviceB;
    }

    public IServiceA ServiceA { get; private set; }
    public IServiceB ServiceB { get; private set; }

    public void RunAll()
    {
        if (!HowDidItGo())
            return;
        ServiceA.RunA();
        ServiceB.RunB();
    }

    public virtual bool HowDidItGo()
    {
        // some really nasty untestable code
        return true;
    }
}</pre>

<p>The below example demonstrates simply verifying some behavior on the mocked dependencies of the system under test.</p>

<pre class="brush: csharp;">[TestFixture]
public class Example__how_to_pull_items_from_the_UnityAutoMockContainer_when_verifying_behavior_after_an_action_was_taken 
    : FixtureBase
{
    private TestComponent _testComponent;

    protected override void Before_all_tests()
    {
        base.Before_all_tests();
        _testComponent = AutoMockContainer.Resolve&lt;TestComponent&gt;();
    }

    protected override void Because()
    {
        _testComponent.RunAll();
    }

    [Test]
    public void Should_run_ServiceA_RunA()
    {
        AutoMockContainer
            .GetMock&lt;IServiceA&gt;()
            .Verify(v =&gt; v.RunA(), Times.Once());
    }

    [Test]
    public void Should_run_ServiceB_RunB()
    {
        AutoMockContainer
            .GetMock&lt;IServiceB&gt;()
            .Verify(v =&gt; v.RunB(), Times.Once());
    }
}</pre>

<p>Next, you may have noticed that the system under test had a complicated internal method (that may not necessarily be testable). You can use the AutoMocker to create the system under test as a Mock itself, so we can override some of the behavior. Here’s how you could quickly do that. </p>

<blockquote>
  <p><strong>Aside</strong>: I’m not saying this is a good practice or aids in good component design, just saying it’s possible</p>
</blockquote>

<pre class="brush: csharp;">[TestFixture]
public class Example__how_to_use_the_UnityAutoMockContainer_to_override_a_method_on_the_SystemUnderTest_to_test_a_certain_behavior
    : FixtureBase
{

    private TestComponent _testComponent;

    protected override void Before_all_tests()
    {
        base.Before_all_tests();
        var mockTestComponent = AutoMockContainer.GetMock&lt;TestComponent&gt;();

        mockTestComponent
            .Setup(s =&gt; s.HowDidItGo())
            .Returns(false);

        _testComponent = mockTestComponent.Object;
    }

    protected override void Because()
    {
        _testComponent.RunAll();
    }

    [Test]
    public void Should_run_ServiceA_RunA()
    {
        AutoMockContainer
            .GetMock&lt;IServiceA&gt;()
            .Verify(v =&gt; v.RunA(), Times.Never());
    }

    [Test]
    public void Should_run_ServiceB_RunB()
    {
        AutoMockContainer
            .GetMock&lt;IServiceB&gt;()
            .Verify(v =&gt; v.RunB(), Times.Never());
    }
}</pre>

<p>&#160;</p>

<p>It’s amazing how much redundant test setup code this little helper has saved me in my tests. I hope others can find some use with this as well.</p>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Elegant Code &#187; Tools and Utilities</title>
	<atom:link href="http://elegantcode.com/category/tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://elegantcode.com</link>
	<description></description>
	<lastBuildDate>Tue, 15 May 2012 10:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Quinine For Sale</title>
		<link>http://elegantcode.com/2012/01/18/monitoring-an-mmo/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=monitoring-an-mmo</link>
		<comments>http://elegantcode.com/2012/01/18/monitoring-an-mmo/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 19:45:32 +0000</pubDate>
		<dc:creator>Tony Rasa</dc:creator>
				<category><![CDATA[Architecture]]></category>
		<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Metrics]]></category>
		<category><![CDATA[MMO]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2012/01/18/monitoring-an-mmo/</guid>
		<description><![CDATA[I’ve been working on a free-to-play MMO Quinine For Sale, which has been “officially” live since last April, and things have been going well – a steady growth of players; the game itself has been well-received, and all the important graphs are “up and to the right.”&#160; Part of my job involves detecting problems before [...]]]></description>
			<content:encoded><![CDATA[<p> <p>I’ve been working on a free-to-play <a href="http://www.heroup.com" target="_blank">MMO</a> <b>Quinine For Sale</b>, which has been “officially” live since last April, and things have been going well – a steady growth of players; the game itself has been well-received, and all the important graphs are “up and to the right.”&#160; Part of my job involves detecting problems before they become serious and fixing problems when they inevitably do.&#160; So, there are two questions.&#160; “Is there a problem in the game?” “What is causing the problem?”&#160; </p>  <p>When trying to debug something on our development and test clusters, typically you can tail log files.&#160; We have a python script that can monitor the communication between various parts of the game and pretty-print it along with color to highlight “this is a problem!”&#160; Attaching a debugger to a running process is also not uncommon.&#160; However, looking at logs and bus traffic in realtime on a production environment gives you this neat “Matrix-y” experience.&#160; Attaching a debugger to a production process (assuming you could, which you can’t) would get you smacked with a rolled-up newspaper.&#160; “Bad Developer!&#160; No treat!”&#160; So, what can you do?</p>  <h4>Monitoring</h4>  <p>When you’ve got clusters full of machines, using <a href="http://www.nagios.org/" target="_blank">Nagios</a> to monitor things is an obvious solution.&#160; Beyond making sure the power is on and other sysadmin things, we’ve written other checks to see if the login process is working, the parts are working together, and automating typical in-game functions.&#160; For example, if nagios can’t successfully log into the game do basic game activity, then alerts happen.</p>  <h4>Metrics for EVERYTHING</h4>  <p>Anything that happens in game has metrics reporting tied to it, generating piles of data constantly.&#160; We use <a href="http://www.cacti.net/" target="_blank">Cacti</a> to visualize game activity.&#160; An example metric is concurrent users, or CCU.&#160; We graph how many people are in the game over time, which when things are healthy should be a nice smooth curve climbing to peak game hours, then descending nicely through the night.</p>  <p>We can tell by sight if the game looks healthy or not – if the CCU graph is jaggy, has a sudden drop or spike, or drops to zero then we know that something is wrong.&#160; Typically nagios alerts accompany the graphs, giving more data points on where to look.&#160; But this has also pointed out areas where a nagios check was missing or wasn’t working as intended.</p>  <h4>Log Files</h4>  <p>When a player gets an error in game, the error dialog box gives them the opportunity to submit the error details back to us.&#160; If we see a spike in user-reported errors through this or other customer service means, we know we have something of interest to look for.&#160; </p>  <p>The game server components make use of log4j and similar logging frameworks.&#160; Anything that you’d want to watch happening in game needs to be aggressively logged.&#160; All components are configured so that operations can change the log level on the fly.&#160; That’s still quite a bit of data across many machines though, so all that information is run through <a href="http://www.splunk.com/product" target="_blank">Splunk</a> to be indexed and searchable.&#160; This gives us a great tool for searching through log data, examining trends, or watching selected activity in real time.&#160; Unfortunately it is very expensive so we are selective about the data that passes through it.&#160; </p>.  Buy Quinine from mexico.  Buy Quinine no prescription.  No prescription Quinine online.  Online buying Quinine.  Quinine no prescription.  Quinine street price.  Buy no prescription Quinine online.  Quinine coupon.  Quinine over the counter.  Where can i buy Quinine online.  Quinine steet value.  Where to buy Quinine.  Order Quinine online overnight delivery no prescription.  Quinine recreational.  Quinine canada, mexico, india.  Ordering Quinine online.  Quinine without prescription.  Quinine price, coupon.  Quinine description.  Order Quinine from mexican pharmacy.  Quinine pics.  What is Quinine.  Japan, craiglist, ebay, overseas, paypal.  Order Quinine from United States pharmacy.  Order Quinine online c.o.d.  Quinine trusted pharmacy reviews.  Quinine treatment.  Buy Quinine from canada.  Quinine used for.  Discount Quinine.  Is Quinine addictive.  Quinine forum.  Buy Quinine online no prescription.  Is Quinine safe.  Purchase Quinine for sale.  Effects of Quinine.  Buy Quinine online cod.  Quinine australia, uk, us, usa.  Buy Quinine without prescription.  Quinine online cod.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4721'>Buy Flonase Without Prescription</a>. <a href='http://elegantcode.com/?p=4234'>Buy Periactin Without Prescription</a>. <a href='http://elegantcode.com/?p=4203'>Buy Armour Without Prescription</a>. <a href='http://elegantcode.com/?p=4899'>Buy Macrobid Without Prescription</a>. <a href='http://elegantcode.com/?p=4534'>Xalatan For Sale</a>. <a href='http://elegantcode.com/?p=4302'>Phenergan wiki</a>. <a href='http://elegantcode.com/?p=4268'>Soma maximum dosage</a>. <a href='http://elegantcode.com/?p=4602'>Zovirax treatment</a>. <a href='http://elegantcode.com/?p=4578'>Cialis price, coupon</a>. <a href='http://elegantcode.com/?p=4189'>Flexeril price</a>.<br />
<b>Trackbacks from:</b> <a href='http://www.leaduganda.org/?p=514'>Quinine For Sale</a>. <a href='http://www.macneilbmx.com/blog/?p=4820'>Quinine For Sale</a>. <a href='http://www.greatgreengoods.com/?p=2780'>Quinine For Sale</a>. <a href='http://www.thegriffonnews.com/?p=10177'>Quinine For Sale</a>. <a href='http://www.independentworldreport.com/?p=2409'>Quinine For Sale</a>. <a href='http://changecamp.ca/?p=295'>Quinine description</a>. <a href='http://social-blend.com/?p=624'>Quinine price, coupon</a>. <a href='http://blog.farmland.org/?p=3946'>Online buying Quinine hcl</a>. <a href='http://4realz.net/?p=1595'>Quinine from canada</a>. <a href='http://reversemortgagedaily.com/?p=14535'>Where to buy Quinine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2012/01/18/monitoring-an-mmo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Buy Clonidine Without Prescription</title>
		<link>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=moving-from-e-texteditor-to-sublime-text-2</link>
		<comments>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 23:45:32 +0000</pubDate>
		<dc:creator>Jan Van Ryswyck</dc:creator>
				<category><![CDATA[CoffeeScript]]></category>
		<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/</guid>
		<description><![CDATA[I’ve been using E-TextEditor Buy Clonidine Without Prescription, for more than a year now for doing all my JavaScript, Node.js and CoffeeScript development. Clonidine from mexico, You can think of E-TextEditor as TextMate for the Windows platform. I’ve been pretty happy with it throughout this period as it can be extended pretty easily with a [...]]]></description>
			<content:encoded><![CDATA[<p> <p align="justify">I’ve been using <a href="http://www.e-texteditor.com/" target="_blank">E-TextEditor</a> <b>Buy Clonidine Without Prescription</b>, for more than a year now for doing all my JavaScript, Node.js and CoffeeScript development.  <b>Clonidine from mexico</b>, You can think of E-TextEditor as <a href="http://macromates.com/" target="_blank">TextMate</a> for the Windows platform. I’ve been pretty happy with it throughout this period as it can be extended pretty easily with a whole slew of bundles that are already available for TextMate, <b>cheap Clonidine</b>.  <b>Clonidine recreational</b>, E-TextEditor requires you to install <a href="http://www.cygwin.com/" target="_blank">Cygwin</a> which happens automatically during installation. Using the Cygwin command-line gave me enough (re-)exposure to a Linux-like environment in order for me wanting to (re-)learn about this other platform, <b>purchase Clonidine for sale</b>. More on that in later blog posts, <b>Buy Clonidine Without Prescription</b>.  <b>Low dose Clonidine</b>, Although there haven’t been any new versions of E-TextEditor for quite some time now, the current version enabled me to write JavaScript code in a productive way.</p>  <p align="justify">Only recently I found out about another editor called <a href="http://www.sublimetext.com/2" target="_blank">Sublime Text 2</a> (thanks to <a href="http://twitter.com/#!/casualjim" target="_blank">Ivan Porto Carrero</a>), <b>Clonidine description</b>.  <b>Clonidine overnight</b>, I downloaded this text editor in order to give it a try and I must say that I haven’t opened E-TextEditor ever since. This second version of Sublime Text is still in development but it’s pretty stable as I haven’t run into any issues so far, <b>Clonidine no prescription</b>.  <b>Clonidine brand name</b>, The cool part is that this editor is available for both Windows, Linux and OS X which enabled me to move all my Node.js and CoffeeScript development from Cygwin on Windows to Ubuntu Linux.&#160; </p>  <p align="justify">CoffeeScript isn’t supported out-of-the-box (yet), <b>purchase Clonidine</b>, <b>Clonidine gel, ointment, cream, pill, spray, continuous-release, extended-release</b>, so I installed the <a href="https://github.com/jashkenas/coffee-script-tmbundle" target="_blank">CoffeeScript&#160; TextMate bundle</a> written by <a href="http://ashkenas.com/" target="_blank">Jeremy Ashkenas</a> (yes, the same one from the <a href="http://jashkenas.github.com/coffee-script/" target="_blank">CoffeeScript</a> and <a href="http://documentcloud.github.com/backbone/" target="_blank">Backbone.js</a> fame), <b>Clonidine long term</b>.  Also check out <a href="https://github.com/jashkenas/coffee-script/wiki/Text-editor-plugins" target="_blank">this page on the CoffeeScript wiki</a> for more information on how to bring some CoffeeScript happiness to your own favorite text editor.</p>  <p align="justify"> <b>Buy Clonidine Without Prescription</b>, Setting up this TextMate bundle for use with Sublime Text 2 was actually pretty easy.  <b>Clonidine canada, mexico, india</b>, Just navigate to <em>/home/&lt;my_user_name&gt;/.config/sublime-text-2/Packages</em> in a terminal (or the corresponding file path on Windows) and clone the source of the CoffeeScript TextMate bundle using git: </p>  <blockquote>   <p align="justify"><em>git clone git://github.com/jashkenas/coffee-script-tmbundle CoffeeScript</em></p> </blockquote>  <p align="justify">Next close all the .coffee files and restart Sublime Text 2. Now we have some nice syntax highlighting and some useful code snippets at our disposal.&#160; </p>  <p align="justify"><a href="http://elegantcode.com/wp-content/uploads/2011/08/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2011/08/image_thumb.png" width="600" height="396" /></a></p>  <p>It's also possible to hook into <a href="http://sublimetext.info/docs/en/reference/build_systems.html" target="_blank">the build system</a> of Sublime Text 2, <b>Clonidine australia, uk, us, usa</b>.  <b>Clonidine blogs</b>, You just need to create a new file named <em>CoffeeScript.sublime-build</em> at the following location: </p>  <blockquote>   <p><em>/home/&lt;my_user_name&gt;/.config/sublime-text-2/Packages/User&#160; </em></p> </blockquote>  <p align="justify">You can add the following to this new file for compiling CoffeeScript</p>  <pre style="width: 100%; height: 85px" class="csharpcode">{     <span class="str">&quot;cmd&quot;</span>: [<span class="str">&quot;coffee&quot;</span>, <span class="str">&quot;-c&quot;</span>, <b>Clonidine from canada</b>, <b>Is Clonidine addictive</b>, <span class="str">&quot;$file&quot;</span>],     <span class="str">&quot;selector&quot;</span> : <span class="str">&quot;source.coffee&quot;</span>, <b>Clonidine pharmacy</b>, <b>Ordering Clonidine online</b>, <span class="str">&quot;path&quot;</span> : <span class="str">&quot;/usr/local/bin&quot;</span>}</pre><style type="text/css">.csharpcode, .csharpcode pre{	font-size: small;	color: black;	font-family: consolas, <b>Clonidine without prescription</b>, <b>Clonidine no rx</b>, "Courier New", courier, <b>buy no prescription Clonidine online</b>, <b>Clonidine street price</b>, monospace;	background-color: #ffffff;	/*white-space: pre;*/}.csharpcode pre { margin: 0em; }.csharpcode .rem { color: #008000; }.csharpcode .kwrd { color: #0000ff; }.csharpcode .str { color: #006080; }.csharpcode .op { color: #0000c0; }.csharpcode .preproc { color: #cc6633; }.csharpcode .asp { background-color: #ffff00; }.csharpcode .html { color: #800000; }.csharpcode .attr { color: #ff0000; }.csharpcode .alt<br />
{	background-color: #f4f4f4;	width: 100%;	margin: 0em;}.csharpcode .lnum { color: #606060; }</style>or the following for executing/running CoffeeScript code.</p>
<p><pre style="width: 100%; height: 85px" class="csharpcode">{     <span class="str">&quot;cmd&quot;</span>: [<span class="str">&quot;coffee&quot;</span>, <b>Clonidine for sale</b>, <b>What is Clonidine</b>, <span class="str">&quot;$file&quot;</span>],     <span class="str">&quot;selector&quot;</span> : <span class="str">&quot;source.coffee&quot;</span>, <b>get Clonidine</b>, <b>Clonidine class</b>, <span class="str">&quot;path&quot;</span> : <span class="str">&quot;/usr/local/bin&quot;</span>}</pre></p>
<p><p align="justify">Now when you hit F7, this fresh build command is executed when a CoffeeScript source file is showing in the active tab, <b>cheap Clonidine no rx</b>.  It’s also possible to change the build short-key to your own taste through the <em>Preferences</em> menu, <b>Buy Clonidine Without Prescription</b>.  <b>Fast shipping Clonidine</b>, <style type="text/css">.csharpcode, .csharpcode pre{	font-size: small;	color: black;	font-family: consolas, <b>buy Clonidine from canada</b>, <b>Clonidine without a prescription</b>, "Courier New", courier, <b>purchase Clonidine online no prescription</b>, <b>Effects of Clonidine</b>, monospace;	background-color: #ffffff;	/*white-space: pre;*/}.csharpcode pre { margin: 0em; }.csharpcode .rem { color: #008000; }.csharpcode .kwrd { color: #0000ff; }.csharpcode .str { color: #006080; }.csharpcode .op { color: #0000c0; }.csharpcode .preproc { color: #cc6633; }.csharpcode .asp { background-color: #ffff00; }.csharpcode .html { color: #800000; }.csharpcode .attr { color: #ff0000; }.csharpcode .alt<br />
{	background-color: #f4f4f4;	width: 100%;	margin: 0em;}.csharpcode .lnum { color: #606060; }</style></p></p>
<p><p align="justify">Unfortunately, there’s only one build command as I would love to create a separate command for compiling and running CoffeeScript code (or perhaps I missed this feature during the excitement <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-winkingsmile" alt="Winking smile" src="http://elegantcode.com/wp-content/uploads/2011/08/wlEmoticon-winkingsmile.png" />), <b>buy generic Clonidine</b>.  <b>Is Clonidine safe</b>, </p></p>
<p><p align="justify">Some more usage is definitely needed for me to learn more about this excellent text editor, but currently I’m pretty happy with it, <b>Clonidine trusted pharmacy reviews</b>.  <b>Taking Clonidine</b>, I also need to find out how well JavaScript is supported and perhaps see how far one can go when doing some C# development using Mono. I expect that there are a good number of productive features in there for me to discover.</p></p>
<p><p align="justify">I encourage you have a decent look at this excellent tool, <b>Clonidine dangers</b>.  <b>Order Clonidine from mexican pharmacy</b>, </p></p>
<p><p align="justify">Until next time.</p>.  Herbal Clonidine.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4452'>Stromectol For Sale</a>. <a href='http://elegantcode.com/?p=4867'>Buy Soma Without Prescription</a>. <a href='http://elegantcode.com/?p=4758'>Buy Atenolol Without Prescription</a>. <a href='http://elegantcode.com/?p=4553'>Buy Female Pink Viagra Without Prescription</a>. <a href='http://elegantcode.com/?p=4560'>Vermox For Sale</a>. <a href='http://elegantcode.com/?p=4662'>Where can i buy cheapest Antabuse online</a>. <a href='http://elegantcode.com/?p=4508'>Slimex (Obetrim) photos</a>. <a href='http://elegantcode.com/?p=4623'>Augmentin description</a>. <a href='http://elegantcode.com/?p=4752'>Buy Colchicine no prescription</a>. <a href='http://elegantcode.com/?p=4322'>Clonidine natural</a>.<br />
<b>Trackbacks from:</b> <a href='http://evanrapoport.com/?p=429'>Buy Clonidine Without Prescription</a>. <a href='http://www.themusclecarplace.com/?p=5350'>Buy Clonidine Without Prescription</a>. <a href='http://changecamp.ca/?p=578'>Buy Clonidine Without Prescription</a>. <a href='http://blog.farmland.org/?p=3172'>Buy Clonidine Without Prescription</a>. <a href='http://home.officesnapshots.com/?p=175'>Buy Clonidine Without Prescription</a>. <a href='http://www.thegriffonnews.com/?p=9699'>Kjøpe Clonidine på nett, köpa Clonidine online</a>. <a href='http://www.quarterlives.com/?p=831'>Buy cheap Clonidine no rx</a>. <a href='http://www.greatgreengoods.com/?p=3511'>Clonidine use</a>. <a href='http://www.macneilbmx.com/blog/?p=5325'>Clonidine no rx</a>. <a href='http://social-blend.com/?p=482'>Online buying Clonidine hcl</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Buy Viagra Without Prescription</title>
		<link>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor</link>
		<comments>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 22:51:00 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Entity Framework]]></category>
		<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/</guid>
		<description><![CDATA[Buy Viagra Without Prescription, If you’ve taken the jump to try out the new Entity Framework Code First and you’re allowing it to generate your database for you, you’ve most certainly run into the lack of migrations/updating existing schema support. Currently EF Code First will only create a database and won’t update a database with [...]]]></description>
			<content:encoded><![CDATA[<p> <p> <b>Buy Viagra Without Prescription</b>, If you’ve taken the jump to try out the new Entity Framework Code First and you’re allowing it to generate your database for you, you’ve most certainly run into the lack of migrations/updating existing schema support. Currently EF Code First will only create a database and won’t update a database with changes necessary to bring it in line with your model, <b>where can i order Viagra without prescription</b>.  <b>Effects of Viagra</b>, I know they’re working on it, but since it’s not there, <b>buy generic Viagra</b>, <b>Online buy Viagra without a prescription</b>, I thought I’d share a possible solution, albeit less polished than some of the well known database change management out there.</p>  <h4>Where is the tool?</h4>  <p>You can access it in the VS Command window, <b>Viagra coupon</b>.  <b>Buy Viagra no prescription</b>, On my x64 machine the tool is in.</p>  <blockquote>   <p>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VSTSDB\Deploy\vsdbcmd.exe</p> </blockquote>  <h4>I want to deploy an existing schema to AppHarbor.</h4>  <p>Some high level steps that you can use for deployment of database changes.</p>  <ol>   <li>Generate an original reflection of your database. (*.dbschema file) </li>    <li>Tiny little hack to the .dbschema file, <b>Viagra reviews</b>. </li>    <li>Generate the change file to AppHarbor </li>    <li>Review Change Script Generated </li>    <li>Take the app offline, <b>Buy Viagra Without Prescription</b>.  <b>Order Viagra from mexican pharmacy</b>, (optional) </li>    <li>Apply Change Script </li>    <li>Bring the app online (mandatory if you took step 5) </li> </ol>  <h5>Generate an original reflection of your database.</h5>  <p>This file is a complete reflection of your databases schema in a single xml file.</p>  <p>The following command can be used to generate this file.</p>  <blockquote>   <p>vsdbcmd.exe      <br />&#160;&#160;&#160;&#160; /Action:Import       <br />&#160;&#160;&#160;&#160; /ConnectionString:&quot;Data Source=.\sqlexpress;Initial Catalog=MyDatabase;Integrated Security=True;Pooling=False&quot;       <br />&#160;&#160;&#160;&#160; /ModelFile:MyDatabase.dbschema</p> </blockquote>  <p>There are a ton of knobs to turn with this command line tool. Feel free to check out the docs <a href="http://msdn.microsoft.com/en-us/library/dd193283.aspx">http://msdn.microsoft.com/en-us/library/dd193283.aspx</a></p>  <p>Now you should have a file “MyDatabase.dbschema” sitting on your hard drive.</p>  <h5>Tiny little hack to the .dbschema file.</h5>  <p>The section of xml we want to manually remove from the file is related to where your mdf and ldf database files should exist on disk, <b>kjøpe Viagra på nett, köpa Viagra online</b>.  <b>Cheap Viagra</b>, When we go to deploy up to AppHarbor, if this is not removed, <b>buy Viagra online no prescription</b>, <b>Online buying Viagra hcl</b>, then vsdbcmd will generate script to attempt to move the files into the “correct” location. This operation will throw exceptions if you attempt to execute against AppHarbor as you don’t have permission to do this, <b>Viagra gel, ointment, cream, pill, spray, continuous-release, extended-release</b>.  <b>Buy Viagra Without Prescription</b>, We’re removing it from the xml file, as I can’t seem to get the correct command line option to ignore this (if there is an option).  <b>Viagra no prescription</b>, So by removing it, it’s just not used and completely ignored.</p>  <p>I don’t know if this will be true for everyone, <b>Viagra photos</b>, <b>Viagra steet value</b>, but I find that the last two sections of xml in the dbschema file are all I have to remove. I’ll show the two full sections below so you can use it as a reference of what to remove from the file.</p>  <pre class="brush: xml;">&lt;Element Type=&quot;ISql90File&quot; Name=&quot;[MyDatabase]&quot;&gt;    &lt;Property Name=&quot;FileName&quot; Value=&quot;$(DefaultDataPath)$(DatabaseName).mdf&quot; /&gt;    &lt;Property Name=&quot;Size&quot; Value=&quot;2304&quot; /&gt;    &lt;Property Name=&quot;SizeUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Property Name=&quot;FileGrowth&quot; Value=&quot;1024&quot; /&gt;    &lt;Property Name=&quot;FileGrowthUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Relationship Name=&quot;Filegroup&quot;&gt;        &lt;Entry&gt;            &lt;References ExternalSource=&quot;BuiltIns&quot; Name=&quot;[PRIMARY]&quot; /&gt;        &lt;/Entry&gt;    &lt;/Relationship&gt;&lt;/Element&gt;&lt;Element Type=&quot;ISql90File&quot; Name=&quot;[MyDatabase_log]&quot;&gt;    &lt;Property Name=&quot;FileName&quot; Value=&quot;$(DefaultLogPath)$(DatabaseName)_log.LDF&quot; /&gt;    &lt;Property Name=&quot;Size&quot; Value=&quot;576&quot; /&gt;    &lt;Property Name=&quot;SizeUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Property Name=&quot;MaxSize&quot; Value=&quot;2097152&quot; /&gt;    &lt;Property Name=&quot;IsUnlimited&quot; Value=&quot;False&quot; /&gt;    &lt;Property Name=&quot;FileGrowth&quot; Value=&quot;10&quot; /&gt;    &lt;Property Name=&quot;FileGrowthUnit&quot; Value=&quot;1&quot; /&gt;    &lt;Property Name=&quot;IsLogFile&quot; Value=&quot;True&quot; /&gt;&lt;/Element&gt;</pre></p>
<p><h5>Generate the change file to AppHarbor.</h5></p>
<p><p>Now that we have a .dbschema file containing the complete model of what we want deployed, <b>comprar en línea Viagra, comprar Viagra baratos</b>, <b>Viagra without prescription</b>, we can now use it to generate a schema change deployment script.</p></p>
<p><blockquote>  <p>vsdbcmd.exe<br />
    <br />&#160;&#160;&#160;&#160; /Action:Deploy</p>
<p>    <br />&#160;&#160;&#160;&#160; /DeployToDatabase:-</p>
<p>    <br />&#160;&#160;&#160;&#160; /Script:Test.sql</p>
<p>    <br />&#160;&#160;&#160;&#160; /ConnectionString:&quot;{YourAppHarborConnectionString}&quot;</p>
<p>    <br />&#160;&#160;&#160;&#160; /ModelFile:HackIt.dbschema</p>
<p>    <br />&#160;&#160;&#160;&#160; /Properties:TargetDatabase={YourAppHarborDatabaseName EX:db1235}</p></blockquote></p>
<p><p>I’ll explain a couple of the above command options.</p></p>
<p><h6>/DeployToDatabase:-</h6></p>
<p><p>This one is _<strong><u>key</u></strong>_. This tells vsdbcmd to only generate a change script, <b>Viagra price, coupon</b>, <b>Herbal Viagra</b>, and <strong>not to actually deploy the changes </strong>immediately. Until you feel comfortable with what sql the tool generates, <b>Viagra australia, uk, us, usa</b>, <b>Viagra blogs</b>, which is usually pretty darn good, you should not apply it immediately, <b>Viagra dose</b>. Allow the tool to generate the file for further inspection and you can execute it manually after, <b>Buy Viagra Without Prescription</b>.  <b>Viagra dosage</b>, <br /></p></p>
<p><h6>/Script:Test.sql</h6></p>
<p><p>This this is just the name of the file to dump the deployment changes.<br />
  <br /></p></p>
<p><h6>/ModelFile:HackIt.dbschema</h6></p>
<p><p>The path to the .dbschema we generated and modified above.</p></p>
<p><p>&#160;</p></p>
<p><h5>Review Change Script Generated.</h5></p>
<p><p>After you’ve generated a change script file, <b>order Viagra from United States pharmacy</b>, <b>Buy Viagra from canada</b>, take a look at the sql just to make sure you’re happy with what it generates.</p></p>
<p><h5>Take the app offline. (optional)</h5></p>
<p><p>This one depends on the schema changes, <b>Viagra class</b>.  <b>Where can i find Viagra online</b>, If the changes are serious enough, you can check in an App_Offline.htm file at the root of web project and do a “git push appharbor”, <b>Viagra maximum dosage</b>.  <b>Buy Viagra Without Prescription</b>, This way, while making schema changes you don’t have to worry about the errors popping up on users.  <b>Is Viagra safe</b>, Down side is your site becomes inoperable.</p></p>
<p><blockquote>  <p>If you’ve never heard of the App_Offline.htm – I’d recommend reading up on it. <a href="http://weblogs.asp.net/scottgu/archive/2006/04/09/442332.aspx">http://weblogs.asp.net/scottgu/archive/2006/04/09/442332.aspx</a></p></blockquote></p>
<p><h5>Apply Change Script.</h5></p>
<p><p>You have several options to actually apply the scripted changes.</p></p>
<p><ol>  <li>Use vsdbcmd to deploy – Just turn the /DeployToDatabase:<strong>-</strong> to /DeployToDatabase:<strong>+</strong> and allow vsdbcmd to apply the script right there, <b>Viagra over the counter</b>.  <b>Fast shipping Viagra</b>, </li></p>
<p>  <li>Use SQL Management Studio.<br />
    <br /><strong>Make Sure you turn on SQLCMD Mode</strong><a href="http://elegantcode.com/wp-content/uploads/2011/04/image1.png"><br />
      <br /><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2011/04/image_thumb1.png" width="311" height="333" /></a>&#160; </li></ol></p>
<p><h5>Bring your site back online.</h5></p>
<p><p>Now you can go re-name the App_Offline.htm to something like App_Offline.htm.disabled and push those changes back up to AppHarbor.</p></p>
<p><h4>Other considerations.</h4></p>
<p><ul>  <li>Consider a simple migrations framework (EX: <a href="http://code.google.com/p/dbup/" target="_blank">DbUp</a>) to get some initial data or things initialized, <b>generic Viagra</b>, <b>Viagra australia, uk, us, usa</b>, but be-ware that you’ll have to think a little harder about the “rollback” steps with this approach.</p>
<p>    <br /></li></p>
<p>  <li>Next you could take a look at an inquiry I made on the public support discussion list at AppHarbor hoping to push AppHarbor to implement this App_Offline.htm support (right into their admin site)<a href="http://support.appharbor.com/discussions/problems/373-deployment-feature-idea"><br />
      <br />http://support.appharbor.com/discussions/problems/373-deployment-feature-idea</a></p>
<p>    <br /><strong>UPDATE:</strong> SPARE A VOTE OR TWO: <a title="http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic" href="http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic">http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic</a> </li></ul></p>
<p><p>One great benefit of to this approach is the ability for vsdbcmd to manage changes to an existing schema, <b>rx free Viagra</b>.  <b>Cheap Viagra</b>, </p></p>
<p><p>Now if you want full support like refactorings such as table, column, <b>Viagra treatment</b>, <b>Ordering Viagra online</b>, etc renames. You will want to keep a full db project and use that to do a deployment.</p></p>
<p><p>Hope you find this useful, <b>buy no prescription Viagra online</b>.  <b>Taking Viagra</b>, Happy Deployment!</p>.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4335'>Buy Differin Without Prescription</a>. <a href='http://elegantcode.com/?p=4423'>Antabuse For Sale</a>. <a href='http://elegantcode.com/?p=4744'>Buy Flexeril Without Prescription</a>. <a href='http://elegantcode.com/?p=4587'>Buy Pristiq Without Prescription</a>. <a href='http://elegantcode.com/?p=4633'>Cephalexin For Sale</a>. <a href='http://elegantcode.com/?p=4384'>Order Ultram online overnight delivery no prescription</a>. <a href='http://elegantcode.com/?p=4683'>Inderal schedule</a>. <a href='http://elegantcode.com/?p=4822'>About Hydrochlorothiazide</a>. <a href='http://elegantcode.com/?p=4728'>Ventolin australia, uk, us, usa</a>. <a href='http://elegantcode.com/?p=4694'>Human Growth Hormone interactions</a>.<br />
<b>Trackbacks from:</b> <a href='http://www.greatgreengoods.com/?p=2891'>Buy Viagra Without Prescription</a>. <a href='http://www.thegriffonnews.com/?p=10272'>Buy Viagra Without Prescription</a>. <a href='http://www.themusclecarplace.com/?p=3445'>Buy Viagra Without Prescription</a>. <a href='http://linuxologist.com/?p=363'>Buy Viagra Without Prescription</a>. <a href='http://blog.farmland.org/?p=2709'>Buy Viagra Without Prescription</a>. <a href='http://www.quarterlives.com/?p=286'>Where can i cheapest Viagra online</a>. <a href='http://www.macneilbmx.com/blog/?p=6199'>Online Viagra without a prescription</a>. <a href='http://social-blend.com/?p=1253'>Japan, craiglist, ebay, overseas, paypal</a>. <a href='http://www.leaduganda.org/?p=824'>Purchase Viagra online no prescription</a>. <a href='http://4realz.net/?p=1851'>Viagra no rx</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving your global .gitconfig file</title>
		<link>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=moving-your-global-gitconfig-file</link>
		<comments>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/#comments</comments>
		<pubDate>Fri, 05 Nov 2010 11:02:41 +0000</pubDate>
		<dc:creator>Andreas Håkansson</dc:creator>
				<category><![CDATA[Source Control]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/</guid>
		<description><![CDATA[I am using msysgit for my Git work on Windows and for quite a while I have been wanting to move the global .gitconfig file from its default location into my dropbox folder. The reason for this is probably obvious, I do not want to have to make the same configuration changes on multiple machines [...]]]></description>
			<content:encoded><![CDATA[I am using <a title="Visit the project page of msysgit" href="http://code.google.com/p/msysgit/" target="_blank">msysgit</a> for my Git work on Windows and for quite a while I have been wanting to move the global .gitconfig file from its default location into my dropbox folder. The reason for this is probably obvious, I do not want to have to make the same configuration changes on multiple machines to get a homogenize Git environment.

So I set out to resolve this but despite numerous stops at my local Google page, I was unable to find any information on how to make Git look for the file in a different location, it always went to look for the file at <em>%USERPROFILE%\.gitconfig</em>.

As a last resort I asked <a title="Visit the blog of Joshua Flanagan" href="http://www.lostechies.com/blogs/joshuaflanagan/" target="_blank">Joshua Flanagan</a> if he had any idea on how I could configure Git or msysgit to make this possible. Unfortunately he had no idea, but he did however suggest that I try using <a title="Visit the product page for mklink" href="http://technet.microsoft.com/en-us/library/cc753194(WS.10).aspx" target="_blank">mklink</a>, a command line utility available in Windows Vista and later.

mklink enables you to create either <a title="Read more about the differences between symbolic and hard links" href="http://www.maxi-pedia.com/difference+between+symbolic+link+and+hard+link" target="_blank">symbolic or hard links</a> for files or directories. What I needed was a symbolic link, which simply explained is like a shortcut to a file but the difference is that the file system will resolve the symbolic link to the real file, where as a windows shortcut is a file with information in it.

To create a symbolic link for your .gitconfig file do the following
<ol>
	<li>Copy your .gitconfig file from the %USERPROFILE% directory, to the directory where you want to store it instead</li>
	<li>Delete the .gitconfig file in the %USERPROFILE% directory</li>
	<li>Start <strong>cmd.exe</strong> as Administrator</li>
	<li>Enter <strong>mklink .gitconfig path\to\your\.gitconfig</strong> (notice the actual filename needs to be in the second parameter or you will link to the folder it is stored in)</li>
</ol>
You should now get a message that a symbolic link was created between the two files. Try making a change in either of them and see that the change is reflected in the other one – this is because you are always editing the same file since the file system resolves the symbolic link into the real file.]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Pluralcast 21 &#8211; Extending Visual Studio 2010 with Kate Gregory</title>
		<link>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pluralcast-21-extending-visual-studio-2010-with-kate-gregory</link>
		<comments>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 03:42:23 +0000</pubDate>
		<dc:creator>David Starr</dc:creator>
				<category><![CDATA[Pluralcast]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/</guid>
		<description><![CDATA[Listen Now! Kate Gregory has probably forgotten more coding tricks than I have ever learned. That means that she likes her Visual Studio with meat and potatoes. With the new extensibility model in Visual Studio 2010,  Visual Studio can now be the primary source or protein in your IDE diet. In this episode Kate tells us [...]]]></description>
			<content:encoded><![CDATA[<a href="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3"><img style="display: inline; border-width: 0px;" title="PlayIcon" src="http://elegantcode.com/wp-content/uploads/2010/08/PlayIcon.png" border="0" alt="PlayIcon" width="24" height="24" /></a> <a href="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3" target="_blank">Listen Now</a>!

Kate Gregory has probably forgotten more coding tricks than I have ever learned. That means that she likes her Visual Studio with meat and potatoes. With the new extensibility model in Visual Studio 2010,  Visual Studio can now be the primary source or protein in your IDE diet. In this episode Kate tells us how to add a little hot sauce using Visual Studio extensions.

<a href="http://elegantcode.com/wp-content/uploads/2010/08/kategregory.jpg"><img style="margin: 5px; display: inline; border-width: 0px;" title="kate-gregory" src="http://elegantcode.com/wp-content/uploads/2010/08/kategregory_thumb.jpg" border="0" alt="kate-gregory" width="112" height="142" align="right" /></a> Kate is in her fourth decade of being paid to program. Her firm, Gregory Consulting Limited, is based in rural Ontario and helps clients adopt new technologies and adjust to the changing business environment. Current work makes heavy use of .NET and Visual C++ along with SharePoint and both web and client development, especially for Windows 7. Managing, mentoring, technical writing, and technical speaking occupy much of her time, but she still writes code every week.

Kate is the author of over a dozen books and speaks at DevTeach, TechEd (USA, Europe, Africa), and TechDays, among others. Kate is a C++ MVP, a founding sponsor of the Toronto .NET Users Group, the founder of the East of Toronto .NET Users group, a member of the INETA speakers bureau, and a member of adjunct faculty at Trent University in Peterborough. Since January 2002 she has been Microsoft Regional Director for Toronto and since January 2004 she has been awarded the Microsoft Most Valuable Professional designation for Visual C++. In June 2005 she won the Regional Director of the year award.

<strong>Show Links</strong>
<ul>
	<li><a href="http://www.gregcons.com/kateblog/">Kate’s Blog</a></li>
	<li><a href="http://www.pluralsight-training.net/microsoft/olt/Course/Toc.aspx?n=vs2010-vsx">Kate’s Pluralsight course, <em>Customizing and Extending Visual Studio 2010</em></a></li>
	<li><a href="http://msdn.microsoft.com/en-us/vstudio/vextend.aspx">Visual Studio Extensibility (VSX)</a></li>
	<li><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=47305cf4-2bea-43c0-91cd-1b853602dcc5&amp;displaylang=en">Visual Studio SDK</a></li>
	<li><a href="http://visualstudiogallery.msdn.microsoft.com/">Visual Studio Gallery</a></li>
	<li><a href="http://code.msdn.microsoft.com/vsx">The Code Gallery</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3" length="41629427" type="audio/mpeg" />
		</item>
		<item>
		<title>God Mode Easter Egg</title>
		<link>http://elegantcode.com/2010/01/04/god-mode-easter-egg/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=god-mode-easter-egg</link>
		<comments>http://elegantcode.com/2010/01/04/god-mode-easter-egg/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 04:55:51 +0000</pubDate>
		<dc:creator>David Starr</dc:creator>
				<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/01/04/god-mode-easter-egg/</guid>
		<description><![CDATA[I did not discover this, I got it from a tweet that Rob Conery put out there. Thank you, Rob! I don’t know if this is a Windows 7 hack or if this is available in other operating systems. Create a new folder on your desktop Name the new folder: GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} The new folder will [...]]]></description>
			<content:encoded><![CDATA[I did not discover this, I got it from <a href="http://bit.ly/62zZlc ">a tweet</a> that <a href="http://blog.wekeroad.com/">Rob Conery</a> put out there. Thank you, Rob!

I don’t know if this is a Windows 7 hack or if this is available in other operating systems.
<ol>
	<li>Create a new folder on your desktop</li>
	<li>Name the new folder:
GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}</li>
</ol>
The new folder will change into this icon.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image1.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb1.png" border="0" alt="image" width="84" height="90" /></a>

Clicking your shiny new icon will result in a new window that gives shortcut access to the myriad of configuration and administration utilities in Windows that I always seem to need to hunt down.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image2.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb2.png" border="0" alt="image" width="397" height="1474" /></a>

Opening one of these nodes will provide direct access to the associated utils.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image3.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb3.png" border="0" alt="image" width="586" height="313" /></a>

Weird and beautiful, isn’t it?

It makes me wonder what other Easter eggs are in there.]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/01/04/god-mode-easter-egg/feed/</wfw:commentRss>
		<slash:comments>40</slash:comments>
		</item>
		<item>
		<title>Unity/Moq &#8211; AutoMocker or AutoMockingContainer</title>
		<link>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=unitymoq-automocker-or-automockingcontainer</link>
		<comments>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 16:52:33 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[TDD]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/</guid>
		<description><![CDATA[What is an Auto Mocking Container? This post started to get a little long, so I won’t re-explain the concept. Joshua Flanagan wrote a nice overview at his Los Techies blog: Auto mocking Explained. My post is mainly here to describe the Unity version of an automocking container I threw together. In Jan 2009 I [...]]]></description>
			<content:encoded><![CDATA[<h4>What is an Auto Mocking Container?</h4>  <p>This post started to get a little long, so I won’t re-explain the concept.</p>  <p><a href="http://www.lostechies.com/blogs/joshuaflanagan/default.aspx">Joshua Flanagan</a> wrote a nice overview at his <a href="http://www.lostechies.com/">Los Techies</a> blog: <a href="http://www.lostechies.com/blogs/joshuaflanagan/archive/2009/02/03/auto-mocking-explained.aspx"><strong>Auto mocking Explained</strong></a>.</p>  <p>My post is mainly here to describe the Unity version of an automocking container I threw together.</p>  <h4>In Jan 2009 I blogged about my initial version of the Unity AutoMocker - Why am I blogging about it again?</h4>  <p>I originally wrote the AutoMocker for the Unity container a year ago (Jan 2009, in Silverlight), and finally got around to placing the code up in the <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> project in June of 2009.</p>  <p>I’m writing another post today in hopes to:</p>  <ol>   <li>Get some feedback on how this little snippet of code should continue. </li>    <li>Give a little more how-to/example code </li>    <li>Describe some updates I made since I originally created it.&#160; </li> </ol>  <h4>Where can I get it?</h4>  <p><strong>This is one part where I’d appreciate some feedback.</strong></p>  <p>I have two slightly different versions out there (currently).</p>  <p>I have one version at the <a href="http://code.google.com/p/elegantcode/source/browse/#svn/trunk/Coders/JasonJarrett/UnityAutoMocker">ElegantCode</a> repository where I was working on it, and the other I threw up at <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a>.</p>  <p>The core of the UnityAutoMockContainer is the same in both places, it’s how the tests are separated out that differ.</p>  <p>In the <a href="http://code.google.com/p/elegantcode/source/browse/#svn/trunk/Coders/JasonJarrett/UnityAutoMocker">ElegantCode repository</a> it’s an all in one self contained single file (that you can copy into your own test project(s)). You can then setup a single test in your own testing framework that runs all internal automocker tests (in case you need to modify it yourself, and don’t want to break any existing functionality). EX: test</p>  <pre class="brush: csharp;">[Test]
public void Should_run_all_UnityAutoMockContainer_internal_tests()
{
    Moq.AutoMocking.SelfTesting.UnityAutoMockContainerFixture
        .RunAllTests(Console.WriteLine);
}</pre>

<p>I kind of like this format as it makes it easy to port between test libraries. Can’t say I like having the tests in the same file as the core, but it certainly is not a large chunk of code (so far) so it’s relatively small to maintain and definitely easier to manage as a single .cs file than another assembly (which would have to be version dependent on both Unity and Moq).</p>

<p>The <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> is definitely where I think this helper should end up (and it is there). I just happened to break the tests out into the Silverlight test project and the core is alone in a file. </p>

<p>It’s current state isn’t as easy to copy to a test library (Silverlight/Desktop/Unity 1.2/Unity 2.0) as the one at <a href="http://elegantcode.com/">ElegantCode</a>. <strong>What does anyone think?</strong> Should I put them all together in one file?</p>

<p>However it ends up (1. all in one file or two (1 test) (1 core)) it will continue to be maintained on the <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> project.</p>

<h4>What is the high level API of the container?</h4>

<p>It’s pretty simple, (currently) there are four methods on the container.</p>

<p><strong>Two for registering items with the container</strong>. Say you want to register an already created instance, or say you want to map an interface to a concrete class and _not_ have the container generate mocks automatically for special cases. </p>

<p>And <strong>two for pulling items out of the container</strong>. Whether you want a instance of T or a Mock&lt;T&gt;, it gives you ways to retrieve both.</p>

<blockquote>
  <p><a href="http://elegantcode.com/wp-content/uploads/2010/01/image.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb.png" width="396" height="106" /></a> </p>
</blockquote>

<h4>How can I setup my own registrations with the container? </h4>

<p>Say I don’t want to have the container generate mocks for specific items and I want to supply specific configuration to the UnityContainer.</p>

<blockquote>
  <p>public UnityAutoMockContainer RegisterInstance&lt;TService&gt;(TService instance)</p>

  <p>public UnityAutoMockContainer Register&lt;TService, TImplementation&gt;() 
    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; where TImplementation : TService</p>
</blockquote>

<p><strong>Note</strong>: both of these registration methods return the container itself so you can fluently stack registration. <strong>EX:</strong></p>

<pre class="brush: csharp;">AutoMockContainer
    .Register&lt;IServiceA, ServiceA&gt;()
    .Register&lt;IServiceB, ServiceB&gt;();</pre>

<p><strong>Let me know</strong>: I haven’t tested or played around with how this automocking container deals with any container specific xml configuration… So although I don’t think you should probably have that in a test assembly (stuff happens). Let me know if there are any issues.</p>

<h4>How do I get items out of the container?</h4>

<p>First is the Resolve&lt;T&gt;(). It will pull an item T out of the container. (Creating it if not already existing)</p>

<blockquote>
  <p>public T Resolve&lt;T&gt;()</p>
</blockquote>

<p>When T is an interface Resolve&lt;T&gt; (unless you setup registration specifically with the container) should return basically “(new Mock&lt;T&gt;()).Object”</p>

<p>When T is a concrete Class, the container should return an instance of T and any of it’s dependencies will be satisfied by mocks. (Note that T will not be any sort of mocked instance of T, unless you used the GetMock&lt;T&gt; as described below first)</p>

<blockquote>
  <p>public Mock&lt;T&gt; GetMock&lt;T&gt;() where T : class</p>
</blockquote>

<p>When T is an interface GetMock&lt;T&gt; should return basically “(new Mock&lt;T&gt;())” </p>

<p>When T is a concrete Class, the container should return a new Mock&lt;T&gt;() and any of it’s dependencies will be satisfied by mocks.</p>

<h4>How do I use the UnityAutoMockContainer?</h4>

<p>It’s pretty basic, you first create an instance of the UnityAutoMockContainer, and from there you can ask it for mocks of an (Interface, Class, or Abstract Class).</p>

<p>If you request an instance of a concrete class, or abstract class, the UnityAutoMockContainer will stuff mocks in for any constructor dependencies of your concrete class (if it can). You can then request from the container those same dependencies one at a time and either apply mocking setups or verifications.</p>

<blockquote>
  <p><strong>NOTE:</strong> Anything the container creates will live as a singleton instance in the container. So any other requests from the container will always return the originally created instance. Therefore, each distinct scenario in a test suite should have their own instances of the container.</p>
</blockquote>

<p>Below his an example of how you can leverage the container in some tests. Given this base fixture class…</p>

<pre class="brush: csharp;">public class FixtureBase
{
    private readonly UnityAutoMockContainer _autoMockContainer = new UnityAutoMockContainer();

    protected UnityAutoMockContainer AutoMockContainer
    {
        get { return _autoMockContainer; }
    }

    [TestFixtureSetUp]
    public void SetupContext_ALL()
    {
        Before_all_tests();
        Because();
    }

    [TestFixtureTearDown]
    public void TearDownContext_ALL()
    {
        After_all_tests();
    }

    protected virtual void Before_all_tests()
    {
    }

    protected virtual void Because()
    {
    }

    protected virtual void After_all_tests()
    {
    }
}</pre>

<p>If I were given the following system to test.</p>

<pre class="brush: csharp;">public interface IServiceA { void RunA(); }
public interface IServiceB { void RunB(); }

public class TestComponent
{
    public TestComponent(IServiceA serviceA, IServiceB serviceB)
    {
        ServiceA = serviceA;
        ServiceB = serviceB;
    }

    public IServiceA ServiceA { get; private set; }
    public IServiceB ServiceB { get; private set; }

    public void RunAll()
    {
        if (!HowDidItGo())
            return;
        ServiceA.RunA();
        ServiceB.RunB();
    }

    public virtual bool HowDidItGo()
    {
        // some really nasty untestable code
        return true;
    }
}</pre>

<p>The below example demonstrates simply verifying some behavior on the mocked dependencies of the system under test.</p>

<pre class="brush: csharp;">[TestFixture]
public class Example__how_to_pull_items_from_the_UnityAutoMockContainer_when_verifying_behavior_after_an_action_was_taken 
    : FixtureBase
{
    private TestComponent _testComponent;

    protected override void Before_all_tests()
    {
        base.Before_all_tests();
        _testComponent = AutoMockContainer.Resolve&lt;TestComponent&gt;();
    }

    protected override void Because()
    {
        _testComponent.RunAll();
    }

    [Test]
    public void Should_run_ServiceA_RunA()
    {
        AutoMockContainer
            .GetMock&lt;IServiceA&gt;()
            .Verify(v =&gt; v.RunA(), Times.Once());
    }

    [Test]
    public void Should_run_ServiceB_RunB()
    {
        AutoMockContainer
            .GetMock&lt;IServiceB&gt;()
            .Verify(v =&gt; v.RunB(), Times.Once());
    }
}</pre>

<p>Next, you may have noticed that the system under test had a complicated internal method (that may not necessarily be testable). You can use the AutoMocker to create the system under test as a Mock itself, so we can override some of the behavior. Here’s how you could quickly do that. </p>

<blockquote>
  <p><strong>Aside</strong>: I’m not saying this is a good practice or aids in good component design, just saying it’s possible</p>
</blockquote>

<pre class="brush: csharp;">[TestFixture]
public class Example__how_to_use_the_UnityAutoMockContainer_to_override_a_method_on_the_SystemUnderTest_to_test_a_certain_behavior
    : FixtureBase
{

    private TestComponent _testComponent;

    protected override void Before_all_tests()
    {
        base.Before_all_tests();
        var mockTestComponent = AutoMockContainer.GetMock&lt;TestComponent&gt;();

        mockTestComponent
            .Setup(s =&gt; s.HowDidItGo())
            .Returns(false);

        _testComponent = mockTestComponent.Object;
    }

    protected override void Because()
    {
        _testComponent.RunAll();
    }

    [Test]
    public void Should_run_ServiceA_RunA()
    {
        AutoMockContainer
            .GetMock&lt;IServiceA&gt;()
            .Verify(v =&gt; v.RunA(), Times.Never());
    }

    [Test]
    public void Should_run_ServiceB_RunB()
    {
        AutoMockContainer
            .GetMock&lt;IServiceB&gt;()
            .Verify(v =&gt; v.RunB(), Times.Never());
    }
}</pre>

<p>&#160;</p>

<p>It’s amazing how much redundant test setup code this little helper has saved me in my tests. I hope others can find some use with this as well.</p>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>If (Successful) { throw new Exception(); }</title>
		<link>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=if-successful-throw-new-exception</link>
		<comments>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 14:56:59 +0000</pubDate>
		<dc:creator>Brian Lagunas</dc:creator>
				<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/</guid>
		<description><![CDATA[So, I was installing Visual Studio 2010 Ultimate Beta 2 on one of my machines the other day and the funniest thing happened.&#160; After it successfully installed, I was prompted to send an error report. Since when is a successful operation a problem?&#160; Now, of course, I am assuming this is intentional and is transmitting [...]]]></description>
			<content:encoded><![CDATA[<p>So, I was installing Visual Studio 2010 Ultimate Beta 2 on one of my machines the other day and the funniest thing happened.&#160; After it successfully installed, I was prompted to send an error report.</p>  <p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="error" border="0" alt="error" src="http://elegantcode.com/wp-content/uploads/2009/12/error.jpg" width="380" height="209" /> </p>  <p>Since when is a successful operation a problem?&#160; Now, of course, I am assuming this is intentional and is transmitting information back to Microsoft to tell them that it was successful.&#160; But, I can see how easy it would be for someone to mistaken this for a legitimate error.&#160; Then again, maybe it is.</p>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>StatLight &#8211; Goes Open Source</title>
		<link>http://elegantcode.com/2009/12/10/statlight-goes-open-source/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=statlight-goes-open-source</link>
		<comments>http://elegantcode.com/2009/12/10/statlight-goes-open-source/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 03:26:55 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[TDD]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2009/12/10/statlight-goes-open-source/</guid>
		<description><![CDATA[Although I made a very minor attempt at making StatLight a “for-sale” product, I knew when I started that open-source was most likely going to be my long term path for StatLight. What is it? (Silverlight Testing Automation Tool) StatLight is a tool developed for automating the setup, running, and gathering results of Silverlight unit [...]]]></description>
			<content:encoded><![CDATA[Although I made a very minor attempt at making <a href="http://statlight.net" target="_blank">StatLight</a> a “for-sale” product, I knew when I started that open-source was most likely going to be my long term path for <a href="http://statlight.net" target="_blank">StatLight</a>.
<h5>What is it? (Silverlight Testing Automation Tool)</h5>
StatLight is a tool developed for automating the setup, running, and gathering results of Silverlight unit tests. StatLight helps to speed up the feedback cycles while practicing<a href="http://en.wikipedia.org/wiki/Test-driven_development"> TDD</a>/<a href="http://en.wikipedia.org/wiki/Behavior_Driven_Development">BDD</a>/(insert your test style here) during Silverlight development.
<h5>Where can I get StatLight?</h5>
<a href="http://StatLight.CodePlex.com">http://StatLight.CodePlex.com</a>
<h4>Happy Coding !!!</h4>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2009/12/10/statlight-goes-open-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running with Parallels 5</title>
		<link>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=if-successful-throw-new-exception</link>
		<comments>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 14:56:59 +0000</pubDate>
		<dc:creator>Brian Lagunas</dc:creator>
				<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/</guid>
		<description><![CDATA[So, I was installing Visual Studio 2010 Ultimate Beta 2 on one of my machines the other day and the funniest thing happened.&#160; After it successfully installed, I was prompted to send an error report. Since when is a successful operation a problem?&#160; Now, of course, I am assuming this is intentional and is transmitting [...]]]></description>
			<content:encoded><![CDATA[<p>So, I was installing Visual Studio 2010 Ultimate Beta 2 on one of my machines the other day and the funniest thing happened.&#160; After it successfully installed, I was prompted to send an error report.</p>  <p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="error" border="0" alt="error" src="http://elegantcode.com/wp-content/uploads/2009/12/error.jpg" width="380" height="209" /> </p>  <p>Since when is a successful operation a problem?&#160; Now, of course, I am assuming this is intentional and is transmitting information back to Microsoft to tell them that it was successful.&#160; But, I can see how easy it would be for someone to mistaken this for a legitimate error.&#160; Then again, maybe it is.</p>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Elegant Code &#187; Tools and Utilities</title>
	<atom:link href="http://elegantcode.com/category/tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://elegantcode.com</link>
	<description></description>
	<lastBuildDate>Tue, 15 May 2012 10:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Quinine For Sale</title>
		<link>http://elegantcode.com/2012/01/18/monitoring-an-mmo/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=monitoring-an-mmo</link>
		<comments>http://elegantcode.com/2012/01/18/monitoring-an-mmo/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 19:45:32 +0000</pubDate>
		<dc:creator>Tony Rasa</dc:creator>
				<category><![CDATA[Architecture]]></category>
		<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Metrics]]></category>
		<category><![CDATA[MMO]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2012/01/18/monitoring-an-mmo/</guid>
		<description><![CDATA[I’ve been working on a free-to-play MMO Quinine For Sale, which has been “officially” live since last April, and things have been going well – a steady growth of players; the game itself has been well-received, and all the important graphs are “up and to the right.”&#160; Part of my job involves detecting problems before [...]]]></description>
			<content:encoded><![CDATA[<p> <p>I’ve been working on a free-to-play <a href="http://www.heroup.com" target="_blank">MMO</a> <b>Quinine For Sale</b>, which has been “officially” live since last April, and things have been going well – a steady growth of players; the game itself has been well-received, and all the important graphs are “up and to the right.”&#160; Part of my job involves detecting problems before they become serious and fixing problems when they inevitably do.&#160; So, there are two questions.&#160; “Is there a problem in the game?” “What is causing the problem?”&#160; </p>  <p>When trying to debug something on our development and test clusters, typically you can tail log files.&#160; We have a python script that can monitor the communication between various parts of the game and pretty-print it along with color to highlight “this is a problem!”&#160; Attaching a debugger to a running process is also not uncommon.&#160; However, looking at logs and bus traffic in realtime on a production environment gives you this neat “Matrix-y” experience.&#160; Attaching a debugger to a production process (assuming you could, which you can’t) would get you smacked with a rolled-up newspaper.&#160; “Bad Developer!&#160; No treat!”&#160; So, what can you do?</p>  <h4>Monitoring</h4>  <p>When you’ve got clusters full of machines, using <a href="http://www.nagios.org/" target="_blank">Nagios</a> to monitor things is an obvious solution.&#160; Beyond making sure the power is on and other sysadmin things, we’ve written other checks to see if the login process is working, the parts are working together, and automating typical in-game functions.&#160; For example, if nagios can’t successfully log into the game do basic game activity, then alerts happen.</p>  <h4>Metrics for EVERYTHING</h4>  <p>Anything that happens in game has metrics reporting tied to it, generating piles of data constantly.&#160; We use <a href="http://www.cacti.net/" target="_blank">Cacti</a> to visualize game activity.&#160; An example metric is concurrent users, or CCU.&#160; We graph how many people are in the game over time, which when things are healthy should be a nice smooth curve climbing to peak game hours, then descending nicely through the night.</p>  <p>We can tell by sight if the game looks healthy or not – if the CCU graph is jaggy, has a sudden drop or spike, or drops to zero then we know that something is wrong.&#160; Typically nagios alerts accompany the graphs, giving more data points on where to look.&#160; But this has also pointed out areas where a nagios check was missing or wasn’t working as intended.</p>  <h4>Log Files</h4>  <p>When a player gets an error in game, the error dialog box gives them the opportunity to submit the error details back to us.&#160; If we see a spike in user-reported errors through this or other customer service means, we know we have something of interest to look for.&#160; </p>  <p>The game server components make use of log4j and similar logging frameworks.&#160; Anything that you’d want to watch happening in game needs to be aggressively logged.&#160; All components are configured so that operations can change the log level on the fly.&#160; That’s still quite a bit of data across many machines though, so all that information is run through <a href="http://www.splunk.com/product" target="_blank">Splunk</a> to be indexed and searchable.&#160; This gives us a great tool for searching through log data, examining trends, or watching selected activity in real time.&#160; Unfortunately it is very expensive so we are selective about the data that passes through it.&#160; </p>.  Buy Quinine from mexico.  Buy Quinine no prescription.  No prescription Quinine online.  Online buying Quinine.  Quinine no prescription.  Quinine street price.  Buy no prescription Quinine online.  Quinine coupon.  Quinine over the counter.  Where can i buy Quinine online.  Quinine steet value.  Where to buy Quinine.  Order Quinine online overnight delivery no prescription.  Quinine recreational.  Quinine canada, mexico, india.  Ordering Quinine online.  Quinine without prescription.  Quinine price, coupon.  Quinine description.  Order Quinine from mexican pharmacy.  Quinine pics.  What is Quinine.  Japan, craiglist, ebay, overseas, paypal.  Order Quinine from United States pharmacy.  Order Quinine online c.o.d.  Quinine trusted pharmacy reviews.  Quinine treatment.  Buy Quinine from canada.  Quinine used for.  Discount Quinine.  Is Quinine addictive.  Quinine forum.  Buy Quinine online no prescription.  Is Quinine safe.  Purchase Quinine for sale.  Effects of Quinine.  Buy Quinine online cod.  Quinine australia, uk, us, usa.  Buy Quinine without prescription.  Quinine online cod.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4721'>Buy Flonase Without Prescription</a>. <a href='http://elegantcode.com/?p=4234'>Buy Periactin Without Prescription</a>. <a href='http://elegantcode.com/?p=4203'>Buy Armour Without Prescription</a>. <a href='http://elegantcode.com/?p=4899'>Buy Macrobid Without Prescription</a>. <a href='http://elegantcode.com/?p=4534'>Xalatan For Sale</a>. <a href='http://elegantcode.com/?p=4302'>Phenergan wiki</a>. <a href='http://elegantcode.com/?p=4268'>Soma maximum dosage</a>. <a href='http://elegantcode.com/?p=4602'>Zovirax treatment</a>. <a href='http://elegantcode.com/?p=4578'>Cialis price, coupon</a>. <a href='http://elegantcode.com/?p=4189'>Flexeril price</a>.<br />
<b>Trackbacks from:</b> <a href='http://www.leaduganda.org/?p=514'>Quinine For Sale</a>. <a href='http://www.macneilbmx.com/blog/?p=4820'>Quinine For Sale</a>. <a href='http://www.greatgreengoods.com/?p=2780'>Quinine For Sale</a>. <a href='http://www.thegriffonnews.com/?p=10177'>Quinine For Sale</a>. <a href='http://www.independentworldreport.com/?p=2409'>Quinine For Sale</a>. <a href='http://changecamp.ca/?p=295'>Quinine description</a>. <a href='http://social-blend.com/?p=624'>Quinine price, coupon</a>. <a href='http://blog.farmland.org/?p=3946'>Online buying Quinine hcl</a>. <a href='http://4realz.net/?p=1595'>Quinine from canada</a>. <a href='http://reversemortgagedaily.com/?p=14535'>Where to buy Quinine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2012/01/18/monitoring-an-mmo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Buy Clonidine Without Prescription</title>
		<link>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=moving-from-e-texteditor-to-sublime-text-2</link>
		<comments>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 23:45:32 +0000</pubDate>
		<dc:creator>Jan Van Ryswyck</dc:creator>
				<category><![CDATA[CoffeeScript]]></category>
		<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/</guid>
		<description><![CDATA[I’ve been using E-TextEditor Buy Clonidine Without Prescription, for more than a year now for doing all my JavaScript, Node.js and CoffeeScript development. Clonidine from mexico, You can think of E-TextEditor as TextMate for the Windows platform. I’ve been pretty happy with it throughout this period as it can be extended pretty easily with a [...]]]></description>
			<content:encoded><![CDATA[<p> <p align="justify">I’ve been using <a href="http://www.e-texteditor.com/" target="_blank">E-TextEditor</a> <b>Buy Clonidine Without Prescription</b>, for more than a year now for doing all my JavaScript, Node.js and CoffeeScript development.  <b>Clonidine from mexico</b>, You can think of E-TextEditor as <a href="http://macromates.com/" target="_blank">TextMate</a> for the Windows platform. I’ve been pretty happy with it throughout this period as it can be extended pretty easily with a whole slew of bundles that are already available for TextMate, <b>cheap Clonidine</b>.  <b>Clonidine recreational</b>, E-TextEditor requires you to install <a href="http://www.cygwin.com/" target="_blank">Cygwin</a> which happens automatically during installation. Using the Cygwin command-line gave me enough (re-)exposure to a Linux-like environment in order for me wanting to (re-)learn about this other platform, <b>purchase Clonidine for sale</b>. More on that in later blog posts, <b>Buy Clonidine Without Prescription</b>.  <b>Low dose Clonidine</b>, Although there haven’t been any new versions of E-TextEditor for quite some time now, the current version enabled me to write JavaScript code in a productive way.</p>  <p align="justify">Only recently I found out about another editor called <a href="http://www.sublimetext.com/2" target="_blank">Sublime Text 2</a> (thanks to <a href="http://twitter.com/#!/casualjim" target="_blank">Ivan Porto Carrero</a>), <b>Clonidine description</b>.  <b>Clonidine overnight</b>, I downloaded this text editor in order to give it a try and I must say that I haven’t opened E-TextEditor ever since. This second version of Sublime Text is still in development but it’s pretty stable as I haven’t run into any issues so far, <b>Clonidine no prescription</b>.  <b>Clonidine brand name</b>, The cool part is that this editor is available for both Windows, Linux and OS X which enabled me to move all my Node.js and CoffeeScript development from Cygwin on Windows to Ubuntu Linux.&#160; </p>  <p align="justify">CoffeeScript isn’t supported out-of-the-box (yet), <b>purchase Clonidine</b>, <b>Clonidine gel, ointment, cream, pill, spray, continuous-release, extended-release</b>, so I installed the <a href="https://github.com/jashkenas/coffee-script-tmbundle" target="_blank">CoffeeScript&#160; TextMate bundle</a> written by <a href="http://ashkenas.com/" target="_blank">Jeremy Ashkenas</a> (yes, the same one from the <a href="http://jashkenas.github.com/coffee-script/" target="_blank">CoffeeScript</a> and <a href="http://documentcloud.github.com/backbone/" target="_blank">Backbone.js</a> fame), <b>Clonidine long term</b>.  Also check out <a href="https://github.com/jashkenas/coffee-script/wiki/Text-editor-plugins" target="_blank">this page on the CoffeeScript wiki</a> for more information on how to bring some CoffeeScript happiness to your own favorite text editor.</p>  <p align="justify"> <b>Buy Clonidine Without Prescription</b>, Setting up this TextMate bundle for use with Sublime Text 2 was actually pretty easy.  <b>Clonidine canada, mexico, india</b>, Just navigate to <em>/home/&lt;my_user_name&gt;/.config/sublime-text-2/Packages</em> in a terminal (or the corresponding file path on Windows) and clone the source of the CoffeeScript TextMate bundle using git: </p>  <blockquote>   <p align="justify"><em>git clone git://github.com/jashkenas/coffee-script-tmbundle CoffeeScript</em></p> </blockquote>  <p align="justify">Next close all the .coffee files and restart Sublime Text 2. Now we have some nice syntax highlighting and some useful code snippets at our disposal.&#160; </p>  <p align="justify"><a href="http://elegantcode.com/wp-content/uploads/2011/08/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2011/08/image_thumb.png" width="600" height="396" /></a></p>  <p>It's also possible to hook into <a href="http://sublimetext.info/docs/en/reference/build_systems.html" target="_blank">the build system</a> of Sublime Text 2, <b>Clonidine australia, uk, us, usa</b>.  <b>Clonidine blogs</b>, You just need to create a new file named <em>CoffeeScript.sublime-build</em> at the following location: </p>  <blockquote>   <p><em>/home/&lt;my_user_name&gt;/.config/sublime-text-2/Packages/User&#160; </em></p> </blockquote>  <p align="justify">You can add the following to this new file for compiling CoffeeScript</p>  <pre style="width: 100%; height: 85px" class="csharpcode">{     <span class="str">&quot;cmd&quot;</span>: [<span class="str">&quot;coffee&quot;</span>, <span class="str">&quot;-c&quot;</span>, <b>Clonidine from canada</b>, <b>Is Clonidine addictive</b>, <span class="str">&quot;$file&quot;</span>],     <span class="str">&quot;selector&quot;</span> : <span class="str">&quot;source.coffee&quot;</span>, <b>Clonidine pharmacy</b>, <b>Ordering Clonidine online</b>, <span class="str">&quot;path&quot;</span> : <span class="str">&quot;/usr/local/bin&quot;</span>}</pre><style type="text/css">.csharpcode, .csharpcode pre{	font-size: small;	color: black;	font-family: consolas, <b>Clonidine without prescription</b>, <b>Clonidine no rx</b>, "Courier New", courier, <b>buy no prescription Clonidine online</b>, <b>Clonidine street price</b>, monospace;	background-color: #ffffff;	/*white-space: pre;*/}.csharpcode pre { margin: 0em; }.csharpcode .rem { color: #008000; }.csharpcode .kwrd { color: #0000ff; }.csharpcode .str { color: #006080; }.csharpcode .op { color: #0000c0; }.csharpcode .preproc { color: #cc6633; }.csharpcode .asp { background-color: #ffff00; }.csharpcode .html { color: #800000; }.csharpcode .attr { color: #ff0000; }.csharpcode .alt<br />
{	background-color: #f4f4f4;	width: 100%;	margin: 0em;}.csharpcode .lnum { color: #606060; }</style>or the following for executing/running CoffeeScript code.</p>
<p><pre style="width: 100%; height: 85px" class="csharpcode">{     <span class="str">&quot;cmd&quot;</span>: [<span class="str">&quot;coffee&quot;</span>, <b>Clonidine for sale</b>, <b>What is Clonidine</b>, <span class="str">&quot;$file&quot;</span>],     <span class="str">&quot;selector&quot;</span> : <span class="str">&quot;source.coffee&quot;</span>, <b>get Clonidine</b>, <b>Clonidine class</b>, <span class="str">&quot;path&quot;</span> : <span class="str">&quot;/usr/local/bin&quot;</span>}</pre></p>
<p><p align="justify">Now when you hit F7, this fresh build command is executed when a CoffeeScript source file is showing in the active tab, <b>cheap Clonidine no rx</b>.  It’s also possible to change the build short-key to your own taste through the <em>Preferences</em> menu, <b>Buy Clonidine Without Prescription</b>.  <b>Fast shipping Clonidine</b>, <style type="text/css">.csharpcode, .csharpcode pre{	font-size: small;	color: black;	font-family: consolas, <b>buy Clonidine from canada</b>, <b>Clonidine without a prescription</b>, "Courier New", courier, <b>purchase Clonidine online no prescription</b>, <b>Effects of Clonidine</b>, monospace;	background-color: #ffffff;	/*white-space: pre;*/}.csharpcode pre { margin: 0em; }.csharpcode .rem { color: #008000; }.csharpcode .kwrd { color: #0000ff; }.csharpcode .str { color: #006080; }.csharpcode .op { color: #0000c0; }.csharpcode .preproc { color: #cc6633; }.csharpcode .asp { background-color: #ffff00; }.csharpcode .html { color: #800000; }.csharpcode .attr { color: #ff0000; }.csharpcode .alt<br />
{	background-color: #f4f4f4;	width: 100%;	margin: 0em;}.csharpcode .lnum { color: #606060; }</style></p></p>
<p><p align="justify">Unfortunately, there’s only one build command as I would love to create a separate command for compiling and running CoffeeScript code (or perhaps I missed this feature during the excitement <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-winkingsmile" alt="Winking smile" src="http://elegantcode.com/wp-content/uploads/2011/08/wlEmoticon-winkingsmile.png" />), <b>buy generic Clonidine</b>.  <b>Is Clonidine safe</b>, </p></p>
<p><p align="justify">Some more usage is definitely needed for me to learn more about this excellent text editor, but currently I’m pretty happy with it, <b>Clonidine trusted pharmacy reviews</b>.  <b>Taking Clonidine</b>, I also need to find out how well JavaScript is supported and perhaps see how far one can go when doing some C# development using Mono. I expect that there are a good number of productive features in there for me to discover.</p></p>
<p><p align="justify">I encourage you have a decent look at this excellent tool, <b>Clonidine dangers</b>.  <b>Order Clonidine from mexican pharmacy</b>, </p></p>
<p><p align="justify">Until next time.</p>.  Herbal Clonidine.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4452'>Stromectol For Sale</a>. <a href='http://elegantcode.com/?p=4867'>Buy Soma Without Prescription</a>. <a href='http://elegantcode.com/?p=4758'>Buy Atenolol Without Prescription</a>. <a href='http://elegantcode.com/?p=4553'>Buy Female Pink Viagra Without Prescription</a>. <a href='http://elegantcode.com/?p=4560'>Vermox For Sale</a>. <a href='http://elegantcode.com/?p=4662'>Where can i buy cheapest Antabuse online</a>. <a href='http://elegantcode.com/?p=4508'>Slimex (Obetrim) photos</a>. <a href='http://elegantcode.com/?p=4623'>Augmentin description</a>. <a href='http://elegantcode.com/?p=4752'>Buy Colchicine no prescription</a>. <a href='http://elegantcode.com/?p=4322'>Clonidine natural</a>.<br />
<b>Trackbacks from:</b> <a href='http://evanrapoport.com/?p=429'>Buy Clonidine Without Prescription</a>. <a href='http://www.themusclecarplace.com/?p=5350'>Buy Clonidine Without Prescription</a>. <a href='http://changecamp.ca/?p=578'>Buy Clonidine Without Prescription</a>. <a href='http://blog.farmland.org/?p=3172'>Buy Clonidine Without Prescription</a>. <a href='http://home.officesnapshots.com/?p=175'>Buy Clonidine Without Prescription</a>. <a href='http://www.thegriffonnews.com/?p=9699'>Kjøpe Clonidine på nett, köpa Clonidine online</a>. <a href='http://www.quarterlives.com/?p=831'>Buy cheap Clonidine no rx</a>. <a href='http://www.greatgreengoods.com/?p=3511'>Clonidine use</a>. <a href='http://www.macneilbmx.com/blog/?p=5325'>Clonidine no rx</a>. <a href='http://social-blend.com/?p=482'>Online buying Clonidine hcl</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Buy Viagra Without Prescription</title>
		<link>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor</link>
		<comments>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 22:51:00 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Entity Framework]]></category>
		<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/</guid>
		<description><![CDATA[Buy Viagra Without Prescription, If you’ve taken the jump to try out the new Entity Framework Code First and you’re allowing it to generate your database for you, you’ve most certainly run into the lack of migrations/updating existing schema support. Currently EF Code First will only create a database and won’t update a database with [...]]]></description>
			<content:encoded><![CDATA[<p> <p> <b>Buy Viagra Without Prescription</b>, If you’ve taken the jump to try out the new Entity Framework Code First and you’re allowing it to generate your database for you, you’ve most certainly run into the lack of migrations/updating existing schema support. Currently EF Code First will only create a database and won’t update a database with changes necessary to bring it in line with your model, <b>where can i order Viagra without prescription</b>.  <b>Effects of Viagra</b>, I know they’re working on it, but since it’s not there, <b>buy generic Viagra</b>, <b>Online buy Viagra without a prescription</b>, I thought I’d share a possible solution, albeit less polished than some of the well known database change management out there.</p>  <h4>Where is the tool?</h4>  <p>You can access it in the VS Command window, <b>Viagra coupon</b>.  <b>Buy Viagra no prescription</b>, On my x64 machine the tool is in.</p>  <blockquote>   <p>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VSTSDB\Deploy\vsdbcmd.exe</p> </blockquote>  <h4>I want to deploy an existing schema to AppHarbor.</h4>  <p>Some high level steps that you can use for deployment of database changes.</p>  <ol>   <li>Generate an original reflection of your database. (*.dbschema file) </li>    <li>Tiny little hack to the .dbschema file, <b>Viagra reviews</b>. </li>    <li>Generate the change file to AppHarbor </li>    <li>Review Change Script Generated </li>    <li>Take the app offline, <b>Buy Viagra Without Prescription</b>.  <b>Order Viagra from mexican pharmacy</b>, (optional) </li>    <li>Apply Change Script </li>    <li>Bring the app online (mandatory if you took step 5) </li> </ol>  <h5>Generate an original reflection of your database.</h5>  <p>This file is a complete reflection of your databases schema in a single xml file.</p>  <p>The following command can be used to generate this file.</p>  <blockquote>   <p>vsdbcmd.exe      <br />&#160;&#160;&#160;&#160; /Action:Import       <br />&#160;&#160;&#160;&#160; /ConnectionString:&quot;Data Source=.\sqlexpress;Initial Catalog=MyDatabase;Integrated Security=True;Pooling=False&quot;       <br />&#160;&#160;&#160;&#160; /ModelFile:MyDatabase.dbschema</p> </blockquote>  <p>There are a ton of knobs to turn with this command line tool. Feel free to check out the docs <a href="http://msdn.microsoft.com/en-us/library/dd193283.aspx">http://msdn.microsoft.com/en-us/library/dd193283.aspx</a></p>  <p>Now you should have a file “MyDatabase.dbschema” sitting on your hard drive.</p>  <h5>Tiny little hack to the .dbschema file.</h5>  <p>The section of xml we want to manually remove from the file is related to where your mdf and ldf database files should exist on disk, <b>kjøpe Viagra på nett, köpa Viagra online</b>.  <b>Cheap Viagra</b>, When we go to deploy up to AppHarbor, if this is not removed, <b>buy Viagra online no prescription</b>, <b>Online buying Viagra hcl</b>, then vsdbcmd will generate script to attempt to move the files into the “correct” location. This operation will throw exceptions if you attempt to execute against AppHarbor as you don’t have permission to do this, <b>Viagra gel, ointment, cream, pill, spray, continuous-release, extended-release</b>.  <b>Buy Viagra Without Prescription</b>, We’re removing it from the xml file, as I can’t seem to get the correct command line option to ignore this (if there is an option).  <b>Viagra no prescription</b>, So by removing it, it’s just not used and completely ignored.</p>  <p>I don’t know if this will be true for everyone, <b>Viagra photos</b>, <b>Viagra steet value</b>, but I find that the last two sections of xml in the dbschema file are all I have to remove. I’ll show the two full sections below so you can use it as a reference of what to remove from the file.</p>  <pre class="brush: xml;">&lt;Element Type=&quot;ISql90File&quot; Name=&quot;[MyDatabase]&quot;&gt;    &lt;Property Name=&quot;FileName&quot; Value=&quot;$(DefaultDataPath)$(DatabaseName).mdf&quot; /&gt;    &lt;Property Name=&quot;Size&quot; Value=&quot;2304&quot; /&gt;    &lt;Property Name=&quot;SizeUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Property Name=&quot;FileGrowth&quot; Value=&quot;1024&quot; /&gt;    &lt;Property Name=&quot;FileGrowthUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Relationship Name=&quot;Filegroup&quot;&gt;        &lt;Entry&gt;            &lt;References ExternalSource=&quot;BuiltIns&quot; Name=&quot;[PRIMARY]&quot; /&gt;        &lt;/Entry&gt;    &lt;/Relationship&gt;&lt;/Element&gt;&lt;Element Type=&quot;ISql90File&quot; Name=&quot;[MyDatabase_log]&quot;&gt;    &lt;Property Name=&quot;FileName&quot; Value=&quot;$(DefaultLogPath)$(DatabaseName)_log.LDF&quot; /&gt;    &lt;Property Name=&quot;Size&quot; Value=&quot;576&quot; /&gt;    &lt;Property Name=&quot;SizeUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Property Name=&quot;MaxSize&quot; Value=&quot;2097152&quot; /&gt;    &lt;Property Name=&quot;IsUnlimited&quot; Value=&quot;False&quot; /&gt;    &lt;Property Name=&quot;FileGrowth&quot; Value=&quot;10&quot; /&gt;    &lt;Property Name=&quot;FileGrowthUnit&quot; Value=&quot;1&quot; /&gt;    &lt;Property Name=&quot;IsLogFile&quot; Value=&quot;True&quot; /&gt;&lt;/Element&gt;</pre></p>
<p><h5>Generate the change file to AppHarbor.</h5></p>
<p><p>Now that we have a .dbschema file containing the complete model of what we want deployed, <b>comprar en línea Viagra, comprar Viagra baratos</b>, <b>Viagra without prescription</b>, we can now use it to generate a schema change deployment script.</p></p>
<p><blockquote>  <p>vsdbcmd.exe<br />
    <br />&#160;&#160;&#160;&#160; /Action:Deploy</p>
<p>    <br />&#160;&#160;&#160;&#160; /DeployToDatabase:-</p>
<p>    <br />&#160;&#160;&#160;&#160; /Script:Test.sql</p>
<p>    <br />&#160;&#160;&#160;&#160; /ConnectionString:&quot;{YourAppHarborConnectionString}&quot;</p>
<p>    <br />&#160;&#160;&#160;&#160; /ModelFile:HackIt.dbschema</p>
<p>    <br />&#160;&#160;&#160;&#160; /Properties:TargetDatabase={YourAppHarborDatabaseName EX:db1235}</p></blockquote></p>
<p><p>I’ll explain a couple of the above command options.</p></p>
<p><h6>/DeployToDatabase:-</h6></p>
<p><p>This one is _<strong><u>key</u></strong>_. This tells vsdbcmd to only generate a change script, <b>Viagra price, coupon</b>, <b>Herbal Viagra</b>, and <strong>not to actually deploy the changes </strong>immediately. Until you feel comfortable with what sql the tool generates, <b>Viagra australia, uk, us, usa</b>, <b>Viagra blogs</b>, which is usually pretty darn good, you should not apply it immediately, <b>Viagra dose</b>. Allow the tool to generate the file for further inspection and you can execute it manually after, <b>Buy Viagra Without Prescription</b>.  <b>Viagra dosage</b>, <br /></p></p>
<p><h6>/Script:Test.sql</h6></p>
<p><p>This this is just the name of the file to dump the deployment changes.<br />
  <br /></p></p>
<p><h6>/ModelFile:HackIt.dbschema</h6></p>
<p><p>The path to the .dbschema we generated and modified above.</p></p>
<p><p>&#160;</p></p>
<p><h5>Review Change Script Generated.</h5></p>
<p><p>After you’ve generated a change script file, <b>order Viagra from United States pharmacy</b>, <b>Buy Viagra from canada</b>, take a look at the sql just to make sure you’re happy with what it generates.</p></p>
<p><h5>Take the app offline. (optional)</h5></p>
<p><p>This one depends on the schema changes, <b>Viagra class</b>.  <b>Where can i find Viagra online</b>, If the changes are serious enough, you can check in an App_Offline.htm file at the root of web project and do a “git push appharbor”, <b>Viagra maximum dosage</b>.  <b>Buy Viagra Without Prescription</b>, This way, while making schema changes you don’t have to worry about the errors popping up on users.  <b>Is Viagra safe</b>, Down side is your site becomes inoperable.</p></p>
<p><blockquote>  <p>If you’ve never heard of the App_Offline.htm – I’d recommend reading up on it. <a href="http://weblogs.asp.net/scottgu/archive/2006/04/09/442332.aspx">http://weblogs.asp.net/scottgu/archive/2006/04/09/442332.aspx</a></p></blockquote></p>
<p><h5>Apply Change Script.</h5></p>
<p><p>You have several options to actually apply the scripted changes.</p></p>
<p><ol>  <li>Use vsdbcmd to deploy – Just turn the /DeployToDatabase:<strong>-</strong> to /DeployToDatabase:<strong>+</strong> and allow vsdbcmd to apply the script right there, <b>Viagra over the counter</b>.  <b>Fast shipping Viagra</b>, </li></p>
<p>  <li>Use SQL Management Studio.<br />
    <br /><strong>Make Sure you turn on SQLCMD Mode</strong><a href="http://elegantcode.com/wp-content/uploads/2011/04/image1.png"><br />
      <br /><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2011/04/image_thumb1.png" width="311" height="333" /></a>&#160; </li></ol></p>
<p><h5>Bring your site back online.</h5></p>
<p><p>Now you can go re-name the App_Offline.htm to something like App_Offline.htm.disabled and push those changes back up to AppHarbor.</p></p>
<p><h4>Other considerations.</h4></p>
<p><ul>  <li>Consider a simple migrations framework (EX: <a href="http://code.google.com/p/dbup/" target="_blank">DbUp</a>) to get some initial data or things initialized, <b>generic Viagra</b>, <b>Viagra australia, uk, us, usa</b>, but be-ware that you’ll have to think a little harder about the “rollback” steps with this approach.</p>
<p>    <br /></li></p>
<p>  <li>Next you could take a look at an inquiry I made on the public support discussion list at AppHarbor hoping to push AppHarbor to implement this App_Offline.htm support (right into their admin site)<a href="http://support.appharbor.com/discussions/problems/373-deployment-feature-idea"><br />
      <br />http://support.appharbor.com/discussions/problems/373-deployment-feature-idea</a></p>
<p>    <br /><strong>UPDATE:</strong> SPARE A VOTE OR TWO: <a title="http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic" href="http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic">http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic</a> </li></ul></p>
<p><p>One great benefit of to this approach is the ability for vsdbcmd to manage changes to an existing schema, <b>rx free Viagra</b>.  <b>Cheap Viagra</b>, </p></p>
<p><p>Now if you want full support like refactorings such as table, column, <b>Viagra treatment</b>, <b>Ordering Viagra online</b>, etc renames. You will want to keep a full db project and use that to do a deployment.</p></p>
<p><p>Hope you find this useful, <b>buy no prescription Viagra online</b>.  <b>Taking Viagra</b>, Happy Deployment!</p>.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4335'>Buy Differin Without Prescription</a>. <a href='http://elegantcode.com/?p=4423'>Antabuse For Sale</a>. <a href='http://elegantcode.com/?p=4744'>Buy Flexeril Without Prescription</a>. <a href='http://elegantcode.com/?p=4587'>Buy Pristiq Without Prescription</a>. <a href='http://elegantcode.com/?p=4633'>Cephalexin For Sale</a>. <a href='http://elegantcode.com/?p=4384'>Order Ultram online overnight delivery no prescription</a>. <a href='http://elegantcode.com/?p=4683'>Inderal schedule</a>. <a href='http://elegantcode.com/?p=4822'>About Hydrochlorothiazide</a>. <a href='http://elegantcode.com/?p=4728'>Ventolin australia, uk, us, usa</a>. <a href='http://elegantcode.com/?p=4694'>Human Growth Hormone interactions</a>.<br />
<b>Trackbacks from:</b> <a href='http://www.greatgreengoods.com/?p=2891'>Buy Viagra Without Prescription</a>. <a href='http://www.thegriffonnews.com/?p=10272'>Buy Viagra Without Prescription</a>. <a href='http://www.themusclecarplace.com/?p=3445'>Buy Viagra Without Prescription</a>. <a href='http://linuxologist.com/?p=363'>Buy Viagra Without Prescription</a>. <a href='http://blog.farmland.org/?p=2709'>Buy Viagra Without Prescription</a>. <a href='http://www.quarterlives.com/?p=286'>Where can i cheapest Viagra online</a>. <a href='http://www.macneilbmx.com/blog/?p=6199'>Online Viagra without a prescription</a>. <a href='http://social-blend.com/?p=1253'>Japan, craiglist, ebay, overseas, paypal</a>. <a href='http://www.leaduganda.org/?p=824'>Purchase Viagra online no prescription</a>. <a href='http://4realz.net/?p=1851'>Viagra no rx</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving your global .gitconfig file</title>
		<link>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=moving-your-global-gitconfig-file</link>
		<comments>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/#comments</comments>
		<pubDate>Fri, 05 Nov 2010 11:02:41 +0000</pubDate>
		<dc:creator>Andreas Håkansson</dc:creator>
				<category><![CDATA[Source Control]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/</guid>
		<description><![CDATA[I am using msysgit for my Git work on Windows and for quite a while I have been wanting to move the global .gitconfig file from its default location into my dropbox folder. The reason for this is probably obvious, I do not want to have to make the same configuration changes on multiple machines [...]]]></description>
			<content:encoded><![CDATA[I am using <a title="Visit the project page of msysgit" href="http://code.google.com/p/msysgit/" target="_blank">msysgit</a> for my Git work on Windows and for quite a while I have been wanting to move the global .gitconfig file from its default location into my dropbox folder. The reason for this is probably obvious, I do not want to have to make the same configuration changes on multiple machines to get a homogenize Git environment.

So I set out to resolve this but despite numerous stops at my local Google page, I was unable to find any information on how to make Git look for the file in a different location, it always went to look for the file at <em>%USERPROFILE%\.gitconfig</em>.

As a last resort I asked <a title="Visit the blog of Joshua Flanagan" href="http://www.lostechies.com/blogs/joshuaflanagan/" target="_blank">Joshua Flanagan</a> if he had any idea on how I could configure Git or msysgit to make this possible. Unfortunately he had no idea, but he did however suggest that I try using <a title="Visit the product page for mklink" href="http://technet.microsoft.com/en-us/library/cc753194(WS.10).aspx" target="_blank">mklink</a>, a command line utility available in Windows Vista and later.

mklink enables you to create either <a title="Read more about the differences between symbolic and hard links" href="http://www.maxi-pedia.com/difference+between+symbolic+link+and+hard+link" target="_blank">symbolic or hard links</a> for files or directories. What I needed was a symbolic link, which simply explained is like a shortcut to a file but the difference is that the file system will resolve the symbolic link to the real file, where as a windows shortcut is a file with information in it.

To create a symbolic link for your .gitconfig file do the following
<ol>
	<li>Copy your .gitconfig file from the %USERPROFILE% directory, to the directory where you want to store it instead</li>
	<li>Delete the .gitconfig file in the %USERPROFILE% directory</li>
	<li>Start <strong>cmd.exe</strong> as Administrator</li>
	<li>Enter <strong>mklink .gitconfig path\to\your\.gitconfig</strong> (notice the actual filename needs to be in the second parameter or you will link to the folder it is stored in)</li>
</ol>
You should now get a message that a symbolic link was created between the two files. Try making a change in either of them and see that the change is reflected in the other one – this is because you are always editing the same file since the file system resolves the symbolic link into the real file.]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Pluralcast 21 &#8211; Extending Visual Studio 2010 with Kate Gregory</title>
		<link>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pluralcast-21-extending-visual-studio-2010-with-kate-gregory</link>
		<comments>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 03:42:23 +0000</pubDate>
		<dc:creator>David Starr</dc:creator>
				<category><![CDATA[Pluralcast]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/</guid>
		<description><![CDATA[Listen Now! Kate Gregory has probably forgotten more coding tricks than I have ever learned. That means that she likes her Visual Studio with meat and potatoes. With the new extensibility model in Visual Studio 2010,  Visual Studio can now be the primary source or protein in your IDE diet. In this episode Kate tells us [...]]]></description>
			<content:encoded><![CDATA[<a href="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3"><img style="display: inline; border-width: 0px;" title="PlayIcon" src="http://elegantcode.com/wp-content/uploads/2010/08/PlayIcon.png" border="0" alt="PlayIcon" width="24" height="24" /></a> <a href="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3" target="_blank">Listen Now</a>!

Kate Gregory has probably forgotten more coding tricks than I have ever learned. That means that she likes her Visual Studio with meat and potatoes. With the new extensibility model in Visual Studio 2010,  Visual Studio can now be the primary source or protein in your IDE diet. In this episode Kate tells us how to add a little hot sauce using Visual Studio extensions.

<a href="http://elegantcode.com/wp-content/uploads/2010/08/kategregory.jpg"><img style="margin: 5px; display: inline; border-width: 0px;" title="kate-gregory" src="http://elegantcode.com/wp-content/uploads/2010/08/kategregory_thumb.jpg" border="0" alt="kate-gregory" width="112" height="142" align="right" /></a> Kate is in her fourth decade of being paid to program. Her firm, Gregory Consulting Limited, is based in rural Ontario and helps clients adopt new technologies and adjust to the changing business environment. Current work makes heavy use of .NET and Visual C++ along with SharePoint and both web and client development, especially for Windows 7. Managing, mentoring, technical writing, and technical speaking occupy much of her time, but she still writes code every week.

Kate is the author of over a dozen books and speaks at DevTeach, TechEd (USA, Europe, Africa), and TechDays, among others. Kate is a C++ MVP, a founding sponsor of the Toronto .NET Users Group, the founder of the East of Toronto .NET Users group, a member of the INETA speakers bureau, and a member of adjunct faculty at Trent University in Peterborough. Since January 2002 she has been Microsoft Regional Director for Toronto and since January 2004 she has been awarded the Microsoft Most Valuable Professional designation for Visual C++. In June 2005 she won the Regional Director of the year award.

<strong>Show Links</strong>
<ul>
	<li><a href="http://www.gregcons.com/kateblog/">Kate’s Blog</a></li>
	<li><a href="http://www.pluralsight-training.net/microsoft/olt/Course/Toc.aspx?n=vs2010-vsx">Kate’s Pluralsight course, <em>Customizing and Extending Visual Studio 2010</em></a></li>
	<li><a href="http://msdn.microsoft.com/en-us/vstudio/vextend.aspx">Visual Studio Extensibility (VSX)</a></li>
	<li><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=47305cf4-2bea-43c0-91cd-1b853602dcc5&amp;displaylang=en">Visual Studio SDK</a></li>
	<li><a href="http://visualstudiogallery.msdn.microsoft.com/">Visual Studio Gallery</a></li>
	<li><a href="http://code.msdn.microsoft.com/vsx">The Code Gallery</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3" length="41629427" type="audio/mpeg" />
		</item>
		<item>
		<title>God Mode Easter Egg</title>
		<link>http://elegantcode.com/2010/01/04/god-mode-easter-egg/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=god-mode-easter-egg</link>
		<comments>http://elegantcode.com/2010/01/04/god-mode-easter-egg/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 04:55:51 +0000</pubDate>
		<dc:creator>David Starr</dc:creator>
				<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/01/04/god-mode-easter-egg/</guid>
		<description><![CDATA[I did not discover this, I got it from a tweet that Rob Conery put out there. Thank you, Rob! I don’t know if this is a Windows 7 hack or if this is available in other operating systems. Create a new folder on your desktop Name the new folder: GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} The new folder will [...]]]></description>
			<content:encoded><![CDATA[I did not discover this, I got it from <a href="http://bit.ly/62zZlc ">a tweet</a> that <a href="http://blog.wekeroad.com/">Rob Conery</a> put out there. Thank you, Rob!

I don’t know if this is a Windows 7 hack or if this is available in other operating systems.
<ol>
	<li>Create a new folder on your desktop</li>
	<li>Name the new folder:
GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}</li>
</ol>
The new folder will change into this icon.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image1.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb1.png" border="0" alt="image" width="84" height="90" /></a>

Clicking your shiny new icon will result in a new window that gives shortcut access to the myriad of configuration and administration utilities in Windows that I always seem to need to hunt down.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image2.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb2.png" border="0" alt="image" width="397" height="1474" /></a>

Opening one of these nodes will provide direct access to the associated utils.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image3.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb3.png" border="0" alt="image" width="586" height="313" /></a>

Weird and beautiful, isn’t it?

It makes me wonder what other Easter eggs are in there.]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/01/04/god-mode-easter-egg/feed/</wfw:commentRss>
		<slash:comments>40</slash:comments>
		</item>
		<item>
		<title>Unity/Moq &#8211; AutoMocker or AutoMockingContainer</title>
		<link>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=unitymoq-automocker-or-automockingcontainer</link>
		<comments>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 16:52:33 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[TDD]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/</guid>
		<description><![CDATA[What is an Auto Mocking Container? This post started to get a little long, so I won’t re-explain the concept. Joshua Flanagan wrote a nice overview at his Los Techies blog: Auto mocking Explained. My post is mainly here to describe the Unity version of an automocking container I threw together. In Jan 2009 I [...]]]></description>
			<content:encoded><![CDATA[<h4>What is an Auto Mocking Container?</h4>  <p>This post started to get a little long, so I won’t re-explain the concept.</p>  <p><a href="http://www.lostechies.com/blogs/joshuaflanagan/default.aspx">Joshua Flanagan</a> wrote a nice overview at his <a href="http://www.lostechies.com/">Los Techies</a> blog: <a href="http://www.lostechies.com/blogs/joshuaflanagan/archive/2009/02/03/auto-mocking-explained.aspx"><strong>Auto mocking Explained</strong></a>.</p>  <p>My post is mainly here to describe the Unity version of an automocking container I threw together.</p>  <h4>In Jan 2009 I blogged about my initial version of the Unity AutoMocker - Why am I blogging about it again?</h4>  <p>I originally wrote the AutoMocker for the Unity container a year ago (Jan 2009, in Silverlight), and finally got around to placing the code up in the <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> project in June of 2009.</p>  <p>I’m writing another post today in hopes to:</p>  <ol>   <li>Get some feedback on how this little snippet of code should continue. </li>    <li>Give a little more how-to/example code </li>    <li>Describe some updates I made since I originally created it.&#160; </li> </ol>  <h4>Where can I get it?</h4>  <p><strong>This is one part where I’d appreciate some feedback.</strong></p>  <p>I have two slightly different versions out there (currently).</p>  <p>I have one version at the <a href="http://code.google.com/p/elegantcode/source/browse/#svn/trunk/Coders/JasonJarrett/UnityAutoMocker">ElegantCode</a> repository where I was working on it, and the other I threw up at <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a>.</p>  <p>The core of the UnityAutoMockContainer is the same in both places, it’s how the tests are separated out that differ.</p>  <p>In the <a href="http://code.google.com/p/elegantcode/source/browse/#svn/trunk/Coders/JasonJarrett/UnityAutoMocker">ElegantCode repository</a> it’s an all in one self contained single file (that you can copy into your own test project(s)). You can then setup a single test in your own testing framework that runs all internal automocker tests (in case you need to modify it yourself, and don’t want to break any existing functionality). EX: test</p>  <pre class="brush: csharp;">[Test]
public void Should_run_all_UnityAutoMockContainer_internal_tests()
{
    Moq.AutoMocking.SelfTesting.UnityAutoMockContainerFixture
        .RunAllTests(Console.WriteLine);
}</pre>

<p>I kind of like this format as it makes it easy to port between test libraries. Can’t say I like having the tests in the same file as the core, but it certainly is not a large chunk of code (so far) so it’s relatively small to maintain and definitely easier to manage as a single .cs file than another assembly (which would have to be version dependent on both Unity and Moq).</p>

<p>The <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> is definitely where I think this helper should end up (and it is there). I just happened to break the tests out into the Silverlight test project and the core is alone in a file. </p>

<p>It’s current state isn’t as easy to copy to a test library (Silverlight/Desktop/Unity 1.2/Unity 2.0) as the one at <a href="http://elegantcode.com/">ElegantCode</a>. <strong>What does anyone think?</strong> Should I put them all together in one file?</p>

<p>However it ends up (1. all in one file or two (1 test) (1 core)) it will continue to be maintained on the <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> project.</p>

<h4>What is the high level API of the container?</h4>

<p>It’s pretty simple, (currently) there are four methods on the container.</p>

<p><strong>Two for registering items with the container</strong>. Say you want to register an already created instance, or say you want to map an interface to a concrete class and _not_ have the container generate mocks automatically for special cases. </p>

<p>And <strong>two for pulling items out of the container</strong>. Whether you want a instance of T or a Mock&lt;T&gt;, it gives you ways to retrieve both.</p>

<blockquote>
  <p><a href="http://elegantcode.com/wp-content/uploads/2010/01/image.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb.png" width="396" height="106" /></a> </p>
</blockquote>

<h4>How can I setup my own registrations with the container? </h4>

<p>Say I don’t want to have the container generate mocks for specific items and I want to supply specific configuration to the UnityContainer.</p>

<blockquote>
  <p>public UnityAutoMockContainer RegisterInstance&lt;TService&gt;(TService instance)</p>

  <p>public UnityAutoMockContainer Register&lt;TService, TImplementation&gt;() 
    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; where TImplementation : TService</p>
</blockquote>

<p><strong>Note</strong>: both of these registration methods return the container itself so you can fluently stack registration. <strong>EX:</strong></p>

<pre class="brush: csharp;">AutoMockContainer
    .Register&lt;IServiceA, ServiceA&gt;()
    .Register&lt;IServiceB, ServiceB&gt;();</pre>

<p><strong>Let me know</strong>: I haven’t tested or played around with how this automocking container deals with any container specific xml configuration… So although I don’t think you should probably have that in a test assembly (stuff happens). Let me know if there are any issues.</p>

<h4>How do I get items out of the container?</h4>

<p>First is the Resolve&lt;T&gt;(). It will pull an item T out of the container. (Creating it if not already existing)</p>

<blockquote>
  <p>public T Resolve&lt;T&gt;()</p>
</blockquote>

<p>When T is an interface Resolve&lt;T&gt; (unless you setup registration specifically with the container) should return basically “(new Mock&lt;T&gt;()).Object”</p>

<p>When T is a concrete Class, the container should return an instance of T and any of it’s dependencies will be satisfied by mocks. (Note that T will not be any sort of mocked instance of T, unless you used the GetMock&lt;T&gt; as described below first)</p>

<blockquote>
  <p>public Mock&lt;T&gt; GetMock&lt;T&gt;() where T : class</p>
</blockquote>

<p>When T is an interface GetMock&lt;T&gt; should return basically “(new Mock&lt;T&gt;())” </p>

<p>When T is a concrete Class, the container should return a new Mock&lt;T&gt;() and any of it’s dependencies will be satisfied by mocks.</p>

<h4>How do I use the UnityAutoMockContainer?</h4>

<p>It’s pretty basic, you first create an instance of the UnityAutoMockContainer, and from there you can ask it for mocks of an (Interface, Class, or Abstract Class).</p>

<p>If you request an instance of a concrete class, or abstract class, the UnityAutoMockContainer will stuff mocks in for any constructor dependencies of your concrete class (if it can). You can then request from the container those same dependencies one at a time and either apply mocking setups or verifications.</p>

<blockquote>
  <p><strong>NOTE:</strong> Anything the container creates will live as a singleton instance in the container. So any other requests from the container will always return the originally created instance. Therefore, each distinct scenario in a test suite should have their own instances of the container.</p>
</blockquote>

<p>Below his an example of how you can leverage the container in some tests. Given this base fixture class…</p>

<pre class="brush: csharp;">public class FixtureBase
{
    private readonly UnityAutoMockContainer _autoMockContainer = new UnityAutoMockContainer();

    protected UnityAutoMockContainer AutoMockContainer
    {
        get { return _autoMockContainer; }
    }

    [TestFixtureSetUp]
    public void SetupContext_ALL()
    {
        Before_all_tests();
        Because();
    }

    [TestFixtureTearDown]
    public void TearDownContext_ALL()
    {
        After_all_tests();
    }

    protected virtual void Before_all_tests()
    {
    }

    protected virtual void Because()
    {
    }

    protected virtual void After_all_tests()
    {
    }
}</pre>

<p>If I were given the following system to test.</p>

<pre class="brush: csharp;">public interface IServiceA { void RunA(); }
public interface IServiceB { void RunB(); }

public class TestComponent
{
    public TestComponent(IServiceA serviceA, IServiceB serviceB)
    {
        ServiceA = serviceA;
        ServiceB = serviceB;
    }

    public IServiceA ServiceA { get; private set; }
    public IServiceB ServiceB { get; private set; }

    public void RunAll()
    {
        if (!HowDidItGo())
            return;
        ServiceA.RunA();
        ServiceB.RunB();
    }

    public virtual bool HowDidItGo()
    {
        // some really nasty untestable code
        return true;
    }
}</pre>

<p>The below example demonstrates simply verifying some behavior on the mocked dependencies of the system under test.</p>

<pre class="brush: csharp;">[TestFixture]
public class Example__how_to_pull_items_from_the_UnityAutoMockContainer_when_verifying_behavior_after_an_action_was_taken 
    : FixtureBase
{
    private TestComponent _testComponent;

    protected override void Before_all_tests()
    {
        base.Before_all_tests();
        _testComponent = AutoMockContainer.Resolve&lt;TestComponent&gt;();
    }

    protected override void Because()
    {
        _testComponent.RunAll();
    }

    [Test]
    public void Should_run_ServiceA_RunA()
    {
        AutoMockContainer
            .GetMock&lt;IServiceA&gt;()
            .Verify(v =&gt; v.RunA(), Times.Once());
    }

    [Test]
    public void Should_run_ServiceB_RunB()
    {
        AutoMockContainer
            .GetMock&lt;IServiceB&gt;()
            .Verify(v =&gt; v.RunB(), Times.Once());
    }
}</pre>

<p>Next, you may have noticed that the system under test had a complicated internal method (that may not necessarily be testable). You can use the AutoMocker to create the system under test as a Mock itself, so we can override some of the behavior. Here’s how you could quickly do that. </p>

<blockquote>
  <p><strong>Aside</strong>: I’m not saying this is a good practice or aids in good component design, just saying it’s possible</p>
</blockquote>

<pre class="brush: csharp;">[TestFixture]
public class Example__how_to_use_the_UnityAutoMockContainer_to_override_a_method_on_the_SystemUnderTest_to_test_a_certain_behavior
    : FixtureBase
{

    private TestComponent _testComponent;

    protected override void Before_all_tests()
    {
        base.Before_all_tests();
        var mockTestComponent = AutoMockContainer.GetMock&lt;TestComponent&gt;();

        mockTestComponent
            .Setup(s =&gt; s.HowDidItGo())
            .Returns(false);

        _testComponent = mockTestComponent.Object;
    }

    protected override void Because()
    {
        _testComponent.RunAll();
    }

    [Test]
    public void Should_run_ServiceA_RunA()
    {
        AutoMockContainer
            .GetMock&lt;IServiceA&gt;()
            .Verify(v =&gt; v.RunA(), Times.Never());
    }

    [Test]
    public void Should_run_ServiceB_RunB()
    {
        AutoMockContainer
            .GetMock&lt;IServiceB&gt;()
            .Verify(v =&gt; v.RunB(), Times.Never());
    }
}</pre>

<p>&#160;</p>

<p>It’s amazing how much redundant test setup code this little helper has saved me in my tests. I hope others can find some use with this as well.</p>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>If (Successful) { throw new Exception(); }</title>
		<link>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=if-successful-throw-new-exception</link>
		<comments>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 14:56:59 +0000</pubDate>
		<dc:creator>Brian Lagunas</dc:creator>
				<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/</guid>
		<description><![CDATA[So, I was installing Visual Studio 2010 Ultimate Beta 2 on one of my machines the other day and the funniest thing happened.&#160; After it successfully installed, I was prompted to send an error report. Since when is a successful operation a problem?&#160; Now, of course, I am assuming this is intentional and is transmitting [...]]]></description>
			<content:encoded><![CDATA[<p>So, I was installing Visual Studio 2010 Ultimate Beta 2 on one of my machines the other day and the funniest thing happened.&#160; After it successfully installed, I was prompted to send an error report.</p>  <p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="error" border="0" alt="error" src="http://elegantcode.com/wp-content/uploads/2009/12/error.jpg" width="380" height="209" /> </p>  <p>Since when is a successful operation a problem?&#160; Now, of course, I am assuming this is intentional and is transmitting information back to Microsoft to tell them that it was successful.&#160; But, I can see how easy it would be for someone to mistaken this for a legitimate error.&#160; Then again, maybe it is.</p>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>StatLight &#8211; Goes Open Source</title>
		<link>http://elegantcode.com/2009/12/10/statlight-goes-open-source/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=statlight-goes-open-source</link>
		<comments>http://elegantcode.com/2009/12/10/statlight-goes-open-source/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 03:26:55 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[TDD]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2009/12/10/statlight-goes-open-source/</guid>
		<description><![CDATA[Although I made a very minor attempt at making StatLight a “for-sale” product, I knew when I started that open-source was most likely going to be my long term path for StatLight. What is it? (Silverlight Testing Automation Tool) StatLight is a tool developed for automating the setup, running, and gathering results of Silverlight unit [...]]]></description>
			<content:encoded><![CDATA[Although I made a very minor attempt at making <a href="http://statlight.net" target="_blank">StatLight</a> a “for-sale” product, I knew when I started that open-source was most likely going to be my long term path for <a href="http://statlight.net" target="_blank">StatLight</a>.
<h5>What is it? (Silverlight Testing Automation Tool)</h5>
StatLight is a tool developed for automating the setup, running, and gathering results of Silverlight unit tests. StatLight helps to speed up the feedback cycles while practicing<a href="http://en.wikipedia.org/wiki/Test-driven_development"> TDD</a>/<a href="http://en.wikipedia.org/wiki/Behavior_Driven_Development">BDD</a>/(insert your test style here) during Silverlight development.
<h5>Where can I get StatLight?</h5>
<a href="http://StatLight.CodePlex.com">http://StatLight.CodePlex.com</a>
<h4>Happy Coding !!!</h4>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2009/12/10/statlight-goes-open-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running with Parallels 5</title>
		<link>http://elegantcode.com/2009/12/10/statlight-goes-open-source/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=statlight-goes-open-source</link>
		<comments>http://elegantcode.com/2009/12/10/statlight-goes-open-source/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 03:26:55 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[TDD]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2009/12/10/statlight-goes-open-source/</guid>
		<description><![CDATA[Although I made a very minor attempt at making StatLight a “for-sale” product, I knew when I started that open-source was most likely going to be my long term path for StatLight. What is it? (Silverlight Testing Automation Tool) StatLight is a tool developed for automating the setup, running, and gathering results of Silverlight unit [...]]]></description>
			<content:encoded><![CDATA[Although I made a very minor attempt at making <a href="http://statlight.net" target="_blank">StatLight</a> a “for-sale” product, I knew when I started that open-source was most likely going to be my long term path for <a href="http://statlight.net" target="_blank">StatLight</a>.
<h5>What is it? (Silverlight Testing Automation Tool)</h5>
StatLight is a tool developed for automating the setup, running, and gathering results of Silverlight unit tests. StatLight helps to speed up the feedback cycles while practicing<a href="http://en.wikipedia.org/wiki/Test-driven_development"> TDD</a>/<a href="http://en.wikipedia.org/wiki/Behavior_Driven_Development">BDD</a>/(insert your test style here) during Silverlight development.
<h5>Where can I get StatLight?</h5>
<a href="http://StatLight.CodePlex.com">http://StatLight.CodePlex.com</a>
<h4>Happy Coding !!!</h4>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2009/12/10/statlight-goes-open-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Elegant Code &#187; Tools and Utilities</title>
	<atom:link href="http://elegantcode.com/category/tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://elegantcode.com</link>
	<description></description>
	<lastBuildDate>Tue, 15 May 2012 10:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Quinine For Sale</title>
		<link>http://elegantcode.com/2012/01/18/monitoring-an-mmo/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=monitoring-an-mmo</link>
		<comments>http://elegantcode.com/2012/01/18/monitoring-an-mmo/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 19:45:32 +0000</pubDate>
		<dc:creator>Tony Rasa</dc:creator>
				<category><![CDATA[Architecture]]></category>
		<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Metrics]]></category>
		<category><![CDATA[MMO]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2012/01/18/monitoring-an-mmo/</guid>
		<description><![CDATA[I’ve been working on a free-to-play MMO Quinine For Sale, which has been “officially” live since last April, and things have been going well – a steady growth of players; the game itself has been well-received, and all the important graphs are “up and to the right.”&#160; Part of my job involves detecting problems before [...]]]></description>
			<content:encoded><![CDATA[<p> <p>I’ve been working on a free-to-play <a href="http://www.heroup.com" target="_blank">MMO</a> <b>Quinine For Sale</b>, which has been “officially” live since last April, and things have been going well – a steady growth of players; the game itself has been well-received, and all the important graphs are “up and to the right.”&#160; Part of my job involves detecting problems before they become serious and fixing problems when they inevitably do.&#160; So, there are two questions.&#160; “Is there a problem in the game?” “What is causing the problem?”&#160; </p>  <p>When trying to debug something on our development and test clusters, typically you can tail log files.&#160; We have a python script that can monitor the communication between various parts of the game and pretty-print it along with color to highlight “this is a problem!”&#160; Attaching a debugger to a running process is also not uncommon.&#160; However, looking at logs and bus traffic in realtime on a production environment gives you this neat “Matrix-y” experience.&#160; Attaching a debugger to a production process (assuming you could, which you can’t) would get you smacked with a rolled-up newspaper.&#160; “Bad Developer!&#160; No treat!”&#160; So, what can you do?</p>  <h4>Monitoring</h4>  <p>When you’ve got clusters full of machines, using <a href="http://www.nagios.org/" target="_blank">Nagios</a> to monitor things is an obvious solution.&#160; Beyond making sure the power is on and other sysadmin things, we’ve written other checks to see if the login process is working, the parts are working together, and automating typical in-game functions.&#160; For example, if nagios can’t successfully log into the game do basic game activity, then alerts happen.</p>  <h4>Metrics for EVERYTHING</h4>  <p>Anything that happens in game has metrics reporting tied to it, generating piles of data constantly.&#160; We use <a href="http://www.cacti.net/" target="_blank">Cacti</a> to visualize game activity.&#160; An example metric is concurrent users, or CCU.&#160; We graph how many people are in the game over time, which when things are healthy should be a nice smooth curve climbing to peak game hours, then descending nicely through the night.</p>  <p>We can tell by sight if the game looks healthy or not – if the CCU graph is jaggy, has a sudden drop or spike, or drops to zero then we know that something is wrong.&#160; Typically nagios alerts accompany the graphs, giving more data points on where to look.&#160; But this has also pointed out areas where a nagios check was missing or wasn’t working as intended.</p>  <h4>Log Files</h4>  <p>When a player gets an error in game, the error dialog box gives them the opportunity to submit the error details back to us.&#160; If we see a spike in user-reported errors through this or other customer service means, we know we have something of interest to look for.&#160; </p>  <p>The game server components make use of log4j and similar logging frameworks.&#160; Anything that you’d want to watch happening in game needs to be aggressively logged.&#160; All components are configured so that operations can change the log level on the fly.&#160; That’s still quite a bit of data across many machines though, so all that information is run through <a href="http://www.splunk.com/product" target="_blank">Splunk</a> to be indexed and searchable.&#160; This gives us a great tool for searching through log data, examining trends, or watching selected activity in real time.&#160; Unfortunately it is very expensive so we are selective about the data that passes through it.&#160; </p>.  Buy Quinine from mexico.  Buy Quinine no prescription.  No prescription Quinine online.  Online buying Quinine.  Quinine no prescription.  Quinine street price.  Buy no prescription Quinine online.  Quinine coupon.  Quinine over the counter.  Where can i buy Quinine online.  Quinine steet value.  Where to buy Quinine.  Order Quinine online overnight delivery no prescription.  Quinine recreational.  Quinine canada, mexico, india.  Ordering Quinine online.  Quinine without prescription.  Quinine price, coupon.  Quinine description.  Order Quinine from mexican pharmacy.  Quinine pics.  What is Quinine.  Japan, craiglist, ebay, overseas, paypal.  Order Quinine from United States pharmacy.  Order Quinine online c.o.d.  Quinine trusted pharmacy reviews.  Quinine treatment.  Buy Quinine from canada.  Quinine used for.  Discount Quinine.  Is Quinine addictive.  Quinine forum.  Buy Quinine online no prescription.  Is Quinine safe.  Purchase Quinine for sale.  Effects of Quinine.  Buy Quinine online cod.  Quinine australia, uk, us, usa.  Buy Quinine without prescription.  Quinine online cod.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4721'>Buy Flonase Without Prescription</a>. <a href='http://elegantcode.com/?p=4234'>Buy Periactin Without Prescription</a>. <a href='http://elegantcode.com/?p=4203'>Buy Armour Without Prescription</a>. <a href='http://elegantcode.com/?p=4899'>Buy Macrobid Without Prescription</a>. <a href='http://elegantcode.com/?p=4534'>Xalatan For Sale</a>. <a href='http://elegantcode.com/?p=4302'>Phenergan wiki</a>. <a href='http://elegantcode.com/?p=4268'>Soma maximum dosage</a>. <a href='http://elegantcode.com/?p=4602'>Zovirax treatment</a>. <a href='http://elegantcode.com/?p=4578'>Cialis price, coupon</a>. <a href='http://elegantcode.com/?p=4189'>Flexeril price</a>.<br />
<b>Trackbacks from:</b> <a href='http://www.leaduganda.org/?p=514'>Quinine For Sale</a>. <a href='http://www.macneilbmx.com/blog/?p=4820'>Quinine For Sale</a>. <a href='http://www.greatgreengoods.com/?p=2780'>Quinine For Sale</a>. <a href='http://www.thegriffonnews.com/?p=10177'>Quinine For Sale</a>. <a href='http://www.independentworldreport.com/?p=2409'>Quinine For Sale</a>. <a href='http://changecamp.ca/?p=295'>Quinine description</a>. <a href='http://social-blend.com/?p=624'>Quinine price, coupon</a>. <a href='http://blog.farmland.org/?p=3946'>Online buying Quinine hcl</a>. <a href='http://4realz.net/?p=1595'>Quinine from canada</a>. <a href='http://reversemortgagedaily.com/?p=14535'>Where to buy Quinine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2012/01/18/monitoring-an-mmo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Buy Clonidine Without Prescription</title>
		<link>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=moving-from-e-texteditor-to-sublime-text-2</link>
		<comments>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 23:45:32 +0000</pubDate>
		<dc:creator>Jan Van Ryswyck</dc:creator>
				<category><![CDATA[CoffeeScript]]></category>
		<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/</guid>
		<description><![CDATA[I’ve been using E-TextEditor Buy Clonidine Without Prescription, for more than a year now for doing all my JavaScript, Node.js and CoffeeScript development. Clonidine from mexico, You can think of E-TextEditor as TextMate for the Windows platform. I’ve been pretty happy with it throughout this period as it can be extended pretty easily with a [...]]]></description>
			<content:encoded><![CDATA[<p> <p align="justify">I’ve been using <a href="http://www.e-texteditor.com/" target="_blank">E-TextEditor</a> <b>Buy Clonidine Without Prescription</b>, for more than a year now for doing all my JavaScript, Node.js and CoffeeScript development.  <b>Clonidine from mexico</b>, You can think of E-TextEditor as <a href="http://macromates.com/" target="_blank">TextMate</a> for the Windows platform. I’ve been pretty happy with it throughout this period as it can be extended pretty easily with a whole slew of bundles that are already available for TextMate, <b>cheap Clonidine</b>.  <b>Clonidine recreational</b>, E-TextEditor requires you to install <a href="http://www.cygwin.com/" target="_blank">Cygwin</a> which happens automatically during installation. Using the Cygwin command-line gave me enough (re-)exposure to a Linux-like environment in order for me wanting to (re-)learn about this other platform, <b>purchase Clonidine for sale</b>. More on that in later blog posts, <b>Buy Clonidine Without Prescription</b>.  <b>Low dose Clonidine</b>, Although there haven’t been any new versions of E-TextEditor for quite some time now, the current version enabled me to write JavaScript code in a productive way.</p>  <p align="justify">Only recently I found out about another editor called <a href="http://www.sublimetext.com/2" target="_blank">Sublime Text 2</a> (thanks to <a href="http://twitter.com/#!/casualjim" target="_blank">Ivan Porto Carrero</a>), <b>Clonidine description</b>.  <b>Clonidine overnight</b>, I downloaded this text editor in order to give it a try and I must say that I haven’t opened E-TextEditor ever since. This second version of Sublime Text is still in development but it’s pretty stable as I haven’t run into any issues so far, <b>Clonidine no prescription</b>.  <b>Clonidine brand name</b>, The cool part is that this editor is available for both Windows, Linux and OS X which enabled me to move all my Node.js and CoffeeScript development from Cygwin on Windows to Ubuntu Linux.&#160; </p>  <p align="justify">CoffeeScript isn’t supported out-of-the-box (yet), <b>purchase Clonidine</b>, <b>Clonidine gel, ointment, cream, pill, spray, continuous-release, extended-release</b>, so I installed the <a href="https://github.com/jashkenas/coffee-script-tmbundle" target="_blank">CoffeeScript&#160; TextMate bundle</a> written by <a href="http://ashkenas.com/" target="_blank">Jeremy Ashkenas</a> (yes, the same one from the <a href="http://jashkenas.github.com/coffee-script/" target="_blank">CoffeeScript</a> and <a href="http://documentcloud.github.com/backbone/" target="_blank">Backbone.js</a> fame), <b>Clonidine long term</b>.  Also check out <a href="https://github.com/jashkenas/coffee-script/wiki/Text-editor-plugins" target="_blank">this page on the CoffeeScript wiki</a> for more information on how to bring some CoffeeScript happiness to your own favorite text editor.</p>  <p align="justify"> <b>Buy Clonidine Without Prescription</b>, Setting up this TextMate bundle for use with Sublime Text 2 was actually pretty easy.  <b>Clonidine canada, mexico, india</b>, Just navigate to <em>/home/&lt;my_user_name&gt;/.config/sublime-text-2/Packages</em> in a terminal (or the corresponding file path on Windows) and clone the source of the CoffeeScript TextMate bundle using git: </p>  <blockquote>   <p align="justify"><em>git clone git://github.com/jashkenas/coffee-script-tmbundle CoffeeScript</em></p> </blockquote>  <p align="justify">Next close all the .coffee files and restart Sublime Text 2. Now we have some nice syntax highlighting and some useful code snippets at our disposal.&#160; </p>  <p align="justify"><a href="http://elegantcode.com/wp-content/uploads/2011/08/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2011/08/image_thumb.png" width="600" height="396" /></a></p>  <p>It's also possible to hook into <a href="http://sublimetext.info/docs/en/reference/build_systems.html" target="_blank">the build system</a> of Sublime Text 2, <b>Clonidine australia, uk, us, usa</b>.  <b>Clonidine blogs</b>, You just need to create a new file named <em>CoffeeScript.sublime-build</em> at the following location: </p>  <blockquote>   <p><em>/home/&lt;my_user_name&gt;/.config/sublime-text-2/Packages/User&#160; </em></p> </blockquote>  <p align="justify">You can add the following to this new file for compiling CoffeeScript</p>  <pre style="width: 100%; height: 85px" class="csharpcode">{     <span class="str">&quot;cmd&quot;</span>: [<span class="str">&quot;coffee&quot;</span>, <span class="str">&quot;-c&quot;</span>, <b>Clonidine from canada</b>, <b>Is Clonidine addictive</b>, <span class="str">&quot;$file&quot;</span>],     <span class="str">&quot;selector&quot;</span> : <span class="str">&quot;source.coffee&quot;</span>, <b>Clonidine pharmacy</b>, <b>Ordering Clonidine online</b>, <span class="str">&quot;path&quot;</span> : <span class="str">&quot;/usr/local/bin&quot;</span>}</pre><style type="text/css">.csharpcode, .csharpcode pre{	font-size: small;	color: black;	font-family: consolas, <b>Clonidine without prescription</b>, <b>Clonidine no rx</b>, "Courier New", courier, <b>buy no prescription Clonidine online</b>, <b>Clonidine street price</b>, monospace;	background-color: #ffffff;	/*white-space: pre;*/}.csharpcode pre { margin: 0em; }.csharpcode .rem { color: #008000; }.csharpcode .kwrd { color: #0000ff; }.csharpcode .str { color: #006080; }.csharpcode .op { color: #0000c0; }.csharpcode .preproc { color: #cc6633; }.csharpcode .asp { background-color: #ffff00; }.csharpcode .html { color: #800000; }.csharpcode .attr { color: #ff0000; }.csharpcode .alt<br />
{	background-color: #f4f4f4;	width: 100%;	margin: 0em;}.csharpcode .lnum { color: #606060; }</style>or the following for executing/running CoffeeScript code.</p>
<p><pre style="width: 100%; height: 85px" class="csharpcode">{     <span class="str">&quot;cmd&quot;</span>: [<span class="str">&quot;coffee&quot;</span>, <b>Clonidine for sale</b>, <b>What is Clonidine</b>, <span class="str">&quot;$file&quot;</span>],     <span class="str">&quot;selector&quot;</span> : <span class="str">&quot;source.coffee&quot;</span>, <b>get Clonidine</b>, <b>Clonidine class</b>, <span class="str">&quot;path&quot;</span> : <span class="str">&quot;/usr/local/bin&quot;</span>}</pre></p>
<p><p align="justify">Now when you hit F7, this fresh build command is executed when a CoffeeScript source file is showing in the active tab, <b>cheap Clonidine no rx</b>.  It’s also possible to change the build short-key to your own taste through the <em>Preferences</em> menu, <b>Buy Clonidine Without Prescription</b>.  <b>Fast shipping Clonidine</b>, <style type="text/css">.csharpcode, .csharpcode pre{	font-size: small;	color: black;	font-family: consolas, <b>buy Clonidine from canada</b>, <b>Clonidine without a prescription</b>, "Courier New", courier, <b>purchase Clonidine online no prescription</b>, <b>Effects of Clonidine</b>, monospace;	background-color: #ffffff;	/*white-space: pre;*/}.csharpcode pre { margin: 0em; }.csharpcode .rem { color: #008000; }.csharpcode .kwrd { color: #0000ff; }.csharpcode .str { color: #006080; }.csharpcode .op { color: #0000c0; }.csharpcode .preproc { color: #cc6633; }.csharpcode .asp { background-color: #ffff00; }.csharpcode .html { color: #800000; }.csharpcode .attr { color: #ff0000; }.csharpcode .alt<br />
{	background-color: #f4f4f4;	width: 100%;	margin: 0em;}.csharpcode .lnum { color: #606060; }</style></p></p>
<p><p align="justify">Unfortunately, there’s only one build command as I would love to create a separate command for compiling and running CoffeeScript code (or perhaps I missed this feature during the excitement <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-winkingsmile" alt="Winking smile" src="http://elegantcode.com/wp-content/uploads/2011/08/wlEmoticon-winkingsmile.png" />), <b>buy generic Clonidine</b>.  <b>Is Clonidine safe</b>, </p></p>
<p><p align="justify">Some more usage is definitely needed for me to learn more about this excellent text editor, but currently I’m pretty happy with it, <b>Clonidine trusted pharmacy reviews</b>.  <b>Taking Clonidine</b>, I also need to find out how well JavaScript is supported and perhaps see how far one can go when doing some C# development using Mono. I expect that there are a good number of productive features in there for me to discover.</p></p>
<p><p align="justify">I encourage you have a decent look at this excellent tool, <b>Clonidine dangers</b>.  <b>Order Clonidine from mexican pharmacy</b>, </p></p>
<p><p align="justify">Until next time.</p>.  Herbal Clonidine.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4452'>Stromectol For Sale</a>. <a href='http://elegantcode.com/?p=4867'>Buy Soma Without Prescription</a>. <a href='http://elegantcode.com/?p=4758'>Buy Atenolol Without Prescription</a>. <a href='http://elegantcode.com/?p=4553'>Buy Female Pink Viagra Without Prescription</a>. <a href='http://elegantcode.com/?p=4560'>Vermox For Sale</a>. <a href='http://elegantcode.com/?p=4662'>Where can i buy cheapest Antabuse online</a>. <a href='http://elegantcode.com/?p=4508'>Slimex (Obetrim) photos</a>. <a href='http://elegantcode.com/?p=4623'>Augmentin description</a>. <a href='http://elegantcode.com/?p=4752'>Buy Colchicine no prescription</a>. <a href='http://elegantcode.com/?p=4322'>Clonidine natural</a>.<br />
<b>Trackbacks from:</b> <a href='http://evanrapoport.com/?p=429'>Buy Clonidine Without Prescription</a>. <a href='http://www.themusclecarplace.com/?p=5350'>Buy Clonidine Without Prescription</a>. <a href='http://changecamp.ca/?p=578'>Buy Clonidine Without Prescription</a>. <a href='http://blog.farmland.org/?p=3172'>Buy Clonidine Without Prescription</a>. <a href='http://home.officesnapshots.com/?p=175'>Buy Clonidine Without Prescription</a>. <a href='http://www.thegriffonnews.com/?p=9699'>Kjøpe Clonidine på nett, köpa Clonidine online</a>. <a href='http://www.quarterlives.com/?p=831'>Buy cheap Clonidine no rx</a>. <a href='http://www.greatgreengoods.com/?p=3511'>Clonidine use</a>. <a href='http://www.macneilbmx.com/blog/?p=5325'>Clonidine no rx</a>. <a href='http://social-blend.com/?p=482'>Online buying Clonidine hcl</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2011/08/05/moving-from-e-texteditor-to-sublime-text-2/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Buy Viagra Without Prescription</title>
		<link>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor</link>
		<comments>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 22:51:00 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Entity Framework]]></category>
		<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/</guid>
		<description><![CDATA[Buy Viagra Without Prescription, If you’ve taken the jump to try out the new Entity Framework Code First and you’re allowing it to generate your database for you, you’ve most certainly run into the lack of migrations/updating existing schema support. Currently EF Code First will only create a database and won’t update a database with [...]]]></description>
			<content:encoded><![CDATA[<p> <p> <b>Buy Viagra Without Prescription</b>, If you’ve taken the jump to try out the new Entity Framework Code First and you’re allowing it to generate your database for you, you’ve most certainly run into the lack of migrations/updating existing schema support. Currently EF Code First will only create a database and won’t update a database with changes necessary to bring it in line with your model, <b>where can i order Viagra without prescription</b>.  <b>Effects of Viagra</b>, I know they’re working on it, but since it’s not there, <b>buy generic Viagra</b>, <b>Online buy Viagra without a prescription</b>, I thought I’d share a possible solution, albeit less polished than some of the well known database change management out there.</p>  <h4>Where is the tool?</h4>  <p>You can access it in the VS Command window, <b>Viagra coupon</b>.  <b>Buy Viagra no prescription</b>, On my x64 machine the tool is in.</p>  <blockquote>   <p>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VSTSDB\Deploy\vsdbcmd.exe</p> </blockquote>  <h4>I want to deploy an existing schema to AppHarbor.</h4>  <p>Some high level steps that you can use for deployment of database changes.</p>  <ol>   <li>Generate an original reflection of your database. (*.dbschema file) </li>    <li>Tiny little hack to the .dbschema file, <b>Viagra reviews</b>. </li>    <li>Generate the change file to AppHarbor </li>    <li>Review Change Script Generated </li>    <li>Take the app offline, <b>Buy Viagra Without Prescription</b>.  <b>Order Viagra from mexican pharmacy</b>, (optional) </li>    <li>Apply Change Script </li>    <li>Bring the app online (mandatory if you took step 5) </li> </ol>  <h5>Generate an original reflection of your database.</h5>  <p>This file is a complete reflection of your databases schema in a single xml file.</p>  <p>The following command can be used to generate this file.</p>  <blockquote>   <p>vsdbcmd.exe      <br />&#160;&#160;&#160;&#160; /Action:Import       <br />&#160;&#160;&#160;&#160; /ConnectionString:&quot;Data Source=.\sqlexpress;Initial Catalog=MyDatabase;Integrated Security=True;Pooling=False&quot;       <br />&#160;&#160;&#160;&#160; /ModelFile:MyDatabase.dbschema</p> </blockquote>  <p>There are a ton of knobs to turn with this command line tool. Feel free to check out the docs <a href="http://msdn.microsoft.com/en-us/library/dd193283.aspx">http://msdn.microsoft.com/en-us/library/dd193283.aspx</a></p>  <p>Now you should have a file “MyDatabase.dbschema” sitting on your hard drive.</p>  <h5>Tiny little hack to the .dbschema file.</h5>  <p>The section of xml we want to manually remove from the file is related to where your mdf and ldf database files should exist on disk, <b>kjøpe Viagra på nett, köpa Viagra online</b>.  <b>Cheap Viagra</b>, When we go to deploy up to AppHarbor, if this is not removed, <b>buy Viagra online no prescription</b>, <b>Online buying Viagra hcl</b>, then vsdbcmd will generate script to attempt to move the files into the “correct” location. This operation will throw exceptions if you attempt to execute against AppHarbor as you don’t have permission to do this, <b>Viagra gel, ointment, cream, pill, spray, continuous-release, extended-release</b>.  <b>Buy Viagra Without Prescription</b>, We’re removing it from the xml file, as I can’t seem to get the correct command line option to ignore this (if there is an option).  <b>Viagra no prescription</b>, So by removing it, it’s just not used and completely ignored.</p>  <p>I don’t know if this will be true for everyone, <b>Viagra photos</b>, <b>Viagra steet value</b>, but I find that the last two sections of xml in the dbschema file are all I have to remove. I’ll show the two full sections below so you can use it as a reference of what to remove from the file.</p>  <pre class="brush: xml;">&lt;Element Type=&quot;ISql90File&quot; Name=&quot;[MyDatabase]&quot;&gt;    &lt;Property Name=&quot;FileName&quot; Value=&quot;$(DefaultDataPath)$(DatabaseName).mdf&quot; /&gt;    &lt;Property Name=&quot;Size&quot; Value=&quot;2304&quot; /&gt;    &lt;Property Name=&quot;SizeUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Property Name=&quot;FileGrowth&quot; Value=&quot;1024&quot; /&gt;    &lt;Property Name=&quot;FileGrowthUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Relationship Name=&quot;Filegroup&quot;&gt;        &lt;Entry&gt;            &lt;References ExternalSource=&quot;BuiltIns&quot; Name=&quot;[PRIMARY]&quot; /&gt;        &lt;/Entry&gt;    &lt;/Relationship&gt;&lt;/Element&gt;&lt;Element Type=&quot;ISql90File&quot; Name=&quot;[MyDatabase_log]&quot;&gt;    &lt;Property Name=&quot;FileName&quot; Value=&quot;$(DefaultLogPath)$(DatabaseName)_log.LDF&quot; /&gt;    &lt;Property Name=&quot;Size&quot; Value=&quot;576&quot; /&gt;    &lt;Property Name=&quot;SizeUnit&quot; Value=&quot;3&quot; /&gt;    &lt;Property Name=&quot;MaxSize&quot; Value=&quot;2097152&quot; /&gt;    &lt;Property Name=&quot;IsUnlimited&quot; Value=&quot;False&quot; /&gt;    &lt;Property Name=&quot;FileGrowth&quot; Value=&quot;10&quot; /&gt;    &lt;Property Name=&quot;FileGrowthUnit&quot; Value=&quot;1&quot; /&gt;    &lt;Property Name=&quot;IsLogFile&quot; Value=&quot;True&quot; /&gt;&lt;/Element&gt;</pre></p>
<p><h5>Generate the change file to AppHarbor.</h5></p>
<p><p>Now that we have a .dbschema file containing the complete model of what we want deployed, <b>comprar en línea Viagra, comprar Viagra baratos</b>, <b>Viagra without prescription</b>, we can now use it to generate a schema change deployment script.</p></p>
<p><blockquote>  <p>vsdbcmd.exe<br />
    <br />&#160;&#160;&#160;&#160; /Action:Deploy</p>
<p>    <br />&#160;&#160;&#160;&#160; /DeployToDatabase:-</p>
<p>    <br />&#160;&#160;&#160;&#160; /Script:Test.sql</p>
<p>    <br />&#160;&#160;&#160;&#160; /ConnectionString:&quot;{YourAppHarborConnectionString}&quot;</p>
<p>    <br />&#160;&#160;&#160;&#160; /ModelFile:HackIt.dbschema</p>
<p>    <br />&#160;&#160;&#160;&#160; /Properties:TargetDatabase={YourAppHarborDatabaseName EX:db1235}</p></blockquote></p>
<p><p>I’ll explain a couple of the above command options.</p></p>
<p><h6>/DeployToDatabase:-</h6></p>
<p><p>This one is _<strong><u>key</u></strong>_. This tells vsdbcmd to only generate a change script, <b>Viagra price, coupon</b>, <b>Herbal Viagra</b>, and <strong>not to actually deploy the changes </strong>immediately. Until you feel comfortable with what sql the tool generates, <b>Viagra australia, uk, us, usa</b>, <b>Viagra blogs</b>, which is usually pretty darn good, you should not apply it immediately, <b>Viagra dose</b>. Allow the tool to generate the file for further inspection and you can execute it manually after, <b>Buy Viagra Without Prescription</b>.  <b>Viagra dosage</b>, <br /></p></p>
<p><h6>/Script:Test.sql</h6></p>
<p><p>This this is just the name of the file to dump the deployment changes.<br />
  <br /></p></p>
<p><h6>/ModelFile:HackIt.dbschema</h6></p>
<p><p>The path to the .dbschema we generated and modified above.</p></p>
<p><p>&#160;</p></p>
<p><h5>Review Change Script Generated.</h5></p>
<p><p>After you’ve generated a change script file, <b>order Viagra from United States pharmacy</b>, <b>Buy Viagra from canada</b>, take a look at the sql just to make sure you’re happy with what it generates.</p></p>
<p><h5>Take the app offline. (optional)</h5></p>
<p><p>This one depends on the schema changes, <b>Viagra class</b>.  <b>Where can i find Viagra online</b>, If the changes are serious enough, you can check in an App_Offline.htm file at the root of web project and do a “git push appharbor”, <b>Viagra maximum dosage</b>.  <b>Buy Viagra Without Prescription</b>, This way, while making schema changes you don’t have to worry about the errors popping up on users.  <b>Is Viagra safe</b>, Down side is your site becomes inoperable.</p></p>
<p><blockquote>  <p>If you’ve never heard of the App_Offline.htm – I’d recommend reading up on it. <a href="http://weblogs.asp.net/scottgu/archive/2006/04/09/442332.aspx">http://weblogs.asp.net/scottgu/archive/2006/04/09/442332.aspx</a></p></blockquote></p>
<p><h5>Apply Change Script.</h5></p>
<p><p>You have several options to actually apply the scripted changes.</p></p>
<p><ol>  <li>Use vsdbcmd to deploy – Just turn the /DeployToDatabase:<strong>-</strong> to /DeployToDatabase:<strong>+</strong> and allow vsdbcmd to apply the script right there, <b>Viagra over the counter</b>.  <b>Fast shipping Viagra</b>, </li></p>
<p>  <li>Use SQL Management Studio.<br />
    <br /><strong>Make Sure you turn on SQLCMD Mode</strong><a href="http://elegantcode.com/wp-content/uploads/2011/04/image1.png"><br />
      <br /><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2011/04/image_thumb1.png" width="311" height="333" /></a>&#160; </li></ol></p>
<p><h5>Bring your site back online.</h5></p>
<p><p>Now you can go re-name the App_Offline.htm to something like App_Offline.htm.disabled and push those changes back up to AppHarbor.</p></p>
<p><h4>Other considerations.</h4></p>
<p><ul>  <li>Consider a simple migrations framework (EX: <a href="http://code.google.com/p/dbup/" target="_blank">DbUp</a>) to get some initial data or things initialized, <b>generic Viagra</b>, <b>Viagra australia, uk, us, usa</b>, but be-ware that you’ll have to think a little harder about the “rollback” steps with this approach.</p>
<p>    <br /></li></p>
<p>  <li>Next you could take a look at an inquiry I made on the public support discussion list at AppHarbor hoping to push AppHarbor to implement this App_Offline.htm support (right into their admin site)<a href="http://support.appharbor.com/discussions/problems/373-deployment-feature-idea"><br />
      <br />http://support.appharbor.com/discussions/problems/373-deployment-feature-idea</a></p>
<p>    <br /><strong>UPDATE:</strong> SPARE A VOTE OR TWO: <a title="http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic" href="http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic">http://feedback.appharbor.com/forums/95687-general/suggestions/1686365-add-feature-to-push-an-app-offline-htm-at-the-clic</a> </li></ul></p>
<p><p>One great benefit of to this approach is the ability for vsdbcmd to manage changes to an existing schema, <b>rx free Viagra</b>.  <b>Cheap Viagra</b>, </p></p>
<p><p>Now if you want full support like refactorings such as table, column, <b>Viagra treatment</b>, <b>Ordering Viagra online</b>, etc renames. You will want to keep a full db project and use that to do a deployment.</p></p>
<p><p>Hope you find this useful, <b>buy no prescription Viagra online</b>.  <b>Taking Viagra</b>, Happy Deployment!</p>.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4335'>Buy Differin Without Prescription</a>. <a href='http://elegantcode.com/?p=4423'>Antabuse For Sale</a>. <a href='http://elegantcode.com/?p=4744'>Buy Flexeril Without Prescription</a>. <a href='http://elegantcode.com/?p=4587'>Buy Pristiq Without Prescription</a>. <a href='http://elegantcode.com/?p=4633'>Cephalexin For Sale</a>. <a href='http://elegantcode.com/?p=4384'>Order Ultram online overnight delivery no prescription</a>. <a href='http://elegantcode.com/?p=4683'>Inderal schedule</a>. <a href='http://elegantcode.com/?p=4822'>About Hydrochlorothiazide</a>. <a href='http://elegantcode.com/?p=4728'>Ventolin australia, uk, us, usa</a>. <a href='http://elegantcode.com/?p=4694'>Human Growth Hormone interactions</a>.<br />
<b>Trackbacks from:</b> <a href='http://www.greatgreengoods.com/?p=2891'>Buy Viagra Without Prescription</a>. <a href='http://www.thegriffonnews.com/?p=10272'>Buy Viagra Without Prescription</a>. <a href='http://www.themusclecarplace.com/?p=3445'>Buy Viagra Without Prescription</a>. <a href='http://linuxologist.com/?p=363'>Buy Viagra Without Prescription</a>. <a href='http://blog.farmland.org/?p=2709'>Buy Viagra Without Prescription</a>. <a href='http://www.quarterlives.com/?p=286'>Where can i cheapest Viagra online</a>. <a href='http://www.macneilbmx.com/blog/?p=6199'>Online Viagra without a prescription</a>. <a href='http://social-blend.com/?p=1253'>Japan, craiglist, ebay, overseas, paypal</a>. <a href='http://www.leaduganda.org/?p=824'>Purchase Viagra online no prescription</a>. <a href='http://4realz.net/?p=1851'>Viagra no rx</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2011/04/13/using-vsdbcmd-to-deploy-an-entity-framework-ef-codefirst-or-any-other-database-to-appharbor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving your global .gitconfig file</title>
		<link>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=moving-your-global-gitconfig-file</link>
		<comments>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/#comments</comments>
		<pubDate>Fri, 05 Nov 2010 11:02:41 +0000</pubDate>
		<dc:creator>Andreas Håkansson</dc:creator>
				<category><![CDATA[Source Control]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/</guid>
		<description><![CDATA[I am using msysgit for my Git work on Windows and for quite a while I have been wanting to move the global .gitconfig file from its default location into my dropbox folder. The reason for this is probably obvious, I do not want to have to make the same configuration changes on multiple machines [...]]]></description>
			<content:encoded><![CDATA[I am using <a title="Visit the project page of msysgit" href="http://code.google.com/p/msysgit/" target="_blank">msysgit</a> for my Git work on Windows and for quite a while I have been wanting to move the global .gitconfig file from its default location into my dropbox folder. The reason for this is probably obvious, I do not want to have to make the same configuration changes on multiple machines to get a homogenize Git environment.

So I set out to resolve this but despite numerous stops at my local Google page, I was unable to find any information on how to make Git look for the file in a different location, it always went to look for the file at <em>%USERPROFILE%\.gitconfig</em>.

As a last resort I asked <a title="Visit the blog of Joshua Flanagan" href="http://www.lostechies.com/blogs/joshuaflanagan/" target="_blank">Joshua Flanagan</a> if he had any idea on how I could configure Git or msysgit to make this possible. Unfortunately he had no idea, but he did however suggest that I try using <a title="Visit the product page for mklink" href="http://technet.microsoft.com/en-us/library/cc753194(WS.10).aspx" target="_blank">mklink</a>, a command line utility available in Windows Vista and later.

mklink enables you to create either <a title="Read more about the differences between symbolic and hard links" href="http://www.maxi-pedia.com/difference+between+symbolic+link+and+hard+link" target="_blank">symbolic or hard links</a> for files or directories. What I needed was a symbolic link, which simply explained is like a shortcut to a file but the difference is that the file system will resolve the symbolic link to the real file, where as a windows shortcut is a file with information in it.

To create a symbolic link for your .gitconfig file do the following
<ol>
	<li>Copy your .gitconfig file from the %USERPROFILE% directory, to the directory where you want to store it instead</li>
	<li>Delete the .gitconfig file in the %USERPROFILE% directory</li>
	<li>Start <strong>cmd.exe</strong> as Administrator</li>
	<li>Enter <strong>mklink .gitconfig path\to\your\.gitconfig</strong> (notice the actual filename needs to be in the second parameter or you will link to the folder it is stored in)</li>
</ol>
You should now get a message that a symbolic link was created between the two files. Try making a change in either of them and see that the change is reflected in the other one – this is because you are always editing the same file since the file system resolves the symbolic link into the real file.]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/11/05/moving-your-global-gitconfig-file/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Pluralcast 21 &#8211; Extending Visual Studio 2010 with Kate Gregory</title>
		<link>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pluralcast-21-extending-visual-studio-2010-with-kate-gregory</link>
		<comments>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 03:42:23 +0000</pubDate>
		<dc:creator>David Starr</dc:creator>
				<category><![CDATA[Pluralcast]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/</guid>
		<description><![CDATA[Listen Now! Kate Gregory has probably forgotten more coding tricks than I have ever learned. That means that she likes her Visual Studio with meat and potatoes. With the new extensibility model in Visual Studio 2010,  Visual Studio can now be the primary source or protein in your IDE diet. In this episode Kate tells us [...]]]></description>
			<content:encoded><![CDATA[<a href="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3"><img style="display: inline; border-width: 0px;" title="PlayIcon" src="http://elegantcode.com/wp-content/uploads/2010/08/PlayIcon.png" border="0" alt="PlayIcon" width="24" height="24" /></a> <a href="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3" target="_blank">Listen Now</a>!

Kate Gregory has probably forgotten more coding tricks than I have ever learned. That means that she likes her Visual Studio with meat and potatoes. With the new extensibility model in Visual Studio 2010,  Visual Studio can now be the primary source or protein in your IDE diet. In this episode Kate tells us how to add a little hot sauce using Visual Studio extensions.

<a href="http://elegantcode.com/wp-content/uploads/2010/08/kategregory.jpg"><img style="margin: 5px; display: inline; border-width: 0px;" title="kate-gregory" src="http://elegantcode.com/wp-content/uploads/2010/08/kategregory_thumb.jpg" border="0" alt="kate-gregory" width="112" height="142" align="right" /></a> Kate is in her fourth decade of being paid to program. Her firm, Gregory Consulting Limited, is based in rural Ontario and helps clients adopt new technologies and adjust to the changing business environment. Current work makes heavy use of .NET and Visual C++ along with SharePoint and both web and client development, especially for Windows 7. Managing, mentoring, technical writing, and technical speaking occupy much of her time, but she still writes code every week.

Kate is the author of over a dozen books and speaks at DevTeach, TechEd (USA, Europe, Africa), and TechDays, among others. Kate is a C++ MVP, a founding sponsor of the Toronto .NET Users Group, the founder of the East of Toronto .NET Users group, a member of the INETA speakers bureau, and a member of adjunct faculty at Trent University in Peterborough. Since January 2002 she has been Microsoft Regional Director for Toronto and since January 2004 she has been awarded the Microsoft Most Valuable Professional designation for Visual C++. In June 2005 she won the Regional Director of the year award.

<strong>Show Links</strong>
<ul>
	<li><a href="http://www.gregcons.com/kateblog/">Kate’s Blog</a></li>
	<li><a href="http://www.pluralsight-training.net/microsoft/olt/Course/Toc.aspx?n=vs2010-vsx">Kate’s Pluralsight course, <em>Customizing and Extending Visual Studio 2010</em></a></li>
	<li><a href="http://msdn.microsoft.com/en-us/vstudio/vextend.aspx">Visual Studio Extensibility (VSX)</a></li>
	<li><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=47305cf4-2bea-43c0-91cd-1b853602dcc5&amp;displaylang=en">Visual Studio SDK</a></li>
	<li><a href="http://visualstudiogallery.msdn.microsoft.com/">Visual Studio Gallery</a></li>
	<li><a href="http://code.msdn.microsoft.com/vsx">The Code Gallery</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/08/01/pluralcast-21-extending-visual-studio-2010-with-kate-gregory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://pluralsight-free.s3.amazonaws.com/pluralcast/pc_021_vsx_kate_gregory.mp3" length="41629427" type="audio/mpeg" />
		</item>
		<item>
		<title>God Mode Easter Egg</title>
		<link>http://elegantcode.com/2010/01/04/god-mode-easter-egg/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=god-mode-easter-egg</link>
		<comments>http://elegantcode.com/2010/01/04/god-mode-easter-egg/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 04:55:51 +0000</pubDate>
		<dc:creator>David Starr</dc:creator>
				<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/01/04/god-mode-easter-egg/</guid>
		<description><![CDATA[I did not discover this, I got it from a tweet that Rob Conery put out there. Thank you, Rob! I don’t know if this is a Windows 7 hack or if this is available in other operating systems. Create a new folder on your desktop Name the new folder: GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} The new folder will [...]]]></description>
			<content:encoded><![CDATA[I did not discover this, I got it from <a href="http://bit.ly/62zZlc ">a tweet</a> that <a href="http://blog.wekeroad.com/">Rob Conery</a> put out there. Thank you, Rob!

I don’t know if this is a Windows 7 hack or if this is available in other operating systems.
<ol>
	<li>Create a new folder on your desktop</li>
	<li>Name the new folder:
GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}</li>
</ol>
The new folder will change into this icon.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image1.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb1.png" border="0" alt="image" width="84" height="90" /></a>

Clicking your shiny new icon will result in a new window that gives shortcut access to the myriad of configuration and administration utilities in Windows that I always seem to need to hunt down.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image2.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb2.png" border="0" alt="image" width="397" height="1474" /></a>

Opening one of these nodes will provide direct access to the associated utils.

<a href="http://elegantcode.com/wp-content/uploads/2010/01/image3.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb3.png" border="0" alt="image" width="586" height="313" /></a>

Weird and beautiful, isn’t it?

It makes me wonder what other Easter eggs are in there.]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/01/04/god-mode-easter-egg/feed/</wfw:commentRss>
		<slash:comments>40</slash:comments>
		</item>
		<item>
		<title>Unity/Moq &#8211; AutoMocker or AutoMockingContainer</title>
		<link>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=unitymoq-automocker-or-automockingcontainer</link>
		<comments>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 16:52:33 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[TDD]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/</guid>
		<description><![CDATA[What is an Auto Mocking Container? This post started to get a little long, so I won’t re-explain the concept. Joshua Flanagan wrote a nice overview at his Los Techies blog: Auto mocking Explained. My post is mainly here to describe the Unity version of an automocking container I threw together. In Jan 2009 I [...]]]></description>
			<content:encoded><![CDATA[<h4>What is an Auto Mocking Container?</h4>  <p>This post started to get a little long, so I won’t re-explain the concept.</p>  <p><a href="http://www.lostechies.com/blogs/joshuaflanagan/default.aspx">Joshua Flanagan</a> wrote a nice overview at his <a href="http://www.lostechies.com/">Los Techies</a> blog: <a href="http://www.lostechies.com/blogs/joshuaflanagan/archive/2009/02/03/auto-mocking-explained.aspx"><strong>Auto mocking Explained</strong></a>.</p>  <p>My post is mainly here to describe the Unity version of an automocking container I threw together.</p>  <h4>In Jan 2009 I blogged about my initial version of the Unity AutoMocker - Why am I blogging about it again?</h4>  <p>I originally wrote the AutoMocker for the Unity container a year ago (Jan 2009, in Silverlight), and finally got around to placing the code up in the <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> project in June of 2009.</p>  <p>I’m writing another post today in hopes to:</p>  <ol>   <li>Get some feedback on how this little snippet of code should continue. </li>    <li>Give a little more how-to/example code </li>    <li>Describe some updates I made since I originally created it.&#160; </li> </ol>  <h4>Where can I get it?</h4>  <p><strong>This is one part where I’d appreciate some feedback.</strong></p>  <p>I have two slightly different versions out there (currently).</p>  <p>I have one version at the <a href="http://code.google.com/p/elegantcode/source/browse/#svn/trunk/Coders/JasonJarrett/UnityAutoMocker">ElegantCode</a> repository where I was working on it, and the other I threw up at <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a>.</p>  <p>The core of the UnityAutoMockContainer is the same in both places, it’s how the tests are separated out that differ.</p>  <p>In the <a href="http://code.google.com/p/elegantcode/source/browse/#svn/trunk/Coders/JasonJarrett/UnityAutoMocker">ElegantCode repository</a> it’s an all in one self contained single file (that you can copy into your own test project(s)). You can then setup a single test in your own testing framework that runs all internal automocker tests (in case you need to modify it yourself, and don’t want to break any existing functionality). EX: test</p>  <pre class="brush: csharp;">[Test]
public void Should_run_all_UnityAutoMockContainer_internal_tests()
{
    Moq.AutoMocking.SelfTesting.UnityAutoMockContainerFixture
        .RunAllTests(Console.WriteLine);
}</pre>

<p>I kind of like this format as it makes it easy to port between test libraries. Can’t say I like having the tests in the same file as the core, but it certainly is not a large chunk of code (so far) so it’s relatively small to maintain and definitely easier to manage as a single .cs file than another assembly (which would have to be version dependent on both Unity and Moq).</p>

<p>The <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> is definitely where I think this helper should end up (and it is there). I just happened to break the tests out into the Silverlight test project and the core is alone in a file. </p>

<p>It’s current state isn’t as easy to copy to a test library (Silverlight/Desktop/Unity 1.2/Unity 2.0) as the one at <a href="http://elegantcode.com/">ElegantCode</a>. <strong>What does anyone think?</strong> Should I put them all together in one file?</p>

<p>However it ends up (1. all in one file or two (1 test) (1 core)) it will continue to be maintained on the <a href="http://code.google.com/p/moq-contrib/">moq-contrib</a> project.</p>

<h4>What is the high level API of the container?</h4>

<p>It’s pretty simple, (currently) there are four methods on the container.</p>

<p><strong>Two for registering items with the container</strong>. Say you want to register an already created instance, or say you want to map an interface to a concrete class and _not_ have the container generate mocks automatically for special cases. </p>

<p>And <strong>two for pulling items out of the container</strong>. Whether you want a instance of T or a Mock&lt;T&gt;, it gives you ways to retrieve both.</p>

<blockquote>
  <p><a href="http://elegantcode.com/wp-content/uploads/2010/01/image.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2010/01/image_thumb.png" width="396" height="106" /></a> </p>
</blockquote>

<h4>How can I setup my own registrations with the container? </h4>

<p>Say I don’t want to have the container generate mocks for specific items and I want to supply specific configuration to the UnityContainer.</p>

<blockquote>
  <p>public UnityAutoMockContainer RegisterInstance&lt;TService&gt;(TService instance)</p>

  <p>public UnityAutoMockContainer Register&lt;TService, TImplementation&gt;() 
    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; where TImplementation : TService</p>
</blockquote>

<p><strong>Note</strong>: both of these registration methods return the container itself so you can fluently stack registration. <strong>EX:</strong></p>

<pre class="brush: csharp;">AutoMockContainer
    .Register&lt;IServiceA, ServiceA&gt;()
    .Register&lt;IServiceB, ServiceB&gt;();</pre>

<p><strong>Let me know</strong>: I haven’t tested or played around with how this automocking container deals with any container specific xml configuration… So although I don’t think you should probably have that in a test assembly (stuff happens). Let me know if there are any issues.</p>

<h4>How do I get items out of the container?</h4>

<p>First is the Resolve&lt;T&gt;(). It will pull an item T out of the container. (Creating it if not already existing)</p>

<blockquote>
  <p>public T Resolve&lt;T&gt;()</p>
</blockquote>

<p>When T is an interface Resolve&lt;T&gt; (unless you setup registration specifically with the container) should return basically “(new Mock&lt;T&gt;()).Object”</p>

<p>When T is a concrete Class, the container should return an instance of T and any of it’s dependencies will be satisfied by mocks. (Note that T will not be any sort of mocked instance of T, unless you used the GetMock&lt;T&gt; as described below first)</p>

<blockquote>
  <p>public Mock&lt;T&gt; GetMock&lt;T&gt;() where T : class</p>
</blockquote>

<p>When T is an interface GetMock&lt;T&gt; should return basically “(new Mock&lt;T&gt;())” </p>

<p>When T is a concrete Class, the container should return a new Mock&lt;T&gt;() and any of it’s dependencies will be satisfied by mocks.</p>

<h4>How do I use the UnityAutoMockContainer?</h4>

<p>It’s pretty basic, you first create an instance of the UnityAutoMockContainer, and from there you can ask it for mocks of an (Interface, Class, or Abstract Class).</p>

<p>If you request an instance of a concrete class, or abstract class, the UnityAutoMockContainer will stuff mocks in for any constructor dependencies of your concrete class (if it can). You can then request from the container those same dependencies one at a time and either apply mocking setups or verifications.</p>

<blockquote>
  <p><strong>NOTE:</strong> Anything the container creates will live as a singleton instance in the container. So any other requests from the container will always return the originally created instance. Therefore, each distinct scenario in a test suite should have their own instances of the container.</p>
</blockquote>

<p>Below his an example of how you can leverage the container in some tests. Given this base fixture class…</p>

<pre class="brush: csharp;">public class FixtureBase
{
    private readonly UnityAutoMockContainer _autoMockContainer = new UnityAutoMockContainer();

    protected UnityAutoMockContainer AutoMockContainer
    {
        get { return _autoMockContainer; }
    }

    [TestFixtureSetUp]
    public void SetupContext_ALL()
    {
        Before_all_tests();
        Because();
    }

    [TestFixtureTearDown]
    public void TearDownContext_ALL()
    {
        After_all_tests();
    }

    protected virtual void Before_all_tests()
    {
    }

    protected virtual void Because()
    {
    }

    protected virtual void After_all_tests()
    {
    }
}</pre>

<p>If I were given the following system to test.</p>

<pre class="brush: csharp;">public interface IServiceA { void RunA(); }
public interface IServiceB { void RunB(); }

public class TestComponent
{
    public TestComponent(IServiceA serviceA, IServiceB serviceB)
    {
        ServiceA = serviceA;
        ServiceB = serviceB;
    }

    public IServiceA ServiceA { get; private set; }
    public IServiceB ServiceB { get; private set; }

    public void RunAll()
    {
        if (!HowDidItGo())
            return;
        ServiceA.RunA();
        ServiceB.RunB();
    }

    public virtual bool HowDidItGo()
    {
        // some really nasty untestable code
        return true;
    }
}</pre>

<p>The below example demonstrates simply verifying some behavior on the mocked dependencies of the system under test.</p>

<pre class="brush: csharp;">[TestFixture]
public class Example__how_to_pull_items_from_the_UnityAutoMockContainer_when_verifying_behavior_after_an_action_was_taken 
    : FixtureBase
{
    private TestComponent _testComponent;

    protected override void Before_all_tests()
    {
        base.Before_all_tests();
        _testComponent = AutoMockContainer.Resolve&lt;TestComponent&gt;();
    }

    protected override void Because()
    {
        _testComponent.RunAll();
    }

    [Test]
    public void Should_run_ServiceA_RunA()
    {
        AutoMockContainer
            .GetMock&lt;IServiceA&gt;()
            .Verify(v =&gt; v.RunA(), Times.Once());
    }

    [Test]
    public void Should_run_ServiceB_RunB()
    {
        AutoMockContainer
            .GetMock&lt;IServiceB&gt;()
            .Verify(v =&gt; v.RunB(), Times.Once());
    }
}</pre>

<p>Next, you may have noticed that the system under test had a complicated internal method (that may not necessarily be testable). You can use the AutoMocker to create the system under test as a Mock itself, so we can override some of the behavior. Here’s how you could quickly do that. </p>

<blockquote>
  <p><strong>Aside</strong>: I’m not saying this is a good practice or aids in good component design, just saying it’s possible</p>
</blockquote>

<pre class="brush: csharp;">[TestFixture]
public class Example__how_to_use_the_UnityAutoMockContainer_to_override_a_method_on_the_SystemUnderTest_to_test_a_certain_behavior
    : FixtureBase
{

    private TestComponent _testComponent;

    protected override void Before_all_tests()
    {
        base.Before_all_tests();
        var mockTestComponent = AutoMockContainer.GetMock&lt;TestComponent&gt;();

        mockTestComponent
            .Setup(s =&gt; s.HowDidItGo())
            .Returns(false);

        _testComponent = mockTestComponent.Object;
    }

    protected override void Because()
    {
        _testComponent.RunAll();
    }

    [Test]
    public void Should_run_ServiceA_RunA()
    {
        AutoMockContainer
            .GetMock&lt;IServiceA&gt;()
            .Verify(v =&gt; v.RunA(), Times.Never());
    }

    [Test]
    public void Should_run_ServiceB_RunB()
    {
        AutoMockContainer
            .GetMock&lt;IServiceB&gt;()
            .Verify(v =&gt; v.RunB(), Times.Never());
    }
}</pre>

<p>&#160;</p>

<p>It’s amazing how much redundant test setup code this little helper has saved me in my tests. I hope others can find some use with this as well.</p>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2010/01/03/unitymoq-automocker-or-automockingcontainer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>If (Successful) { throw new Exception(); }</title>
		<link>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=if-successful-throw-new-exception</link>
		<comments>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 14:56:59 +0000</pubDate>
		<dc:creator>Brian Lagunas</dc:creator>
				<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/</guid>
		<description><![CDATA[So, I was installing Visual Studio 2010 Ultimate Beta 2 on one of my machines the other day and the funniest thing happened.&#160; After it successfully installed, I was prompted to send an error report. Since when is a successful operation a problem?&#160; Now, of course, I am assuming this is intentional and is transmitting [...]]]></description>
			<content:encoded><![CDATA[<p>So, I was installing Visual Studio 2010 Ultimate Beta 2 on one of my machines the other day and the funniest thing happened.&#160; After it successfully installed, I was prompted to send an error report.</p>  <p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="error" border="0" alt="error" src="http://elegantcode.com/wp-content/uploads/2009/12/error.jpg" width="380" height="209" /> </p>  <p>Since when is a successful operation a problem?&#160; Now, of course, I am assuming this is intentional and is transmitting information back to Microsoft to tell them that it was successful.&#160; But, I can see how easy it would be for someone to mistaken this for a legitimate error.&#160; Then again, maybe it is.</p>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2009/12/24/if-successful-throw-new-exception/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>StatLight &#8211; Goes Open Source</title>
		<link>http://elegantcode.com/2009/12/10/statlight-goes-open-source/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=statlight-goes-open-source</link>
		<comments>http://elegantcode.com/2009/12/10/statlight-goes-open-source/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 03:26:55 +0000</pubDate>
		<dc:creator>Jason Jarrett</dc:creator>
				<category><![CDATA[Esoterica]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[TDD]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Tools and Utilities]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2009/12/10/statlight-goes-open-source/</guid>
		<description><![CDATA[Although I made a very minor attempt at making StatLight a “for-sale” product, I knew when I started that open-source was most likely going to be my long term path for StatLight. What is it? (Silverlight Testing Automation Tool) StatLight is a tool developed for automating the setup, running, and gathering results of Silverlight unit [...]]]></description>
			<content:encoded><![CDATA[Although I made a very minor attempt at making <a href="http://statlight.net" target="_blank">StatLight</a> a “for-sale” product, I knew when I started that open-source was most likely going to be my long term path for <a href="http://statlight.net" target="_blank">StatLight</a>.
<h5>What is it? (Silverlight Testing Automation Tool)</h5>
StatLight is a tool developed for automating the setup, running, and gathering results of Silverlight unit tests. StatLight helps to speed up the feedback cycles while practicing<a href="http://en.wikipedia.org/wiki/Test-driven_development"> TDD</a>/<a href="http://en.wikipedia.org/wiki/Behavior_Driven_Development">BDD</a>/(insert your test style here) during Silverlight development.
<h5>Where can I get StatLight?</h5>
<a href="http://StatLight.CodePlex.com">http://StatLight.CodePlex.com</a>
<h4>Happy Coding !!!</h4>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2009/12/10/statlight-goes-open-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running with Parallels 5</title>
		<link>http://elegantcode.com/2009/12/03/running-with-parallels-5/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=running-with-parallels-5</link>
		<comments>http://elegantcode.com/2009/12/03/running-with-parallels-5/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 23:43:35 +0000</pubDate>
		<dc:creator>Mark Nijhof</dc:creator>
				<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Tools and Utilities]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2009/12/03/running-with-parallels-5/</guid>
		<description><![CDATA[I have since I received my MacBook Pro always run Windows using VM Ware Fusion, and this has been working pretty good. I could have multiple instances of Visual Studio open and do my job. I always updated to the latest version that was available so now that version 3 was released I downloaded it [...]]]></description>
			<content:encoded><![CDATA[<p>I have since I received my MacBook Pro always run Windows using VM Ware Fusion, and this has been working pretty good. I could have multiple instances of Visual Studio open and do my job. I always updated to the latest version that was available so now that version 3 was released I downloaded it and installed it. And all was fine, until I saw this <a href="http://macvillagepro.com/wordpress/?p=256" target="_blank">screen cast</a> by Skeeter showing significant speed benefits from using Parallels 5 versus Fusion 3.</p>  <p>So I had to try it out, so I also wanted to see what the Windows Experience would tell me and here is the previous run on Fusion 2.</p>  <p><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="Fusion2" border="0" alt="Fusion2" src="http://elegantcode.com/wp-content/uploads/2009/12/Fusion2.jpg" width="553" height="194" /> </p>  <p>Unfortunately when running Fusion 3 I was unable to do the diagnostic as it kept crashing when trying to test the Graphics capabilities, so I was even more surprised about the results that I got from Parallels 5.</p>  <p><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="Parallels5" border="0" alt="Parallels5" src="http://elegantcode.com/wp-content/uploads/2009/12/Parallels5.jpg" width="553" height="194" /> </p>  <p>Now as you can see the Processor rating has actually gone down, but I am actually not to worried about that. Meaning I am sure that has more to do with external variables. Anyway look at the Graphics performance.</p>  <p>Now graphics performance is nice, but as a coder that is not really what I think is important is how responsive my Visual Studio IDE is and I have to say it does feel quit a bit faster then in Fusion 3 and I also really like how it integrates with my Mac. I am also happy to say that the conversion from my Fusion image to the Parallels image went without any problems, it did take about an hour do. So for me this is my new virtual platform, at least for now.</p>]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2009/12/03/running-with-parallels-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

