<?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, seeds, milk, or eggs, and random other things</description>
	<lastBuildDate>Sun, 13 Nov 2011 17:41:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<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>
		<item>
		<title>My git frequent commands</title>
		<link>http://www.insomecases.com/words/2010/09/15/my-git-frequent-commands/</link>
		<comments>http://www.insomecases.com/words/2010/09/15/my-git-frequent-commands/#comments</comments>
		<pubDate>Wed, 15 Sep 2010 19:40:06 +0000</pubDate>
		<dc:creator>Loïc</dc:creator>
				<category><![CDATA[git]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.insomecases.com/words/?p=338</guid>
		<description><![CDATA[I&#8217;m writing this only for my own usage, so I have a place to find them when I need them. Do all of the following from within the local git project folder. Initializing a repository Then create your repository on &#8230; <a href="http://www.insomecases.com/words/2010/09/15/my-git-frequent-commands/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m writing this only for my own usage, so I have a place to find them when I need them. Do all of the following from within the local git project folder.</p>
<p>Initializing a repository</p>
<pre class="brush: bash; title: ; notranslate">git init
git add *
git commit -m 'initial commit'
</pre>
<p>Then create your repository on Github: my_repo_name with my_user_account</p>
<pre class="brush: bash; title: ; notranslate">git remote add origin git@github.com:my_user_account/my_repo_name.git
git push origin master</pre>
<p>Checking what is not yet committed:</p>
<pre class="brush: bash; title: ; notranslate">git status -s</pre>
<p>Adding all new/updated files:</p>
<pre class="brush: bash; title: ; notranslate">git add *</pre>
<p>Adding a file by name:</p>
<pre class="brush: bash; title: ; notranslate">git add /path/to/file</pre>
<p>Committing the additions:</p>
<pre class="brush: bash; title: ; notranslate">git commit -m 'comment for this commit'</pre>
<p>Pushing the updates:</p>
<pre class="brush: bash; title: ; notranslate">git push</pre>
<p>Updating a local repository with remote content:</p>
<pre class="brush: bash; title: ; notranslate">git remote update</pre>
<p>Another useful one to delete remote files that were deleted locally:</p>
<pre class="brush: bash; title: ; notranslate">for i in `git status | grep deleted | awk '{print $3}'`; do git rm $i; done</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.insomecases.com/words/2010/09/15/my-git-frequent-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backwards Witch</title>
		<link>http://www.insomecases.com/words/2010/08/31/backwards-witch/</link>
		<comments>http://www.insomecases.com/words/2010/08/31/backwards-witch/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 06:24:11 +0000</pubDate>
		<dc:creator>Loïc</dc:creator>
				<category><![CDATA[Child's Mind]]></category>
		<category><![CDATA[Music]]></category>

		<guid isPermaLink="false">http://www.insomecases.com/words/?p=314</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><iframe class="youtube-player" type="text/html" width="480" height="385" src="http://www.youtube.com/embed/nBLtpJssuGI" frameborder="0"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.insomecases.com/words/2010/08/31/backwards-witch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

