gnucash-django
https://github.com/nylen/gnucash-django
- pythonのセットアップ
macportsでpythonをインストールしていたが,IDLEが起動しないため,dmgをダウンロードしてpython2.7.3をインストール
http://www.python.org/getit/mac/
インストール後,pythonの起動を確認
- モジュールのインストール
http://sourceforge.net/projects/mysql-python/
$tar -xvf MySQL-python-1.2.4b4.tar.gz
$cd MySQL-python-1.2.4b4
$sudo python setup.py install
-
- Python dateutil
http://labix.org/python-dateutil
$tar -xvf python-dateutil-1.5.tar.gz
$cd python-dateutil-1.5
$sudo python setup.py install
mysql>create database gnucash_django;
$python manage.py syncdb
ロケールを修正
http://patrick.arminio.info/blog/2012/02/fix-valueerror-unknown-locale-utf8/
export LANG="ja_JP.UTF-8"
export LC_COLLATE="ja_JP.UTF-8"
export LC_CTYPE="ja_JP.UTF-8"
export LC_MESSAGES="ja_JP.UTF-8"
export LC_MONETARY="ja_JP.UTF-8"
export LC_NUMERIC="ja_JP.UTF-8"
export LC_TIME="ja_JP.UTF-8"
export LC_ALL=
$python manage.py createsuperuser
$sudo python manage.py runserver
Gnucashでmysqlを使用する
mysqlをインストール
$sudo port install mysql5 mysql5-server
libdbi-driversをインストールする
$sudo port install libdbi-drivers +mysql5
$cp /opt/local/lib/dbd/libdbdmysql.so /Applications/Gnucash.app/Contents/Resources/lib/dbd/libdbd/(2.4.10時点)
$cp /opt/local/lib/dbd/libdbdmysql.so /Applications/Gnucash.app/Contents/Resources/lib/dbd/(2.4.13時点)
mysqlを起動
$sudo /opt/local/share/mysql5/mysql/mysql.server start
Mac起動時にmysqlも起動
$sudo port load mysql5
参考
http://wiki.gnucash.org/wiki/MacOSX/Quartz
https://trac.macports.org/ticket/28928
参考になるかも
GnuCash Python API
gxtclient4gnucash
This is a project to build a web-based client tool for gnucash.
追記(2014/07/07)
http://lists.gnucash.org/pipermail/gnucash-user/2013-October/050867.html
ターミナルからWebサービスを再起動する
$sudo /usr/sbin/apachectl restart
時制
先行研究のレビュー時
A scientist writes in the past tense when referring to his/her own experiment. The present tense is used when referring to another investigator’s published work as background information.
(from http://www.fairfieldschools.org/wardehs/cwardehs03/sciwriting.htm)
Results described in your paper should be described in past tense (you’ve done these experiments, but your results are not yet accepted “facts”). Results from published papers should be described in the present tense (based upon the assumption that published results are “facts”). Only experiments that you plan to do in the future should be described in the future tense.
(from http://www.sci.sdsu.edu/~smaloy/MicrobialGenetics/topics/scientific-writing.pdf)
Write in the past tense. You are writing about information that was discovered in the past. Many journal editors allow authors to write in present tense when dealing with what are referred to as "continuing situations", i.e., it was true in the past, is true presently and will be true in the future. There is some latitude for this in the introduction where you are describing the general status of your topic but when you are writing about the articles that you have found to up-date the topic, write in the past tense.
(from http://it.stlawu.edu/~tbudd/litrev.html)
Refer to work done by specific individuals (including yourself) in past tense. Refer to generally accepted facts and principles in present tense.
コンソール出力の幅を変える
>options(width=80)
LDOCEのデータ構造
- Entry
- SE_EntryAssets
- Head
- HWD
- HYPHENATION
- PronCodes
- Audio(s)
- POS
- GRAM
- SE_EntryAssets
- ILLUSTRATION
- Sense(s)
- Gram
- Def
- Example(s)
- Crossref
- PhrVbEntry
- Head
- Sense(s)
- Tail
- GramBox
XMLスキーマ
ツリー構造
- d:dictionary
- d:entry
- d:index
- d:index
- body part
- d:entry
- d:index
- body part
- d:entry
Dictionary
ルート要素.1以上のエントリーを子に持つ.
Entry
1以上のインデックスと本文を子に持つ,辞書エントリー
- id
- エントリーの固有ID(必須)
- d:title
- エントリーを表すテキスト(必須)
Index
Entryの中で,他の要素よりも先に記述する必要がある.
- d:value
- 検索テキスト(必須)
- d:title
- 検索結果として表示されるテキスト(必須)
- d:parental-control
- 検索結果から該当要素を削除するための指標(任意:指定がなければ0)
- d:priority
- 検索結果から該当要素を削除するための指標(任意:指定がなければ0)
- d:anchor
- 強調する(任意)
- d:yomi
- (日本語用)読み(任意)
文法に関しては,やや厳しめの印象.
は
でないといけないし,