<?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>SC Knowledge Base &#187; Snippets</title>
	<atom:link href="http://sandhillcreative.com/kb/category/snippets/feed/" rel="self" type="application/rss+xml" />
	<link>http://sandhillcreative.com/kb</link>
	<description></description>
	<lastBuildDate>Fri, 09 Sep 2011 20:37:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Access GET Params via Javascript</title>
		<link>http://sandhillcreative.com/kb/2011/03/13/access-get-params-via-javascript/</link>
		<comments>http://sandhillcreative.com/kb/2011/03/13/access-get-params-via-javascript/#comments</comments>
		<pubDate>Sun, 13 Mar 2011 23:32:56 +0000</pubDate>
		<dc:creator>Stuart</dc:creator>
				<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://sandhillcreative.com/kb/?p=295</guid>
		<description><![CDATA[function $_GET(q,s) { s = (s) ? s : window.location.search; var re = new RegExp('&#038;'+q+'=([^&#038;]*)','i'); return (s=s.replace(/^\?/,'&#038;').match(re)) ? s=s[1] : s=''; } // Grab the GET param var someparam = $_GET('someparam'); &#160;&#160;&#160;&#160;&#160;]]></description>
		<wfw:commentRss>http://sandhillcreative.com/kb/2011/03/13/access-get-params-via-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE6 &#8211; Modal Window stuck behind background</title>
		<link>http://sandhillcreative.com/kb/2011/01/19/ie6-modal-window-stuck-behind-background/</link>
		<comments>http://sandhillcreative.com/kb/2011/01/19/ie6-modal-window-stuck-behind-background/#comments</comments>
		<pubDate>Wed, 19 Jan 2011 20:40:33 +0000</pubDate>
		<dc:creator>Stuart</dc:creator>
				<category><![CDATA[jquery]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://sandhillcreative.com/kb/?p=289</guid>
		<description><![CDATA[So with some modal windows (like with jQuery Modal or dialog) they can appear &#8220;greyed out&#8221; and unclickable. This is because the modal window gets placed behind the overlay. The reason for this is related to the containers that the modal is in. To get around it, move the modal outside of all containers except [...]]]></description>
		<wfw:commentRss>http://sandhillcreative.com/kb/2011/01/19/ie6-modal-window-stuck-behind-background/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Redirect Subversion to Standard Output for Troubleshooting</title>
		<link>http://sandhillcreative.com/kb/2011/01/13/redirect-subversion-to-standard-output-for-troubleshooting/</link>
		<comments>http://sandhillcreative.com/kb/2011/01/13/redirect-subversion-to-standard-output-for-troubleshooting/#comments</comments>
		<pubDate>Fri, 14 Jan 2011 00:03:42 +0000</pubDate>
		<dc:creator>Stuart</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://sandhillcreative.com/kb/?p=286</guid>
		<description><![CDATA[]]></description>
		<wfw:commentRss>http://sandhillcreative.com/kb/2011/01/13/redirect-subversion-to-standard-output-for-troubleshooting/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Open a file in the Browser, from within Vim</title>
		<link>http://sandhillcreative.com/kb/2011/01/10/open-a-file-in-the-browser-from-within-vim/</link>
		<comments>http://sandhillcreative.com/kb/2011/01/10/open-a-file-in-the-browser-from-within-vim/#comments</comments>
		<pubDate>Mon, 10 Jan 2011 15:31:40 +0000</pubDate>
		<dc:creator>Stuart</dc:creator>
				<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://sandhillcreative.com/kb/?p=274</guid>
		<description><![CDATA[An example of opening a file you are working on in Vim right into your default browser: :!open http://localhost:8888/foo/bar.js I believe in Windows you would need to do: :!start http://localhost:8888/foo/bar.js &#160;&#160;&#160;&#160;&#160;]]></description>
		<wfw:commentRss>http://sandhillcreative.com/kb/2011/01/10/open-a-file-in-the-browser-from-within-vim/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>RegEx to Strip HTML Comments</title>
		<link>http://sandhillcreative.com/kb/2011/01/09/regex-to-strip-html-comments/</link>
		<comments>http://sandhillcreative.com/kb/2011/01/09/regex-to-strip-html-comments/#comments</comments>
		<pubDate>Mon, 10 Jan 2011 03:17:01 +0000</pubDate>
		<dc:creator>Stuart</dc:creator>
				<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://sandhillcreative.com/kb/?p=267</guid>
		<description><![CDATA[The title is longer than the code! &#60;!--(.&#124;\s)*?--&#62; That is imperfect but works with the comments I need to strip. Best thing about it is that it handles line endings so multiline comments don&#8217;t confuse it. &#160;&#160;&#160;&#160;&#160;]]></description>
		<wfw:commentRss>http://sandhillcreative.com/kb/2011/01/09/regex-to-strip-html-comments/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Change an Ubuntu server&#8217;s timezone from the command line</title>
		<link>http://sandhillcreative.com/kb/2010/04/20/change-an-ubuntu-servers-timezone/</link>
		<comments>http://sandhillcreative.com/kb/2010/04/20/change-an-ubuntu-servers-timezone/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 03:30:08 +0000</pubDate>
		<dc:creator>Stuart</dc:creator>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[time]]></category>

		<guid isPermaLink="false">http://sandhillcreative.com/kb/?p=216</guid>
		<description><![CDATA[This is pretty straight forward. Log in to the system and type: dpkg-reconfigure tzdata Follow along as it prompts you. Bam. Done. &#160;&#160;&#160;&#160;&#160;]]></description>
		<wfw:commentRss>http://sandhillcreative.com/kb/2010/04/20/change-an-ubuntu-servers-timezone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Framework &#8211; Conditionally Load Javascript Files</title>
		<link>http://sandhillcreative.com/kb/2010/04/06/zend-framework-conditionally-load-javascript-files/</link>
		<comments>http://sandhillcreative.com/kb/2010/04/06/zend-framework-conditionally-load-javascript-files/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 02:39:12 +0000</pubDate>
		<dc:creator>Stuart</dc:creator>
				<category><![CDATA[jquery]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://sandhillcreative.com/kb/?p=185</guid>
		<description><![CDATA[I needed to load javascript files on a per controller basis in a Zend Framework (ZF) based project. In the past I would have done this with some conditional logic that would load things based on a page number or name or some such. In ZF all that is needed is to stick some code [...]]]></description>
		<wfw:commentRss>http://sandhillcreative.com/kb/2010/04/06/zend-framework-conditionally-load-javascript-files/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Generating XML and passing it to jQuery</title>
		<link>http://sandhillcreative.com/kb/2010/01/06/generating-xml-and-passing-it-to-jquery/</link>
		<comments>http://sandhillcreative.com/kb/2010/01/06/generating-xml-and-passing-it-to-jquery/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 23:08:51 +0000</pubDate>
		<dc:creator>Stuart</dc:creator>
				<category><![CDATA[jquery]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://sandhillcreative.com/kb/?p=168</guid>
		<description><![CDATA[I am generating some XML and then POSTing it to a jQuery based plugin. Looking at the POSTed XML in Firebug, everything appears normal. However, something is not getting passed to the plugin so it is using a amount (which results in no data being properly displayed). The solution turned out to be quite simple&#8230; [...]]]></description>
		<wfw:commentRss>http://sandhillcreative.com/kb/2010/01/06/generating-xml-and-passing-it-to-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Extending Zend_View to Implement a Concrete Function&#8230;</title>
		<link>http://sandhillcreative.com/kb/2009/04/29/extending-zend-view-to-implement-a-concrete-function/</link>
		<comments>http://sandhillcreative.com/kb/2009/04/29/extending-zend-view-to-implement-a-concrete-function/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 22:00:14 +0000</pubDate>
		<dc:creator>Stuart</dc:creator>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://sandhillcreative.com/kb/?p=14</guid>
		<description><![CDATA[&#8230;without using a view helper*. In a nutshell: Extend Zend_View Put your method in this extended class Instantiate the class (in your bootstrap for instance) Assign it to the ViewRenderer Pass that viewrenderer to Zend_Controller_Action_HelperBroker&#8217;s addHelper method Use it in your view The details: In /library/My/Zend/ create View.php: class My_Zend_View extends Zend_View { public function [...]]]></description>
		<wfw:commentRss>http://sandhillcreative.com/kb/2009/04/29/extending-zend-view-to-implement-a-concrete-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

