September 30, 2009


>>> for i, v in enumerate(['foo', 'bar', 'baz']):
... print i,v
0 foo
1 bar
2 baz

September 27, 2009

Snow Leopardの英語環境でイラレやFlashを使う

IllustratorやPhotoshopで文字化けが起こる。Snow Leopardでは 右クリック→Get Info では言語設定ができない。そこで

September 25, 2009




Install Notes

A full installation will install the following:
* Python framework -- installed into:

* Python applications -- installed into

* System fixes -- makes the EPD Python your default one by adding lines to
your .bash_profile to your path.

* Examples -- this is the examples and demos found in the sources for
the projects included in EPD. Installed into a sub directory of
and a symbolic link at


If you wish to completely uninstall EPD, you'll need to do so manually as
Apple does not support a standard uninstall mechanism for .mpkg installers.
If you don't want to fully uninstall, but instead wish to switch your default
Python to some interpreter other than EPD, see the below section on Changing
The Default Python Interpreter.

The recommended uninstall procedure is as follows, and this assumes you have
MacPython 2.5 installed. If you do not, you'll need to know where your backup
Python environment is and customize these instructions based on that

$ cd /Library/Frameworks/Python.framework/Versions/
$ sudo rm -rf 5.0.0
$ cd /Applications/Enthought/
$ sudo rm -rf EPD-5.0.0

Changing The Default Python Interpreter

During installation, EPD made itself your default interpreter by modifying
your .bash_profile to prepend it's 'bin' directory to your PATH environment
variable. In addition, it modified the symbolic link


to point to its version. You can change these two settings to switch to a
different default Python interpreter temporarily and/or permanently.

September 14, 2009

Snow LeopardでMacPortsでgcc43

My install procedure (I rm -rf'ed /opt/local after 10.6) was:

1. port install libiconv +universal
2. port install mpfr +universal
3. port install gcc43
4. [wait until it breaks]
5. cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc43/work/gcc-4.3.4/gcc/cp/
6. Edit line 76 of the file and remove tree-inline.o from CXX_C_OBJS
7. Resume compiling

I can put together a complete patch if necessary but didn't create a .orig file to diff from when getting this to work.

September 11, 2009

Snow LeopardでGreaseKitをビルドすると動くらしい

GreaseKitはSafari向けのGreasemonkeyスクリプトが使えるSIMBLプラグイン。非常に便利。だがSnow Leopard入れたらGreasKit (1.5)が動かない。32 bitモードで起動すればいいらしいが、それはちょっと。そこで「GreaseKit 64bit」とかでググる(英語)。そうしたらソースから10.6に対応する形でビルドすれば使えるよ、と。

Tristan O’Tierney » Blog Archive » GreaseKit in 64bit Safari

でやりかたを紹介してくれている。(しかも下の方にpre-buildしてくれたものを用意してくれている。)で、導入したら見事に動きました!oAutoPagerizeとかLDRizeとか! Many thanks!!!


/Library/Application Support/SIMBL/Plugins (確認済み)
~/Library/Application Support/SIMBL/Plugins

他のやり方→Snow Leopard でGreaseKitが動かなくなった件