March 2011
5 posts
6 tags
Google Chrome で拡張機能やテーマがインストールできない
Google Chrome(10.0.648.151)になってから拡張機能やテーマがインストールできない現象に見舞われ、更にはデスクトップ通知もエラーが出て利用できなかった。 気になって起動オプションをみたら、以下の通りになっていた。 --enable-extensions --no-sandbox --enable-webgl --enable-extension-timeline-api そういえば Chrome がまだデフォルトで拡張機能を使えないときは「—enable-extensions」を付けないと使えなかったんだよな…。 起動オプション説明 --enable-extensions ... 拡張機能を有効にするのに使用 --no-sandbox ... Sandbox外で動作させるために使用 --enable-webgl ......
Mar 22nd
1 note
6 tags
Python で PHP の isset 関数のように定義されているかどうかを判別する
Python で変数が定義されているかどうかを判別するには try を使用します。 try: _var = variable except NameError: _var = 'default' 配列の値がない場合も同様に try を使用します。ただし except は IndexError になります。 try: _var = array[1] except IndexError: _var = 'default' 参考サイト: Determine if variable is defined in Python
Mar 19th
21 notes
2 tags
Python の環境変数
Pythonの環境変数を一覧表示 import os print 'Content-type: text/html' print '<style type="text/css">' print 'th,td {padding:3px;}' print 'th {text-align:right;}' print '</style>' print '<table cellpadding="0" cellspacing="0">' print '<thead><tr><th colspan="2" style="text-align:center;">Python os.environ</th></tr></thead>' print '<tbody>' for e...
Mar 19th
1 tag
PayPal の errorId=560022 と X-PAYPAL-APPLICATION-ID...
PayPal の X-PAYPAL-APPLICATION-ID は sandbox 環境では X-PAYPAL-APPLICATION-ID="APP-80W284485P519543T" だが、本番時には PayPal Developer Network にてアプリケーション登録が必要。PayPal アカウントでログインして My apps からアプリ登録が可能。 因みに本番環境で上記の X-PAYPAL-APPLICATION-ID のままだと以下のエラーが出る。 error(0).errorId=560022 ご参考までに。 参考URL PayPal X Developer Network Require my X-PAYPAL-APPLICATION-ID
Mar 9th
1 tag
Website Blocker - Change Log
Website Blocker Change Log: 0.1.4 - option page renewal 0.1.0 - 0.1.3 - modified for performance. - bug fixed 0.0.19 - modified for performance. - added new function. 0.0.18 - translated to Italian. Special Thanks: Matteo Pendezzini - http://www.facebook.com/matteo.pendezzini 0.0.17 - modified for performance. 0.0.16 - translated to Spanish. ...
Mar 5th