<?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>See-Why</title>
	<atom:link href="http://see-why.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://see-why.net</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 16 Feb 2012 00:15:13 +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>Catching Multiple Checked Radio Button Values in Drupal 7 with JQuery</title>
		<link>http://see-why.net/2011/07/catching-multiple-checked-radio-button-values-in-drupal-7-with-jquery/</link>
		<comments>http://see-why.net/2011/07/catching-multiple-checked-radio-button-values-in-drupal-7-with-jquery/#comments</comments>
		<pubDate>Wed, 13 Jul 2011 19:14:02 +0000</pubDate>
		<dc:creator>Christine</dc:creator>
				<category><![CDATA[Code Notebook]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[drupal 7]]></category>
		<category><![CDATA[form api]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://see-why.net/?p=314</guid>
		<description><![CDATA[In Drupal 7, I had two sets of radio buttons on a form, which I needed to get the checked values of using Jquery. This seemed simple to accomplish using .val(), with this line from the Jquery documentation: $('input:radio[name=bar]:checked').val(); // get the value from a set of radio buttons Drupal&#8217;s Form API names radio button [...]]]></description>
			<content:encoded><![CDATA[<p>In Drupal 7, I had two sets of radio buttons on a form, which I needed to get the checked values of using Jquery. This seemed simple to accomplish using <a href="http://api.jquery.com/val">.val()</a>, with this line from the Jquery documentation:</p>
<p><code>$('input:radio[name=bar]:checked').val(); // get the value from a set of radio buttons</code></p>
<p>Drupal&#8217;s Form API names radio button sets as &#8220;setName[radios]&#8220;, and Jquery needs &#8220;[" and "]&#8221; characters to be escaped with a double backslash, as mentioned on <a href="http://drupal.org/node/760264">this post at the drupal forums</a>. So I tried</p>
<p><code><br />
var fooValue = $('input:radio[@name='foo\\[radios\\]']:checked").val();<br />
var barValue = $('input:radio[@name='bar\\[radios\\]']:checked").val();</code></p>
<p>But these lines retrieved the checked value for the first set of radio buttons only. At this point, I tried a non-existing name, and still Jquery retrieved the same value.</p>
<p>After trying a few more tweaks that did not work, I found that <a href="http://www.prolificnotion.co.uk/jquery-find-the-label-for-a-selected-radio-button-control/">getting the text of the labels</a> for all radios would retrieve the checked value of each, in a string, delimited by a space. At last I found that this worked:<br />
<code><br />
var allChecked = $(input:radio:checked + label").text.split(" ");<br />
var fooValue = allChecked[0];<br />
var barValue = allChecked[1];<br />
</code><br />
which is weird and cumbersome but at least it works. Maybe the problem is because Drupal 7 depends on <a href="http://drupal.org/project/jquery_update">Jquery 1.5.2</a> and the current version is 1.6.2? No idea.</p>
]]></content:encoded>
			<wfw:commentRss>http://see-why.net/2011/07/catching-multiple-checked-radio-button-values-in-drupal-7-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a New Local SVN Repository for Subclipse</title>
		<link>http://see-why.net/2011/07/creating-a-new-local-svn-repository-for-subclipse/</link>
		<comments>http://see-why.net/2011/07/creating-a-new-local-svn-repository-for-subclipse/#comments</comments>
		<pubDate>Thu, 07 Jul 2011 18:19:18 +0000</pubDate>
		<dc:creator>Christine</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[subclipse]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[version control]]></category>

		<guid isPermaLink="false">http://see-why.net/?p=306</guid>
		<description><![CDATA[For my lone-programming projects, either work related or personal, I often create a Subversion (SVN) repository on my local machine. To interface with my repository, I use Subclipse, an Eclipse plug-in. Problem is every time I start a new project, I forget how to create a new SVN repository in Subclipse, and send ~1 hour [...]]]></description>
			<content:encoded><![CDATA[<p>For my lone-programming projects, either work related or personal, I often create a Subversion (SVN) repository on my local machine. To interface with my repository, I use <a href="http://subclipse.tigris.org/">Subclipse</a>, an Eclipse plug-in. Problem is every time I start a new project, I forget how to create a new SVN repository in Subclipse, and send ~1 hour googling. The key step that I always forget is that Subclipse can&#8217;t <i>create</i> repositories (the &#8220;Create a new repository location&#8221; option in Subclipse does not actually create a new repository), it can only do the initial import.</p>
<p>Assuming that you already have SVN, Eclipse and Subclipse installed:</p>
<ol>
<li>Form the terminal prompt, create an local repository. First create or cd into the directory you would like to house your repository, and then use svnadmin. Svnadmin will create a sub directory named after your project, and everything else svn needs.<br />
<code>svnadmin create projectName</code><br />
(this is half of the first step from <a href="http://www.guyrutenberg.com/2007/10/29/creating-local-svn-repository-home-repository/">this tutorial</a>).
</li>
<li>In Eclipse, open the SVN Repositories View (Window&raquo;Show View&raquo;SVN Repositories or select from the &#8220;Other&#8221; dialog if not shown). Click on the icon with the plus sign to add a new repository location. For the url, place the path to the repository created in step 1, prefixed by file:///. (You can find the path to any directory using the pwd command in the terminal.)
</li>
<li>Create your project as usual in Eclipse. Do the inital import into SVN by right clicking on your project in the Package Explorer, and selecting Team&raquo;Share Project. Choose &#8220;SVN&#8221; and select your repository location.
</li>
<li>You can now commit files, revert and merge etc. with SVN through Subclipse.
</li>
</ol>
<p>References: <a href="http://agile.csc.ncsu.edu/SEMaterials/tutorials/subclipse/index.html#section5_0">1</a>, <a href="http://www.guyrutenberg.com/2007/10/29/creating-local-svn-repository-home-repository/">2</a>, <a href="http://www.ibm.com/developerworks/opensource/library/os-ecl-subversion/">3</a></p>
]]></content:encoded>
			<wfw:commentRss>http://see-why.net/2011/07/creating-a-new-local-svn-repository-for-subclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wing Dangle Earrings</title>
		<link>http://see-why.net/2010/09/wing-dangle-earrings/</link>
		<comments>http://see-why.net/2010/09/wing-dangle-earrings/#comments</comments>
		<pubDate>Fri, 17 Sep 2010 09:38:06 +0000</pubDate>
		<dc:creator>Christine</dc:creator>
				<category><![CDATA[Crafting]]></category>
		<category><![CDATA[crafts]]></category>
		<category><![CDATA[earrings]]></category>
		<category><![CDATA[ethics]]></category>
		<category><![CDATA[shrink plastic]]></category>

		<guid isPermaLink="false">http://see-why.net/?p=280</guid>
		<description><![CDATA[I made these a few weeks ago, and I think they&#8217;re pretty cute. You can definitely tell they are home made though because I messed up a bit, the wings are slightly different shape/sizes! D: Oops. And I thought I was so clever because I simply flipped my initial drawing of the wing and traced [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://see-why.net/wp-content/uploads/2010/09/wingEarrings_01.jpg"><img src="http://see-why.net/wp-content/uploads/2010/09/wingEarrings_01.jpg" alt="" title="wingEarrings_01" width="344" height="458" class="aligncenter size-full wp-image-281" /></a><br />
I made these a few weeks ago, and I think they&#8217;re pretty cute. You can definitely tell they are home made though because I messed up a bit, the wings are slightly different shape/sizes! D: Oops.  And I thought I was so clever because I simply flipped my initial drawing of the wing and traced it for the second wing thus inversed&#8230;.But then I made the mistake of forgetting I wanted them matched, and erased and redrew. Sigh.</p>
<p>I&#8217;ve done shrink plastic pieces quite a few times now, they&#8217;re really fun to do! You can buy shrink plastic as the commercial product known as &#8220;Shrinky Dinks&#8221; at your local crafts store but they are rather expensive&#8230;! Instead you can use any #6 plastic, for example the boxes sushi from take out sushi places or sushi bars comes in. It&#8217;s environmental and crafty. I first learned this technique from a craft blog (I forgot which), and then searched around the web for more posts on it. There is an <a href="http://www.youtube.com/watch?v=KhUdgQk6k_0">youtube video</a> of it too. After all, it involves <i>baking</i> plastic and that sounded risky to me. But numerous people have been documented to have done it and survived. So I took the plunge, and hey look, I&#8217;m still alive!</p>
<p><span id="more-280"></span><br />
Here&#8217;s the making process in brief:</p>
<ol>
<li>Eat some sushi, get some recycle #6 plastic. And it must be #6!! I have tried #9 before, because I somehow read the 9 as a 6 (it was upside down, and the triangle didn&#8217;t cue me in) and let me tell you, it. does. not. work. At all. It kind of burns, and does a curling thing &#8211; no shrinking.</li>
<li>Sandpaper it on at least one side so that your colour pencils/markers are able to adhere to and colour the plastic. I don&#8217;t know if the plastic dust that results from this step is bad for your lungs. I sandpaper in my backyard with a flu mask on just in case. </li>
<li><a href="http://see-why.net/wp-content/uploads/2010/09/wingEarrings_02.jpg"><img src="http://see-why.net/wp-content/uploads/2010/09/wingEarrings_02.jpg" alt="" title="wingEarrings_02" width="458" height="344" class="aligncenter size-full wp-image-285" /></a><br />
Draw your design out on paper, and type the paper to the plastic so it doesn&#8217;t move around, with the rough side up. Make sure the design is big though. The plastic shrinks more than 1/3 it&#8217;s original size after baking. Use a black marker to outline your design.</li>
<li><a href="http://see-why.net/wp-content/uploads/2010/09/wingEarrings_03.jpg"><img src="http://see-why.net/wp-content/uploads/2010/09/wingEarrings_03.jpg" alt="" title="wingEarrings_03" width="458" height="344" class="aligncenter size-full wp-image-288" /></a><br />
Colour in your design with colour pencils.</li>
<li><a href="http://see-why.net/wp-content/uploads/2010/09/wingEarrings_04.jpg"><img src="http://see-why.net/wp-content/uploads/2010/09/wingEarrings_04.jpg" alt="" title="wingEarrings_04" width="458" height="344" class="aligncenter size-full wp-image-289" /></a><br />
Cut out your design, and punch a hole through them with a single hole punch for attaching a jump ring. After you&#8217;ve baked it and they&#8217;ve shrunk, the hole is the perfect size for a jump ring to go through.</li>
<li>Bake them in your oven, for my oven I just set it to medium heat (I&#8217;m using an old toaster oven where the temperature markings have worn off for my craft projects). For specific temperatures, <a href="http://www.ehow.com/how_4767987_shrink-plastic-earrings.html">this site says 325 degrees</a>, <a href="http://www.poopscape.com/projects/shrinkydink/shrink.htm">this site says 250 degrees</a> &#8211; neither site says if that&#8217;s in C or F. Decide yourself, but not too hot or it&#8217;ll melt. Medium, ok? When it&#8217;s in the oven, it will curl around over itself and do crazy things. But if you have it at the right temperature, it will uncurl itself and behave eventually (~10min?), usually. Or it will snap into two pieces and you have to start over. This happens to me a lot. </li>
<li><a href="http://see-why.net/wp-content/uploads/2010/09/wingEarrings_05.jpg"><img src="http://see-why.net/wp-content/uploads/2010/09/wingEarrings_05.jpg" alt="" title="wingEarrings_05" width="146" height="204" class="alignright size-full wp-image-298" /></a><br />
I&#8217;m not going to explain this part in detail because I&#8217;m not very good at it myself. But after shrinking, marvel at the tininess of the thing and then attach jump rings, a length of chain (I counted off ten loops each) and earring hooks. Stick them through your piercings. Yay, finished! And crappy webcam image is crappy, but it&#8217;s the best I can do.</li>
</ol>
<p>Have fun <img src='http://see-why.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://see-why.net/2010/09/wing-dangle-earrings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

