<?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>*in some cases</title>
	<atom:link href="http://www.insomecases.com/words/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.insomecases.com/words</link>
	<description>raising two girls, living without nuts, sunflower seeds, milk, or eggs, and random other things</description>
	<lastBuildDate>Mon, 23 Apr 2012 23:40:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Twitter feed example</title>
		<link>http://www.insomecases.com/words/2012/04/11/twitter-feed-example/</link>
		<comments>http://www.insomecases.com/words/2012/04/11/twitter-feed-example/#comments</comments>
		<pubDate>Thu, 12 Apr 2012 00:51:34 +0000</pubDate>
		<dc:creator>Loïc</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.insomecases.com/words/?p=412</guid>
		<description><![CDATA[Find the code on GitHub.]]></description>
			<content:encoded><![CDATA[<p><iframe src="http://www.insomecases.com/twitter_feed.html" frameborder="0" width="600" height="320"></iframe></p>
<p>Find the code on <a title="HTML example that pulls a twitter user's feed, using some jQuery animations" href="https://gist.github.com/2363774" target="_blank">GitHub</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.insomecases.com/words/2012/04/11/twitter-feed-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Holi festival at Stanford</title>
		<link>http://www.insomecases.com/words/2012/04/07/holi-festival-at-stanford/</link>
		<comments>http://www.insomecases.com/words/2012/04/07/holi-festival-at-stanford/#comments</comments>
		<pubDate>Sat, 07 Apr 2012 21:00:21 +0000</pubDate>
		<dc:creator>Loïc</dc:creator>
				<category><![CDATA[Dance]]></category>
		<category><![CDATA[Photographs]]></category>

		<guid isPermaLink="false">http://www.insomecases.com/words/?p=390</guid>
		<description><![CDATA[Full version of the dance&#8230;]]></description>
			<content:encoded><![CDATA[<p><object width="640" height="360"><param name="movie" value="http://www.youtube.com/v/U5AYaJVHxwE?version=3&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><param name="wmode" value="opaque"></param><embed src="http://www.youtube.com/v/U5AYaJVHxwE?version=3&amp;hl=en_US" type="application/x-shockwave-flash" width="640" height="360" allowscriptaccess="always" allowfullscreen="true" wmode="opaque"></embed></object></p>

<a href='http://www.insomecases.com/words/2012/04/07/holi-festival-at-stanford/img_0361/' title='IMG_0361'><img width="150" height="150" src="http://www.insomecases.com/words/wp-content/uploads/2012/04/IMG_0361-150x150.jpg" class="attachment-thumbnail" alt="IMG_0361" title="IMG_0361" /></a>
<a href='http://www.insomecases.com/words/2012/04/07/holi-festival-at-stanford/img_0368/' title='IMG_0368'><img width="150" height="150" src="http://www.insomecases.com/words/wp-content/uploads/2012/04/IMG_0368-150x150.jpg" class="attachment-thumbnail" alt="IMG_0368" title="IMG_0368" /></a>
<a href='http://www.insomecases.com/words/2012/04/07/holi-festival-at-stanford/img_0370/' title='IMG_0370'><img width="150" height="150" src="http://www.insomecases.com/words/wp-content/uploads/2012/04/IMG_0370-150x150.jpg" class="attachment-thumbnail" alt="IMG_0370" title="IMG_0370" /></a>
<a href='http://www.insomecases.com/words/2012/04/07/holi-festival-at-stanford/img_0371-3/' title='IMG_0371'><img width="150" height="150" src="http://www.insomecases.com/words/wp-content/uploads/2012/04/IMG_0371-150x150.jpg" class="attachment-thumbnail" alt="IMG_0371" title="IMG_0371" /></a>
<a href='http://www.insomecases.com/words/2012/04/07/holi-festival-at-stanford/img_0376/' title='IMG_0376'><img width="150" height="150" src="http://www.insomecases.com/words/wp-content/uploads/2012/04/IMG_0376-150x150.jpg" class="attachment-thumbnail" alt="IMG_0376" title="IMG_0376" /></a>
<a href='http://www.insomecases.com/words/2012/04/07/holi-festival-at-stanford/img_0380/' title='IMG_0380'><img width="150" height="150" src="http://www.insomecases.com/words/wp-content/uploads/2012/04/IMG_0380-150x150.jpg" class="attachment-thumbnail" alt="IMG_0380" title="IMG_0380" /></a>
<a href='http://www.insomecases.com/words/2012/04/07/holi-festival-at-stanford/img_0382/' title='IMG_0382'><img width="150" height="150" src="http://www.insomecases.com/words/wp-content/uploads/2012/04/IMG_0382-150x150.jpg" class="attachment-thumbnail" alt="IMG_0382" title="IMG_0382" /></a>
<a href='http://www.insomecases.com/words/2012/04/07/holi-festival-at-stanford/img_0294/' title='IMG_0294'><img width="150" height="150" src="http://www.insomecases.com/words/wp-content/uploads/2012/04/IMG_0294-150x150.jpg" class="attachment-thumbnail" alt="IMG_0294" title="IMG_0294" /></a>
<a href='http://www.insomecases.com/words/2012/04/07/holi-festival-at-stanford/img_0300_2/' title='IMG_0300_2'><img width="150" height="150" src="http://www.insomecases.com/words/wp-content/uploads/2012/04/IMG_0300_2-150x150.jpg" class="attachment-thumbnail" alt="IMG_0300_2" title="IMG_0300_2" /></a>
<a href='http://www.insomecases.com/words/2012/04/07/holi-festival-at-stanford/img_0306/' title='IMG_0306'><img width="150" height="150" src="http://www.insomecases.com/words/wp-content/uploads/2012/04/IMG_0306-150x150.jpg" class="attachment-thumbnail" alt="IMG_0306" title="IMG_0306" /></a>
<a href='http://www.insomecases.com/words/2012/04/07/holi-festival-at-stanford/img_0309/' title='IMG_0309'><img width="150" height="150" src="http://www.insomecases.com/words/wp-content/uploads/2012/04/IMG_0309-150x150.jpg" class="attachment-thumbnail" alt="IMG_0309" title="IMG_0309" /></a>
<a href='http://www.insomecases.com/words/2012/04/07/holi-festival-at-stanford/img_0310/' title='IMG_0310'><img width="150" height="150" src="http://www.insomecases.com/words/wp-content/uploads/2012/04/IMG_0310-150x150.jpg" class="attachment-thumbnail" alt="IMG_0310" title="IMG_0310" /></a>
<a href='http://www.insomecases.com/words/2012/04/07/holi-festival-at-stanford/img_0311/' title='IMG_0311'><img width="150" height="150" src="http://www.insomecases.com/words/wp-content/uploads/2012/04/IMG_0311-150x150.jpg" class="attachment-thumbnail" alt="IMG_0311" title="IMG_0311" /></a>

<h3>Full version of the dance&#8230;</h3>
<p><object width="640" height="360"><param name="movie" value="http://www.youtube.com/v/U5AYaJVHxwE?version=3&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><param name="wmode" value="opaque"></param><embed src="http://www.youtube.com/v/U5AYaJVHxwE?version=3&amp;hl=en_US" type="application/x-shockwave-flash" width="640" height="360" allowscriptaccess="always" allowfullscreen="true" wmode="opaque"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.insomecases.com/words/2012/04/07/holi-festival-at-stanford/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nina fait de la bicyclette !</title>
		<link>http://www.insomecases.com/words/2011/11/13/nina-fait-de-la-bicyclette/</link>
		<comments>http://www.insomecases.com/words/2011/11/13/nina-fait-de-la-bicyclette/#comments</comments>
		<pubDate>Sun, 13 Nov 2011 17:41:28 +0000</pubDate>
		<dc:creator>Loïc</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.insomecases.com/words/?p=387</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><iframe width="420" height="315" src="http://www.youtube.com/embed/aGuwP_6PpvA" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.insomecases.com/words/2011/11/13/nina-fait-de-la-bicyclette/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Les princesses du dimanche matin</title>
		<link>http://www.insomecases.com/words/2011/09/04/les-princesses-du-dimanche-matin/</link>
		<comments>http://www.insomecases.com/words/2011/09/04/les-princesses-du-dimanche-matin/#comments</comments>
		<pubDate>Sun, 04 Sep 2011 16:57:49 +0000</pubDate>
		<dc:creator>Loïc</dc:creator>
				<category><![CDATA[Dance]]></category>

		<guid isPermaLink="false">http://www.insomecases.com/words/?p=383</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><iframe width="560" height="345" src="http://www.youtube.com/embed/kfTbXJXXdPw" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.insomecases.com/words/2011/09/04/les-princesses-du-dimanche-matin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Indian Dance Class</title>
		<link>http://www.insomecases.com/words/2011/07/19/indian-dance-class/</link>
		<comments>http://www.insomecases.com/words/2011/07/19/indian-dance-class/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 18:54:46 +0000</pubDate>
		<dc:creator>Loïc</dc:creator>
				<category><![CDATA[Dance]]></category>
		<category><![CDATA[Music]]></category>

		<guid isPermaLink="false">http://www.insomecases.com/words/?p=377</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><iframe width="640" height="390" src="http://www.youtube.com/embed/S4ZtXZNjDJc?rel=0&amp;hd=1" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.insomecases.com/words/2011/07/19/indian-dance-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom JavaScript String Functions</title>
		<link>http://www.insomecases.com/words/2011/04/15/custom-javascript-string-functions/</link>
		<comments>http://www.insomecases.com/words/2011/04/15/custom-javascript-string-functions/#comments</comments>
		<pubDate>Fri, 15 Apr 2011 18:11:02 +0000</pubDate>
		<dc:creator>Loïc</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[camel case]]></category>
		<category><![CDATA[dashed]]></category>
		<category><![CDATA[trim]]></category>
		<category><![CDATA[underscored]]></category>

		<guid isPermaLink="false">http://www.insomecases.com/words/?p=370</guid>
		<description><![CDATA[I&#8217;ve created some missing native JavaScript String function to trim, convert to camel case, to underscored and to dashed formats. Here is the trim() function (gist page): And the toCamelCase() function (gist page): And the toDashed() function (gist page): And &#8230; <a href="http://www.insomecases.com/words/2011/04/15/custom-javascript-string-functions/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve created some missing native JavaScript String function to trim, convert to camel case, to underscored and to dashed formats.</p>
<p>Here is the trim() function (<a href="https://gist.github.com/920776" target="_blank">gist page</a>):</p>
<pre class="brush: jscript; title: ; notranslate">
/**
 * trim: removes leading and trailing white space
 */
String.prototype.trim = function () {
	return this.replace(/^\s+|\s+$/g, &quot;&quot;);
};
</pre>
<p>And the toCamelCase() function (<a href="https://gist.github.com/920765" target="_blank">gist page</a>):</p>
<pre class="brush: jscript; title: ; notranslate">
/**
 * toCamelCase: converts string to camel case
 */
String.prototype.toCameCase = function () {
	return this.replace(/^\s+|\s+$/g, &quot;&quot;)
		.toLowerCase()
		.replace(/(\s[a-z0-9])/g, function ($1) {
			return $1.replace(/\s/, '').toUpperCase();
		})
		.replace(/\W/g, '');
};
</pre>
<p>And the toDashed() function (<a href="https://gist.github.com/920801" target="_blank">gist page</a>):</p>
<pre class="brush: jscript; title: ; notranslate">
/**
 * toDashed: converts string to dashed
 */
String.prototype.toDashed = function () {
	return this.replace(/^\s+|\s+$/g, &quot;&quot;)
	.toLowerCase()
	.replace(/-/g, '')
	.replace(/(\s[a-z0-9])/g, function ($1) {
		return $1.replace(/\s/, '-');
	})
	.replace(/[^a-z0-9-]/g, '');
};
</pre>
<p>And finally, the toUnderscored() function (<a href="https://gist.github.com/920816" target="_blank">gist page</a>):</p>
<pre class="brush: jscript; title: ; notranslate">
/**
 * toUnderscored: converts string to underscored
 */
String.prototype.toUnderscored = function () {
	return this.replace(/^\s+|\s+$/g, &quot;&quot;)
	.toLowerCase()
	.replace(/_/g, '')
	.replace(/(\s[a-z0-9])/g, function ($1) {
		return $1.replace(/\s/, '_');
	})
	.replace(/[^a-z0-9_]/g, '');
};
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.insomecases.com/words/2011/04/15/custom-javascript-string-functions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Irish Dancing</title>
		<link>http://www.insomecases.com/words/2011/03/12/irish-dancing/</link>
		<comments>http://www.insomecases.com/words/2011/03/12/irish-dancing/#comments</comments>
		<pubDate>Sun, 13 Mar 2011 02:12:20 +0000</pubDate>
		<dc:creator>Loïc</dc:creator>
				<category><![CDATA[Child's Mind]]></category>
		<category><![CDATA[Fun with Family]]></category>

		<guid isPermaLink="false">http://www.insomecases.com/words/?p=365</guid>
		<description><![CDATA[This one goes out to Tom and Claire.]]></description>
			<content:encoded><![CDATA[<p>This one goes out to Tom and Claire.</p>
<p><iframe title="YouTube video player" width="480" height="390" src="http://www.youtube.com/embed/V-Hw-VkCD4g" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.insomecases.com/words/2011/03/12/irish-dancing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ballet Cleaners</title>
		<link>http://www.insomecases.com/words/2011/03/12/ballet-cleaners/</link>
		<comments>http://www.insomecases.com/words/2011/03/12/ballet-cleaners/#comments</comments>
		<pubDate>Sun, 13 Mar 2011 02:09:01 +0000</pubDate>
		<dc:creator>Loïc</dc:creator>
				<category><![CDATA[Child's Mind]]></category>
		<category><![CDATA[Humor]]></category>

		<guid isPermaLink="false">http://www.insomecases.com/words/?p=363</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><iframe title="YouTube video player" width="480" height="390" src="http://www.youtube.com/embed/zBb78pw6bGI" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.insomecases.com/words/2011/03/12/ballet-cleaners/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Showing selected drop-down option in WordPress archive select menu</title>
		<link>http://www.insomecases.com/words/2011/03/10/showing-selected-drop-down-option-in-wordpress-archive-select-menu/</link>
		<comments>http://www.insomecases.com/words/2011/03/10/showing-selected-drop-down-option-in-wordpress-archive-select-menu/#comments</comments>
		<pubDate>Thu, 10 Mar 2011 17:30:17 +0000</pubDate>
		<dc:creator>Loïc</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.insomecases.com/words/?p=352</guid>
		<description><![CDATA[I needed to show as selected, the option in the WordPress archives drop-down menu (&#60;select&#62;) corresponding to the current page address. One possibility was to alter the get_archives_link(&#8230;) function in the /wp-includes/general-template.php. Doing so meant the modification would get over &#8230; <a href="http://www.insomecases.com/words/2011/03/10/showing-selected-drop-down-option-in-wordpress-archive-select-menu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I needed to show as selected, the option in the WordPress archives drop-down menu (&lt;select&gt;) corresponding to the current page address. One possibility was to alter the <em><strong>get_archives_link(&#8230;)</strong></em> function in the <strong><em>/wp-includes/general-template.php</em></strong>. Doing so meant the modification would get over written if WordPress were updated, so I opted to add a custom modifier in the <em><strong>functions.php</strong></em> file of the custom WordPress 3.0 theme I was creating.</p>
<p>Here&#8217;s my custom modifier function from my <em><strong>functions.php</strong></em> file:</p>
<pre class="brush: php; title: ; notranslate">
function get_archives_option_mod ( $link_option ) {
   preg_match (&quot;/value=[\'\&quot;](.+?)[\'\&quot;]/&quot;, $link_option, $url);
   $requested = &quot;http://{$_SERVER['SERVER_NAME']}{$_SERVER['REQUEST_URI']}&quot;;
      if ($requested == $url[1]) {
         $link_option = str_replace(&quot;&lt;option value=&quot;, &quot;&lt;option selected=\&quot;selected\&quot; value=&quot;, $link_option);
      }
      return $link_option;
   }
add_filter(&quot;get_archives_link&quot;, &quot;get_archives_option_mod&quot;);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.insomecases.com/words/2011/03/10/showing-selected-drop-down-option-in-wordpress-archive-select-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Le filles chantent Rudolf</title>
		<link>http://www.insomecases.com/words/2011/01/08/le-filles-chantent-rudolf/</link>
		<comments>http://www.insomecases.com/words/2011/01/08/le-filles-chantent-rudolf/#comments</comments>
		<pubDate>Sat, 08 Jan 2011 18:21:28 +0000</pubDate>
		<dc:creator>Loïc</dc:creator>
				<category><![CDATA[Child's Mind]]></category>

		<guid isPermaLink="false">http://www.insomecases.com/words/?p=348</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/hNtfsDcnuPE?fs=1&amp;hl=en_US&amp;color1=0xcc2550&amp;color2=0xe87a9f"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/hNtfsDcnuPE?fs=1&amp;hl=en_US&amp;color1=0xcc2550&amp;color2=0xe87a9f" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.insomecases.com/words/2011/01/08/le-filles-chantent-rudolf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

