July 22, 2010
/sys/devices/system/cpu/cpu0/cpufreq has interesting info.
scaling_available_frequencies shows available speed that the CPU can be set. I reduced the frequency by
cpufreq-selector -f 800000 and the temperature went down to 61.0C.
July 10, 2010
To log debug information for an Android app, use
Log.i(). This can be seen via
adb logcat command which talks to an emulator.
Economics is social science.
Experiments are often difficult in economics than other sciences.
Observation. Theory.
yetの使い方
Learning to think like an economist will take sometime. Yet with a combination of theory, case studies, and examples of economics in the news, this book will give you ample opportunity to develop and practice this skill.
この例文で使われている'yet'は、'however'と交換できる?
July 5, 2010
I believe the best size PDA is the size of personal organizer like Filofax. I remember it was called "Bible size". Bible size is something like Size: 5″ x 7.25″ x 3/4". A filofax organizer size was 130mm(W) x 192mm(H), which is 5.1" x 7.5". Their diagonal length is 9inch.
A LCD cannot be entire surface of a device and there is space for bezel. iPad's dimension is 9.56x7.57 and diagonal length is 12.1inch. Its LCD size is 9.7inch. In iPad's case, the LCD size is 80% of the diagonal size.
From the calculation above, the LCD of bible-size would be 7.2inch.
I've searched [7inch android] and came across a couple of them.
First one is Galaxy Tape from Samsung. There was a leak from Vietnamese tech site and according to that, it will run on Android 2.2 and have ARM Cortex A8 1.2GHz processor. The battery capacity will be 4,000mAh. This device is expected in late 2010.
Another one is Huawei S7. It is coming sooner in June/July timeframe, and it runs on Android 2.1. It has Qualcomm Snapdragon 768MHz. It has a front-facing 2M pixel camera. A few weaknesses: it uses a resistive screen. It is around $350-400 for pre-order in a few online shops.
- A caller first locates the server for callees.
- send the SIP request to the server.
- perform invitation.
- SIP request may be redirected. may trigger new SIP requests by proxies.
SIP knows users and hosts. They are identified by SIP URL like user@host.
Find a simple Android open source project [5/14 9:22pm]
-> Astrid seems to be a good one.
A user said Sipdroid isn't compatible with CallCentric yet. (2008/11)
CSS comment /* ... */
Configured settings for my mac for notify.io. No notification has been received yet.
失われた時を求めて
語り手の私は、「スワン家の方へ」では少なくとも中学生以下のはず。なぜなら、「後になって中学時代に〜」という下りがある。
soyuz.localnet
apt-get update ← パッケージリストの更新
DIALOG_TIMEPICKER
android.app.TimePickerDialog
android:id="@+:id/my_button" adds my_button identifier to the application's resource namespace.
ラズベリー
「した」=「し」は「する」の連用形。「た」は過去を表す助詞。連用形に接続する。
「します」=「し」は「する」の連用形。「ます」は助動詞。
「でした」=「でし」は丁寧な断定の助動詞「です」の連用形+「た」過去を表す。
「だ・です」は断定の助動詞。「だ」は普通形。「です」は丁寧形。
用いています。(丁寧)
禁止しております。(丁寧)
判明しました。(丁寧)
起因します。(丁寧)
下げました。(丁寧)
あってはならないことです。(丁寧)
エントリーした(普通)
ご覧ください。(尊敬)=ください+くださ-い(ラ行変格活用の命令形)。くださるは「くれる」の尊敬語。
お詫び申し上げます。(丁寧)
ありがとうございました。(丁寧)
考え、
徹し、
取り組んでまいります。(謙譲)
Restart Mongrel in NetBeans
Blocks in Javaを読みながらのメモ。
高階関数
Higher order function
- 値ではなく式を受け取るメソッド/関数
Functor object
- 式をオブジェクトに包み込み、データとしてpassできるようにするもの。これは高階関数によって使われる。
- Javaでは、anonymous inner classをfunctor objectとして使える。
- functor objectは、block, closureとも呼ばれる。(正確?)
- 関数としても使えるオブジェクト。
- functorはオブジェクトである。
Visitorパターン
- visitorパターンには、visitする側のvisitorと、visitされる側のvisitableの2つを用意する。
- visitorは、visit()メソッドを実装する。
- visitable側は、accept(visitor)メソッドを実装する
- 使い方は、visitable.accept(visitor)とする。すると、visitableが自分の持つデータ要素それぞれに対してアクセスし、適切なタイミングでvisitor.visit()メソッドを呼び出す。
- 例:ツリーのノードに対して何か処理を行いたい。ここでツリーのノードはint値を持つとする。
- 例1: ツリーのノードの和を求めたい。
- ツリークラスTreeがvisitableとなる。
- Tree.accept()は、ノードをトラバースし、visitor.visit()を呼び出すコードとしておく。
- SumVisitorクラスを実装し、SumVisitor.visit(Node)で、ノードの値をメンバ変数にsumに足す用にしておく。
- SumVisitorをインスタンス化して、aTree.accept(aSumVisitor)とすると、各ノードをトラバースしながら、visit()メソッドを呼んで行く動作になる。
- 例2: ツリーのノードの最小値を求めたい。
- MinVisitorを実装し、aTree.accept(aMinVisitor)とすれば、OK。
- visitorのinstanceはdata structureによってacceptされ、データ構造の各要素に対して、applyされる。
- acceptメンバはInternalIteratorでreferされる。
- visitorは、functor objectで、applyメソッドはhigher order function。
- Smalltalkにはblockとclosureがあるらしい。
JComponentで寸法を取得する
getWidth()とgetHeight()
Core Data
http://developer.apple.com/macosx/coredata.html
を読んだ。
これだけだといまいち良くわからないが、データの管理を一般化してコードから切り離すような感じか。
- アプリケーションのデータモデルをグラフィカルに定義し、コードから簡単にアクセスできるようにする。
- undo/reduが実現できるようにする
- オブジェクトグラフ管理/パーシステンスフレームワーク
- モデルレイヤーをインメモリオブジェクトで表現する
- パーシステンス=ファイルに書き出す
- Managed Object Model
海外からの送金
ABAナンバーが必要になる。
三菱東京UFJ銀行コールセンター
まあ、コールセンターなので問題解決できないのは仕方がないけれど、「こちらでお調べすることはできません」というのもそっけない。アメリカだと「調べてからこちらからご連絡します」というパターンが多い。
Fidelityの担当者から電話、三菱東京UFJ銀行のABAナンバーと、ソニー銀行の対応するアカウント番号が必要だとのこと。明日聞いてくれると。
ebay
パック直前:362g
パック後:378g
約20g追加になっていた。
子プロセスあたりのファイルデスクリプタ数を増やすコマンド
ulimit -S -n `ulimit -H -n`
ulimit -H -nは、-H(ハードリミット)、-nは"The maximum number of open file descriptors"で、これを実行すると、unlimitedが返される。これを-S (ソフトリミットに設定している)
apachectl
apachectlを引数なしで起動すると、apachectl -hと解釈される。apachectlは、$ARGVで分岐し、-hは*)にマッチするので、$HTTPD $ARGVとなり、httpd -hとなる。だけど、これってhttpdの引数を表示しているわけで、apachectl固有の引数は表示しないけどいいんだろうか?
apachectl固有の引数はこんな感じ
configtest - httpd -tと同じ
status
fullstatus
ap_exists_config_define()は、ap_server_config_definesをチェックする。ap_server_config_definesは、
apr_array_make(pcommands, 1, sizeof(char *));
で生成され、
(char **)apr_array_push(ap_server_config_defines);
で拡張される。
apr_array_makeは、srclib/apr/apr_tables.hで定義されていて、
/**
* Create an array
* @param p The pool to allocate the memory out of
* @param nelts the number of elements in the initial array
* @param elt_size The size of each element in the array.
* @return The new array
*/
APR_DECLARE(apr_array_header_t *) apr_array_make(apr_pool_t *p,
int nelts, int elt_size);
となっている。APRは、Apache Portable Runtimeの略。WindowsやUNIX環境などの差異を吸収するためのライブラリとなっている。
apr.apache.orgにプロジェクトページがある。
ap_server_config_definesは、コマンドラインで、-D XYZとして指定されたものが配列として保持されているところのようだ。
apacheは通常、プロセスをターミナルから切り離しデーモン化する。これはデバッグには非常に都合が悪い。
10/29
toodledoは、todoアイテムの順序をマウスで変更する事が出来ない。
http://www.propelr.com/ まだ利用できない。
.xpi file is a PKZIP-compresssed archive.
install.rdf is an meta data for an extension. It tells which version of Firefox is the target, who's the creator, etc, but it doesn't tell what needs to be installed.
<em:type>2</em:type>
Type 2 means extension.
chrome.manifest is used to inform chrome registry about available chrome.
XUL overlay
10/17
There si
iGTD, a Mac GTD application.
10/15
Life Balance : TODOリストソフト。
One guy says "
My Life Organized" for Pocket PC and Windows is better than LifeBalance.