<?xml version="1.0" encoding="utf-8"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:lang="en">
<title>Sunny Walker&apos;s Blog</title>
<link rel="alternate" type="text/html" href="http://www.miraclesalad.com/blog/" />
<modified>2010-09-16T02:23:27Z</modified>
<tagline>Chew through the verbal buffet of my brain or peruse other stuff at MiracleSalad.com.</tagline>
<id>tag:www.miraclesalad.com,2010:/blog//1</id>
<generator url="http://www.movabletype.org/" version="3.01D">Movable Type</generator>
<copyright>Copyright (c) 2010, thunderpaw</copyright>
<entry>
<title>Site House Cleaning</title>
<link rel="alternate" type="text/html" href="http://www.miraclesalad.com/blog/archives/2010/09/site_house_clea.php" />
<modified>2010-09-16T02:23:27Z</modified>
<issued>2010-09-16T02:13:05Z</issued>
<id>tag:www.miraclesalad.com,2010:/blog//1.106</id>
<created>2010-09-16T02:13:05Z</created>
<summary type="text/plain">I&apos;ve done some house cleaning on this site. Some files have gone away (like the Online Clipboard). The design is simple. It&apos;s built on HTML5 and CSS3. I&apos;ll probably tinker with it a bit more. We&apos;ll see where it goes....</summary>
<author>
<name>thunderpaw</name>
<url>http://www.miraclesalad.com/</url>
<email>thunderpaw@gmail.com</email>
</author>
<dc:subject>Web Site Stuff</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.miraclesalad.com/blog/">
<![CDATA[<p>I've done some house cleaning on this site. Some files have gone away (like the Online Clipboard). The design is simple. It's built on HTML5 and CSS3. I'll probably tinker with it a bit more. We'll see where it goes.</p>

<p>Ua hoʻomaʻemaʻe au i kaʻu kahua punaewele. Kīloi ʻia aʻela kekahi mau mea e aʻu. ʻO ka Online Clipboard he laʻana. He kaila/ʻili nani ʻole paha. Ua kūkulu aku au ma ka HTML5 a me CSS3. E hoʻano hou paha au ma hope. E nānā hou ʻoe ma laila.</p>]]>

</content>
</entry>
<entry>
<title>What The Color?</title>
<link rel="alternate" type="text/html" href="http://www.miraclesalad.com/blog/archives/2010/07/what_the_color_2.php" />
<modified>2010-07-27T03:35:42Z</modified>
<issued>2010-07-27T03:28:19Z</issued>
<id>tag:www.miraclesalad.com,2010:/blog//1.105</id>
<created>2010-07-27T03:28:19Z</created>
<summary type="text/plain">I came across a fun little color geek game the other day: What The Hex? For the game, you choose a color swatch which is represented by the HTML hex color. After a little practice, I&apos;m usually able to choose...</summary>
<author>
<name>thunderpaw</name>
<url>http://www.miraclesalad.com/</url>
<email>thunderpaw@gmail.com</email>
</author>
<dc:subject>Web Site Stuff</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.miraclesalad.com/blog/">
<![CDATA[<p>I came across a fun little color geek game the other day: <a href="http://yizzle.com/whatthehex/">What The Hex?</a> For the game, you choose a color swatch which is represented by the HTML hex color. After a little practice, I'm usually able to choose correctly on the most difficult setting within 1-2 guesses.</p>

<p>I decided to build a similar game, but going in the opposite direction. Choose the hex value which indicates the color displayed in the swatch in <a href="http://www.miraclesalad.com/whatthecolor.php">What The Color?</a></p>

<p>Apologies to Andrew Yang for copying most of his design.</p>]]>

</content>
</entry>
<entry>
<title>Hāpai</title>
<link rel="alternate" type="text/html" href="http://www.miraclesalad.com/blog/archives/2010/03/haepai.php" />
<modified>2010-03-17T03:17:28Z</modified>
<issued>2010-03-17T03:11:52Z</issued>
<id>tag:www.miraclesalad.com,2010:/blog//1.102</id>
<created>2010-03-17T03:11:52Z</created>
<summary type="text/plain">Mai Ulukau.org: hā.pai 1. vt. To carry, bear, lift, elevate, raise, hoist, holdup; to support, as another&apos;s testimony. (Nah. 23.7.) Hāpai pū, to carry together; carry arms [a military command]. Hāpai i ka leo, to lift up the voice, as...</summary>
<author>
<name>thunderpaw</name>
<url>http://www.miraclesalad.com/</url>
<email>thunderpaw@gmail.com</email>
</author>
<dc:subject>ʻŌlelo Hawaiʻi / Hawaiian</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.miraclesalad.com/blog/">
<![CDATA[<p>Mai <a href="http://www.wehewehe.org/gsdl2.5/cgi-bin/hdict?a=q&r=1&hs=1&e=q-0hdict--00-0-0--010---4----den--0-000lp0--1haw-Zz-1---Zz-1-home---00031-0000escapewin-00&q=hapai&d=D3029">Ulukau.org</a>:</p>

<p><strong>hā.pai</strong><br />
1. vt. To carry, bear, lift, elevate, raise, hoist, holdup; to support, as another's testimony. (Nah. 23.7.) Hāpai pū, to carry together; carry arms [a military command]. Hāpai i ka leo, to lift up the voice, as in song. No ka hoʻohanohano ʻana iaʻu, i koʻu hāpai ʻia ʻana i kiaʻāina, honoring me in my elevation to the governorship. hoʻo.hā.pai Caus/sim. (PPN sapai, PCP saapai.)</p>

<p><strong>2. vi. Pregnant; to conceive.</strong> Kou hāpai ʻana (Kin. 3.16), your conception. hoʻo.hā.pai To cause conception; to perform ceremonies or take treatment to induce conception.</p>

<p><br />
Definition 2 is the relevant one for now. :)<br />
ʻO ka mea ʻelua ka mea nui i kēia manawa. :)</p>]]>

</content>
</entry>
<entry>
<title>He mea nui ka pili ʻuhane ʻana i loko o kou ʻohana a me kou nohona kanaka? No ke aha?</title>
<link rel="alternate" type="text/html" href="http://www.miraclesalad.com/blog/archives/2010/02/he_mea_nui_ka_p.php" />
<modified>2010-02-19T21:46:54Z</modified>
<issued>2010-02-19T21:33:34Z</issued>
<id>tag:www.miraclesalad.com,2010:/blog//1.101</id>
<created>2010-02-19T21:33:34Z</created>
<summary type="text/plain">He mea nui ka pili ʻuhane ʻana i loko o kou ʻohana a me kou nohona kanaka? No ke aha? He mea nui ka pili ʻuhane ʻana i kuʻu wahine, akā, he mea ʻokoʻa iaʻu. I koʻu wā kamaliʻi, ua...</summary>
<author>
<name>thunderpaw</name>
<url>http://www.miraclesalad.com/</url>
<email>thunderpaw@gmail.com</email>
</author>
<dc:subject>ʻŌlelo Hawaiʻi / Hawaiian</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.miraclesalad.com/blog/">
<![CDATA[<p><em>He mea nui ka pili ʻuhane ʻana i loko o kou ʻohana a me kou nohona kanaka? No ke aha?</em></p>

<p>He mea nui ka pili ʻuhane ʻana i kuʻu wahine, akā, he mea ʻokoʻa iaʻu. I koʻu wā kamaliʻi, ua nīnau mai koʻu mau mākua iaʻu e ʻimi aku i koʻu hoʻomana ponoʻī. No ka mea, inā ua pono kekahi i koʻu manaʻo, e hahai pono ana au i ia hoʻomana. No laila, ua heluhelu au i ka Paipala a me ke aʻo Zen, a lohe au i ka Dalai Lama ma Wood Valley Temple ma Pahala.</p>

<p>I koʻu ʻimi ʻana, ua ʻike au i ka mea ʻokoʻa o ka pili ʻuhane a me ka hoʻomana. ʻO ka pili ʻuhane ka mea i loko o ko kākou naʻau, ʻo ia ko kākou mana paha. ʻO ka hoʻomana ke kau ʻino ʻana o ko kākou pili ʻuhane ponoʻī ma luna o haʻi.</p>

<p>Inā nalowale ka hoʻomana o ka poʻe a pau, he aha ka hopena? Emi nō ke kaua, ka huhū, a me ka hoʻokae ʻili. E hauʻoli ana paha ka poʻe a pau. Akā, emi pū ka waiwai kekahi. No ka hoʻomana, nui ka haku ʻana i ka hana noʻeau, ka ʻōlelo noʻeau, ke mele, a pēlā wale aku. A he mea nui ka hoʻomana i ka pane ʻana o "No ke aha ma ke ao nei kākou?"</p>

<p>No laila, ʻo kā kākou hana ka mea e ʻike ʻia ai o ko kākou pili ʻuhane ʻana. Inā hana maikaʻi kākou, ulu aʻe ka lāhui. ʻO ia ka mea nui a ʻo ia koʻu manaʻo wale nō.</p>

<hr />

<p><em>Is spirituality an important aspect of your family and home life? Why?</em></p>

<p>Spirituality is important to my wife, but to me, it's different. When I was a kid, my parents urged me to find my own religion. The reason being that if I found one that was right for me, I would follow its doctrine appropriately. Therefore, I've read from the Bible, Zen teachings and listened to the Dalai Lama when he spoke at Wood Valley Temple in Pahala, Hawaiʻi.</p>

<p>In my searching, I've come to see the difference between spirituality and religion. Spirituality is our core internal belief system, our "mana." Religion is the forcing of our belief systems upon others.</p>

<p>If religion were to disappear from society, what would happen? There would certainly be a significant reduction in wars, general animosity, and prejudice. People might be happier. But, there we would also lose valuable things as well. In the name of religion, copious amounts of art, literature, music and so forth have been created. And religion can be important to answering "Why are we here?"</p>

<p>Regardless, it is in what we do that we see evidence of our spirituality. If we do good, the human race benefits. That's the most important thing and that's just my opinion.</p>]]>

</content>
</entry>
<entry>
<title>He aha kekahi ʻōlelo aʻo o koʻu wā kamaliʻi i paʻa iaʻu?</title>
<link rel="alternate" type="text/html" href="http://www.miraclesalad.com/blog/archives/2010/02/he_aha_kekahi_e.php" />
<modified>2010-02-20T00:31:36Z</modified>
<issued>2010-02-11T23:17:20Z</issued>
<id>tag:www.miraclesalad.com,2010:/blog//1.100</id>
<created>2010-02-11T23:17:20Z</created>
<summary type="text/plain">He aha kekahi ʻōlelo aʻo o koʻu wā kamaliʻi i paʻa iaʻu? A pehea e ola nei ia ʻōlelo aʻo iaʻu? I koʻu wā kamaliʻi, ua hekehi māua ʻo koʻu makuakāne mai Waimea a hiki i Hapuna i kekahi mau...</summary>
<author>
<name>thunderpaw</name>
<url>http://www.miraclesalad.com/</url>
<email>thunderpaw@gmail.com</email>
</author>
<dc:subject>ʻŌlelo Hawaiʻi / Hawaiian</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.miraclesalad.com/blog/">
<![CDATA[<p><em>He aha kekahi ʻōlelo aʻo o koʻu wā kamaliʻi i paʻa iaʻu? A pehea e ola nei ia ʻōlelo aʻo iaʻu?</em></p>

<p>I koʻu wā kamaliʻi, ua hekehi māua ʻo koʻu makuakāne mai Waimea a hiki i Hapuna i kekahi mau hopenapule. I ko māua hekehi ʻana, noi akula au i koʻu pāpā i nā ʻano mea like ʻole, “I wish I had a bike. Makemake au i ka paikikala. I wish I had a toy. Makemake au i ke kiʻi pāʻani. Makemake au i kekahi mau mea...” a pēlā wale aku. He mea hoʻonāukiuki iā ia a i kekahi manawa, haʻi maila ʻo ia iaʻu, “Well, wish in one hand and shit in the other and see which one fills up faster.” He mea nani ʻole nō a ʻaʻole au i hiaʻai i kona manaʻo i ia manawa, akā, ua kū koʻu noi ʻana ma ka hekehi ʻana.</p>

<p>No laila, he aha ka manaʻo nui? ʻO ka haʻawina ʻo ia hoʻi, inā makemake ʻoe, e hana ʻoe. Mai noho iho a noi wale nō. He manaʻolana e ulu ka ʻanoʻano i meakanu. No laila, ʻaʻole noho wale nō ia, e ulu nō hoʻi. I ka manaʻo naʻau Hawaiʻi, “Inā e makemake ana ʻoe e hānai i kou ʻohana, e huli kou lima i lalo a huki i ke kalo.”</p>

<p>I kēia wā, e hōʻokoʻa ana au i ka mea makemake a me ka mea nele. Pono loa au e kūʻai mai i ke kīwī nunui a i ʻole makemake wale au e kūʻai? E noʻonoʻo pono au i ka mea nele a me ka mea makemake a hiki paha iaʻu ke ʻike i ka pono a mālama i ke kālā kekahi.</p>

<hr />

<p><em>What's a quote/phrase/idea that I learned as a child? And how am I perpetuating that?</em></p>

<p>When I was a child, my father and I would hike from Waimea to Hapuna some weekends. During our hikes, I would request all sorts of things from my dad, "I wish I had a bike. I wish I had a toy. I wish I had this or that," etc. It was annoying to him and one time he told me, "Well wish in one hand and shit in the other and see which one fills up faster." It's an inelegant thing to say, and I didn't appreciate it at the time, but I stopped my wishing on our walks.</p>

<p>So, what's that really mean? The lesson, for sure, is if you want something, work for it. Don't just sit and wish. A seed dreams of becoming a blank. Therefore, it doesn't just sit there, it grows. In Hawaiian thought, "If you want to feed your family, turn your hand over and pull out the taro."</p>

<p>These days, I differentiate between the things I want and the things I need. Is it necessary that I buy that big TV or do I simply <em>want</em> to buy it? I think about the true needs and wants, and I can see what the best thing to do is, and save some money sometimes too.</p>]]>

</content>
</entry>
<entry>
<title>No ke aha au e aʻo nei i ka ʻōlelo Hawaiʻi?</title>
<link rel="alternate" type="text/html" href="http://www.miraclesalad.com/blog/archives/2010/02/no_ke_aha_au_e.php" />
<modified>2010-02-20T00:31:23Z</modified>
<issued>2010-02-05T01:26:43Z</issued>
<id>tag:www.miraclesalad.com,2010:/blog//1.99</id>
<created>2010-02-05T01:26:43Z</created>
<summary type="text/plain">No ke aha au e aʻo nei i ka ʻōlelo Hawaiʻi? He ʻelua aʻu kumu. ʻO ka mea mua, makemake au e hoʻokamaʻāina iaʻu iho i ka ʻōlelo Hawaiʻi. Noho iho au i Hawaiʻi nei mai koʻu wā kamaliʻi mai,...</summary>
<author>
<name>thunderpaw</name>
<url>http://www.miraclesalad.com/</url>
<email>thunderpaw@gmail.com</email>
</author>
<dc:subject>ʻŌlelo Hawaiʻi / Hawaiian</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.miraclesalad.com/blog/">
<![CDATA[<p>No ke aha au e aʻo nei i ka ʻōlelo Hawaiʻi? He ʻelua aʻu kumu.</p>

<p>ʻO ka mea mua, makemake au e hoʻokamaʻāina iaʻu iho i ka ʻōlelo Hawaiʻi. Noho iho au i Hawaiʻi nei mai koʻu wā kamaliʻi mai, akā, ʻaʻole hiki iaʻu ke ʻōlelo Hawaiʻi. Ua ʻike au kekahi mau huaʻōlelo a ua kamaʻāina au i ka ʻōlelo paʻiʻai, akā, ʻaʻole pēlā ka ʻōlelo Hawaiʻi maoli. I koʻu manaʻo, he mea waiwai a koʻikoʻi i ke aʻo ʻana i ka ʻōlelo a koʻu ʻāina hānai. Ke paʻa ka ʻōlelo iā kākou, hele kākou a kamaʻāina i nā kānaka a me kona kuanaʻike.</p>

<p>ʻO ka mea hope, ʻo ke kumu o koʻu aʻo ʻana i ka ʻōlelo Hawaiʻi, hana au i ke kulanui o Hawaiʻi ma Hilo nei a hana au me kekahi mau hoa hana i hiki ke ʻōlelo Hawaiʻi. Kūpono nō e ʻōlelo Hawaiʻi i ka hana ʻōlelo Hawaiʻi. Inā hana kākou i ka ʻōlelo maoli, hiki iā kākou ke maopopo i nā kumuhana kekahi.</p>

<p>No laila, aia i hea kahi kūpono e aʻo ai i ka ʻōlelo Hawaiʻi? Aia ia kahua ʻōlelo Hawaiʻi ma ka ʻāina a kākou i hānai ai. Inā pēlā, ulu aʻe koʻu ʻike i ka manawa hoʻokahi o ke ola ʻana i ka ʻōlelo Hawaiʻi. ʻO ia koʻu makemake.</p>

<hr />

<p>Why am I learning Hawaiian? I have two reasons.</p>

<p>First, I want to become familiar with the language. I've lived in Hawaiʻi since I was a kid, but I can't speak Hawaiian. I knew a few words and I'm familiar with Pidgin (Hawaiian Creole English), but that's not the true Hawaiian language. In my view, it's valuable and up-standing to learn the language of the place in which you grew up. When our language is solid, we become familiar with the people and their perspectives.</p>

<p>Last, my reason for learning Hawaiian is because I work at the University of Hawaiʻi at Hilo and I work with some people who can speak Hawaiian. It just makes sense to speak the language you're working in. If we work in the actual language, then we can also properly understand the topics discussed.</p>

<p>There for, where's the best place to learn Hawaiian? That place is the place where we grew up. As such, my knowledge grows at the same time as the language is kept alive and is being revived. That's my wish.</p>]]>

</content>
</entry>
<entry>
<title>I&apos;ve forgotten my math</title>
<link rel="alternate" type="text/html" href="http://www.miraclesalad.com/blog/archives/2009/09/ive_forgotten_m.php" />
<modified>2009-09-10T00:05:56Z</modified>
<issued>2009-09-09T22:47:25Z</issued>
<id>tag:www.miraclesalad.com,2009:/blog//1.98</id>
<created>2009-09-09T22:47:25Z</created>
<summary type="text/plain">There&apos;s a great way for saving space in databases for flag fields by using bit-level math. That is, use binary operations to keep track of a variable number of flags and just store that in a single integer value in...</summary>
<author>
<name>thunderpaw</name>
<url>http://www.miraclesalad.com/</url>
<email>thunderpaw@gmail.com</email>
</author>
<dc:subject>Life and Work</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.miraclesalad.com/blog/">
<![CDATA[<p>There's a great way for saving space in databases for flag fields by using bit-level math. That is, use binary operations to keep track of a variable number of flags and just store that in a single integer value in the database.</p>

<p>I'll clarify a little more. Rather than storing the following yes/no fields: is_active, is_done, is_pending_approval, is_on_hold, and is_canceled, simply assign a bit value to each one and store that as an integer.</p>

<pre>is_active           =  1 (00001)
is_done             =  2 (00010)
is_pending_approval =  4 (00100)
is_on_hold          =  8 (01000)
is_canceled         = 16 (10000)</pre>

<p>One integer field saves database space and provides for the ability to add more flags without having to modify the database structure. Simply add each flag value to generate the integer. Want to mark a record as active and on hold? 1 + 8 = 9. <code>UPDATE tablename SET flags=(flags | 9) WHERE id=100;</code></p>

<p>It's easy to test against specific flags using bit-wise operations. Want to know which records are done? <code>SELECT * FROM tablename WHERE (flags & 2);</code></p>

<p>The trick, however, is in validating the bit value for the lookup table for the flags. You only want to allow the values to be powers of 2. But how do you know if an arbitrary number entered is such a number? This is where I've forgotten my math.</p>

<p>It took a little bit of research but success is mine. Taking the base 2 logarithm (AKA <code>log2(n)</code> or <code>lg(n)</code> or <code>log(n)/log(2)</code>) calculates the power of 2. Then subtract that number from the <code>floor()</code> of itself will grab the remainder. If that remainder is 0, the number is a power of two.</p>

<p>In PHP, this looks like <code>function isPowerOf2($n) { $x=log($n,2); return $x-floor($x)==0; }</code></p>

<p>Granted, it was a minor victory, but a victory none-the-less!</p>]]>

</content>
</entry>
<entry>
<title>Sequencer Tool</title>
<link rel="alternate" type="text/html" href="http://www.miraclesalad.com/blog/archives/2009/04/sequencer_tool.php" />
<modified>2009-04-04T02:38:01Z</modified>
<issued>2009-04-04T02:25:48Z</issued>
<id>tag:www.miraclesalad.com,2009:/blog//1.97</id>
<created>2009-04-04T02:25:48Z</created>
<summary type="text/plain">I&apos;ve just added Sequencer; it&apos;s a little web tool which acts much like a sequential search and replace. It takes a mask (template) and inserts each line from a sequence into that mask. It&apos;s much easier to show an example...</summary>
<author>
<name>thunderpaw</name>
<url>http://www.miraclesalad.com/</url>
<email>thunderpaw@gmail.com</email>
</author>
<dc:subject>Web Site Stuff</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.miraclesalad.com/blog/">
<![CDATA[<p>I've just added <a href="/webtools/sequencer.php">Sequencer</a>; it's a little web tool which acts much like a sequential search and replace. It takes a mask (template) and inserts each line from a sequence into that mask. It's much easier to show an example than try to explain it.</p>

<p><strong>Mask:</strong><br />
user{{#}} is stored in /users/{{X}}/</p>

<p><strong>Sequence:</strong><br />
sunny<br />
john<br />
donald</p>

<p>Given the above, sequencer will output:<br />
user1 is stored in /users/sunny/<br />
user2 is stored in /users/john/<br />
user3 is stored in /users/donald/</p>

<p>While this is very similar to my <a href="/webtools/line_processor.php">Line Processor</a> tool, it swaps the focus from the list to the mask and allows for a large mask.</p>

<p>Here's another example which highlights the strength of the Sequencer tool (from a recent web registration form I built):</p>

<p><strong>Mask:</strong><br />
  Guest {{X}}: [guest{{X}}_name]<br />
  Phone: [guest{{X}}_phone]<br />
  Email: [guest{{X}}_email]<br />
  Special: [guest{{X}}_special_needs]</p>

<p><strong>Sequence:</strong><br />
1<br />
2<br />
3<br />
4<br />
5</p>

<p>This could easily be edited manually, but my actual mask is much larger and I wanted a handy way of dealing with a potentially gigantic sequence.</p>

<p>Anyway, I hope someone finds it useful.</p>]]>

</content>
</entry>
<entry>
<title>Aloha Kākou</title>
<link rel="alternate" type="text/html" href="http://www.miraclesalad.com/blog/archives/2009/03/aloha_kaekou.php" />
<modified>2010-02-20T00:49:53Z</modified>
<issued>2009-03-09T19:05:53Z</issued>
<id>tag:www.miraclesalad.com,2009:/blog//1.96</id>
<created>2009-03-09T19:05:53Z</created>
<summary type="text/plain">Aloha Kākou! E kala mai, ʻaʻole blog post kākau au i kēia makahiki. No ka mea, nui kaʻu hana. Ua huli ka kamepiula ʻo WWW server. Eia kekahi, hele au i ka papa ʻōlelo Hawaiʻi. Hauʻoli au i ka papa!...</summary>
<author>
<name>thunderpaw</name>
<url>http://www.miraclesalad.com/</url>
<email>thunderpaw@gmail.com</email>
</author>
<dc:subject>ʻŌlelo Hawaiʻi / Hawaiian</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.miraclesalad.com/blog/">
<![CDATA[<p>Aloha Kākou! E kala mai, ʻaʻole blog post kākau au i kēia makahiki. No ka mea, nui kaʻu hana. Ua huli ka kamepiula ʻo WWW server. Eia kekahi, hele au i ka papa ʻōlelo Hawaiʻi. Hauʻoli au i ka papa!</p>

<p>Today starts week 9 of my Hawaiian Language class. It's a blast! I'm learning a lot and the instructor is great. Plus, after class, I've been walking home; this gives me time to digest the two-hour class session and get a little exercise in the process. Too bad it's Hilo with an average rainfall of about 130 inches a year. I've gotten soaked more than once on my walk home even with a large umbrella. Ah well, it's all worth it!</p>]]>

</content>
</entry>
<entry>
<title>Online Clipboard Reopened</title>
<link rel="alternate" type="text/html" href="http://www.miraclesalad.com/blog/archives/2008/12/online_clipboar_1.php" />
<modified>2008-12-30T23:37:18Z</modified>
<issued>2008-12-30T23:31:23Z</issued>
<id>tag:www.miraclesalad.com,2008:/blog//1.95</id>
<created>2008-12-30T23:31:23Z</created>
<summary type="text/plain">I decided that I wasn&apos;t ready to completely remove my Online Clipboard system completely. Instead, I&apos;ve added an input barrier which should help protect the site against spam bots. We&apos;ll see if it helps and how cumbersome it is. I...</summary>
<author>
<name>thunderpaw</name>
<url>http://www.miraclesalad.com/</url>
<email>thunderpaw@gmail.com</email>
</author>
<dc:subject>Web Site Stuff</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.miraclesalad.com/blog/">
<![CDATA[<p>I decided that I wasn't ready to completely remove my <a href="http://www.miraclesalad.com/webtools/clip.php">Online Clipboard</a> system completely. Instead, I've added an input barrier which should help protect the site against spam bots. We'll see if it helps and how cumbersome it is. I have other options in mind for protecting the site which include a math CAPTCHA and simply restricting content pasted.</p>

<p>On a side note, I've migrated the database this site uses from mysql 4 to mysql 5. I fixed a bug in <a href="http://quotes.miraclesalad.com/">Quotes Salad</a> but other than that, everything seems to be working ok. The bug grew out of the way the RAND() function changed between mysql versions.</p>]]>

</content>
</entry>
<entry>
<title>Online Clipboard Closed Down</title>
<link rel="alternate" type="text/html" href="http://www.miraclesalad.com/blog/archives/2008/12/online_clipboar.php" />
<modified>2008-12-30T08:39:20Z</modified>
<issued>2008-12-30T08:37:11Z</issued>
<id>tag:www.miraclesalad.com,2008:/blog//1.94</id>
<created>2008-12-30T08:37:11Z</created>
<summary type="text/plain">It&apos;s no surprise that I&apos;ve had to shut down my Online Clipboard. Reviewing past clips reveals that the majority of them were dumps from spam bots. To be honest, I&apos;m surprised it lasted this long. Oh well. Such is life...</summary>
<author>
<name>thunderpaw</name>
<url>http://www.miraclesalad.com/</url>
<email>thunderpaw@gmail.com</email>
</author>
<dc:subject>Web Site Stuff</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.miraclesalad.com/blog/">
<![CDATA[<p>It's no surprise that I've had to shut down my Online Clipboard. Reviewing past clips reveals that the majority of them were dumps from spam bots. To be honest, I'm surprised it lasted this long. Oh well. Such is life on the interwebs.</p>]]>

</content>
</entry>
<entry>
<title>WTFramework 1.3 + Spry</title>
<link rel="alternate" type="text/html" href="http://www.miraclesalad.com/blog/archives/2008/12/wtframework_13.php" />
<modified>2008-12-23T23:56:11Z</modified>
<issued>2008-12-23T23:41:17Z</issued>
<id>tag:www.miraclesalad.com,2008:/blog//1.93</id>
<created>2008-12-23T23:41:17Z</created>
<summary type="text/plain">I&apos;m quite impressed with Oskar Krawczyk&apos;s WTFramework bookmarklet. A simple click and it does its best to figure out what javascript framework a site is using. I&apos;ve taken his code and added detection for Adobe&apos;s Spry. I don&apos;t think a...</summary>
<author>
<name>thunderpaw</name>
<url>http://www.miraclesalad.com/</url>
<email>thunderpaw@gmail.com</email>
</author>
<dc:subject>Web Site Stuff</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.miraclesalad.com/blog/">
<![CDATA[<p>I'm quite impressed with <a href="http://blog.olicio.us/2008/11/08/wtframework-bookmarklet/">Oskar Krawczyk's WTFramework bookmarklet</a>. A simple click and it does its best to figure out what javascript framework a site is using.</p>

<p>I've taken his code and added detection for Adobe's Spry. I don't think a lot of sites are using it yet, but given the popularity of Adobe products and the relative ease of development with Spry, I felt like adding support for its detection.</p>

<p>Unfortunately, Spry seems to be quite different from version to version, so who knows what the next iteration will bring.</p>

<p>Anyway, to use it, drag my link to your bookmarks bar and click.</p>

<p><a href="javascript:(function(){el=document.getElementById(%22__wtframework%22);if(el){document.body.removeChild(el);return%20}var%20c=document.createElement(%22a%22);c.id=%22__wtframework%22;c.style.opacity=%220.7%22;c.style.filter=%22alpha(opacity=70)%22;c.style.position=%22fixed%22;c.style.zIndex=%229000%22;c.style.top=%2215px%22;c.style.right=%2220px%22;c.style.background=%22#000%22;c.style.styleFloat=%22right%22;c.style.padding=%227px%2010px%22;c.style.color=%22#fff%22;c.style.border=%22solid%202px%20#fff%22;c.style.textDecoration=%22none%22;c.style.textAlign=%22left%22;c.style.font=%2212px%20Lucida%20Grande,Helvetica,Tahoma%22;c.style.MozBorderRadius=%225px%22;c.style.WebkitBorderRadius=%225px%22;c.style.WebkitBoxShadow=%220px%200px%2020px%20#000%22;c.style.MozBoxShadow=%220px%200px%2020px%20#000%22;c.href=%22javascript:void(0)%22;document.body.appendChild(c);c.onclick=function(){document.body.removeChild(c)};var%20fm=%22Bummer...%20Try%20checking%20the%20source%20code%22;try{fm=(MooTools?%22MooTools%20(%22+MooTools.version+%22)%22:false)}catch(d){}try{fm=(YAHOO?%22YUI%20(%22+YAHOO.util.Dom.VERSION+%22)%22:false)}catch(d){}try{fm=%22Prototype%20(%22+Prototype.Version+%22)%22}catch(d){}try{fm+=%22%3Cbr/%3E%20Script.aculo.us%20(%22+Scriptaculous.Version+%22)%22}catch(d){}try{fm=(jQuery?%22jQuery%20(%22+jQuery.fn.jquery+%22)%22:false)}catch(d){}try{fm=(dojo?%22Dojo%20Toolkit%20(%22+dojo.version+%22)%22:false)}catch(d){}try{fm=(MochiKit?%22MochiKit%20(%22+MochiKit.MochiKit.VERSION+%22)%22:false)}catch(d){}try{fm=(base2?%22Base2%20(%22+base2.version+%22)%22:false)}catch(d){}try{fm=(Spry?%22Spry%22:false)}catch(d){}try{fm+=%22%20(%22+Spry.is.version+%22)%22}catch(d){}c.innerHTML=unescape(fm.toString())})();">WTFramework</a> 1.3 + Spry.</p>

<p><em>For the record, most of my site doesn't currently use a framework, but you can try it at <a href="http://www.hiloeats.com/">Hilo Eats</a> to see it in action.</em></p>]]>

</content>
</entry>
<entry>
<title>Military Funding for the Economic Bailout</title>
<link rel="alternate" type="text/html" href="http://www.miraclesalad.com/blog/archives/2008/10/military_fundin.php" />
<modified>2008-10-08T05:59:53Z</modified>
<issued>2008-10-08T05:49:04Z</issued>
<id>tag:www.miraclesalad.com,2008:/blog//1.92</id>
<created>2008-10-08T05:49:04Z</created>
<summary type="text/plain">Am I the only one that see the staggering spending used for Iraq as a source for the bailout? Sure, I&apos;m both naïve in the ways of military and national economics. But that $800bn price tag for the bailout seems...</summary>
<author>
<name>thunderpaw</name>
<url>http://www.miraclesalad.com/</url>
<email>thunderpaw@gmail.com</email>
</author>
<dc:subject>Rants and Opinions</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.miraclesalad.com/blog/">
<![CDATA[<p>Am I the only one that see the staggering spending used for Iraq as a source for the bailout? Sure, I'm both naïve in the ways of military and national economics. But that $800bn price tag for the bailout seems like it could quite easily come from supporting our troops by bringing them home.</p>

<p>At $5,000 spent per second in Iraq, that's almost 62 months to make up the $800bn. Say we just cut that in half... $2,500 per second over the next 10 years? All paid off! And that's just from military funding.</p>]]>

</content>
</entry>
<entry>
<title>iPhone 2nd Gen</title>
<link rel="alternate" type="text/html" href="http://www.miraclesalad.com/blog/archives/2008/07/iphone_2nd_gen.php" />
<modified>2008-07-12T08:45:56Z</modified>
<issued>2008-07-12T08:33:45Z</issued>
<id>tag:www.miraclesalad.com,2008:/blog//1.91</id>
<created>2008-07-12T08:33:45Z</created>
<summary type="text/plain">Apparently I&apos;ve built up a high level of expectation as an early adopter of new technology. Increasingly, as something new comes out, numerous people will query me as to my interest in said technology and chance of my using it....</summary>
<author>
<name>thunderpaw</name>
<url>http://www.miraclesalad.com/</url>
<email>thunderpaw@gmail.com</email>
</author>
<dc:subject>Life and Work</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.miraclesalad.com/blog/">
<![CDATA[<p>Apparently I've built up a high level of expectation as an early adopter of new technology. Increasingly, as something new comes out, numerous people will query me as to my interest in said technology and chance of my using it.</p>

<p>Are you getting a Wii when it comes out? Are you getting a PS3? Are you getting a MacBook Air? And most recently, are you getting a new iPhone?</p>

<p>I was an early adopter of the first iPhone. I paid a lot for a device that had yet to mature. I don't regret waiting in line, the price, or the early problems. The 3G iPhone was a toss-up for me, however. Nearly all of the features I <em>needed</em> were included in the 2.0 firmware update. It was the <em>wants</em> that got me to fetch the new phone. Others have postured that it is one of Apple's greatest strengths: make people <strong>want</strong> regardless of need.</p>

<p>So after countless queries of my intentions toward the new phone and personal deliberations and marital negotiations, I am now the proud owner of an iPhone 3G.</p>

<p>My impressions so far are mostly based on the capabilities of the new firmware so I can only comment on the two elements of the actual phone. First, 3G is so much better than Edge, as it should be. Second, the flush headphone jack is fantastic.</p>

<p>On the new firmware side, I've grabbed quite a few free apps and bought Bomberman Touch and will probably grab a sudoku game soon. The array of apps is already nice and is bound to grow quite well. I'm anxious to see what will come down the road over the next few months.</p>

<p>Now, back to playing with the phone for a few more hours--it's fun!</p>]]>

</content>
</entry>
<entry>
<title>Quinoa and Chips</title>
<link rel="alternate" type="text/html" href="http://www.miraclesalad.com/blog/archives/2008/04/quinoa_and_chip.php" />
<modified>2008-04-10T21:43:51Z</modified>
<issued>2008-04-07T20:25:22Z</issued>
<id>tag:www.miraclesalad.com,2008:/blog//1.90</id>
<created>2008-04-07T20:25:22Z</created>
<summary type="text/plain">I&apos;ve been experimenting with quinoa and rather like the following for dipping chips/crisps. Ingredients 1 cup quinoa 1 Tbsp butter 1/3 of an onion, diced handful of slivered blanched almonds 2 cups loosely chopped kale 2 cups boiling water 1...</summary>
<author>
<name>thunderpaw</name>
<url>http://www.miraclesalad.com/</url>
<email>thunderpaw@gmail.com</email>
</author>
<dc:subject>Food</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.miraclesalad.com/blog/">
<![CDATA[<p>I've been experimenting with <a href="http://en.wikipedia.org/wiki/Quinoa">quinoa</a> and rather like the following for dipping chips/crisps.</p>

<p><strong>Ingredients</strong><br />
1 cup quinoa<br />
1 Tbsp butter<br />
1/3 of an onion, diced<br />
handful of slivered blanched almonds<br />
2 cups loosely chopped kale<br />
2 cups boiling water<br />
1 bag of flavored/salted corn tortilla chips</p>

<p><strong>Preparation</strong><br />
Rinse the quinoa two or three times until the water is not cloudy. Bring the 2 cups of water to a boil in a kettle or separate pot.</p>

<p>Saut&eacute; the onion and almond slivers in the butter over medium heat until the onions begin to turn clear (about 3-4 minutes).</p>

<p>Add the quinoa to the saut&eacute; pan and mix with the onions. Toast for about 2 minutes.</p>

<p>Add the boiling water and kale and mix together and cover.</p>

<p>Reduce heat to low and simmer until the water is gone (17 minutes).</p>

<p>Remove from the heat, and let rest covered for 5 minutes.</p>

<p><strong>Serving</strong><br />
These <a href="http://www.gardenofeatin.com/products/product/1045.php">Garden of Eatin Tarami Corn Chips</a> went really well with the quinoa. The salt and tamari flavor from the chips tempered the quinoa quite nicely.</p>

<p>If you're just going to eat the quinoa, add some garlic salt to taste.</p>

<p>Here's <a href="http://picasaweb.google.com/thunderpaw/VariousCooking/photo#5186595479915965426">a pic of my quinoa and chips lunch</a>.</p>

<p><strong>Substitutions and Additions</strong><br />
<ul><li>Instead of almonds use shelled pine nuts.</li><li>Instead of onion, use leek or garlic.</li><li>Instead of butter, use EVOO (extra virgin olive oil).</li><li>Add finely diced carrots with with onion (matchsticked to 1" lengths).</li><li>Add finely diced celery with the onion.</li><li>Add a small squirt or two of Shiracha Vietnamese hot sauce.</li></ul></p>]]>

</content>
</entry>

</feed>