<?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>You Look Too Cool &#187; メモ</title>
	<atom:link href="http://stabucky.com/wp/archives/tag/%e3%83%a1%e3%83%a2/feed" rel="self" type="application/rss+xml" />
	<link>http://stabucky.com/wp</link>
	<description>ゆるくつくる - stabuckyのブログ。</description>
	<lastBuildDate>Thu, 17 May 2012 12:09:09 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>GoogleカレンダーにCSVファイルから予定をインポートする方法</title>
		<link>http://stabucky.com/wp/archives/706</link>
		<comments>http://stabucky.com/wp/archives/706#comments</comments>
		<pubDate>Sun, 12 Apr 2009 08:30:29 +0000</pubDate>
		<dc:creator>stabucky</dc:creator>
				<category><![CDATA[デジタル]]></category>
		<category><![CDATA[CSV]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[インポート]]></category>
		<category><![CDATA[メモ]]></category>

		<guid isPermaLink="false">http://stabucky.com/wp/?p=706</guid>
		<description><![CDATA[ポイントとなるのはCSVファイルの作り方。 次の項目が設定できます。 Subject 件名 Start Date 開始日 Start Time 開始時刻 End Date 終了日 End Time 終了時刻 All Day Event 終日イベント Reminder On/Off 通知オン/オフ Reminder Date 通知日 Reminder Time 通知時刻 Meeting Organizer ミーティング管理者 Description 説明 Location 場所 Private 非公開 必須となるのは Subject Start Date Start Time の3項目。 実際に使うのは Subject Start Date Start Time End Date End Time [...]]]></description>
		<wfw:commentRss>http://stabucky.com/wp/archives/706/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Twitterのテキストボックスに入力するためのURL</title>
		<link>http://stabucky.com/wp/archives/689</link>
		<comments>http://stabucky.com/wp/archives/689#comments</comments>
		<pubDate>Sat, 28 Mar 2009 02:27:21 +0000</pubDate>
		<dc:creator>stabucky</dc:creator>
				<category><![CDATA[デジタル]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[メモ]]></category>

		<guid isPermaLink="false">http://stabucky.com/wp/?p=689</guid>
		<description><![CDATA[次の通り書くとTwitterの投稿用のテキストボックスに投稿内容が表示されます。 http://twitter.com/home?status=(投稿内容) 日本語は文字化けするのでエンコードしないとダメだろうけど。]]></description>
		<wfw:commentRss>http://stabucky.com/wp/archives/689/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VBAでExcelの表をJSON形式に変換する</title>
		<link>http://stabucky.com/wp/archives/587</link>
		<comments>http://stabucky.com/wp/archives/587#comments</comments>
		<pubDate>Fri, 06 Feb 2009 14:41:41 +0000</pubDate>
		<dc:creator>stabucky</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[VBA]]></category>
		<category><![CDATA[メモ]]></category>

		<guid isPermaLink="false">http://stabucky.com/wp/?p=587</guid>
		<description><![CDATA[Excelの次のような表をJSON形式にするVBAです。 id name date 1 a1 20081010 2 a2 20081011 3 a3 20081012 4 a4 20081013 5 a5 20081014 6 a6 20081015 7 a7 20081016 8 a8 20081017 9 a9 20081018 10 a10 20081019 新しいシートを開き、そこにJSON形式のテキストを出力します。 Sub 表をJSON形式にする() &#160; &#160; Dim arr(1000) &#160; &#160; Dim gyo, retsu, gyosu, cnt As Long &#160; &#160; Dim lin, temp [...]]]></description>
		<wfw:commentRss>http://stabucky.com/wp/archives/587/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JSONに関するメモ</title>
		<link>http://stabucky.com/wp/archives/584</link>
		<comments>http://stabucky.com/wp/archives/584#comments</comments>
		<pubDate>Fri, 06 Feb 2009 14:22:45 +0000</pubDate>
		<dc:creator>stabucky</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[メモ]]></category>

		<guid isPermaLink="false">http://stabucky.com/wp/?p=584</guid>
		<description><![CDATA[JSON形式のデータは次のような文字列で表される。 &#91;&#123;&#34;id&#34;:&#34;1&#34;,&#34;name&#34;:&#34;suzuki&#34;&#125;,&#123;&#34;id&#34;:&#34;2&#34;,&#34;name&#34;:&#34;satou&#34;&#125;&#93; JavaScriptではそのまま配列変数として使える。 ※この場合は2次元の配列となる。 var recs=&#91;&#123;&#34;id&#34;:&#34;1&#34;,&#34;name&#34;:&#34;suzuki&#34;&#125;,&#123;&#34;id&#34;:&#34;2&#34;,&#34;name&#34;:&#34;satou&#34;&#125;&#93;; alert&#40;recs&#91;1&#93;&#91;&#34;name&#34;&#93;&#41;; このようにすると「satou」と表示される。 ※0番目からカウントしたときの1番目の「name」である「satou」が表示される。 JSON形式のデータが外部ファイルのときは次のようにする。 ※この例では外部ファイルは「test.json」である。 req = new ActiveXObject&#40;&#34;Microsoft.XMLHTTP&#34;&#41;; req.open&#40;&#34;GET&#34;,&#34;test.json&#34;,false&#41;; req.send&#40;&#41;; text=req.responseText; recs=eval&#40;text&#41;; ここでポイントはevalを使うことである。 単に「recs=text」としてしまうと recs='[{&#34;id&#34;:&#34;1&#34;,&#34;name&#34;:&#34;suzuki&#34;},{&#34;id&#34;:&#34;2&#34;,&#34;name&#34;:&#34;satou&#34;}]'; と同じことになり、文字列として読み込んでしまう。 evalを使うとJavaScriptで使える形式に変換してくれる。 JSONはXMLよりもシンプルであり、JavaScriptにおいてはCSVよりも簡単に扱える。 text=&#34;1,suzuki;2,satou&#34;; を配列に読み込むには recs=new Array&#40;&#41;; lines=text.split&#40;&#34;;&#34;&#41;; for&#40;i=0;i&#38;lt;lines.length;i++&#41;&#123; &#160; &#160; recs&#91;i&#93;=lines&#91;i&#93;.split&#40;&#34;,&#34;&#41;; &#125; のような手順が必要である。 JSONならば text='[{&#34;id&#34;:&#34;1&#34;,&#34;name&#34;:&#34;suzuki&#34;},{&#34;id&#34;:&#34;2&#34;,&#34;name&#34;:&#34;satou&#34;}]'; recs=eval&#40;text&#41;; で済んでしまう。 JSON形式のデータは途中に改行が入っていても構わない。また入れ子にすることもできる。 &#91; &#160; &#160; &#123;&#34;id&#34;:&#34;1&#34;,&#34;name&#34;:&#34;suzuki&#34;&#125;, &#160; &#160; &#123;&#34;id&#34;:&#34;2&#34;,&#34;name&#34;:&#34;satou&#34;&#125;, &#160; &#160; &#123;&#34;id&#34;:&#34;3&#34;,&#34;name&#34;:&#34;yamada&#34;, &#160; &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://stabucky.com/wp/archives/584/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>JavaScriptのsort</title>
		<link>http://stabucky.com/wp/archives/571</link>
		<comments>http://stabucky.com/wp/archives/571#comments</comments>
		<pubDate>Fri, 30 Jan 2009 14:40:14 +0000</pubDate>
		<dc:creator>stabucky</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[メモ]]></category>

		<guid isPermaLink="false">http://stabucky.com/wp/?p=571</guid>
		<description><![CDATA[JavaScriptのsortの基本についてメモする。 配列はそのまま表示すると、カンマで区切られて表示される。 ars=new Array&#40;1,3,2,5,4&#41;; document.write&#40;ars&#41;; 結果 1,3,2,5,4 ソートするには次のようにsortを使う。 ars=new Array&#40;1,3,2,5,4&#41;; ars.sort&#40;&#41;; document.write&#40;ars&#41;; 結果 1,2,3,4,5 特に指定しないと昇順になる。降順にするには次のように関数を指定する。 ars=new Array&#40;1,3,2,5,4&#41;; ars.sort&#40;function&#40;a,b&#41;&#123; &#160; &#160; return&#40;b-a&#41;; &#125;&#41;; document.write&#40;ars&#41;; 結果 5,4,3,2,1 sortの引数に関数を指定すると複雑なソートが可能になる。 昇順にする場合には引数は不要であるが、あえて書くと次のようになる。 ars=new Array&#40;1,3,2,5,4&#41;; ars.sort&#40;function&#40;a,b&#41;&#123; &#160; &#160; if&#40;a&#62;b&#41;&#123; &#160; &#160; &#160; &#160; return&#40;1&#41;; &#160; &#160; &#125;else&#123; &#160; &#160; &#160; &#160; return&#40;-1&#41;; &#160; &#160; &#125; &#125;&#41; document.write&#40;ars&#41;; 結果 1,2,3,4,5 「a,b」が降順ならば「a>b」なので入れ替える。このときは1を返す。 昇順ならば入れ替えない。このときは-1を返す。 [...]]]></description>
		<wfw:commentRss>http://stabucky.com/wp/archives/571/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ブックマークレットの簡単な作り方</title>
		<link>http://stabucky.com/wp/archives/557</link>
		<comments>http://stabucky.com/wp/archives/557#comments</comments>
		<pubDate>Thu, 29 Jan 2009 11:57:08 +0000</pubDate>
		<dc:creator>stabucky</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[ブックマークレット]]></category>
		<category><![CDATA[メモ]]></category>

		<guid isPermaLink="false">http://stabucky.com/wp/?p=557</guid>
		<description><![CDATA[ブックマークレットの簡単な作り方は次のとおり。 なお、Internet Explorerで動作を確認した。 JavaScriptで実行したいことを書く。 JavaScriptの中身をコピーし、次の○○○○の部分に貼り付ける。 javascript:(function(){○○○○})() 基本的にはこれでブックマークレットの完成である。 簡単な例を挙げる。 alert(&#34;Hello&#34;); 「Hello」と表示する簡単なスクリプトであるが、これを貼り付ける。 javascript:(function(){alert(&#34;Hello&#34;);})() 実験するためには次のHTMLを書き、クリックする。 &#60;a href='javascript:(function(){alert(&#34;Hello&#34;);})()'&#62;ブックマークレット&#60;/a&#62; 「&#60;a href=&#8217;○○○○&#8217;&#62;&#60;/a&#62;」は通常はリンクを張るときに使うが、「○○○○」に「javascript:～」と書くとJavaScriptを実行させることができる。 逆に言えば、このしくみを利用したのが、ブックマークレットである。 クリックする代わりに右クリックし[お気に入りに追加]を選択するとブックマークレットの登録ができる。 実際には手順2のところで注意が必要である。 改行は削除する。 ダブルクォーテーションなどはエンコードする。 エンコードについてはJavaScriptのescapeとencodeURIとencodeURIComponentの違いを参考に。]]></description>
		<wfw:commentRss>http://stabucky.com/wp/archives/557/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScriptのescapeとencodeURIとencodeURIComponentの違い</title>
		<link>http://stabucky.com/wp/archives/554</link>
		<comments>http://stabucky.com/wp/archives/554#comments</comments>
		<pubDate>Thu, 29 Jan 2009 11:45:28 +0000</pubDate>
		<dc:creator>stabucky</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[デジタル]]></category>
		<category><![CDATA[メモ]]></category>

		<guid isPermaLink="false">http://stabucky.com/wp/?p=554</guid>
		<description><![CDATA[JavaScriptで、エンコードに使われる、escapeとencodeURIとencodeURIComponentについて、その違いを一覧にしてみました。 経験的には、ブックマークレットを作るときにはencodeURIで変換しておくとよいように思います。 ブラウザによっても違うかもしれませんが。   Number Number16 character escape encodeURI encodeURIComponent 32 20 (半角スペース) %20 %20 %20 33 21 ! %21 ! ! 34 22 &#8220; %22 %22 %22 35 23 # %23 # %23 36 24 $ %24 $ %24 37 25 % %25 %25 %25 38 26 &#38; %26 &#38; %26 39 27 &#8216; [...]]]></description>
		<wfw:commentRss>http://stabucky.com/wp/archives/554/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>JavaScriptのfor&#8230;in ステートメント</title>
		<link>http://stabucky.com/wp/archives/551</link>
		<comments>http://stabucky.com/wp/archives/551#comments</comments>
		<pubDate>Thu, 29 Jan 2009 11:31:21 +0000</pubDate>
		<dc:creator>stabucky</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[デジタル]]></category>
		<category><![CDATA[メモ]]></category>

		<guid isPermaLink="false">http://stabucky.com/wp/?p=551</guid>
		<description><![CDATA[配列の中にある要素についてそれぞれ処理をする場合は次のようにforステートメントを使うのが一般的である。 次の例は配列の要素をそれぞれ括弧で挟み繋げる。 arrs=new Array&#40;&#34;q&#34;,&#34;w&#34;,&#34;e&#34;,&#34;r&#34;&#41;; ret=&#34;&#34;; for&#40;i=0;i&#60;arrs.length;i++&#41;&#123; &#160; &#160; ret+=&#34;(&#34;+arrs&#91;i&#93;+&#34;)&#34;; &#125; document.write&#40;ret&#41;; 結果 (q)(w)(e)(r) また、次のようにfor&#8230;inステートメントを使う方法もある。 arrs=new Array&#40;&#34;q&#34;,&#34;w&#34;,&#34;e&#34;,&#34;r&#34;&#41;; ret=&#34;&#34;; for&#40;i in arrs&#41;&#123; &#160; &#160; ret+=&#34;(&#34;+arrs&#91;i&#93;+&#34;)&#34;; &#125; document.write&#40;ret&#41;; 配列は、「配列変数[キー]=要素」となっている。 上の例では arrs&#91;0&#93;=&#34;q&#34;; arrs&#91;1&#93;=&#34;w&#34;; arrs&#91;2&#93;=&#34;e&#34;; arrs&#91;3&#93;=&#34;r&#34;; である。 したがって、キーが0から3までの場合の処理をすればよい。 これをforステートメントで書くと for&#40;i=0;i&#60;arrs.length;i++&#41; となる。キーをiという変数に代入し、0から始めて、配列の数(この場合は4)未満まで処理をすればよい。 一方、配列のキーをすべて取り出し、それぞれに処理するというのがfor&#8230;inである。 for&#40;i in arrs&#41; 配列変数arrsのキーをiに代入し処理。終われば次のキーをiに代入。これをなくなるまで繰り返す。 結果は同じであるが、for&#8230;inを使う利点がある。 キーが数値でない場合である。 Javarrscriptでは連想配列を使うことができる。 例えば arrs&#91;&#34;mon&#34;&#93;=&#34;q&#34;; arrs&#91;&#34;tue&#34;&#93;=&#34;w&#34;; arrs&#91;&#34;wed&#34;&#93;=&#34;e&#34;; arrs&#91;&#34;thu&#34;&#93;=&#34;r&#34;; のようにキーとして数値ではなく文字を使える。 arrs=new Array&#40;&#41;; arrs&#91;&#34;mon&#34;&#93;=&#34;q&#34;; arrs&#91;&#34;tue&#34;&#93;=&#34;w&#34;; arrs&#91;&#34;wed&#34;&#93;=&#34;e&#34;; [...]]]></description>
		<wfw:commentRss>http://stabucky.com/wp/archives/551/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

