<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/okoba0119/">
    <title>okoba0119 @ ウィキ</title>
    <link>http://w.atwiki.jp/okoba0119/</link>
    <atom:link href="https://w.atwiki.jp/okoba0119/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>okoba0119 @ ウィキ</description>

    <dc:language>ja</dc:language>
    <dc:date>2009-09-22T04:16:47+09:00</dc:date>
    <utime>1253560607</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/okoba0119/pages/52.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/okoba0119/pages/38.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/okoba0119/pages/37.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/okoba0119/pages/34.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/okoba0119/pages/21.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/okoba0119/pages/19.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/okoba0119/pages/20.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/okoba0119/pages/1.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/okoba0119/pages/22.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/okoba0119/pages/2.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/okoba0119/pages/52.html">
    <title>[js]scrollable</title>
    <link>https://w.atwiki.jp/okoba0119/pages/52.html</link>
    <description>
          </description>
    <dc:date>2009-09-22T04:16:47+09:00</dc:date>
    <utime>1253560607</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/okoba0119/pages/38.html">
    <title>[js]tooltip</title>
    <link>https://w.atwiki.jp/okoba0119/pages/38.html</link>
    <description>
          </description>
    <dc:date>2009-09-22T04:16:36+09:00</dc:date>
    <utime>1253560596</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/okoba0119/pages/37.html">
    <title>[js]cycle plugin</title>
    <link>https://w.atwiki.jp/okoba0119/pages/37.html</link>
    <description>
          </description>
    <dc:date>2009-09-22T04:16:18+09:00</dc:date>
    <utime>1253560578</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/okoba0119/pages/34.html">
    <title>[js]スライダー</title>
    <link>https://w.atwiki.jp/okoba0119/pages/34.html</link>
    <description>
          </description>
    <dc:date>2009-09-22T04:15:58+09:00</dc:date>
    <utime>1253560558</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/okoba0119/pages/21.html">
    <title>[js]CSSセレクタ</title>
    <link>https://w.atwiki.jp/okoba0119/pages/21.html</link>
    <description>
      *jQueryを使ってcss操作
-spanタグを指定する時
 // jquery
 $(&#039;span&#039;)
 // javascript
 var hoge = document.getElementByTagName(&#039;span&#039;);
 
- id属性を指定する時
 // jquery
 $(&#039;#ken&#039;)
 // javascript
 var unko = document.getElementById(&#039;ken&#039;);

- htmlを弄ってみる
 ・htmlで以下のようにIDをふる
 &lt;p id=&quot;about&quot;&gt;test page&lt;/p&gt;
 
 ・js
 $(&#039;#about&#039;).html(&quot;&lt;b&gt;change page&lt;/b&gt;&quot;);

-jQueryのオブジェクトで返されるので、htmlエレメントが返されるわけではないので$(&#039;#about&#039;).innerHTMLにするとNG.     </description>
    <dc:date>2009-09-22T04:15:46+09:00</dc:date>
    <utime>1253560546</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/okoba0119/pages/19.html">
    <title>[js]class名の操作</title>
    <link>https://w.atwiki.jp/okoba0119/pages/19.html</link>
    <description>
       &lt;div class=&quot;one twe three four&quot;&gt;&lt;/div&gt;
+classの場合は、idと違ってスペース区切りで複数の値を設定できる。
+2番目のクラスを指定する方法。めっさ楽。
+素jsだと正規表現でうんこみたいなソースになっちゃうから1行って素敵過ぎる。

 $(&#039;div&#039;).toggleClass(&#039;two&#039;);    </description>
    <dc:date>2009-09-22T04:15:35+09:00</dc:date>
    <utime>1253560535</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/okoba0119/pages/20.html">
    <title>[js]ブラウザ判定(jQuery)</title>
    <link>https://w.atwiki.jp/okoba0119/pages/20.html</link>
    <description>
       jQuery.browser.msie
 jQuery.browser.mozilla
 jQUery.opera
 jQuery.safari    </description>
    <dc:date>2009-09-22T04:15:20+09:00</dc:date>
    <utime>1253560520</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/okoba0119/pages/1.html">
    <title>トップページ</title>
    <link>https://w.atwiki.jp/okoba0119/pages/1.html</link>
    <description>
      #calendar

#recent(10)

**@wiki助け合いコミュニティの掲示板スレッド一覧
#atfb_bbs_list(112)    </description>
    <dc:date>2009-09-22T04:14:52+09:00</dc:date>
    <utime>1253560492</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/okoba0119/pages/22.html">
    <title>[python]コマンドライン引数の処理</title>
    <link>https://w.atwiki.jp/okoba0119/pages/22.html</link>
    <description>
      *getopt
-引数はsys.argvにリストで入ってくる
-オプション引数の解析はgetopt
-getoptの第二引数で、「:」が付くのは値をとるとき。

~
 getopt(args, shortopts, longopts=[])
- argsには引数
- shortoptsは、引数が1文字の時
- longoptsは長い引数の時
--ex. --help --width 10のような時. [&quot;help&quot;,&quot;width=&quot;])

~
** sample code
 import getopt
 import sys
 
 try:
 	optlist.args = getopt.getopt(sys.args[1:],&quot;f:&quot;)
 except getopt.GetoptError,pe:
 	print pe.msg
 	sys.exit(0)
 	
 for opt,args in optlist:
 	if opt in (&quot;-f&quot;):
 		print(&quot;ok&quot;)
~
----
*optparse
-getoptより処理が楽.
~
**sample code
-infileには読み込むファイル
-outfileには何か処理をして吐き出すファイル
-よくあるパターンのスクリプト
 #! /bin/env python
 import outparse
 
 # getfile
 def getfiles():
     usage = u&#039;%prog [-f:infile] [-o:outfile]
     parser = optparse.OptionParser(usage=usage)
     parser.add_option(
           &#039;-f&#039;,&#039;--infile&#039;,
            action=&#039;store&#039;,
            type=&#039;string&#039;,
           help=u&#039;input text file&#039;,
           metavar=&#039;infile&#039;
     )
     
     parser.add_option(
          &#039;-o&#039;,&#039;--outfile&#039;,
          action=&#039;store&#039;,
          type=&#039;string&#039;,
          help=u&#039;output text file&#039;,
          metavar=&#039;outfile&#039;
     )
     options.args = parser.parse_args()
 
  # main
  if __name__ = &#039;__main__&#039;
      getfiles()

** 実行結果1.
- -hの引数でヘルプが出るのだ.
 [$/home/python] ./unko.py -h
 Usage: unko.py [-f:infile] [-o:outfile]
 
 Options:
   -h, --help           show this help message and exit
   -f infile,  --infile=infile
                             infile text file
   -o outfile, --outfile=outfile
                             outfile text file

** 実行結果2.
- -f optionにちゃんと引数をつけるといけるみたいだ
 [$/home/python] ./unko.py -f unko
 []
 {&#039;outfile&#039;: None, &#039;infie&#039;: &#039;unko&#039;}

** 実行結果3.
- -o optionもちゃんとつけて完成
 [$/home/python] ./unko.py -f unko -o test
 []
 {&#039;outfile&#039;:&#039;test&#039;,&#039;infile&#039;:&#039;unko&#039;}
 
~
**その他のoption
-add_optionで書いてあるように、オプションを設定できる。
-引数を取らないオプション
--action引数に、&#039;store_true&#039; 、 &#039;store_false&#039; を指定することにより作成
-オプションが設定されると &#039;store_true&#039; は True を、 &#039;store_false&#039; は False をオプションの属性に格納    </description>
    <dc:date>2009-09-22T04:09:39+09:00</dc:date>
    <utime>1253560179</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/okoba0119/pages/2.html">
    <title>メニュー</title>
    <link>https://w.atwiki.jp/okoba0119/pages/2.html</link>
    <description>
      **メニュー
-[[java]]
--[[tomcat]]
--[[Seasar2]]
---[[SAStruts]]
-[[perl]]
--[[CPANを使う]]
-[[python]]
--[[コマンドライン引数の処理(python)]]
-[[javascript]]
--[[tool&gt;javascript tool]]
--[[jQuery]]
---[[ブラウザ判定(jQuery)]]
---[[class名の操作]]
---[[CSSセレクタ]]
---[[スライダー]]
---[[cycle plugin]]
---[[tooltip]]
---[[scrollable]]
---[[ajax]]
-[[Linux]]
--[[bash]]
--[[vi]]
---[[設定(vi)]]
--[[command]]
-[[web]]
--[[画面キャプチャ]]
-[[いろんなmemo]]
-[[book]]
----
-twitter[okoba23]
-mixi[okoba23]


&amp;link_editmenu(text=ここを編集)    </description>
    <dc:date>2009-08-24T02:24:04+09:00</dc:date>
    <utime>1251048244</utime>
  </item>
  </rdf:RDF>
