<?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>NINNYPANTS</title>
	<atom:link href="http://ninnypants.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ninnypants.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Wed, 09 May 2012 03:47:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Al plays solitaire</title>
		<link>http://ninnypants.com/blog/2012/05/08/al-plays-solitaire/</link>
		<comments>http://ninnypants.com/blog/2012/05/08/al-plays-solitaire/#comments</comments>
		<pubDate>Wed, 09 May 2012 03:47:39 +0000</pubDate>
		<dc:creator>ninnypants</dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://ninnypants.com/?p=1160</guid>
		<description><![CDATA[Today I found a fun little solitaire app that Al really enjoyed.]]></description>
			<content:encoded><![CDATA[<div class="span-21"><p><a href="http://ninnypants.com/blog/2012/05/08/al-plays-solitaire/"><em>Click here to view the embedded video.</em></a></p><br />
Today I found a fun little <a href="http://mrdoob.com/lab/javascript/effects/solitaire/">solitaire app</a> that Al really enjoyed.</div>
]]></content:encoded>
			<wfw:commentRss>http://ninnypants.com/blog/2012/05/08/al-plays-solitaire/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://ninnypants.com/wp-content/uploads/2012/05/VID00023.mp4" length="16299828" type="video/mp4" />
		</item>
		<item>
		<title>Abnormal media query handling in Fire Fox</title>
		<link>http://ninnypants.com/blog/2012/03/14/abnormal-media-query-handling-in-fire-fox/</link>
		<comments>http://ninnypants.com/blog/2012/03/14/abnormal-media-query-handling-in-fire-fox/#comments</comments>
		<pubDate>Thu, 15 Mar 2012 06:05:49 +0000</pubDate>
		<dc:creator>ninnypants</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[media query]]></category>

		<guid isPermaLink="false">http://ninnypants.com/?p=1138</guid>
		<description><![CDATA[As of CSS 2.1 you can target your css at specific media conditions, but Firefox seems to handle them strangely. It includes the visible vertical scroll bar in the calculation of the width instead of the actual display width itself. This means that while javascript may return one value for screen width your media queries [...]]]></description>
			<content:encoded><![CDATA[<p>As of CSS 2.1 you can target your css at specific media conditions, but Firefox seems to handle them strangely. It includes the visible vertical scroll bar in the calculation of the width instead of the actual display width itself. This means that while javascript may return one value for screen width your media queries will receive a different value.</p>
<p><img class="alignnone  wp-image-1139" title="media-query-not-working" src="http://ninnypants.com/wp-content/uploads/2012/03/media-query-not-working-600x408.png" alt="" width="504" /></p>
<p>The above image uses a stylesheet with this media query</p>
<p></p><pre class="crayon-plain-tag">@media screen and (max-width: 890px){

}</pre><p></p>
<p>When javascript returns a window width of 890 the media query receives a value of somewhere around 907, and the styles aren&#8217;t applied until the window width is actually 873</p>
<p><img class="alignnone  wp-image-1142" title="media-query-not-working-2" src="http://ninnypants.com/wp-content/uploads/2012/03/media-query-not-working-2-600x412.png" alt="" width="504" /></p>
<p>Firefox is actually following the <a href="http://www.w3.org/TR/2010/CR-css3-mediaqueries-20100727/#width">W3C specification for CSS2.1</a> when it does this.</p>
<blockquote><p>The ‘width’ media feature describes the width of the targeted display area of the output device. For continuous media, this is the width of the viewport (as described by CSS2, section 9.1.1 [CSS21]) including the size of a rendered scroll bar (if any).</p></blockquote>
<p>This seems like a strange way to handle a query for the window&#8217;s display with since to me the scroll bar is not part of the display area. It also makes it harder for designers/developers because scrolbars are sized inconsistantly across operating systems. There is a difference in how this works between my Macbook and my windows desktop. The action that makes more sense to me is how webkit browsers handle this. @media receives the visible with of the browser excluding the scroll bar making things consistent.</p>
<p>There is another odity in Firefox&#8217;s handling of width values in @media. On some pages it seems to function like webkit where it renders using the visible content area without the scroll bar. I created some simple test file with this css <a href="http://ninnypants.com/media-query-example/index.html">one file includes it inline</a> and <a href="http://ninnypants.com/media-query-example/index2.html">one links to it</a>.</p><pre class="crayon-plain-tag">html,body{
	width: 100%;
	height: 300%;
	margin: 0;
	padding: 0;
}
div{
	display: none;
}
@media all and (max-width: 1000px){
	.px320{
		display: block;
	}

	.px480{
		display: block;
	}

	.px600{
		display: block;
	}

	.px800{
		display: block;
	}
}

@media all and (max-width: 800px){
	.px320{
		display: block;
	}

	.px480{
		display: block;
	}

	.px600{
		display: block;
	}

	.px800{
		display: none;
	}
}

@media all and (min-width: 800px){
	.px800{
		display: block;
	}
}

@media all and (max-width: 600px){
	.px320{
		display: block;
	}

	.px480{
		display: block;
	}

	.px600{
		display: none;
	}
}

@media all and (max-width: 480px){
	.px320{
		display: block;
	}

	.px480{
		display: none;
	}
}

@media all and (max-width: 320px){
	.px320{
		display: block;
	}
}

@media all and (min-width: 1000px){
	.px1000{
		display: block;
	}
}</pre><p>And things function as expected. The media queries are passed the width of the visible screen.</p>
<p><img class="alignnone  wp-image-1140" title="media-query-working-1" src="http://ninnypants.com/wp-content/uploads/2012/03/media-query-working-1-600x371.png" alt="" width="504" /></p>
<p><img class="alignnone  wp-image-1141" title="media-query-working-2" src="http://ninnypants.com/wp-content/uploads/2012/03/media-query-working-2-600x370.png" alt="" width="504" /></p>
<p>Granted the two sites are very different but so is the behavior.</p>
]]></content:encoded>
			<wfw:commentRss>http://ninnypants.com/blog/2012/03/14/abnormal-media-query-handling-in-fire-fox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drive</title>
		<link>http://ninnypants.com/blog/2012/02/23/drive/</link>
		<comments>http://ninnypants.com/blog/2012/02/23/drive/#comments</comments>
		<pubDate>Thu, 23 Feb 2012 21:26:16 +0000</pubDate>
		<dc:creator>ninnypants</dc:creator>
				<category><![CDATA[Reading]]></category>

		<guid isPermaLink="false">http://ninnypants.com/?p=1093</guid>
		<description><![CDATA[Drive is an interesting books that talks about what motivates us. Dan Pink goes through and talks about a lot of the studies on human motivation and behavior. Showing that the main motivation for people isn&#8217;t so much the if you do this you get rewarded if not you get punished. It is actually a [...]]]></description>
			<content:encoded><![CDATA[<p>Drive is an interesting books that talks about what motivates us. Dan Pink goes through and talks about a lot of the studies on human motivation and behavior. Showing that the main motivation for people isn&#8217;t so much the if you do this you get rewarded if not you get punished. It is actually a drive for self control and interesting work to do.</p>
<p>Most of the book is focused on what motivates us in the work place. He makes reference to companies like Google and Atlassian and their 20% time. Which allows employees to spend 20% of their time working on what ever they want with who ever they want. This time actually produces many new products and a lot of bug fixes for existing products.</p>
<p>Dan also talks extensively about how work using this type of motivation is of a higher quality than other types. He makes reference to Wikipedia putting Encarta out of business, and the extensive use of Linux and other open source tools.</p>
<p><a href="http://ninnypants.com/blog/2012/02/23/drive/"><em>Click here to view the embedded video.</em></a></p>
]]></content:encoded>
			<wfw:commentRss>http://ninnypants.com/blog/2012/02/23/drive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How Basecamp Next got to be so damn fast without using much client-side UI</title>
		<link>http://ninnypants.com/blog/2012/02/21/how-basecamp-next-got-to-be-so-damn-fast-without-using-much-client-side-ui/</link>
		<comments>http://ninnypants.com/blog/2012/02/21/how-basecamp-next-got-to-be-so-damn-fast-without-using-much-client-side-ui/#comments</comments>
		<pubDate>Wed, 22 Feb 2012 06:06:19 +0000</pubDate>
		<dc:creator>ninnypants</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ninnypants.com/?p=1095</guid>
		<description><![CDATA[An interesting look at what 37signals has done to get incredible speeds out of Basecamp Next]]></description>
			<content:encoded><![CDATA[<p><a href="http://37signals.com/svn/posts/3112-how-basecamp-next-got-to-be-so-damn-fast-without-using-much-client-side-ui">An interesting look at what 37signals has done to get incredible speeds out of Basecamp Next</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ninnypants.com/blog/2012/02/21/how-basecamp-next-got-to-be-so-damn-fast-without-using-much-client-side-ui/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ikigai</title>
		<link>http://ninnypants.com/blog/2012/02/21/ikigai/</link>
		<comments>http://ninnypants.com/blog/2012/02/21/ikigai/#comments</comments>
		<pubDate>Wed, 22 Feb 2012 05:32:16 +0000</pubDate>
		<dc:creator>ninnypants</dc:creator>
				<category><![CDATA[Reading]]></category>

		<guid isPermaLink="false">http://ninnypants.com/?p=1086</guid>
		<description><![CDATA[In Ikigai&#160; Sebastian Marshall talks about life achievement and his philosophies on both. The main topic of the book is motivation. It&#8217;s not so much about the Get Things Done type of motivation as it is about the motivation for living the way you do. Sebastian dives into finding what truly drives your life. To [...]]]></description>
			<content:encoded><![CDATA[<p>In Ikigai&nbsp; Sebastian Marshall talks about life achievement and his philosophies on both. The main topic of the book is motivation. It&#8217;s not so much about the Get Things Done type of motivation as it is about the motivation for living the way you do.</p>
<p>Sebastian dives into finding what truly drives your life. To live a great life and be a great person he says that you need real dreams, a strong code of ethics and strength. He also goes in-depth into how to find your code of ethics and what you truly want to do with your life. His main suggestion is to just get out into nature, a nearby coffee shop, or anywhere that you don&#8217;t have your normal distractions. Take only a notebook and a pen and just write down the things that come to mind, and over time a pattern will emerge.</p>
<p>I need to re-read the book to get more from it. I know there was more that I didn&#8217;t fully understand or pick up on. I&#8217;ll post more later but for now these are a couple of my favorite highlights from the book.</p>
<blockquote><p>The million dollar question … why don&#8217;t people take the large opportunities in front of them? Why don&#8217;t they allow their dreams to become realities? Because it means you won&#8217;t be understood. And we need to be understood, fundamentally, it&#8217;s so important to us.<br />
<cite><a href="http://www.amazon.com/Ikigai-ebook/dp/B006M9T8NI">Ikigai (Sebastian Marshall)<br />
- Highlight Loc. 257-62</a></cite></p></blockquote>
<p>I think this is actually a really good reason for why people don&#8217;t take certain opportunities. I have a friend whose family doesn&#8217;t understand his work and don&#8217;t think he has a real job. His mother told one of his employee&#8217;s &#8220;You know this isn&#8217;t a real thing right&#8221; almost like his successful business would just go away and he would have to grow up and get a &#8220;real&#8221; job.</p>
<blockquote><p>They say the law of diminishing returns on money kicks in around $60k or so. I think they&#8217;re crazy. They must be thinking only about their happiness as individuals. I want $40 million before I slow down. $40M is enough that you can drop $2 million on building something–a school, a bridge, an orphanage, a shrine, a monument, a massive work of public art–and it&#8217;s only 5% of what you&#8217;ve got. If you see a deal of a lifetime, you can put $10 mil into it and it&#8217;s only 25% of what you&#8217;ve got.<br />
<cite><a href="http://www.amazon.com/Ikigai-ebook/dp/B006M9T8NI">Ikigai (Sebastian Marshall)<br />
- Highlight Loc. 303-4</a></cite></p></blockquote>
<p>I really like this idea on money. There is no reason to fear money. It doesn&#8217;t change you it just makes your more of what you are, and I think that scares people. If you&#8217;re able to use it for good and to help out family, friends or society why not make plenty of it.</p>
]]></content:encoded>
			<wfw:commentRss>http://ninnypants.com/blog/2012/02/21/ikigai/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>404 Issues with WP Rewrite</title>
		<link>http://ninnypants.com/blog/2011/10/31/404-issues-with-wp-rewrite/</link>
		<comments>http://ninnypants.com/blog/2011/10/31/404-issues-with-wp-rewrite/#comments</comments>
		<pubDate>Mon, 31 Oct 2011 17:00:08 +0000</pubDate>
		<dc:creator>ninnypants</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WP Rewrite]]></category>

		<guid isPermaLink="false">http://ninnypants.com/?p=987</guid>
		<description><![CDATA[The last couple days I&#8217;ve struggled with adding custom rewrite rules to WordPress so that a user can edit settings for their account on the front end. The code and methods are straight forward enough and can be found on the codex page. But I was running into an issue where when I went to [...]]]></description>
			<content:encoded><![CDATA[<p>The last couple days I&#8217;ve struggled with adding custom rewrite rules to WordPress so that a user can edit settings for their account on the front end. The code and methods are straight forward enough and can be found on the <a href="http://codex.wordpress.org/Function_Reference/WP_Rewrite">codex page</a>. But I was running into an issue where when I went to the edit page and passed a custom parameter it would throw a 404 error. I dug through all the filters I could find having to do with query vars and every time I output the query vars I would see page_id=0 which was causing the 404. I could figure out why that variable was being set to 0. After hours of digging I was finally looking through the source of the WP class and found it calling a function called <a href="http://codex.wordpress.org/Function_Reference/get_page_by_path">get_page_by_path</a>on the codex page I noticed that when it was called for a sub page the value would be passed in like so:</p><pre class="crayon-plain-tag">get_page_by_path('parent-page/sub-page');</pre><p>The issue was that I was passing just the sub page page name in with my request.</p><pre class="crayon-plain-tag">function gcc_insert_rewrite_rules( $rules ){
	$newrules = array();
	$newrules['my-account/(edit-location)/(.*)/?$'] = 'index.php?post_type=page&amp;amp;pagename=$matches[1]&amp;amp;location_name=$matches[2]';
	return $newrules + $rules;
}</pre><p>A simple change in the regular expression was all that was needed to get the correct page and stop the 404.</p><pre class="crayon-plain-tag">function gcc_insert_rewrite_rules( $rules ){
	$newrules = array();
	$newrules['(my-account/edit-location)/(.*)/?$'] = 'index.php?post_type=page&amp;amp;pagename=$matches[1]&amp;amp;location_name=$matches[2]';
	return $newrules + $rules;
}</pre><p></p>
]]></content:encoded>
			<wfw:commentRss>http://ninnypants.com/blog/2011/10/31/404-issues-with-wp-rewrite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://ninnypants.com/blog/2011/08/07/976/</link>
		<comments>http://ninnypants.com/blog/2011/08/07/976/#comments</comments>
		<pubDate>Mon, 08 Aug 2011 04:32:30 +0000</pubDate>
		<dc:creator>ninnypants</dc:creator>
				<category><![CDATA[Quote]]></category>

		<guid isPermaLink="false">http://ninnypants.com/?p=976</guid>
		<description><![CDATA[People never realize just how important a dog is until it&#8217;s too late. In life we get yelled at and cursed and kicked around, but when we&#8217;re gone, people wish they had us back.Hank the Cowdog]]></description>
			<content:encoded><![CDATA[<blockquote><p>People never realize just how important a dog is until it&#8217;s too late. In life we get yelled at and cursed and kicked around, but when we&#8217;re gone, people wish they had us back.<cite>Hank the Cowdog</cite></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://ninnypants.com/blog/2011/08/07/976/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Detect Timthumb</title>
		<link>http://ninnypants.com/blog/2011/08/04/detect-timthumb/</link>
		<comments>http://ninnypants.com/blog/2011/08/04/detect-timthumb/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 02:39:55 +0000</pubDate>
		<dc:creator>ninnypants</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[timthumb]]></category>
		<category><![CDATA[vulnerability]]></category>
		<category><![CDATA[zero-day]]></category>

		<guid isPermaLink="false">http://ninnypants.com/?p=965</guid>
		<description><![CDATA[There was recently a scare over a zero day vulnerability it timthumb timthumb pushed a fix out right away. I&#8217;ve seen people posting saying they didn&#8217;t know where to look for timthumb.php or if their themes used it so I threw together a quick plugin to find references to timthumb in your WordPress install. The [...]]]></description>
			<content:encoded><![CDATA[<p>There was recently a scare over a <a href="http://markmaunder.com/2011/zero-day-vulnerability-in-many-wordpress-themes/">zero day vulnerability it timthumb </a>timthumb pushed a fix out right away. I&#8217;ve seen people posting saying they didn&#8217;t know where to look for timthumb.php or if their themes used it so I threw together a quick plugin to find references to timthumb in your WordPress install.</p>
<p>The Detect Plugin page will be blank if timthumb is not detected anywhere in your themes or plugins.</p>
<p>Download: <a href="http://ninnypants.com/blog/2011/08/04/detect-timthumb/detect-timthumb/" rel="attachment wp-att-966">detect-timthumb</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ninnypants.com/blog/2011/08/04/detect-timthumb/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Red</title>
		<link>http://ninnypants.com/blog/2011/07/19/red/</link>
		<comments>http://ninnypants.com/blog/2011/07/19/red/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 02:25:21 +0000</pubDate>
		<dc:creator>ninnypants</dc:creator>
				<category><![CDATA[Daily Photo]]></category>

		<guid isPermaLink="false">http://ninnypants.com/?p=957</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href="http://ninnypants.com/2011/07/red/dsc_0106/" rel="attachment wp-att-958"><img class="alignnone size-medium wp-image-958" title="DSC_0106" src="http://ninnypants.com/wp-content/uploads/2011/07/DSC_0106-600x739.jpg" alt="" width="600" height="739" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://ninnypants.com/blog/2011/07/19/red/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>You are not running out of time</title>
		<link>http://ninnypants.com/blog/2011/07/18/you-are-not-running-out-of-time/</link>
		<comments>http://ninnypants.com/blog/2011/07/18/you-are-not-running-out-of-time/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 01:15:35 +0000</pubDate>
		<dc:creator>ninnypants</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ninnypants.com/?p=953</guid>
		<description><![CDATA[These questions are also why comparisons don’t really make any sense. Julius Caesar was weeping for all the wrong reasons. Alexander and he had different visions, they were looking to build different things in different times. Similarly, it was meaningless for my 17-year-old self to measure myself against a very different person’s desires at a [...]]]></description>
			<content:encoded><![CDATA[<blockquote class="unst"><p>These questions are also why comparisons don’t really make any sense. Julius Caesar was weeping for all the wrong reasons. Alexander and he had different visions, they were looking to build different things in different times. Similarly, it was meaningless for my 17-year-old self to measure myself against a very different person’s desires at a completely different time and place. In doing so, I was denying my own dreams, and trying to live someone else’s – and that too, dreams I imagined that person to have, without knowing what their dreams really were. Maybe all Bill Gates was trying to do at 17 was impress his high school crush. Maybe Alexander was trying to live up to the dreams of his father. The reality is that nobody will ever know!<br />
<cite>via <a href="http://rahulbijlani.com/essays/you-are-not-running-out-of-time-essay/">You are not running out of time &#8211; Rahul Bijlani</a></cite></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://ninnypants.com/blog/2011/07/18/you-are-not-running-out-of-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

