<?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>Soliciting Fame &#187; Programming</title>
	<atom:link href="http://solicitingfame.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://solicitingfame.com</link>
	<description>by Eric W. Warnke</description>
	<lastBuildDate>Wed, 09 Nov 2011 20:37:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3-RC2-19567</generator>
		<item>
		<title>jQuery .keyup() vs .change() vs .bind()</title>
		<link>http://solicitingfame.com/2011/11/09/jquery-keyup-vs-bind/</link>
		<comments>http://solicitingfame.com/2011/11/09/jquery-keyup-vs-bind/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 20:36:33 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://solicitingfame.com/?p=380</guid>
		<description><![CDATA[I&#8217;ve found that using .keyup() in jQuery doesn&#8217;t always work like I want. For example, if I want to ensure that a user can&#8217;t put a special character into an input field I want to check for that character every time the input changes. Only using .keyup() allows someone to right-click and paste a bad [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve found that using .keyup() in jQuery doesn&#8217;t always work like I want. For example, if I want to ensure that a user can&#8217;t put a special character into an input field I want to check for that character every time the input changes. Only using .keyup() allows someone to right-click and paste a bad value in.</p>
<p>Instead I use .bind(&#8220;change keyup input&#8221;) to catch all changes on an input field, regardless of how they are done.</p>
<p>For example:</p>
<pre>// detect the change
$('input#myId').bind("change keyup input",function() {
    // if there's a bad value
    if (this.value.match(/[^a-zA-Z0-9\-_\s]/g)) {
        // replace it with nothing
        this.value = this.value.replace(/[^a-zA-Z0-9\-_\s]/g, '');
    }
});</pre>
<p>Pretty simple, eh?</p>
<p>If you liked this you should <a  href="http://twitter.com/EricWarnke" target="_blank">follow me on Twitter</a> where I tweet about startups, code, and other useful things.</p>
]]></content:encoded>
			<wfw:commentRss>http://solicitingfame.com/2011/11/09/jquery-keyup-vs-bind/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Piwik and jqPlot</title>
		<link>http://solicitingfame.com/2011/09/24/piwik-and-jqplot/</link>
		<comments>http://solicitingfame.com/2011/09/24/piwik-and-jqplot/#comments</comments>
		<pubDate>Sat, 24 Sep 2011 06:26:56 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Build Off]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://solicitingfame.com/?p=337</guid>
		<description><![CDATA[This took me waaaaaay longer than I wanted it to, so I&#8217;m making a point of posting it. In order to take an API call to Piwik and use the returned JSON to generate a custom graph with jqPlot, do this: $.getJSON(url, function(data) { var i = 0; var line1 = new Array(); $.each(dates, function(x, [...]]]></description>
			<content:encoded><![CDATA[<p>This took me waaaaaay longer than I wanted it to, so I&#8217;m making a point of posting it.</p>
<p>In order to take an API call to Piwik and use the returned JSON to generate a custom graph with jqPlot, do this:</p>
<pre>    $.getJSON(url, function(data) {
        var i = 0;
        var line1 = new Array();
        $.each(dates, function(x, y) {
            line1[i] = [x,y];
            i++;
        });

        $.jqplot("chartdiv", [line1],
        {
        // the rest of your jqPlot options
        });
    });</pre>
<p>The part that took me a while to wrap my head around was that jqPlot requires an array of arrays for the data points. Hopefully this is helpful to whomever finds it.</p>
]]></content:encoded>
			<wfw:commentRss>http://solicitingfame.com/2011/09/24/piwik-and-jqplot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Frameworks</title>
		<link>http://solicitingfame.com/2009/02/02/css-frameworks/</link>
		<comments>http://solicitingfame.com/2009/02/02/css-frameworks/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 21:05:23 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://solicitingfame.com/?p=225</guid>
		<description><![CDATA[I&#8217;m going to start developing sites using a CSS framework. I&#8217;ve read lots of arguments for and against and I feel like I won&#8217;t be delving into super complicated content anytime soon and therefore a prebuilt framework should speed things up a lot. That&#8217;s really the goal that myself and Rob and going for, speed. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m going to start developing sites using a CSS framework. I&#8217;ve read lots of arguments for and against and I feel like I won&#8217;t be delving into super complicated content anytime soon and therefore a prebuilt framework should speed things up a lot.</p>
<p>That&#8217;s really the goal that myself and Rob and going for, speed. We&#8217;re aiming to create inexpensive, customized, and well designed websites for small businesses and organizations. In order to keep prices down and profits up that means we need to be fast. I think that using a CSS framework will help me out.</p>
<p>I watched Yahoo&#8217;s <a  href="http://developer.yahoo.com/yui/grids/">YUI introduction video</a> by Nate Koechley and it taught me a lot. Yes I have to submit to their div names and whatnot but I think it&#8217;ll speed things up.</p>
]]></content:encoded>
			<wfw:commentRss>http://solicitingfame.com/2009/02/02/css-frameworks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open-Mesh Update</title>
		<link>http://solicitingfame.com/2008/07/27/open-mesh-update/</link>
		<comments>http://solicitingfame.com/2008/07/27/open-mesh-update/#comments</comments>
		<pubDate>Sun, 27 Jul 2008 17:52:35 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[WiFi]]></category>
		<category><![CDATA[open-mesh]]></category>

		<guid isPermaLink="false">http://solicitingfame.com/?p=156</guid>
		<description><![CDATA[Open-Mesh.com is slowly but surely improving. Just recently I noticed their homepage changed slogans. It went from something like &#8220;WiFi for the developing world&#8221; to &#8220;WiFi Where You Need It&#8221;. I like the latter, myself. New firmware updates have also happened and beta 1.21 has been released. There was a glitch upgrading to the c953 [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-157 alignnone" title="worldmap" src="http://solicitingfame.com/wordpress/wp-content/uploads/2008/07/worldmap.png" alt="" width="464" height="109" /></p>
<p>Open-Mesh.com is slowly but surely improving. Just recently I noticed their homepage changed slogans. It went from something like &#8220;WiFi for the developing world&#8221; to &#8220;WiFi Where You Need It&#8221;. I like the latter, myself.</p>
<p>New firmware updates have also happened and beta 1.21 has been released. There was a glitch upgrading to the c953 firmware because of the technique used to upgrade. This required a lot of people to manually reset their routers if they were using the test firmware. They fixed the problem by using the &#8220;normal&#8221; way to upgrade and version c955 went off without a hitch.</p>
<p>According to Antonio Anselmi, author of the ROBIN mesh network software which powers Open-Mesh, says that the latest kernel is about a week away. Yay!</p>
]]></content:encoded>
			<wfw:commentRss>http://solicitingfame.com/2008/07/27/open-mesh-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Gallery Directory Image Reader</title>
		<link>http://solicitingfame.com/2008/05/25/php-gallery-directory-image-reader/</link>
		<comments>http://solicitingfame.com/2008/05/25/php-gallery-directory-image-reader/#comments</comments>
		<pubDate>Mon, 26 May 2008 00:48:26 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://solicitingfame.com/?p=115</guid>
		<description><![CDATA[I wrote a neat little script to simply read a directory, search for thumbnails, then print a list with links to the larger images. I look for the thumbnails so it doesn&#8217;t get images that don&#8217;t have small versions. There are limitations, for example if you put a PDF with &#8216;.thumb&#8217; in the directory it [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote a neat little script to simply read a directory, search for thumbnails, then print a list with links to the larger images. I look for the thumbnails so it doesn&#8217;t get images that don&#8217;t have small versions.</p>
<p>There are limitations, for example if you put a PDF with &#8216;.thumb&#8217; in the directory it will try to link it as an image. This is ok for me because I&#8217;m controlling what goes in the directories. I suppose I could add a check for it later if I need to.</p>
<blockquote><p>&lt;?php</p>
<p>/* This little snippet takes the directory and looks for any files with &#8216;.thumb&#8217;. Then it takes out the &#8216;.thumb&#8217; to link to the big image. Then it makes a nice little list. */</p>
<p>$dir = &#8216;gallery/gallery2/&#8217;; /* Point to the right gallery directory */</p>
<p>echo &#8220;&lt;ul&gt;&#8221;;</p>
<p>if ($handle = opendir($dir)) {</p>
<p>while (false !== ($file = readdir($handle))) { /* Loop over directory */</p>
<p>if (strpos($file, &#8216;.thumb&#8217;)) { /* Look for the .thumb */</p>
<p>$filebig = str_replace(&#8216;.thumb&#8217;,&#8221;,$file);  /* Remove .thumb for our big files */</p>
<p>echo &#8220;&lt;li&gt;&lt;a href=\&#8221;$dir$filebig\&#8221; rel=\&#8221;lightbox[1]\&#8221;&gt;&lt;img src=\&#8221;$dir$file\&#8221; border=\&#8221;0\&#8221;/&gt;&lt;/a&gt;&lt;/li&gt;\n&#8221;; /* Make the list with both file names */</p>
<p>}</p>
<p>}</p>
<p>closedir($handle); /* Finish */</p>
<p>}</p>
<p>echo &#8220;&lt;/ul&gt;&#8221;</p>
<p>?&gt;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://solicitingfame.com/2008/05/25/php-gallery-directory-image-reader/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<a href="http://www.geeksonwhyte.com/">Edmonton Computer Repair</a>
