<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3" -->
<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/"
	>

<channel>
	<title>matthew ephraim's blog</title>
	<link>http://www.mattephraim.com</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Thu, 02 Oct 2008 18:50:18 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3</generator>
	<language>en</language>
			<item>
		<title>Speaking of Browser Bugs&#8230;</title>
		<link>http://www.mattephraim.com/blog/2008/10/02/speaking-of-browser-bugs/</link>
		<comments>http://www.mattephraim.com/blog/2008/10/02/speaking-of-browser-bugs/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 18:49:29 +0000</pubDate>
		<dc:creator>Matthew Ephraim</dc:creator>
		
		<category><![CDATA[internet]]></category>

		<guid isPermaLink="false">http://www.mattephraim.com/blog/2008/10/02/speaking-of-browser-bugs/</guid>
		<description><![CDATA[I keep breaking Google Chrome. Without even trying.
]]></description>
			<content:encoded><![CDATA[<p>I keep breaking Google Chrome. Without even trying.</p>
<img src="http://farm4.static.flickr.com/3168/2908074440_2aef4e1569_o.jpg" />]]></content:encoded>
			<wfw:commentRss>http://www.mattephraim.com/blog/2008/10/02/speaking-of-browser-bugs/feed/</wfw:commentRss>
		</item>
		<item>
		<title>It&#8217;s a (Firefox) bug!</title>
		<link>http://www.mattephraim.com/blog/2008/09/30/its-a-firefox-bug/</link>
		<comments>http://www.mattephraim.com/blog/2008/09/30/its-a-firefox-bug/#comments</comments>
		<pubDate>Wed, 01 Oct 2008 01:24:18 +0000</pubDate>
		<dc:creator>Matthew Ephraim</dc:creator>
		
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.mattephraim.com/blog/2008/09/30/its-a-firefox-bug/</guid>
		<description><![CDATA[
Sometimes it&#8217;s a relief when you find that a bug you&#8217;re trying to fix in your own code is actually related to someone else&#8217;s code. I&#8217;ve been trying to figure out why large text blocks inside of an xml file keep getting truncated when I read the file in with JavaScript. Turns out it&#8217;s Firefox [...]]]></description>
			<content:encoded><![CDATA[<p>
Sometimes it&#8217;s a relief when you find that a bug you&#8217;re trying to fix in your own code is actually related to someone else&#8217;s code. I&#8217;ve been trying to figure out why large text blocks inside of an xml file keep getting truncated when I read the file in with JavaScript. Turns out it&#8217;s <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=452675">Firefox Bug 452675</a>.
</p>

<div class="code_block">
<span class="code_label">Bug</span>
<pre><code>FF 3 creates multiple #text nodes for elements with well under 
4096 characters of text data</code></pre>
</div>


<p>Good to know I&#8217;m not crazy&#8230;</p>]]></content:encoded>
			<wfw:commentRss>http://www.mattephraim.com/blog/2008/09/30/its-a-firefox-bug/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Keep tinyMCEPopup From Loading the Popup CSS File</title>
		<link>http://www.mattephraim.com/blog/2008/07/12/keep-tinymcepopup-from-loading-the-popup-css-file/</link>
		<comments>http://www.mattephraim.com/blog/2008/07/12/keep-tinymcepopup-from-loading-the-popup-css-file/#comments</comments>
		<pubDate>Sat, 12 Jul 2008 07:03:59 +0000</pubDate>
		<dc:creator>Matthew Ephraim</dc:creator>
		
		<category><![CDATA[javascript]]></category>

		<category><![CDATA[TinyMCE]]></category>

		<guid isPermaLink="false">http://www.mattephraim.com/blog/2008/07/12/keep-tinymcepopup-from-loading-the-popup-css-file/</guid>
		<description><![CDATA[The tinyMCEPopup helper class for TinyMCE automatically includes a theme stylesheet file. I figured out a workaround that keeps this from happening.]]></description>
			<content:encoded><![CDATA[<p>
This week I have been developing my first TinyMCE plugin. One of the first steps was designing the popup dialog box that would be associated with the plugin. Initially, everything was going smoothly. I had the XHTML and CSS just the way I wanted it and I was ready to move on to the next step of developing the JavaScript that would power the functionality of the plugin. 
</p>
<p>
One of the utility files that TinyMCE allows you to include is a file called <strong>tiny_mce_popup.js</strong>. Including this file gives you access to a class called <strong><a href="http://wiki.moxiecode.com/index.php/TinyMCE:API/tinyMCEPopup">tinyMCEPopup</a></strong>. This class provides you with some helper functions that come in handy when developing the dialog box for a TinyMCE plugin. Unfortunately, including the helper file also has a side effect: the helper class will automatically include the current theme&#8217;s css file. In the case of my plugin, the css file for the current theme completely changed the way my plugin&#8217;s XHTML was styled. And not in a good way. 
</p>
<p>
One solution would have been to modify my stylesheet or alter my XHTML so that the stylesheet didn&#8217;t interfere with the way I wanted the page to look. I tried to do this initially, but what I really wanted was for the theme stylesheet not to be included at all. As far as I can tell there&#8217;s no built in way to do force the tinyMCEPopup class to not include the stylesheet. So, I developed a workaround that seems to keep the stylesheet from loading without causing any side effects.
</p>
<p>
The first thing I needed to do was to unset the property that defined the theme stylesheet for popup dialogs. That way when the tinyMCEPopup class tried to include the file, it wouldn&#8217;t find anything to include. The location of the popup stylesheet is stored in the settings for the editor instance under <strong>editor.settings.popup_css</strong>. I figured out that the property could be unset at the beginning of the command that was executed when the button for my plugin was clicked. 
</p>
<div class="code_block">
	<span class="code_label">JavaScript</span>
	<pre class="prettyprint"><code>editor.addCommand('mceMyPluginCommand', function() 
{		
	// Set the popup css to null while page loads 
	// because my plugin uses its own css
	editor.settings.popup_css = null; 
	...
});</code></pre>
</div>
<p>
This worked fine, but setting the popup_css property to null caused the stylesheet for any other plugin&#8217;s popup dialog to not load correctly. To get around this problem I needed to restore the original popup_css property once my plugin&#8217;s dialog box was finished loading. To do this, I simply added a command to the editor that would restore the original popup_css property.
</p>
<div class="code_block">
	<span class="code_label">JavaScript</span>
	<pre class="prettyprint"><code>// Registers an event that will 
// Add command to restore the original css file
ed.onInit.add(function() 
{ 
	var origCss = editor.settings.popup_css;
	editor.addCommand("mceMyPlugin_restoreCss", 
                       function() { editor.settings.popup_css = origCss; });
});</code></pre>
</div>
<p>
The previous two pieces of code could be run during the initialization of my plugin. Finally, I needed to use the tinyMCEPopup class inside of my popup dialog to call the function that restored the css.
</p>
<div class="code_block">
	<span class="code_label">JavaScript</span>
	<pre class="prettyprint"><code>// Restore the popup css to the original theme css
tinyMCEPopup.execCommand("mceMyPlugin_restoreCss");</code></pre>
</div>
<p>
It&#8217;s not the most elegant solution to the problem, but so far it&#8217;s the only way I&#8217;ve been able to figure out how to force the tinyMCEPopup class not to load the theme css file.
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mattephraim.com/blog/2008/07/12/keep-tinymcepopup-from-loading-the-popup-css-file/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Miracle Fruit Experiment Part 3: Fail</title>
		<link>http://www.mattephraim.com/blog/2008/07/01/miracle-fruit-experiment-part-3-fail/</link>
		<comments>http://www.mattephraim.com/blog/2008/07/01/miracle-fruit-experiment-part-3-fail/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 04:27:55 +0000</pubDate>
		<dc:creator>Matthew Ephraim</dc:creator>
		
		<category><![CDATA[miracle fruit]]></category>

		<guid isPermaLink="false">http://www.mattephraim.com/blog/2008/07/01/miracle-fruit-experiment-part-3-fail/</guid>
		<description><![CDATA[
Miracle Fruit needs warmth and humidity to grow (so I&#8217;m told). My apartment is sunny, but when I started trying to grow Miracle Fruit I didn&#8217;t think it would be warm enough to get the seeds started. So, I decided that it might be a good idea to set the seeds out on the windowsill, [...]]]></description>
			<content:encoded><![CDATA[<p>
Miracle Fruit needs warmth and humidity to grow (so I&#8217;m told). My apartment is sunny, but when I started trying to grow Miracle Fruit I didn&#8217;t think it would be warm enough to get the seeds started. So, I decided that it might be a good idea to set the seeds out on the windowsill, where it was nice and sunny and warm. I had been doing that for about 2 weeks now, without any trouble.
</p>
<p>
Unfortunately, it was too good to last. When I came home tonight my roommate told me, with a look of sadness, that something had happened to my seeds. Somehow, my mini green houses had fallen off the windowsill and onto the deck, spilling the seeds and the soil all over the place. By the time I came home my roommate and cleaned up the mess. A lot of the soil was gone and it appeared that the seeds had blown into a hole where no one can escape.
</p>
<p>
<h3>
Miracle Fail
</h3>
<img src="http://farm4.static.flickr.com/3178/2629509247_5215a1c779.jpg?v=0" />
</p>
<p>
To be continued&#8230;?
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mattephraim.com/blog/2008/07/01/miracle-fruit-experiment-part-3-fail/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Miracle Fruit Experiment Part 2: Mini Greenhouses</title>
		<link>http://www.mattephraim.com/blog/2008/06/21/miracle-fruit-experiment-part-21-mini-greenhouses/</link>
		<comments>http://www.mattephraim.com/blog/2008/06/21/miracle-fruit-experiment-part-21-mini-greenhouses/#comments</comments>
		<pubDate>Sat, 21 Jun 2008 19:42:59 +0000</pubDate>
		<dc:creator>Matthew Ephraim</dc:creator>
		
		<category><![CDATA[miracle fruit]]></category>

		<guid isPermaLink="false">http://www.mattephraim.com/blog/2008/06/21/miracle-fruit-experiment-part-21-mini-greenhouses/</guid>
		<description><![CDATA[
This week, I made some mini greenhouses for my Miracle Fruit. I&#8217;m hoping that they keep the seeds warm and hold in the humidity. More waiting&#8230;


]]></description>
			<content:encoded><![CDATA[<p>
This week, I made some mini greenhouses for my Miracle Fruit. I&#8217;m hoping that they keep the seeds warm and hold in the humidity. More waiting&#8230;
</p>
<img src="http://farm4.static.flickr.com/3088/2598667504_135ec5a068.jpg" />
]]></content:encoded>
			<wfw:commentRss>http://www.mattephraim.com/blog/2008/06/21/miracle-fruit-experiment-part-21-mini-greenhouses/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Miracle Fruit Experiment Part 1: Planting the Seeds</title>
		<link>http://www.mattephraim.com/blog/2008/06/15/miracle-fruit-experiment-part-1-planting-the-seeds/</link>
		<comments>http://www.mattephraim.com/blog/2008/06/15/miracle-fruit-experiment-part-1-planting-the-seeds/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 01:47:17 +0000</pubDate>
		<dc:creator>Matthew Ephraim</dc:creator>
		
		<category><![CDATA[miracle fruit]]></category>

		<guid isPermaLink="false">http://www.mattephraim.com/blog/2008/06/15/miracle-fruit-experiment-part-1-planting-the-seeds/</guid>
		<description><![CDATA[A few weeks ago I read this article in the New York Times about a berry called Miracle Fruit.  About Miracle Fruit, Wikipedia says: 


The berry is sweet, and contains an active glycoprotein molecule, with some trailing carbohydrate chains, called miraculin. When the fleshy part of the fruit is eaten, this molecule binds to [...]]]></description>
			<content:encoded><![CDATA[<p>A few weeks ago I read <a href="http://www.nytimes.com/2008/05/28/dining/28flavor.html?_r=1&#038;oref=slogin">this article</a> in the New York Times about a berry called <a href="http://en.wikipedia.org/wiki/Miracle_fruit">Miracle Fruit</a>.  About Miracle Fruit, Wikipedia says: 
</p>
</p>
<blockquote><p>The berry is sweet, and contains an active glycoprotein molecule, with some trailing carbohydrate chains, called miraculin. When the fleshy part of the fruit is eaten, this molecule binds to the tongue&#8217;s taste buds, causing bitter and sour foods (such as lemons and limes) consumed later to taste sweet. This effect lasts between thirty minutes and two hours. It is not a sweetener, as its effects depend on what is eaten afterwards, but has been used to cause bitter medicine to taste sweet.</p></blockquote>
<p>I was intrigued, so I bought some seeds. They arrived this week and I started planting them right away.</p>
<p>I bought my seeds from Gold Crystal Garden via <a href="http://www.amazon.com/gp/offer-listing/B000U30BUG/ref=dp_olp_0?ie=UTF8&#038;qid=1213580091&#038;sr=8-1&#038;condition=all">Amazon</a>. They took a few weeks to arrive, and, when I they finally came, the instructions indicated that they needed to be planted right away.</p>
<p><img src="http://farm4.static.flickr.com/3126/2582634558_9b0081f4c9.jpg" /></p>
<p><img src="http://farm4.static.flickr.com/3053/2582633988_c5cbcfbf7c.jpg?v=0" /></p>
<p>I&#8217;m not much of a green thumb, so I followed the instructions that someone named Putzer posted at <a href="http://www.instructables.com/id/Growing-Your-Own-Miracle-Fruit/">Instructables</a>. Putzer said I needed 50/50 mix of Perlite and Peat Moss. So I mixed up a batch and planted each seed in a small biodegradable carton.</p>
<p><img src="http://farm4.static.flickr.com/3096/2582636402_a2eec9f869.jpg?v=0" /></p>
<p><img src="http://farm4.static.flickr.com/3057/2581807177_de3f870fa7.jpg?v=0" /></p>
<p>Now I wait&#8230;</p>
<p><img src="http://farm4.static.flickr.com/3021/2582636980_4ec66ca93f.jpg?v=0" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mattephraim.com/blog/2008/06/15/miracle-fruit-experiment-part-1-planting-the-seeds/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Add a Folder Menu Item to Start Visual Studio&#8217;s Web Server</title>
		<link>http://www.mattephraim.com/blog/2008/05/28/add-a-folder-menu-item-to-start-visual-studios-web-server/</link>
		<comments>http://www.mattephraim.com/blog/2008/05/28/add-a-folder-menu-item-to-start-visual-studios-web-server/#comments</comments>
		<pubDate>Thu, 29 May 2008 00:34:58 +0000</pubDate>
		<dc:creator>Matthew Ephraim</dc:creator>
		
		<category><![CDATA[asp.net]]></category>

		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.mattephraim.com/blog/2008/05/28/add-a-folder-menu-item-to-start-visual-studios-web-server/</guid>
		<description><![CDATA[
	Most days at work, I spend my time coding with Visual Studio 2008. I do ASP.Net development, and Visual Studio is pretty swell for working with ASP.Net. 
	However, sometimes it&#8217;s a little bit&#8230;heavy for what I need. Sometimes, I&#8217;m just writing some JavaScript and I feel like using a nice text editor 
	(like my current [...]]]></description>
			<content:encoded><![CDATA[<p>
	Most days at work, I spend my time coding with Visual Studio 2008. I do ASP.Net development, and Visual Studio is pretty swell for working with ASP.Net. 
	However, sometimes it&#8217;s a little bit&#8230;heavy for what I need. Sometimes, I&#8217;m just writing some JavaScript and I feel like using a nice text editor 
	(like my current favorite <a href="http://www.e-texteditor.com/">TextMate clone</a>). Unfortunately, when I&#8217;m not using Visual Studio it&#8217;s not as easy to use one of my 
	favorite features of Visual Studio: the built in <a href="http://www.mattephraim.com/blog/2008/05/14/taming-visual-studios-web-server/">web server</a>. 
</p>
<p>
	While it&#8217;s fairly <a href="http://www.devsource.com/c/a/Using-VS/Using-the-Visual-Studio-Builtin-Web-Server-from-the-Command-Line/">well known</a> that the 
	Visual Studio web server can be run from the command line, it&#8217;s a little awkward to type out the full path to the directory I&#8217;m working in when I want
	to start the server up. Luckily, this can be easily remedied with a quick registry edit that creates a folder contextual menu that will open the web server
	for a directory.
</p>
<p>
	<strong>First, if you&#8217;re going to be making changes to your registry <a href="http://windowsxp.mvps.org/registry.htm">Back It Up First</a></strong>
</p>
<h3>Creating a new contextual menu</h3>
<p>
	Once you&#8217;ve backed up your registry, you will need open the registry editor. Click on the start menu and choose <strong>&#8220;Run&#8230;&#8221;</strong>. Type &#8220;regedit&#8221; in the prompt and hit enter. Next, you will need to navigate 
	to the registry entry that needs to be modified. The key you will be modifying is located at:
</p>
<div class="code_block">
	<span class="code_label">Registry</span>
	<pre><code>HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell</code></pre>
</div>
<p>
	When you find the key, right click on the <strong>shell</strong> entry under <strong>Folder</strong> and choose <strong>New->Key</strong> from the menu. Whatever you name
	your new key will be the name of the option that shows up in the contextual menu. When you&#8217;ve named your key, right click on it and choose <strong>New->Key</strong> and this time name 
	the new key &#8220;Command&#8221;. 
</p>
<p>
	<img src="http://farm3.static.flickr.com/2050/2531851331_d4b9b6ab60_o.png" alt="registry entry" title="The new registry entry" />
</p>
<p>
	Click on the <strong>Command</strong> and you should see a key named <strong>(Default)</strong> to the right of it. This is the key that tells Windows 
	which application to pass your folder to when you choose your new contextual menu option. You will need to edit the new <strong>(Default)</strong> key, but the 
	value you enter will depend on which version of Windows you are using and which version of Visual Studio you are using. I entered a key for Windows XP x64 with Visual Studio 2008, 
	but you may need to modify the key for your specific environment.  
</p>
<div class="code_block">
	<span class="code_label">Registry</span>
	<pre><code>"C:\Program Files (x86)\Common Files\Microsoft Shared\DevServer\9.0\
WebDev.WebServer.EXE" /port:80 /path:"%1"</code></pre>
</div>
<p>The real key, of course, needs to be one line</p>
<p>
	The first part of the key:<br />
	<em>&#8220;C:\Program Files (x86)\Common Files\Microsoft Shared\DevServer\9.0\WebDev.WebServer.EXE&#8221;</em><br />
	specifies where the web server application is located. This is the part that may be different on your computer. 
</p>
<p>
	The second part of the key:<br /> 
	<em>/port:80 /path:&#8221;%1&#8243;</em><br />
        is the parameter string for the application.<br />
	<em>%1</em> represents the path to the folder that is tied to the contextual menu.
</p>
<p>
	If you&#8217;ve done everything correctly, you should immediately see a contextual menu that looks like one below when you right click on a folder.
</p>
<p>
	<img src="http://farm4.static.flickr.com/3131/2531798535_f308cfa966_o.png" alt="Contextual menu" title="A contextual menu for starting up the web server" />
</p>
<p>
	Clicking on this new menu option should start up the Visual Studio web server with the folder you selected as the root folder for the site. One caveat is that the web server
	will throw an error if an instance of the web server is already running for the same port. I still haven&#8217;t figured out a way around that. 
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mattephraim.com/blog/2008/05/28/add-a-folder-menu-item-to-start-visual-studios-web-server/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Windows Contextual Menus Are Inconsistent</title>
		<link>http://www.mattephraim.com/blog/2008/05/20/windows-contextual-menus-are-inconsistent/</link>
		<comments>http://www.mattephraim.com/blog/2008/05/20/windows-contextual-menus-are-inconsistent/#comments</comments>
		<pubDate>Wed, 21 May 2008 01:27:39 +0000</pubDate>
		<dc:creator>Matthew Ephraim</dc:creator>
		
		<category><![CDATA[microsoft]]></category>

		<category><![CDATA[usability]]></category>

		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.mattephraim.com/blog/2008/05/20/windows-contextual-menus-are-inconsistent/</guid>
		<description><![CDATA[
One of the many little things that annoys me about Windows is the inconsistency of where items are placed in contextual menus. Case in point: the menu that pops up when you right click on a taskbar item or window. I haven&#8217;t done a scientific study, but I&#8217;m going to guess that 80% of the [...]]]></description>
			<content:encoded><![CDATA[<p>
One of the many little things that annoys me about Windows is the inconsistency of where items are placed in contextual menus. Case in point: the menu that pops up when you right click on a taskbar item or window. I haven&#8217;t done a scientific study, but I&#8217;m going to guess that 80% of the time or more the last item in this particular contextual menu is the option to close the window that is being right clicked on. This is what the majority of the contextual menus look like:
</p>

<p>
<img src="http://farm3.static.flickr.com/2369/2414279983_f127381906_o.jpg" />
</p>

<p>
Having it as the last item makes sense. It&#8217;s probably the most commonly used menu item and it&#8217;s an easy target when it&#8217;s the last item in the list. The problem is: because that item is listed as the last item over 80% of the time, I start to expect that it&#8217;s always going to be the last item in the list. Unfortunately, that&#8217;s not always the case.
</p>

<p>
For whatever reason, some applications list other options below the <strong>Close</strong> option. Here&#8217;s an example of the right click menu for a cmd.exe window:
</p>

<p>
<img src="http://farm3.static.flickr.com/2262/2414274481_6e6cd0604e_o.jpg" />
</p>

<p>
When I want to close that window, I right click on the cmd.exe item in the taskbar and choose the last item that pops up. But it&#8217;s not going to close the window. Instead it&#8217;s going to bring up the properties dialog for the cmd.exe window. Now, not only do I need to close 2 windows instead of 1, I also need to always remember that cmd.exe breaks the convention and lists <strong>Close</strong> as the 4th item up from the bottom of the menu.
</p>

<p>Here&#8217;s another example:</p>

<p>
<img src="http://farm3.static.flickr.com/2263/2414264095_ee038b3a91_o.jpg" />
</p>

<p>
That&#8217;s the right click menu for SQL Server Enterprise Manager. It&#8217;s outdated now, but it used to be the main tool for dealing with SQL Server databases. Like cmd.exe, this application also lists an item below <strong>Close</strong> in the contextual menu. What&#8217;s even more annoying in this case is that the item listed below <strong>Close</strong> is <strong>Help Topics</strong>. It&#8217;s another option that I will accidentally click on instead of the option I wanted, but, this time, choosing the wrong item will start up another application. And, no matter what computer I&#8217;m working on, the help application always seems to take a painfully long amount of time to open up.
</p>

<p>
Now, I would be able to excuse all of this if it was just 3rd party developers who weren&#8217;t following the conventions set up by other Windows applications. The problem is: cmd.exe is a integral part of Windows and Enterprise Manager was Microsoft&#8217;s official application for SQL Server Databases. So it&#8217;s Microsoft that&#8217;s disregarding an informal convention and randomly placing items below the <strong>Close</strong> option. I can only hope that Microsoft plans on dealing with this problem with Windows 7.
</p>]]></content:encoded>
			<wfw:commentRss>http://www.mattephraim.com/blog/2008/05/20/windows-contextual-menus-are-inconsistent/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Estate Sale Bounty</title>
		<link>http://www.mattephraim.com/blog/2008/05/19/estate-sale-bounty/</link>
		<comments>http://www.mattephraim.com/blog/2008/05/19/estate-sale-bounty/#comments</comments>
		<pubDate>Tue, 20 May 2008 01:20:36 +0000</pubDate>
		<dc:creator>Matthew Ephraim</dc:creator>
		
		<category><![CDATA[music]]></category>

		<guid isPermaLink="false">http://www.mattephraim.com/blog/2008/05/19/estate-sale-bounty/</guid>
		<description><![CDATA[On Saturday I woke up early and headed to an estate sale down the block from me. I was hoping to find some cheap records or a CD shelf or something. Instead, I found a Fender Vibrosonic amplifier and a Miller Custom pedal steel guitar. I placed a bid on both, thinking that my bid [...]]]></description>
			<content:encoded><![CDATA[<p>On Saturday I woke up early and headed to an estate sale down the block from me. I was hoping to find some cheap records or a CD shelf or something. Instead, I found a Fender Vibrosonic amplifier and a Miller Custom pedal steel guitar. I placed a bid on both, thinking that my bid was way too low. But the other guy who had placed a bid didn&#8217;t show up, so I won both!</p>

<a href="http://www.flickr.com/photos/brownfields/2506577745/" title="Headstock by Matt Ephraim, on Flickr"><img src="http://farm3.static.flickr.com/2243/2506577745_2266a6c52c.jpg" width="500" height="375" alt="Headstock" /></a>

<a href="http://www.flickr.com/photos/brownfields/2506578161/" title="Pedal steel by Matt Ephraim, on Flickr"><img src="http://farm4.static.flickr.com/3209/2506578161_2d34b1c506.jpg" width="500" height="375" alt="Pedal steel" /></a>

<a href="http://www.flickr.com/photos/brownfields/2507406568/" title="Packed up by Matt Ephraim, on Flickr"><img src="http://farm4.static.flickr.com/3274/2507406568_5475688ca9.jpg" width="500" height="375" alt="Packed up" /></a>

<a href="http://www.flickr.com/photos/brownfields/2506579207/" title="Amp by Matt Ephraim, on Flickr"><img src="http://farm3.static.flickr.com/2356/2506579207_9295604852.jpg" width="500" height="375" alt="Amp" /></a>

<a href="http://www.flickr.com/photos/brownfields/2507407838/" title="Vibrosonic! by Matt Ephraim, on Flickr"><img src="http://farm3.static.flickr.com/2010/2507407838_13b6e8b593.jpg" width="500" height="375" alt="Vibrosonic!" /></a>

<a href="http://www.flickr.com/photos/brownfields/2506581073/" title="Tubes by Matt Ephraim, on Flickr"><img src="http://farm3.static.flickr.com/2130/2506581073_d2f9ed7222.jpg" width="500" height="375" alt="Tubes" /></a>

<a href="http://www.flickr.com/photos/brownfields/2507409936/" title="Vibrev! by Matt Ephraim, on Flickr"><img src="http://farm3.static.flickr.com/2336/2507409936_9a9b1077ce.jpg" width="500" height="375" alt="Vibrev!" /></a>]]></content:encoded>
			<wfw:commentRss>http://www.mattephraim.com/blog/2008/05/19/estate-sale-bounty/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Tame Visual Studio&#8217;s Web Server (With Ruby)</title>
		<link>http://www.mattephraim.com/blog/2008/05/15/tame-visual-studios-web-server-with-ruby/</link>
		<comments>http://www.mattephraim.com/blog/2008/05/15/tame-visual-studios-web-server-with-ruby/#comments</comments>
		<pubDate>Thu, 15 May 2008 17:48:15 +0000</pubDate>
		<dc:creator>Matthew Ephraim</dc:creator>
		
		<category><![CDATA[asp.net]]></category>

		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.mattephraim.com/blog/2008/05/15/tame-visual-studios-web-server-with-ruby/</guid>
		<description><![CDATA[Here&#8217;s a little Ruby script that can be run on a new Visual Studio solution file. It will turn off dynamic ports and set the root of your site immediately after the hostname.

  Ruby
  File.open(ARGV[1], 'w') do &#124;modified&#124;
  File.open(ARGV[0]).each do &#124;line&#124;
    modified.puts line =~ /VWDPort/ ?
    [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a little Ruby script that can be run on a new Visual Studio solution file. It will turn off dynamic ports and set the root of your site immediately after the hostname.</p>
<div class="code_block">
  <span class="code_label">Ruby</span>
  <pre class="prettyprint"><code>File.open(ARGV[1], 'w') do |modified|
  File.open(ARGV[0]).each do |line|
    modified.puts line =~ /VWDPort/ ?
    %{\t\tVWDPort = "80"
\t\tVWDDynamicPort = "false"
\t\tVWDVirtualPath = "/"} : line
  end
end</code></pre>
</div>
<p>Run it from the command line with the input solution file first and the name for the new solution file second.</p>
<div class="codeblock">
<pre><code>ruby fix_solution.rb MyProject.sln FixedProject.sln</code></pre>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.mattephraim.com/blog/2008/05/15/tame-visual-studios-web-server-with-ruby/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
