Lightbox Gone Wild

Lightbox Gone Wild
http://particletree.com/features/lightbox-gone-wild/


を使って別のphpを読み込んで表示というのをやっているんだけども、読み込むphpへ値を渡す方法に詰まった…。
初めはGETで渡そうと考えて、要素が選択される度にhrefで指定するURLに値を追記していくやり方を試した。


href="hoge.php?hoge="

href="hoge.php?hoge=AAA<>BBB<>CCC"


しかしこの方法がうまくいかない。
原因を探ってみると、「Lightbox Gone Wild」がhrefなどの各値を読むタイミングが問題だった。
onloadが発生した時に、class="lbOn"を探して各値を読んでいる様子。


道理で後からJSでhref書き換えてもうまく動かないわけだ…。
lightbox.js短いから解読して書き換えるか…。
もしくはjQueryで実装されているThickboxとやらを試すか…。


どーしよ、どーしよ。
開発期間が2週間くらいしか無いってのがまずおかしいんだ…!
時間があればじっくり舐め回すように解読してやるのに!

curlの-uと-Uの違い

つい先程、授業で「squidBasic認証使って使える人制限かけようねー」という内容をやった。
その際、最後の確認の場面でcurlの-uと-Uの違いで悩まされた…。

-u/--user
Specify user and password to use for server authentication. Overrides -n/--netrc and --netrc-optional.

If you use an SSPI-enabled curl binary and do NTLM authentication, you can force curl to pick up the user name and password
from your environment by simply specifying a single colon with this option: "-u :".

If this option is used several times, the last one will be used.


-U/--proxy-user
Specify user and password to use for proxy authentication.

If you use an SSPI-enabled curl binary and do NTLM authentication, you can force curl to pick up the user name and password
from your environment by simply specifying a single colon with this option: "-U :".

If this option is used several times, the last one will be used.

マニュアル読んでみたけど、違いと言ったら「Overrides -n/--netrc and --netrc-optional.」のとこくらい。
一体何が違うんだ!ずっと-u使い続けて、407 ERRORに悩まされてたよ!
帰ったらじっくりソース読んでみるか…。

tracにXML-RPC Pluginを入れたが動かない

Python Traceback

Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 406, in dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 240, in dispatch
*resp)
TypeError: _post_process_request() takes at most 4 arguments (5 given)


trac 0.10.4をfedora7に入れてかれこれ数ヶ月。
久々に設定再開。
Basic認証、ticket、component、milestone等の日本語化などしていよいよXML-RPC


だがXML-RPCプラグインを入れたところで上記画像のエラーに遭遇した。
数時間悩んだ後で、どうやら入れたプラグインtrac 0.11用のものだったことが発覚。


XML-RPC error」
http://groups.google.co.jp/group/trac-users/browse_thread/thread/bb684d3304511e07


改めて0.10用のsetup.pyを実行して、/var/trac/ProjectName/Pluginsにコピーしたeggファイルを0.10用のものに置き換えたものの状況は変わらず。


一度リセットして、最初から入れ直すか…。



そして昨日から使い始めたPutty
screenを使用すると、設定の「ベル無効」が無効になってウィンドウがフラッシュする罠。
ポケモンショック並のフラッシュですよこれは…!


軽くググってみたものの、参考になりそうな記事は見つからず。
また授業中時間あるときに調べてみるか…。