2010年6月9日水曜日

[Vim] ManPageViewでperldocjpをひく




    " ~/.vim/after/ftplugin/perl.vim
    let g:manpageview_pgm_pl = "perldocjp"


Vimからは :Man perlvar.pl

2010年6月3日木曜日

[翻訳]プレリリース: App Engine Python SDKのためのローカルSQLite datastore

sqlite_datastore_stub

プレリリース: App Engine Python SDKのためのローカルSQLite datastore

sqlite_datastore_stub は、現在のファイルベースのスタブを置き換えることを目的とするPython SDKのためのローカルの データストアの実装です。

データはSQLite データベースによってディスク上に格納されます、したがってメモリ消費の問題はありません、そしてサーバのスタート時間も同様に、ローカルの データストアのサイズに応じた影響を受けることがなくなるでしょう。新しいデータストアスタブで期待できるものは以下です
  • ローカルデータストアに多くのデータがある場合、スタート時間が改善されます
  • ローカルデータストアに多くのデータがある場合、パフォーマンスが改善されます
  • メモリ消費を抑えます
とはいえ、同様に重要なのは、予期 すべきではないことがあります
  • 少量のデータに対処するときのパフォーマンス改良。すべてのクエリのスキャンは効率が悪く聞こえますが、速度のためにメモリ内のすべてのデータを保つのが難しいのです--したがって、比較的小さいデータがあるのなら、多くか少しの改良もみることができないでしょう。
  • リレーショナルスキーマdev_appserverによって作成されたSQLiteデータベースを開けるなら、それが1つのkindあたり1個のテーブル、およびプロパティのためのカラムで構成されていると期待しないでください。あなたを関心があるなら、datastoreがどう構造化されるかに関するその他の詳細をここに提供します。
これがプレリリースコードであることを忘れないでください。それはあなたのすべてのデータを破壊するかもしれません。それはあなたの猫を飲み込むブラックホールの偶然発生を引き起こすかもしれません。それは、期待したように動きさえするかもしれません!ほぼ、何が起ってもおかしくはありません。

ダウンロード

ダウンロードは download page にあります。
There are two options for downloading the new stub. If you're unsure which to choose, read the Installation section for details.

インストール

There are two ways to install the sqlite_datastore_stub - you can either download a new copy of the SDK, or patch your existing copy.

Downloading a new SDK

Simply download the SDK zip from the 'download' section, unpack it, and use it as you would normally (see the 'usage' section).

Patching your existing SDK

In order to patch your existing SDK, you will need to have the unix utility 'patch'. Linux and OSX systems will already have this; on Windows you should download a new SDK, or install mingw.
  1. Download the sqlite_datastore_stub.diff file from the download section.
  2. Open a terminal window, and change to the directory containing your SDK.
  3. Enter the command "patch -p1 < /path/to/datastore_sqlite_stub.diff"
If the patch applied successfully, you should see output like the following:

google_appengine nickjohnson$ patch -p1 < /home/nickjohnson/datastore_sqlite_stub.diff 
patching file google/appengine/datastore/datastore_sqlite_stub.py
patching file google/appengine/datastore/sortable_pb_encoder.py
patching file google/appengine/tools/dev_appserver.py
Hunk #2 succeeded at 3485 (offset -6 lines).
Hunk #3 succeeded at 3504 (offset -6 lines).
Hunk #4 succeeded at 3528 (offset -6 lines).
patching file google/appengine/tools/dev_appserver_main.py

使用法(Usage):

変更されたSDKはまだ通常のdatastoreスタッブを使用するのをデフォルトとしています。SQLiteスタッブを可能にするために、dev_appserverに--use_sqlite フラグを使用してください。たとえば、

$ dev_appserver.py --use_sqlite path/to/your/app

データストアファイルの互換性

既存ファイルスタッブと新しいSQLiteスタブによって使用される形式は異なっていて、どちらももう片方によって作り出されたデータを読むことができません。もし以前に使用したものと異なったデータストアスタブを使用して dev_appserver を起動すると(もしくは --use_sqlite フラグを省略している場合も含む)エラーが出るでしょう。

未使用なデータストアを使用するのを保証するために、自身でデータストアのパスの指定して保存するか

$ dev_appsever.py --use_sqlite --datastore_path=/tmp/datastore.sqlite path/to/your/app

または、--clear_datastoreを使用して、起動前にデータストアの以前のコピーを消してください

$ dev_appserver.py --use_sqlite --clear_datastore path/to/your/app

Providing feedback

Please post any feedback or comments to the official group. But reports should be submitted to the issue tracker.

  Sign in   Recent Site Activity   Terms   Report Abuse   Print page  |  Powered by Google Sites


2009年9月22日火曜日

PySideのビルド

gentoo x86.

http://www.pyside.org/downloads/
http://www.pyside.org/docs/pyside/howto-build/index.html

まず、オフィシャルに記載されている要件をみたす。
この機会にKDE4.3をいれた。Portageからkde-base/kdebase-startkdeをアンマスクしていれただけ。
あとboostの1.39、cmakeのpythonフラグなども設定した。

以下Pysideから提供されるモージュールをうえから順番にインストールしてゆく。

せっかくだからebuildをつくりたかったが結局あとまわしに。

*ApiExtractor
wget→cmake→make && make install でok
*BoostPythonGenerator
cmake時点で FindApiExtractor.cmakeもとめられるがそのままでは見付けられないみたいなのCMAKE_MODULE_PATHでインストールさきを指定する。

    cmake -DCMAKE_MODULE_PATH=/usr/local/share/cmake-2.6/Modules  .

*Pyside-qt4.5
cmake時にGENERATORに適切な値を設定しろや、みたいなエラーがでた。
    cmake -DGENERATOR=boostpython  .
かなあ、とりあえずここのmakeは通らない。

    /usr/local/src/pyside-qt4.5+0.2/base/abstract_qobject_connection.cpp:95: error: no match for ‘operator*’ in ‘*boost::python::tuple(((const boost::python::list&)((const boost::python::list*)(& args))))’
/usr/include/boost/python/object_operators.hpp:98: note: candidates are: boost::python::api::object boost::python::api::operator*(const boost::python::api::object&, const boost::python::api::object&)

どうやら

    To compile PySide from scratch, you need to have either Boost 1.40 (currently in development) or a patched version of Boost 1.38. The required patches are:

boost/python とかにパッチを適用せなかんらしい。
こ、これはめんどい、、、 ならebuildつくりたいなあ。
つづく。



Quick Lookup:

2009年9月19日土曜日

myprojects.vim

project.vimでも使うかと思ったけどどうやらmyprojects.vimのが活発みたいなので使ってみる。
"It's an alpha-version (release early, release often)" とのこと。

[](http://www.vim.org/scripts/script.php?script_id=2556 "myprojects - Organize/Navigate projects of files (like IDE/buffer explorer/project.vim) : vim online")
Vimballをダウンロード後:so % でインストール。

特徴やproject.vimとの違いを確認。
- ファイルエクスプローラ
- tags生成
- filtering(?)
- ワーキングディレクトリの設定
- vimセッションの管理
- F1-F12キーのマッピング
- makeの設定
- errorformatの設定
- バッファエクスプローラ
- subversionのサポート

p で専用バッファ(パネル)をひらくみたい、トグルが:MyProjectsToggle 。
デフォルではvimを起動いたらと自動でパネルが開いた。
    map MyProjectsToggle
で変更できる。

cでプロジェクト作成できるらしい。
対話的にプロジェクトディレクトリやらショートカットキーに使うファンクションキーの設定やらをやるとエクスプローラが表示された。

    let g:myprojects_auto_open=0
vim起動時にプロジェクトパネルを開かないように。

    let g:myprojects_file=$HOME."/dotfiles/.myprojects"
myprojectsファイルをデフォルト(~/.myprojects)から変更。



2009年9月1日火曜日

my .zshrc

tips参考にしたものは情報もとをのこしたい。
なんでこんな設定したのかわすれるので。

~/.zsh
`-- func
|-- _gisty
|-- prompt_wunjo_setup
`-- zgitinit

1 directory, 3 files


my .emacs

あんまりつかってない。

~/.emacs.d
|-- anything-c-adaptive-history
|-- auto-save-list
|-- inits
| |-- carbon-emacs-config.el
| `-- carbon-emacs-config.el~
|-- pymacs
| |-- BROWSE
| |-- pycomplete.py
| |-- pycomplete.pyc
| `-- s
|-- session.10a0230263117f221b124556172627762400000038860115
|-- site-lisp -> ../site-lisp
`-- snippets
`-- text-mode
|-- cc-mode
| |-- c++-mode
| | |-- beginend
| | |-- class
| | |-- ns
| | |-- template
| | `-- using
| |-- c-mode
| | `-- fopen
| |-- csharp-mode
| | |-- attrib
| | |-- attrib.1
| | |-- attrib.2
| | |-- class
| | |-- comment
| | |-- comment.1
| | |-- comment.2
| | |-- comment.3
| | |-- method
| | |-- namespace
| | |-- prop
| | |-- region
| | |-- using
| | |-- using.1
| | `-- using.2
| |-- do
| |-- for
| |-- if
| |-- inc
| |-- inc.1
| |-- main
| |-- objc-mode
| | `-- prop
| |-- once
| `-- struct
|-- css-mode
| |-- bg
| |-- bg.1
| |-- bor
| |-- cl
| |-- disp.block
| |-- disp.inline
| |-- disp.none
| |-- ff
| |-- fs
| |-- mar.bottom
| |-- mar.left
| |-- mar.mar
| |-- mar.margin
| |-- mar.right
| |-- mar.top
| |-- pad.bottom
| |-- pad.left
| |-- pad.pad
| |-- pad.padding
| |-- pad.right
| `-- pad.top
|-- email
|-- erlang-mode
| |-- after
| |-- begin
| |-- beh
| |-- case
| |-- compile
| |-- def
| |-- exp
| |-- fun
| |-- if
| |-- ifdef
| |-- ifndef
| |-- imp
| |-- inc
| |-- inc.lib
| |-- loop
| |-- mod
| |-- rcv
| |-- rcv.after
| |-- rec
| |-- try
| `-- undef
|-- f90-mode
| |-- au
| |-- bd
| |-- c
| |-- ch
| |-- cx
| |-- dc
| |-- do
| |-- dp
| |-- eq
| |-- ib
| |-- ic
| |-- ich
| |-- if
| |-- ii
| |-- il
| |-- in
| |-- inc
| |-- intr
| |-- ir
| |-- l
| |-- pa
| |-- pr
| |-- re
| |-- st
| |-- su
| `-- wr
|-- html-mode
| |-- body
| |-- br
| |-- code
| |-- code.class
| |-- dd
| |-- div
| |-- div.class
| |-- div.id
| |-- div.id-class
| |-- dl
| |-- dl.id
| |-- doctype
| |-- doctype.xhml1
| |-- doctype.xhtml1_1
| |-- doctype.xhtml1_strict
| |-- doctype.xhtml1_transitional
| |-- dt
| |-- form
| |-- h1
| |-- h2
| |-- h3
| |-- h4
| |-- h5
| |-- h6
| |-- head
| |-- hr
| |-- href
| |-- html
| |-- html.xmlns
| |-- img
| |-- input
| |-- li
| |-- li.class
| |-- link.stylesheet
| |-- link.stylesheet-ie
| |-- mailto
| |-- meta
| |-- meta.http-equiv
| |-- ol
| |-- ol.class
| |-- ol.id
| |-- p
| |-- pre
| |-- quote
| |-- script.javascript
| |-- script.javascript-src
| |-- span
| |-- span.class
| |-- span.id
| |-- style
| |-- table
| |-- td
| |-- textarea
| |-- th
| |-- title
| |-- tr
| |-- ul
| |-- ul.class
| `-- ul.id
|-- latex-mode
| `-- begin
|-- markdown-mode
| |-- +
| |-- -
| |-- _
| |-- __
| |-- `
| |-- h1.1
| |-- h1.2
| |-- h2.1
| |-- h2.2
| |-- h3
| |-- h4
| |-- h5
| |-- h6
| |-- hr.1
| |-- hr.2
| |-- img
| |-- link
| |-- ol
| |-- rimg
| |-- rlb
| `-- rlink
|-- nxml-mode
| |-- body
| |-- br
| |-- code
| |-- div
| |-- doctype
| |-- doctype.xhtml1_strict
| |-- doctype.xhtml1_transitional
| |-- form
| |-- h1
| |-- h2
| |-- h3
| |-- h4
| |-- h5
| |-- h6
| |-- head
| |-- hr
| |-- href
| |-- html
| |-- img
| |-- input
| |-- li
| |-- link
| |-- meta
| |-- name
| |-- ol
| |-- p
| |-- pre
| |-- quote
| |-- span
| |-- style
| |-- table
| |-- tag.1l
| |-- tag.2l
| |-- td
| |-- th
| |-- title
| |-- tr
| `-- ul
|-- perl-mode
| |-- cperl-mode
| |-- eval
| |-- for
| |-- fore
| |-- if
| |-- ife
| |-- ifee
| |-- sub
| |-- unless
| |-- while
| |-- xfore
| |-- xif
| |-- xunless
| `-- xwhile
|-- python-mode
| |-- __
| |-- class
| |-- def
| |-- defm
| |-- for
| |-- ifmain
| |-- propg
| |-- propsg
| `-- while
|-- rst-mode
| |-- chap
| |-- sec
| `-- tit
|-- ruby-mode
| |-- #
| |-- =b
| |-- Comp
| |-- all
| |-- am
| |-- any
| |-- app
| |-- bm
| |-- case
| |-- cla
| |-- classify
| |-- cls
| |-- collect
| |-- dee
| |-- deli
| |-- det
| |-- dow
| |-- ea
| |-- eac
| |-- eai
| |-- eav
| |-- eawi
| |-- forin
| |-- if
| |-- ife
| |-- inject
| |-- mm
| |-- r
| |-- rb
| |-- reject
| |-- req
| |-- rreq
| |-- rw
| |-- select
| |-- tim
| |-- until
| |-- upt
| |-- w
| |-- when
| |-- while
| |-- y
| `-- zip
|-- scala-mode
| |-- act
| |-- act.arg
| |-- actor
| |-- ano
| |-- app
| |-- arr.new
| |-- arr.val-new
| |-- asof
| |-- ass
| |-- ass.true
| |-- at.author
| |-- at.param
| |-- at.return
| |-- at.version
| |-- bang
| |-- case
| |-- case.match-all
| |-- cast
| |-- cc
| |-- cl
| |-- cl.abs
| |-- cl.abs-arg
| |-- cl.arg
| |-- clof
| |-- co
| |-- cons
| |-- cons.nil
| |-- def.arg
| |-- def.arg-body
| |-- def.arg-ret
| |-- def.arg-ret-body
| |-- def.body
| |-- def.ret
| |-- def.ret-body
| |-- def.simple
| |-- doc.class
| |-- doc.def
| |-- doc.file
| |-- doc.file-scala
| |-- doc.file-scala-api
| |-- doc.scaladoc
| |-- expect
| |-- ext
| |-- for.extract
| |-- for.if
| |-- for.loop
| |-- for.multi
| |-- foreach
| |-- hmap.new
| |-- hmap.val-new
| |-- hset.new
| |-- hset.val-new
| |-- if
| |-- if.else
| |-- imp
| |-- intercept
| |-- isof
| |-- ls.new
| |-- ls.val-new
| |-- main
| |-- map
| |-- map.new
| |-- match
| |-- match.can
| |-- match.option
| |-- mix
| |-- ob
| |-- pac
| |-- pr.newline
| |-- pr.simple
| |-- pr.string
| |-- pr.trace
| |-- pri
| |-- pri.param
| |-- pro
| |-- pro.param
| |-- suite
| |-- test
| |-- throw
| |-- tr
| |-- tr.ext
| |-- tr.ext-with
| |-- tr.with
| |-- try
| |-- try.catch-finally
| |-- try.finally
| |-- tup.arrow
| |-- tup.paren
| |-- val
| |-- val.new
| |-- val.ret
| |-- var
| |-- var.new
| |-- var.ret
| |-- whi
| `-- with
|-- sql-mode
| |-- column
| |-- constraint
| |-- constraint.1
| |-- create
| |-- create.1
| `-- references
`-- time

25 directories, 396 files

~/.emacs.d/site-lisp
|-- ac-dabbrev.el
|-- anything-config.el
|-- anything-etags.el
|-- anything-gtags.el
|-- anything-match-plugin.el
|-- anything-yaetags.el
|-- anything.el
|-- auto-complete.el
|-- grep-edit.el
|-- init-loader.el
|-- install-elisp.el
|-- migemo.el
|-- pymacs.el
|-- revive.el
|-- rst.el
|-- rst.elc
|-- sense-region.el
|-- windows.el
`-- yasnippet.el

0 directories, 19 files



$MYVIMRC


~/.vim/
|-- GetLatest
| |-- GetLatestVimScripts.dat
| |-- Installed
| | `-- vim-fuzzyfinder.zip
| `-- mru.vim
|-- after
| |-- ftplugin
| | |-- javascript.vim
| | |-- php.vim
| | `-- python.vim
| `-- plugin
| `-- snipMate.vim
|-- autoload
| |-- interactive.vim
| |-- manpageview.vim
| |-- metarw
| | |-- blogger.rb
| | |-- blogger.vim
| | `-- git.vim
| |-- metarw.vim
| |-- neocomplcache
| | |-- keyword_complete.vim
| | |-- snipMate_complete.vim
| | |-- snippets_complete
| | | |-- _.snip
| | | |-- c.snip
| | | |-- cpp.snip
| | | |-- d.snip
| | | |-- eruby.snip
| | | |-- rails.snip
| | | |-- ruby.snip
| | | |-- snippet.snip
| | | |-- tex.snip
| | | |-- vim.snip
| | | `-- vimshell.snip
| | |-- snippets_complete.vim
| | |-- syntax_complete.vim
| | `-- tags_complete.vim
| |-- neocomplcache.vim
| |-- proc.so
| |-- proc.vim
| |-- pythoncomplete.vim
| |-- smartword.vim
| |-- snipMate.vim
| |-- vimshell
| | |-- internal
| | | |-- alias.vim
| | | |-- bg.vim
| | | |-- cd.vim
| | | |-- clear.vim
| | | |-- dirs.vim
| | | |-- echo.vim
| | | |-- exe.vim
| | | |-- exit.vim
| | | |-- gcd.vim
| | | |-- gexe.vim
| | | |-- h.vim
| | | |-- hide.vim
| | | |-- histdel.vim
| | | |-- history.vim
| | | |-- iexe.vim
| | | |-- ls.vim
| | | |-- nop.vim
| | | |-- one.vim
| | | |-- popd.vim
| | | |-- pwd.vim
| | | |-- repeat.vim
| | | |-- screen.vim
| | | |-- shell.vim
| | | |-- sudo.vim
| | | |-- view.vim
| | | |-- vim.vim
| | | `-- vimsh.vim
| | |-- parser.vim
| | `-- special
| | |-- ev.vim
| | `-- let.vim
| |-- vimshell.vim
| |-- vimwiki.vim
| |-- vimwiki_html.vim
| `-- vimwiki_lst.vim
|-- backup
|-- c-support
| |-- codesnippets
| | |-- Makefile
| | |-- Makefile.multi-target.template
| | |-- calloc_double_matrix.c
| | |-- calloc_int_matrix.c
| | |-- main.c
| | |-- main.cc
| | |-- print_double_array.c.noindent
| | `-- print_int_array.c.noindent
| |-- doc
| | |-- ChangeLog
| | |-- c-hotkeys.pdf
| | `-- c-hotkeys.tex
| |-- rc
| | |-- customization.ctags
| | |-- customization.gvimrc
| | |-- customization.indent.pro
| | `-- customization.vimrc
| |-- scripts
| | `-- wrapper.sh
| |-- templates
| | |-- Templates
| | |-- c.comments.template
| | |-- c.cpp.template
| | |-- c.idioms.template
| | |-- c.preprocessor.template
| | |-- c.statements.template
| | |-- cpp.comments.template
| | |-- cpp.cpp.template
| | |-- cpp.idioms.template
| | |-- cpp.preprocessor.template
| | `-- cpp.statements.template
| `-- wordlists
| |-- c-c++-keywords.list
| |-- k+r.list
| `-- stl_index.list
|-- colors
| |-- --help
| |-- desert256.vim
| `-- xoria256.vim
|-- compiler
| `-- javascriptlint.vim
|-- dict
| |-- js.dict
| |-- objc.dict
| |-- perl.dict
| `-- php.dict
|-- doc
| |-- csupport.txt
| |-- fuzzyfinder.jax
| |-- fuzzyfinder.txt
| |-- manpageview.txt
| |-- metarw-git.txt
| |-- metarw.txt
| |-- neocomplcache.jax
| |-- neocomplcache.txt
| |-- smartword.txt
| |-- tags
| |-- tags-ja
| |-- twitvim.txt
| `-- vimwiki.txt
|-- ftdetect
| |-- actionscript.vim
| |-- mkd.vim
| |-- muttator.vim
| |-- objc.vim
| |-- vimperator.vim
| `-- xulmus.vim
|-- ftplugin
| |-- c.vim
| |-- html_snip_helper.vim
| |-- php.vim
| |-- python.vim
| |-- ruby.vim
| |-- vimshell.vim
| `-- vimwiki.vim
|-- indent
| |-- htmljinja.vim
| `-- vimwiki.vim
|-- neocomplcache
| |-- keyword_complete.vim
| |-- snippets_complete
| | |-- _.snip
| | |-- c.snip
| | |-- cpp.snip
| | |-- d.snip
| | |-- eruby.snip
| | |-- rails.snip
| | |-- ruby.snip
| | |-- snippet.snip
| | |-- tex.snip
| | |-- vim.snip
| | `-- vimshell.snip
| |-- snippets_complete.vim
| |-- syntax_complete.vim
| `-- tags_complete.vim
|-- neocomplcache.jax
|-- plugin
| |-- bufferlist.vim
| |-- c.vim
| |-- fuzzyfinder.vim
| |-- gist.vim
| |-- interactive.vim
| |-- ipy.vim
| |-- manpageviewPlugin.vim
| |-- metarw.vim
| |-- migemo.vim
| |-- neocomplcache.vim
| |-- smartword.vim
| |-- snipMate.vim
| |-- taglist.vim
| `-- vimshell.vim
|-- presen
| |-- neocomplcache.txt
| `-- vimshell.txt
|-- qfixapp
| |-- plugin
| | |-- 0000-00-00-000000.vim
| | |-- mygrep.vim
| | |-- myhowm.vim
| | `-- myqfix.vim
| `-- syntax
| `-- howm_memo.vim
|-- snippet.vim
|-- snippets
| |-- _.snippets
| |-- autoit.snippets
| |-- c.snippets
| |-- cpp.snippets
| |-- html.snippets
| |-- java.snippets
| |-- javascript.snippets
| |-- mako.snippets
| |-- objc.snippets
| |-- perl.snippets
| |-- php.snippets
| |-- python.snippets
| |-- ruby.snippets
| |-- sh.snippets
| |-- snippet.snippets
| |-- tcl.snippets
| |-- tex.snippets
| |-- vim.snippets
| `-- zsh.snippets
`-- syntax
|-- actionscript.vim
|-- django.vim
|-- info.vim
|-- jinja.vim
|-- man.vim
|-- mankey.vim
|-- manphp.vim
|-- metarw.vim
|-- mkd.vim
|-- muttator.vim
|-- mxml.vim
|-- snippet.vim
|-- vimperator.vim
|-- vimshell.vim
|-- vimwiki.vim
|-- vimwiki_default.vim
|-- vimwiki_media.vim
`-- xulmus.vim

36 directories, 210 files