mortgate
- remaining 699,743.16
- The money store
- 71 employees on Linkedin.
- 72 ripoff reports.
- (1/5) sent email.
- Home Finance of America
- 6 employees on Linkedin.
- 1 ripoff report in 2004.
- BBB A+. 10 complains in last 3 years.
- business started in 1994 in PA.
- 521 Plymouth Road, Suite-112, Plymouth Meeting, PA 19462
- (1/5) send email.
- DLJ Financial
- 20101 SW Birch St., Ste 135 Newport Beach, CA 92660
- 17 employees on Linkedin. 40 employees (BBB)
- facebook page. Last post on 8/9/2011, 204 likes.
- 0 ripoff report?
- 0 BBB reports
- (1/5) sent email.
12/4/2011
- OAuth is a protocol allowing your application to obtain authorization to read or modify a user’s file or data on an external server.
6/17/2011
UIViewController class provides the view-management model. [What is “view-management model”?]
View controllers provide a link between an application’s data and its visual appearance.
- It handles presentation of the app.
- It handles the removal of content from the screen.
- It handles re-orientation.
- A view controller is typically associated with a single screen’s worth of content.
- A view controller should have all the data needs to determine the rendering.
- A view controller manages a set of views.
Delegation is a mechanism used to avoid subclassing complex objects. Custom behavior is in a delegate object and unmodified object is used for common part.
6/16/2011
Gemfile is used by Bundler.
Gem dependency can be described in Gemfile. Simplest form is:
gem 'rake'
With specific version or newer is required,
gem 'rack-test', '>= 0.5.6'
tea palace
55.63GBP was $90.42. - 4 packs of tea : 43.95 GBP = $71.43 - shipping was 11.67 GBP (=$18.96) 25% extra.
not bad considering VAT is 20% in UK.
6/15/2011
proc {}
proc is defined as an utility function in proc.c.
rb_define_global_function("proc", rb_block_proc, 0);
rb_block_proc(). proc_new(rb_cProc, FALSE).
proc_new() is little complicated. It obviously needs a block passed, and this is how a block is retrieved:
if ((GC_GUARDED_PTR_REF(cfp->lfp[0])) != 0) {
block = GC_GUARDED_PTR_REF(cfp->lfp[0]);
} else {
... error handling ...
}
GC_GUARDED_PTR_REF takes VALUE, so cfp->lfp[0] is a VALUE. cfp stands for Control Frame Pointer (rb_control_frame_t). The definition looks like this:
typedef struct {
VALUE *pc; /* cfp[0] */
VALUE *sp; /* cfp[1] */
...
VALUE *lfp; /* cfp[6] / block[1] */
...
} rb_control_frame_t;
lfp is Local Frame Pointer (?).
VMDEBUG == 2 to spit debug dump.
6/11/2011
redsn0w_mac0.9.6rc16.zip
iPhone3,14.3.3_8J2_Restore.ipsw
git-rebase
- Forward-port local commits to the updated upstream head. 手元のコミットをアップデートされたupstreamのheadに対して適応する。
If branch is specified, git rebase will perform an automatic git checkout <branch> before doing anything else. Otherwise it remains on the current branch.
All changes made by commits in the current branch but that are not in upstream are saved to a temporary area. This is the same set of commits that would be shown by git log <upstream>..HEAD (or git log HEAD, if --root is specified).
The current branch is reset to <upstream>, or <newbase>' if the –onto option was supplied. This has the exact same effect as git reset –hard
The commits that were previously saved into the temporary area are then reapplied to the current branch, one by one, in order. Note that any commits in HEAD which introduce the same textual changes as a commit in HEAD..<upstream> are omitted (i.e., a patch already accepted upstream with a different commit message or timestamp will be skipped).
It is possible that a merge failure will prevent this process from being completely automatic. You will have to resolve any such merge failure and run git rebase --continue. Another option is to bypass the commit that caused the merge failure with git rebase --skip. To restore the original <branch> and remove the .git/rebase-apply working files, use the command git rebase --abort instead.
Assume the following history exists and the current branch is “topic”. From this point, the result of either of the following commands:
git rebase master <--- git rebase <upstream>
git rebase master topic <--- git rebase <upstream> <branch>
would be:
The latter form is just a short-hand of git checkout topic followed by git rebase master.
If the upstream branch already contains a change you have made (e.g., because you mailed a patch which was applied upstream), then that commit will be skipped. For example, running git rebase master on the following history (in which A’ and A introduce the same set of changes, but have different committer information):
A---B---C topic
/
D---E---A'---F master
will result in:
B'---C' topic
/
D---E---A'---F master
Here is how you would transplant a topic branch [based on one branch to another (???)], to prevent that you forked the topic branch from the latter branch, using rebase --onto.
First, let’s assume your topic is based on branch next. For example, a feature developed in topic depends on some functionality which is found in `next.
o---o---o---o---o master
\
o---o---o---o---o next
\
o---o---o topic
We want to make topic forked from branch master; for example, because the functionality on which topic depends was merged into the more stable master branch. We want our tree to look like this:
o---o---o---o---o master
| \
| o'--o'--o' topic
\
o---o---o---o---o next
We can get this using the following command:
git rebase --onto master next topic <-- git rebase --onto <newbase> <upstream> <branch>
–onto <newbase>が指定されているので、新たにtopicブランチのベースとなるのはmasterのHEAD。ここに対して、<upstream>からの変更が適応される。<upstream>は、nextブランチのHEADなので、ここからtopicブランチで行われた3つのコミットが適応されるので、上図のように3つのコミットがrebaseによって適応された形になる。
Another example of --onto option is to rebase part of a branch. If we have the following situation:
H---I---J topicB
/
E---F---G topicA
/
A---B---C---D master
then the command
git rebase --onto master topicA topicB
would result in:
H'--I'--J' topicB
/
| E---F---G topicA
|/
A---B---C---D master
This is useful when topicB does not depend on topicA.
git rebase --onto master topicA topicB: newbase=master, upstream=topicA, branch=topicB. topicB is updated to be based on master, i.e. branch off from D. As upstream is topicA, changes H, I, J are applied to the new topicB.
A range of commits could also be removed with rebase. If we have the following situation:
E---F---G---H---I---J topicA
then the command
git rebase --onto topicA~5 topicA~3 topicA
would result in the removal of commits F and G:
E---H'---I'---J' topicA
This is useful if F and G were flawed(=よろしくない) in some way, or should not be part of topicA. Note that the argument to --onto and the <upstream> parameter can be any valid commit-ish[commit的なもの?].
git rebase --onto topicA~5 topicA~3 topicAは、topicAブランチのベースをtopicA~5(5つ前のコミット)にし、topicA~3(3つ前のコミット)より後のコミットをブランチに適用する。よって、FとGが無視されることになる。[これって失敗したらどうなるんだろう?]
In case of conflict, git rebase will stop at the first problematic commit and leave conflict markers in the tree. You can use git diff to locate the markers (<<<<<<) and mark edits to resolve the conflict. For each file you edit, you need to tell git that the conflict has been resolved, typically this would be done with
git add <filename>
After resolving the conflict manually and updating the index with the desired resolution, you can continue the rebasing process with
git rebase --continue
Alternatively, you can undo the git rebase with
git rebase --abort
INTERACTIVE MODE
Rebasing interactively means that you have a chance to edit the commits which are rebased. You can reorder the commits, and you can remove them (weeding out bad or otherwise unwanted patches).
The interactive mode is meant for this type of workflow:
- have a wonderful idea
- hack on the code
- prepare a series for submission
- submit
where point 2. consists of several instances of
a. regular use 1. finish something worth worthy of a comit 2. commit b. independent fixup 1. realize that something does not work 2. fix that 3. commit it
Sometimes the thing fixed in b.2. cannot be amended to the not-quite perfect commit it fixes, because that commit is buried deeply in a patch series. That is exactly what interactive rebase is for: use it after prenty of “a”s and “b”s, by rearranging and editing commits, and squashing multiple commits into one.
Start it with the last commit you want to retain as is:
git rebase -i <aster-this-commit>
An editor will be fired up with all the commits in your current branch (ignoring merge commits), which come after the given commit. You can reorder the commits in this list to your heart’s content, and you can remove them. This list looks more or less like this:
pick deadbee The oneline of this commit
pick fa1afe1 The oneline of the next commit
The oneline descriptions are purely for your pleasure; git rebase will not look at them but at the commit names (deadbee and fa1afe1 in this example), so do not delete or edit the names.
By replacing the command “pick” with the command “edit”, you can tell git rebase to stop after applying that commit, so that you can edit the files and/or commit message, amend the commit, and continue rebasing.
If you just want to edit the commit message for a commit, replace the command “pick” with the command “reword”.
If you want to fold two or more commits into one, replace the command “pick” for the second and subsequent commits with “squash” or “fixup”. If the commits had different authors, the folded commit will be attributed to the author of the first commit. The suggested commit message for the folded commit is the concatenation of the commit message of the first commit and of those with the “squash” command, but omits the commit messages of commits with the “fixup” command.
git rebase will stop when “pick” has been replaced with “edit” or when a command fails due to merge errors. When you are done editing and/or resolving conflicts you can continue with git rebase --continue.
For example, if you want to reorder the last 5 commits, such that what was HEAD~4 becomes the new HEAD. To achieve that, you would call git rebase like this:
git rebase -i HEAD~5
And move the first patch to the end of the list.
You might want to preserve merges, if you have a history like this: ~~~ X \ A—M—B / —o—O—P—Q ~~~ Suppose you want to rebase the side branch starting at “A” to “Q”. Make sure that the current HEAD is “B”, and call
git rebase -i -p --onto Q O
Reordering and editing commits usually creates untested intermediate steps. You may want to check that your history editing did not break anything by running a test, or at least recompiling at intermediate points in history by using the “exec” command (shortcut “x”). You may do so by creating a todo list like this one:
pick deadbee Implement feature XXX
fixup f1a5c00 Fix to feature XXX
exec make
pick c0ffeee The oneline of the next commit
edit deadbab The oneline of the commit after
exec cd subdir; make test
The interactive rebase will stop when a command fails (i.e. exists with non-0 status) to give you an opportunity to fix the problem. You can continue with git rebase --continue.
The “exec” command launches the command in a shell (the one specified in $SHELL, or the default shell if $SHELL is not set), so you can use shell features (like “cd”, “>”, “;’ …). The command is run from the root of the working tree.
SPLITTING COMMITS
Economist subscription
- “Final Notice” from Economist: $137.19/year.
6/10/2011
rake/task defines a task library for running unit tests.
6/9/2011
Update soyuz to have squeezeboxserver 7.5.4.
6/3/2011
European low cost carriers: Ryan Air and easyJet.
4/27/2011
- owfs is at soyuz:/var/1-wire/
- create rrd and record temperature.
- Created a rrd file
soyuz:~/src/rrd/t3/home.rrdwhich holds temperature data.
- Created a rrd file
4/26/2011
reflection, annotation
4/25/2011 zarya log
Apr 25 18:54:22 zarya kernel: [ 317.846352] Shorewall:net2fw:DROP:IN=eth0 OUT= MAC=00:16:3e:34:27:e8:fe:ff:ff:ff:ff:ff:08:00 SRC=67.169.164.xxx DST=46.4.208.144 LEN=42 TOS=0x00 PREC=0x20 TTL=43 ID=0 DF PROTO=UDP SPT=1194 DPT=1194 LEN=22
67.169.164.xxxは、Comcast(家)のアドレス。46.4.208.144は、zarya.gaku.netのアドレス。ポート1194(UDP)は、OpenVPNのもの。
つまり、家のサーバーがzaryaに対してOpenVPN接続を試みようとしてshorewallに弾かれている。
英単語
- 英単語を選択、bookmarkletをクリック
- 英単語を登録。
- 意味をテスト。正解・不正解を記録。
3/19/2011
Wants to add a test to Kramdown wrapper code.
Check the code out locally (spektr): ~~~ spektr% git clone ssh://zarya.gaku.net/gakunet.git gakunet ~~~
To write an unit test in Ruby, use Test::Unit::TestCase.
By defining a class and interpreting the file, it will automatically runs tests in the file.
Due to the iMac’s crash, I don’t have kramdown module on spektr.
Installed bundler.
$ gem install bundler
Volvo V70 ipod
My Volvo V70 (2005)’s headunit is HU-650. It looks like it has MELBUS.
USA Spec iPod interface (PA11-VOL)
DoCoMo
DoCoMoでAndroid OS搭載のスマートフォンを使ったところ、パケット代で9900円の請求があった。スマートフォンでは5700円が上限だと思ったが何が悪かったのだろうか。
5700円に抑えるためには「スマートフォン定額通信」または「128K通信」と分類される使い方をする必要がある。
スマートフォン定額通信とは、スマートフォン定額対応アクセスポイントを利用した国内におけるFOMAパケット通信(パソコンなどの外部機器を接続しての利用は除きます)です。spモード、mopera Uなどの対応プロバイダとのご契約が必要です。
mopera Uの契約をしているのだが。APNの設定が誤っているのか?ただし、DoCoMoのSIMを入れていないと設定できない。
http://blog.hizoo1999.com/2010/06/simiphonedocomoapn.html
todo
- expand fblogin.rb to handle permission scope.
pragmatic
pragmatic has very similar meaning to practical, but it sounds like realistic too. However, a pragmatic person may not be practical from time to time. A pragmatic person makes decisions based on the real world things rather than philosophy or emotion.
2/16/2011
- moved dev.gaku.net/bmark to bookmark.gaku.net.
2/3/2011
- support multiple tags (comma separated) in bookmark.
openvpn
web dev
- useradminをspektrに移植(というか、dev environmentで動かす)。→動いた。
- ブックマーク?→ 1月に実装し、一応動いている。開発継続中。
- myplaces?
mongodb
- installed mongodb on spektr via MacPorts.
尽きせぬ
尽きせぬ = 尽きせ-ぬ
尽くの連用形「尽き」+「す」で複合サ変かな? 尽きせ-ぬは、尽きせ(未然形)+ぬ(否定)
Rimowa
W75xH49xD27[87L] 76,650yen = 29.5” H x 19.5” W x 10.6” D … $495
59.6inch total length.
29.3” x 19.5” x 10.8” – 29 32.3” x 21.9” x 10.6” – 32
ローカル線
先日数日休みをとって乗り鉄をした。乗ったのは愛知県の豊橋駅から長野県の辰野駅を結ぶローカル線だ。かなりの山の中を走ることもあって、無人駅も多い。当然乗客も少ないことは予想していたが、予想以上に人が少なかった。豊橋近郊を過ぎ、山間部に入ってくると乗客は私を含め2人となってしまった。たったの2人だ。
乗員は運転士さんと車掌さんの2人。各駅では停車し、ドアの開け閉めを行う。もちろん車内放送もする。乗車券は高々千円ちょっとだからこれではどう考えても赤字だ。ローカル線が廃止というニュースを聞くと、悲しくなってしまうし、なんとか鉄道存続をする方法はないものか、乗客を増やす方法はないものかと思うものの、やはり地方の鉄道というのは、現代の世の中には適していない交通機関なのだと認めざるをえない。
◯鉄道は徒歩での生活が成り立たなければ有効ではない。 都市以外では、日常生活にクルマが必要になってしまう可能性が高い。例えば、スーパーマーケットが徒歩圏になければクルマを持つ必要が出てしまう。こうなると、鉄道が便利であったとしても、クルマを持っていることになってしまう。鉄道はクルマを持たない人々に対して有効な交通手段である。
◯維持費が高いのではないか。 ほとんど空の列車に乗っていて思うことは、ほんとうに何もないところにも線路を敷き、トンネルを掘り、そして鉄橋を掛けて2本のレールをつながないと鉄道は走ることができない。そして、周囲の木々は自然に伸びる。当然ながら電車の本数が少なくても保線作業は行われなければならない。これを考えると路線を維持するだけでも相当なコストがかかる。一日に数回しか使われないものを何十キロも維持しなければならないのはやはり効率が悪そうだ。
もちろん道路の維持にもお金は掛かるだろうが、バスを走らせる方がやはり効率がよさそうだ。
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. <b>Yet</b> 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.
失われた時を求めて 語り手の私は、「スワン家の方へ」では少なくとも中学生以下のはず。なぜなら、「後になって中学時代に〜」という下りがある。
apt-get update ← パッケージリストの更新
DIALOG_TIMEPICKER android.app.TimePickerDialog
android:id=”@+:id/my_button” adds my_button identifier to the application’s resource namespace.
「した」=「し」は「する」の連用形。「た」は過去を表す助詞。連用形に接続する。 「します」=「し」は「する」の連用形。「ます」は助動詞。 「でした」=「でし」は丁寧な断定の助動詞「です」の連用形+「た」過去を表す。 「だ・です」は断定の助動詞。「だ」は普通形。「です」は丁寧形。
用いています。(丁寧) 禁止しております。(丁寧) 判明しました。(丁寧) 起因します。(丁寧) 下げました。(丁寧) あってはならないことです。(丁寧) エントリーした(普通) ご覧ください。(尊敬)=ください+くださ-い(ラ行変格活用の命令形)。くださるは「くれる」の尊敬語。 お詫び申し上げます。(丁寧) ありがとうございました。(丁寧) 考え、 徹し、 取り組んでまいります。(謙譲)
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.
-{text
chrome.manifest is used to inform chrome registry about available chrome.
XUL overlay
-:html 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.
