「システム環境設定」の実体

「パーソナル」から「システム」までは /System/Library/PreferencePanes にある.
「その他」のうち全ユーザ共通のものは /Library/PreferencePanes に,
ユーザ毎のものは ~/Library/PreferencePanes にあるようだ.

% ls /System/Library/PreferencePanes
Accounts.prefPane/
Appearance.prefPane/
Bluetooth.prefPane/
DateAndTime.prefPane/
DesktopScreenEffectsPref.prefPane/
DigiHubDiscs.prefPane/
Displays.prefPane/
Dock.prefPane/
EnergySaver.prefPane/
Expose.prefPane/
FibreChannel.prefPane/
Ink.prefPane/
Keyboard.prefPane/
Localization.prefPane/
Mac.prefPane@
MobileMe.prefPane/
Mouse.prefPane/
Network.prefPane/
ParentalControls.prefPane/
PrintAndFax.prefPane/
Security.prefPane/
SharingPref.prefPane/
SoftwareUpdate.prefPane/
Sound.prefPane/
Speech.prefPane/
Spotlight.prefPane/
StartupDisk.prefPane/
TimeMachine.prefPane/
Trackpad.prefPane/
UniversalAccessPref.prefPane/

% ls /Library/PreferencePanes
Air Display Preferences.prefPane/
Flash Player.prefPane/
Growl.prefPane/
KeyRemap4MacBook.prefPane/
MacUIM.prefPane/
PCKeyboardHack.prefPane/
TeXDistPrefPane.prefPane/

% ls $HOME/Library/PreferencePanes
GeekTool.prefPane/
teleport.prefPane/

ubuntu で Neuron Simulator 使うときは, apt-get install ncurses-dev しておかないと,nrnivmodl が実行できないようだ

(たぶん)apt-get install nrn でNeuronが入るのだけど,ncurses-dev が(必要なのに)一緒に入ってくれないみたいで,nrnivmodl コマンドでmodファイルを変換しようとすると,error吐くようだった.

訂正: apt-getで入らない。公式サイトからdebファイル落としてきて、dpkg -i でインストールする。ncurses-devが必要であることが、コマンド実行してみるまでわからない。

run(10 * second) した後でt > 9[s] についてraster_plot()する

from brian import *

all_neurons = NeuronGroup('省略')

moni_spike_all = SpikeMonitor(all_neurons)

run( 10 * second )

spikes = [s for s in moni_spike_all.spikes if s[1] >= 9*second]

raster_plot_spiketimes(spikes)

show()


raster_plot_spiketimesについて.

In [42]: raster_plot_spiketimes??
Type:       function
Base Class: <type 'function'>
String Form:<function raster_plot_spiketimes at 0x106e49848>
Namespace:  Interactive
File:       /Library/Python/2.6/site-packages/brian/plotting.py
Definition: raster_plot_spiketimes(spiketimes)
Source:
def raster_plot_spiketimes(spiketimes):
    """
    Raster plot of a list of spike times
    """
    m = Monitor()
    m.source = []
    m.spikes = spiketimes
    raster_plot(m)
    t = array(spiketimes)[:,1]

zshの補完ファイルの置き場所について

rvmのzsh補完ファイルの置き場所について.
今まで,
http://beginrescueend.com/workflow/completion/
にしたがって

mkdir -p $HOME/.zsh/Completion
cp .rvm/scripts/zsh/Completion/_rvm $HOME/.zsh/Completion
echo 'fpath=(~/.zsh/Completion $fpath)' >> $HOME/.zshrc

ってやってもできなくて,/usr/share/zsh/site-functions/ 以下に置いたりしていたのだけど,できなかった理由がわかった.
fpathの設定よりも後ろで

autoload -U compinit ; compinit

する必要があったのでした.めでたしめでたし.