<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>um what now?</title>
	
	<link>http://umwhatnow.com</link>
	<description>stupid easy code snippets for everyday use</description>
	<lastBuildDate>Wed, 24 Aug 2011 01:13:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/um-what-now" /><feedburner:info uri="um-what-now" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>um-what-now</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>git problems with phpfog, remote end hung up unexpectedly</title>
		<link>http://feedproxy.google.com/~r/um-what-now/~3/gWqakvRd6TY/</link>
		<comments>http://umwhatnow.com/git-problems-with-phpfog-remote-end-hung-up-unexpectedly/#comments</comments>
		<pubDate>Wed, 24 Aug 2011 01:13:37 +0000</pubDate>
		<dc:creator>Ryan Carter</dc:creator>
				<category><![CDATA[cmd]]></category>
		<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://umwhatnow.com/?p=505</guid>
		<description><![CDATA[If you have issues with phpfog, trying to get your repos to clone to your local, so you can upload code, there is a very subtle problem you may run into that I discovered after much beating my head against the wall. The problem was &#8220;I am an idiot.&#8221; If you&#8217;re using the command line, [...]]]></description>
			<content:encoded><![CDATA[<p>If you have issues with phpfog, trying to get your repos to clone to your local, so you can upload code, there is a very subtle problem you may run into that I discovered after much beating my head against the wall. The problem was &#8220;I am an idiot.&#8221;</p>
<p>If you&#8217;re using the command line, this is how to get around errors like these:<br />
<strong><em>Fatal: The remote end hung up unexpectedly</em></strong><br />
<strong><em> R access for yoursite.phpfog.com DENIED to</em></strong></p>
<p>PHPFOG unwisely does not tell users about this small distinction in the hostname and their server name. This is especially a problem when using the multiple SSH keys setup they recommend in the support pages.</p>
<p>To clone a repos, beware that phpfog is the servername you connect to (the one with git01 on the front) and your servername (the one at the end of this command below) is phpfog<strong><em>APP</em></strong>. I kept getting this wrong because they should have either alerted me to this, or not made the damn things so similar, like start it with something else.</p>
<p>git clone git @ git01.<strong>phpfog</strong>.com : yoursite.<strong>phpfogapp</strong>.com (don&#8217;t leave in the spaces, I did this for readability)</p>
<p>be sure to type it correctly, that was my problem. I also had the further abstraction of listing all my rsa keys in the ~/.ssh/config file on the mac, so it was harder to troubleshoot, since my 2 hostnames were not in the same declaration, the config file finds the right rsa id based on the servername alias you enter in the git clone command.</p>
<p>Let me know if you have trouble and I will see if I can help! Enjoy!</p>
<img src="http://feeds.feedburner.com/~r/um-what-now/~4/gWqakvRd6TY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://umwhatnow.com/git-problems-with-phpfog-remote-end-hung-up-unexpectedly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://umwhatnow.com/git-problems-with-phpfog-remote-end-hung-up-unexpectedly/</feedburner:origLink></item>
		<item>
		<title>PJAX: Speed up every link on every page</title>
		<link>http://feedproxy.google.com/~r/um-what-now/~3/hLBUtsxBjMI/</link>
		<comments>http://umwhatnow.com/pjax-speed-up-every-link-on-every-page/#comments</comments>
		<pubDate>Wed, 29 Jun 2011 18:14:21 +0000</pubDate>
		<dc:creator>Ryan Carter</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Browser Issues]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://umwhatnow.com/?p=498</guid>
		<description><![CDATA[This is one of the most amazing jquery functions I&#8217;ve seen in a while. It loads your HTML or content that is dynamic without reloading the unchanged bits, making page loads lightning fast. ON that, does anyone know the speed of lightning (and no, Cars 2 is not what I&#8217;m asking)? You&#8217;ll need jquery included [...]]]></description>
			<content:encoded><![CDATA[<p>This is one of the most amazing jquery functions I&#8217;ve seen in a while. It loads your HTML or content that is dynamic without reloading the unchanged bits, making page loads lightning fast. ON that, does anyone know the speed of lightning (and no, Cars 2 is not what I&#8217;m asking)?</p>
<p>You&#8217;ll need jquery included on your page already (in the head tag). This code uses the latest JQuery 1.6.1 from Google&#8217;s CDN (Content Delivery Network)  but you can use your own local copy instead if you wish.</p>

<div class="wp_syntax"><div class="code"><pre class="js" style="font-family:monospace;">&nbsp;
&lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js&quot;&gt;&lt;/script&gt;</pre></div></div>

<p>After this, you simply need to decide what links will trigger this, to load pages faster, and the content block the new page should be inserted into.</p>
<p>If you&#8217;re doing all a tags (all links everywhere on your site, without scrutiny, here is the code for that (put this in the head tag, after you include jquery):</p>

<div class="wp_syntax"><div class="code"><pre class="js" style="font-family:monospace;">&nbsp;
&lt;script type=&quot;text/javascript&quot;&gt;
     $(document).ready(function(){
          $('a').pjax('pjaxtarget');
     });
&lt;/script&gt;</pre></div></div>

<p>And finally, make sure the div or other block element (li, span, etc.) is in your page, so the PJAX can insert the page content.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&nbsp;
&lt;div id=&quot;pjaxtarget&quot;&gt;
     &lt;!--the inserted content will be put here and wipe out anything that is already here--&gt;
&lt;/div&gt;</pre></div></div>

<p>Done right, all your links should load super fast, as it only grabs the parts that are dynamic and leave the other elements alone, without loading them.</p>
<img src="http://feeds.feedburner.com/~r/um-what-now/~4/hLBUtsxBjMI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://umwhatnow.com/pjax-speed-up-every-link-on-every-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://umwhatnow.com/pjax-speed-up-every-link-on-every-page/</feedburner:origLink></item>
		<item>
		<title>PHP: Gzip compression made easy</title>
		<link>http://feedproxy.google.com/~r/um-what-now/~3/st_iRpxOhyQ/</link>
		<comments>http://umwhatnow.com/php-gzip-compression-made-easy/#comments</comments>
		<pubDate>Tue, 28 Jun 2011 18:24:59 +0000</pubDate>
		<dc:creator>Ryan Carter</dc:creator>
				<category><![CDATA[performance]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[random thoughts]]></category>

		<guid isPermaLink="false">http://umwhatnow.com/?p=462</guid>
		<description><![CDATA[If you want to speed up your php pages with minimal trouble and maximum results, do this: Source: [Webcodingtech] Put this code in your main header or template file, before EVERYTHING, even doctype. &#60;?php function print_gzipped_page&#40;&#41; &#123; &#160; global $HTTP_ACCEPT_ENCODING; if&#40; headers_sent&#40;&#41; &#41;&#123; $encoding = false; &#125;elseif&#40; strpos&#40;$HTTP_ACCEPT_ENCODING, 'x-gzip'&#41; !== false &#41;&#123; $encoding = 'x-gzip'; [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to speed up your php pages with minimal trouble and maximum results, do this:<br />
Source: <a href="http://www.webcodingtech.com/php/gzip-compression.php" onclick="pageTracker._trackPageview('/outgoing/www.webcodingtech.com/php/gzip-compression.php?referer=');">[Webcodingtech]</a></p>
<p>Put this code in your main header or template file, before EVERYTHING, even doctype.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000000; font-weight: bold;">function</span> print_gzipped_page<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$HTTP_ACCEPT_ENCODING</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #990000;">headers_sent</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$encoding</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #b1b100;">elseif</span><span style="color: #009900;">&#40;</span> <span style="color: #990000;">strpos</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$HTTP_ACCEPT_ENCODING</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'x-gzip'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!==</span> <span style="color: #009900; font-weight: bold;">false</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$encoding</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'x-gzip'</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #b1b100;">elseif</span><span style="color: #009900;">&#40;</span> <span style="color: #990000;">strpos</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$HTTP_ACCEPT_ENCODING</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'gzip'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!==</span> <span style="color: #009900; font-weight: bold;">false</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$encoding</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'gzip'</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$encoding</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$encoding</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$contents</span> <span style="color: #339933;">=</span> <span style="color: #990000;">ob_get_contents</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #990000;">ob_end_clean</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Content-Encoding: '</span><span style="color: #339933;">.</span><span style="color: #000088;">$encoding</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">print</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #660099; font-weight: bold;">\x1f</span><span style="color: #660099; font-weight: bold;">\x8b</span><span style="color: #660099; font-weight: bold;">\x08</span><span style="color: #660099; font-weight: bold;">\x00</span><span style="color: #660099; font-weight: bold;">\x00</span><span style="color: #660099; font-weight: bold;">\x00</span><span style="color: #660099; font-weight: bold;">\x00</span><span style="color: #660099; font-weight: bold;">\x00</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$size</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$contents</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$contents</span> <span style="color: #339933;">=</span> <span style="color: #990000;">gzcompress</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$contents</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">9</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$contents</span> <span style="color: #339933;">=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$contents</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #000088;">$size</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">print</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$contents</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #990000;">exit</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
        <span style="color: #990000;">ob_end_flush</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #990000;">exit</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #990000;">ob_start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">ob_implicit_flush</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>
Then put this after everything, at the very end of your page.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> print_gzipped_page<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<img src="http://feeds.feedburner.com/~r/um-what-now/~4/st_iRpxOhyQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://umwhatnow.com/php-gzip-compression-made-easy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://umwhatnow.com/php-gzip-compression-made-easy/</feedburner:origLink></item>
		<item>
		<title>ASP.NET: Nested Web.config files in conflict</title>
		<link>http://feedproxy.google.com/~r/um-what-now/~3/86AL6adTvGo/</link>
		<comments>http://umwhatnow.com/asp-net-nested-web-config-files-in-conflict/#comments</comments>
		<pubDate>Mon, 13 Jun 2011 23:34:39 +0000</pubDate>
		<dc:creator>Ryan Carter</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[web.config]]></category>

		<guid isPermaLink="false">http://umwhatnow.com/?p=496</guid>
		<description><![CDATA[If you have a child app configured in IIS, and you don&#8217;t want the web.config of the parent application to affect your child app, here is how you tell the parent app&#8217;s config file to go chill down by the river alone. Example: blah.com/web.config]]></description>
			<content:encoded><![CDATA[<p>If you have a child app configured in IIS, and you don&#8217;t want the web.config of the parent application to affect your child app, here is how you tell the parent app&#8217;s config file to go chill down by the river alone.</p>
<p>Example:<br />
blah.com/web.config <= Parent file<br />
blah.com/child/web.config <= child file<br />
<br />
Add this code around your <system.web> section IN YOUR PARENT web.config.<br />
</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #008000;">&lt;</span>location path<span style="color: #008000;">=</span><span style="color: #666666;">&quot;.&quot;</span> inheritInChildApplications<span style="color: #008000;">=</span><span style="color: #666666;">&quot;false&quot;</span><span style="color: #008000;">&gt;</span>
     <span style="color: #008000;">&lt;</span><span style="color: #000000;">system.<span style="color: #0000FF;">web</span></span><span style="color: #008000;">&gt;</span>
         <span style="color: #008000;">...</span><span style="color: #0000FF;">whole</span> bunch of other stuff <span style="color: #008000;">is</span> here already <span style="color: #008000;">&#40;</span>most likely<span style="color: #008000;">&#41;</span>
     <span style="color: #008000;">&lt;/</span><span style="color: #000000;">system.<span style="color: #0000FF;">web</span></span><span style="color: #008000;">&gt;</span>
<span style="color: #008000;">&lt;/</span>location<span style="color: #008000;">&gt;</span></pre></div></div>

<p>This will make the parent ignore the child, and not try to handle it and mess with it. Boy don&#8217;t you wish you had a parental mute button and cease and desist they couldn&#8217;t remove as a kid? That would be nice.</p>
<img src="http://feeds.feedburner.com/~r/um-what-now/~4/86AL6adTvGo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://umwhatnow.com/asp-net-nested-web-config-files-in-conflict/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://umwhatnow.com/asp-net-nested-web-config-files-in-conflict/</feedburner:origLink></item>
		<item>
		<title>WordPress: GeoLocation JS Plugin</title>
		<link>http://feedproxy.google.com/~r/um-what-now/~3/anPIM6e1LBc/</link>
		<comments>http://umwhatnow.com/wordpress-geolocation-js-plugin/#comments</comments>
		<pubDate>Wed, 08 Jun 2011 17:26:56 +0000</pubDate>
		<dc:creator>Ryan Carter</dc:creator>
				<category><![CDATA[geo location]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Wordpress Plugins]]></category>

		<guid isPermaLink="false">http://umwhatnow.com/?p=493</guid>
		<description><![CDATA[Have you ever needed to change a background image based on the state or IP address the visitor comes from? Here is the fastest, easiest, and most effective WP Plugin for that. I was blown away with how fast I got what I needed. This uses the very awesome MaxMind GeoIP web service. WP GeoLocation [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever needed to change a background image based on the state or IP address the visitor comes from? Here is the fastest, easiest, and most effective WP Plugin for that. I was blown away with how fast I got what I needed. This uses the very awesome MaxMind GeoIP web service.</p>
<p><a href="http://wordpress.org/extend/plugins/wp-geolocation-js/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/wordpress.org/extend/plugins/wp-geolocation-js/?referer=');">WP GeoLocation JS Plugin</a></p>
<p>This plugin uses &#8220;the <a href="http://www.maxmind.com/" onclick="pageTracker._trackPageview('/outgoing/www.maxmind.com/?referer=');">MaxMind</a> GeoIP Javascript Web Service to return the Country, Region, City, Latitude, and Longitude for your web visitors&#8230;&#8221; (from the plugin&#8217;s description on WordPress.org.</p>
<p>It fills js variables so you can use them on your pages, or via WP shortcodes. Here is something I built using it on a site to change the homepage background based on the state (RegionName) that is detected using jQuery.</p>
<p>The GeoLocation plugin fills these variables that can be used in javascript, see the mmjsRegionName (State) in the code below:</p>
<ul>
<li>mmjsCountryCode</li>
<li>mmjsCountryName</li>
<li>mmjsCity</li>
<li>mmjsRegion</li>
<li>mmjsRegionName</li>
<li>mmjsLat</li>
<li>mmjsLong</li>
<li>mmjsPostalCode</li>
<li>mmjsIPAddress</li>
</ul>

<div class="wp_syntax"><div class="code"><pre class="js" style="font-family:monospace;">// must be inside &lt;script&gt; tags
$(document).ready(function(){
     if(mmjsRegionName==&quot;Colorado&quot;){
          $('#bg').html('&lt;img id=&quot;bgimg&quot; src=&quot;wp-content/themes/acme/style/images/denver.png&quot;&gt;');
     }else{
          $('#bg').html('&lt;img id=&quot;bgimg&quot; src=&quot;wp-content/themes/acme/style/images/chicago.png&quot;&gt;');
     }
});</pre></div></div>

<img src="http://feeds.feedburner.com/~r/um-what-now/~4/anPIM6e1LBc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://umwhatnow.com/wordpress-geolocation-js-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://umwhatnow.com/wordpress-geolocation-js-plugin/</feedburner:origLink></item>
		<item>
		<title>IIS: HTTP Error 500.19 – Internal Server Error</title>
		<link>http://feedproxy.google.com/~r/um-what-now/~3/glkx1bovTA4/</link>
		<comments>http://umwhatnow.com/iis-http-error-500-19-internal-server-error/#comments</comments>
		<pubDate>Wed, 08 Jun 2011 16:45:14 +0000</pubDate>
		<dc:creator>Ryan Carter</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[IIS]]></category>

		<guid isPermaLink="false">http://umwhatnow.com/?p=484</guid>
		<description><![CDATA[If you&#8217;ve ever seen this error, you probably pulled your hair out (if you still have some) and can&#8217;t figure out why IIS won&#8217;t just serve up your page. What is this madness about &#8220;There is a duplicate &#8216;system.web.extensions/scripting/scriptResourceHandler&#8217; section defined&#8221; nonsense? Well, this is one of those things that is super simple to fix [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve ever seen this error, you probably pulled your hair out (if you still have some) and can&#8217;t figure out why IIS won&#8217;t just serve up your page. What is this madness about &#8220;There is a duplicate &#8216;system.web.extensions/scripting/scriptResourceHandler&#8217; section defined&#8221; nonsense? Well, this is one of those things that is super simple to fix (most times) but can cost you a day of development to figure out what is wrong.</p>
<p><a href="http://umwhatnow.com/wp-content/uploads/2011/06/ScreenClip41.png"><img class="alignleft size-full wp-image-486" style="margin: 4px; border: 0px initial initial;" title="ScreenClip4" src="http://umwhatnow.com/wp-content/uploads/2011/06/ScreenClip41.png" alt="" width="325" height="294" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>All you have to do is change the Application Pool&#8217;s .Net Framework version from 4.0 to 2.0. Caveat: Only do this if you need to use 2.0 (which also includes 3.5, since 3.5 is 2.0 extended, essentially), if you need 4.0 you normally won&#8217;t see this error, as it has to do with the web.config being the wrong version for the configured IIS version. Here&#8217;s how to fix it:</p>
<p>Open IIS Manager and Click &#8220;Application Pools&#8221; and find the one that matches your website. ACME Co, for example. Double-click it and you&#8217;ll get the Pop-up window. Change the .Net Framework version to 2.0.50727. It should look like this:</p>
<p><img class="alignleft size-full wp-image-487" style="margin: 4px;" title="ScreenClip" src="http://umwhatnow.com/wp-content/uploads/2011/06/ScreenClip.png" alt="" width="321" height="298" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<img src="http://feeds.feedburner.com/~r/um-what-now/~4/glkx1bovTA4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://umwhatnow.com/iis-http-error-500-19-internal-server-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://umwhatnow.com/iis-http-error-500-19-internal-server-error/</feedburner:origLink></item>
		<item>
		<title>HTML: Remove blue border on links with images</title>
		<link>http://feedproxy.google.com/~r/um-what-now/~3/752xq3W6bTE/</link>
		<comments>http://umwhatnow.com/html-remove-blue-border-on-links-with-images/#comments</comments>
		<pubDate>Thu, 02 Jun 2011 22:57:44 +0000</pubDate>
		<dc:creator>Ryan Carter</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML 4]]></category>
		<category><![CDATA[HTML 5]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://umwhatnow.com/?p=481</guid>
		<description><![CDATA[Sick of that blue or purple box around your linked images? Here&#8217;s how to kill that stubborn thing. Simply place this bit of code in your CSS file or inside tags inside the head tags on your page. This applies the transparent &#8220;color&#8221; to all the states of a link, visited is usually purple, hover [...]]]></description>
			<content:encoded><![CDATA[<p>Sick of that blue or purple box around your linked images? Here&#8217;s how to kill that stubborn thing. Simply place this bit of code in your CSS file or inside<br />
<style></style>
<p> tags inside the head tags on your page. This applies the transparent &#8220;color&#8221; to all the states of a link, visited is usually purple, hover is as the mouse is over the link or image, active is any link not yet clicked.</p>
<p>The css file version</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">     a<span style="color: #00AA00;">,</span>a<span style="color: #3333ff;">:visited</span><span style="color: #00AA00;">,</span>a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">,</span>a<span style="color: #3333ff;">:active</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">transparent</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>
The style-in-head tags version</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">&lt;head<span style="color: #00AA00;">&gt;</span>
     &lt;style type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span><span style="color: #00AA00;">&gt;</span>
          a<span style="color: #00AA00;">,</span>a<span style="color: #3333ff;">:visited</span><span style="color: #00AA00;">,</span>a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">,</span>a<span style="color: #3333ff;">:active</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">transparent</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
     &lt;/style<span style="color: #00AA00;">&gt;</span>
&lt;/head<span style="color: #00AA00;">&gt;</span></pre></div></div>

<img src="http://feeds.feedburner.com/~r/um-what-now/~4/752xq3W6bTE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://umwhatnow.com/html-remove-blue-border-on-links-with-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://umwhatnow.com/html-remove-blue-border-on-links-with-images/</feedburner:origLink></item>
		<item>
		<title>ASP.NET: How to avoid IE8 issues with one line of code</title>
		<link>http://feedproxy.google.com/~r/um-what-now/~3/s9hR17fNCTU/</link>
		<comments>http://umwhatnow.com/asp-net-how-to-avoid-ie8-issues-with-one-line-of-code/#comments</comments>
		<pubDate>Fri, 27 May 2011 17:10:54 +0000</pubDate>
		<dc:creator>Ryan Carter</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Browser Issues]]></category>

		<guid isPermaLink="false">http://umwhatnow.com/?p=479</guid>
		<description><![CDATA[Internet Explorer is nearly always half-baked, never having decent support for the latest language syntax and causes more problems than it solves. IE8 is no exception, really causing ridiculous problems that it shouldn&#8217;t. Developers spend days on things that should normally take minutes, because Microsoft teams make a habit out of ignoring best practices and [...]]]></description>
			<content:encoded><![CDATA[<p>Internet Explorer is nearly always half-baked, never having decent support for the latest language syntax and causes more problems than it solves. IE8 is no exception, really causing ridiculous problems that it shouldn&#8217;t. Developers spend days on things that should normally take minutes, because Microsoft teams make a habit out of ignoring best practices and listening to their users. </p>
<p>Here&#8217;s how to make IE8 behave as IE7, which eliminates most of the strange display and other issues in IE8 that shouldn&#8217;t be there. Stick it to the man with this one line, placed inside your <head> tags.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;head&gt;
     &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=EmulateIE7&quot;&gt;
&lt;/head&gt;</pre></div></div>

<img src="http://feeds.feedburner.com/~r/um-what-now/~4/s9hR17fNCTU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://umwhatnow.com/asp-net-how-to-avoid-ie8-issues-with-one-line-of-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://umwhatnow.com/asp-net-how-to-avoid-ie8-issues-with-one-line-of-code/</feedburner:origLink></item>
		<item>
		<title>Confessions of a dummy: partial classes</title>
		<link>http://feedproxy.google.com/~r/um-what-now/~3/DmDRlNONq88/</link>
		<comments>http://umwhatnow.com/confessions-of-a-dummy-partial-classes/#comments</comments>
		<pubDate>Wed, 25 May 2011 19:25:46 +0000</pubDate>
		<dc:creator>Ryan Carter</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://umwhatnow.com/?p=477</guid>
		<description><![CDATA[So I am really dumb sometimes. Other times it is my obliviation to the obvious, otherwise known as true ignorance and unexplored knowledge, but certain things CAN be done in code that are allowed but should not be done. For example, there should only be one public partial class per page (as far as I [...]]]></description>
			<content:encoded><![CDATA[<p>So I am really dumb sometimes. Other times it is my obliviation to the obvious, otherwise known as true ignorance and unexplored knowledge, but certain things CAN be done in code that are allowed but should not be done. For example, there should only be one public partial class per page (as far as I can tell) and you can add multiple control types with it, for example:</p>
<p>instead of having 2 declarations in the page, it should look more like this:</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">partial</span> <span style="color: #6666cc; font-weight: bold;">class</span> App_UserControls_forms_Contact <span style="color: #008000;">:</span> <span style="color: #000000;">System.<span style="color: #0000FF;">Web</span><span style="color: #008000;">.</span><span style="color: #0000FF;">UI</span></span><span style="color: #008000;">.</span><span style="color: #0000FF;">UserControl</span>, IGenericContent</pre></div></div>

<p>Where the iGenericContent is added onto the end, making it a part of the partial class&#8217;s member list (I think). How you learn this stuff I have no idea. I&#8217;ve read documents, done searches, took a massive class on c# and .net and still don&#8217;t know a lot of what talented programmers consider basic easy common knowledge. I also have a learning disability which makes this hard as well.</p>
<p>I am not dumb, and programmers are not generally forthcoming when it comes time to help someone else out, especially not in the .net world. Open source is much more friendly and well, open to collaboration, even when the collaboratees are dumb as a box of sunblock. That whole teach a man to fish thing&#8230;anyway.</p>
<p>Any suggestions on how to learn all this &#8220;ethereal knowledge&#8221; crap easily without the head-banging?</p>
<img src="http://feeds.feedburner.com/~r/um-what-now/~4/DmDRlNONq88" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://umwhatnow.com/confessions-of-a-dummy-partial-classes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://umwhatnow.com/confessions-of-a-dummy-partial-classes/</feedburner:origLink></item>
		<item>
		<title>Rails: What is new and awesome in Rails 3.1 beta 1</title>
		<link>http://feedproxy.google.com/~r/um-what-now/~3/uDS4QeyoMtk/</link>
		<comments>http://umwhatnow.com/rails-what-is-new-and-awesome-in-rails-3-1/#comments</comments>
		<pubDate>Wed, 18 May 2011 21:08:09 +0000</pubDate>
		<dc:creator>Ryan Carter</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Prototype]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://umwhatnow.com/?p=472</guid>
		<description><![CDATA[The new hotness of 3.1 beta 1 is the concept of Asset Template Engines (ATE if you condense that) which basically allows you to not have to deal with piles-o-files with javascript, css, images, etc. You can still have tons of them, but now you don&#8217;t have to figure out how to include them all. [...]]]></description>
			<content:encoded><![CDATA[<p>The new hotness of <a href="http://weblog.rubyonrails.org/2011/5/5/rails-3-1-beta-1-released" target="_blank" onclick="pageTracker._trackPageview('/outgoing/weblog.rubyonrails.org/2011/5/5/rails-3-1-beta-1-released?referer=');">3.1 beta 1</a> is the concept of Asset Template Engines (ATE if you condense that) which basically allows you to not have to deal with piles-o-files with javascript, css, images, etc. You can still have tons of them, but now you don&#8217;t have to figure out how to include them all. Rails does it for you.</p>
<p>This is accomplished via a filetype specific application &#8220;controller&#8221; which handles all the files in the respective folders and is consumed into the core guts of rails 3.1 by using &#8220;<strong>load path</strong>&#8220;, which I don&#8217;t fully get yet, it&#8217;ll come soon. I&#8217;m riding on a very sketchy 3-5 ish hours of sleep due to kiddo 4.0 not sleeping and being 3 weeks old. That never equates to prod quality baby sleeps. The framework must mature some more for that. Oh yeah, mention: &#8230;is prone to tangents. About babies and other stuff. Oh look, in the corner, stuff! Cool.</p>
<p>The new locations for all your fileage makes a lot of sense, place css, js, and img files in app/assets/javascripts, app/assets/stylesheets, and app/assets/images, not respectively. Once you do this, the application.js and .css files will take over. Images doesn&#8217;t have one.</p>
<p>The other things now included in rails 3.1 is the CoffeeScript and Sass languages, and though they look sexy like a backyard swingset, you can easily exclude them by adding the obligatory # in front the of their declaration in the gemfile, like remming out batch script code in the good old (albeit ruby free) days. You can do the same thing with jquery-ruby, and use prototype instead, but of course stupidity is your problem on your own time. NOT using jQuery would need a decidedly good reason, which I can&#8217;t conjure even not sleep-deprived.</p>
<p>In general, the move to split off the js frameworks from rails and head the &#8216;vendor&#8217; route, like CakePHP and tons of other frameworks have is an excellent one. That way everyone gets what they want and no one is tied down. Defaults with override-able preferences is a development pattern. It also helps noobs trying to learn the language.</p>
<p>Here&#8217;s the Keynote by DHH at RailsConf 2011</p>
<p><a href="http://umwhatnow.com/rails-what-is-new-and-awesome-in-rails-3-1/"><em>Click here to view the embedded video.</em></a></p>
<img src="http://feeds.feedburner.com/~r/um-what-now/~4/uDS4QeyoMtk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://umwhatnow.com/rails-what-is-new-and-awesome-in-rails-3-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://umwhatnow.com/rails-what-is-new-and-awesome-in-rails-3-1/</feedburner:origLink></item>
	</channel>
</rss>

