Shammer's Philosophy

My private adversaria

ANAダイナースカード改悪

ANAダイナースのみでなく、ダイナースカード全体のことと思うが。数日前からオンラインサービスサイトで、システムの移行が予定されていると掲載されていたが、この移行のタイミングでポイントの換算方法についても変更があるということが本日到着の書類で判明した。具体的には、

  • これまでは月間の累計利用金額全体に対して、100円で1ポイント換算
  • 今後は、カード利用のたびに100円で1ポイント換算

に変更される。他にも変更はあるが、個人的に改悪と感じるのはこの点だけ。他は「はい、そうですか」で終了するレベル。カードの利用頻度が多い人ほどこの影響は大きいと思う。極端な話、199円の買い物を決済した場合はポイント付与率は約50%になってしまう。そもそも、去年の夏にVISAからダイナースにしよう、という一番の動機が、月間の利用金額/100というポイントシステムだったのに、入会数ヶ月にしてこのシステムが変わるとは・・・もうこれは再度カード選定をしなければならないくらいの気持ちになっている。
もう月間の合計利用金額に対して、100円で1ポイントというポイント体系のANAカードは存在しない認識。利用ごとに100円1ポイント(AMEX/DINERS)か、1000円ごとに1ポイント(VISA、ソラチカ等)のいずれか。自分はマイルをスカイコインにして飛行機代に使用するという使い方なので、スカイコインに変換する際の倍率も重要。1.6倍で換算できるゴールド以上は必須。そうすると、JCB/VISA/Master/AMEX/DINERSのいずれかだが、AMEX/DINERSは利用金額100円で1ポイントなので除外(たまにしか使わないカードならこれでも十分だが、月に60回くらい利用するカードがこれだともったいない)なので、JCB/VISA/Masterだ。でも、、、VISAは解約したばかりでなんとなく申し込みにくい。こんなことならもう数日待っていればよかった。Masterも三井住友みたいだから第一候補はJCBか。ソラチカにゴールドがあればそれで決定なのだが。
と、いろいろ思うところを書いているが、今回の変更で失われるであろうポイントも全体で見れば大したポイントにはならないんだよなあ。。。月に60回の利用として、その利用金額が全てXX99円とかとしたら、99X60=5940円、ポイントにして59ポイント分、年間12X59=708ポイント。スカイコインにしたとして70X1.6=1132.8。年間1132円分の旅行代金のためにこんな損した気分になる自分って一体・・・。いや、銀行預金でも年間の金利が1000円越えることの方がない昨今、この差は大きいだろう。人間、悪くなると感じることについては敏感なものなのだ。そういうことにしておこう。

やっぱりKarabinerは必要かも

AquaSKK with Karabiner 環境でスラッシュがShift扱いに? - Shammerismで、AquaSKKキーバインドは/Library/Input Methods/AquaSKK.app/Contents/Resources/keymap.confで編集できることがわかった。書式はAquaSKK Wiki - AquaSKK - OSDNの「keymap.confの文法」を参考にして

EnterAbbrev		group::f,j

EnterAbbrev		group::fj

など、いろいろ試してみたがFとJを同時にタイプすることで変換モードにするようにはできなかった。やはり、これはKarabinerなどの別アプリでSticky Shiftを有効にしておかないとできなそうだ。

AquaSKK with Karabiner 環境でスラッシュがShift扱いに?

AquaSKKで日本語入力モードの際に、FとJの同時タイプで漢字変換扱い(Shiftモード)にするようにKarabinarのオプション - Shammerismで設定したが、意識していなかったがスラッシュを入力したときにも変換扱いになってしまっていた。そのため、スラッシュを入力したいときはいつも日本語入力モードをオフにしていたが、ふと、なぜこんな動作なのかが気になって調べてみた(ちなみに、英語キーボード環境)。
最初は、Karabinerのどこかでそういう設定をしているのでは?と確認してみたが、スラッシュの挙動を変更するような設定は何もない。どうやらKarabinerは関係なく、AquaSKKが怪しいということで確認してみた。
実際、AquaSKKで定義されていた。AquaSKKのキー割り当ては、

/Library/Input Methods/AquaSKK.app/Contents/Resources

というディレクトリのkeymap.confに定義されているらしい。この中でスラッシュについてのものがあった。

EnterAbbrev		/

という行をコメントアウトして再起動することで問題は解消された。スラッシュの入力が格段に楽になった。でも、どういう意味なんだろうか。Abbrevは辞書によればabbreviatedの略で、短縮や省略とかいう意味があるらしいが。ひらがなを短縮(?)して漢字にする、ということだろうか。
それはさておき、Karabinerを使用してShiftと同様のキーをFとJの同時押しに割り当てたが、このファイルをうまく編集することでも実現できたのかもしれないが、、、便利なソフトなのでこのままにしておこう。

VPS Cloud 申し込み停止中・・・

独自ドメイン運用のため、DNSサーバーとして動作させるVPSサービスを検索していて、NTTコミュニケーションズのものが月額360円で利用できるようでいいと思っていたが、、、在庫を確保できないらしく申し込み停止となっていた。
トップページのリンクはここだが、「申し込みはこちら」などのリンクをクリックしても受付停止のページに転送されてしまう。この金額でできるのは魅力なのだがしばらく待つことになりそうだ。

Numbers SUMIFS doesn't calc if the range is other sheet

I use SUMIFS function on my Mac Numbers. I wrote about this function in How to calculate summary with a condition on Numbers of Mac? - Shammerism, but I faced with the case SUMIFS doesn't calc if the range is not in the same sheet.
SUMIFS requires the calc range as below, quoted from How to calculate summary with a condition on Numbers of Mac? - Shammerism.

=SUMIFS(SheetB :: C,SheetB :: D,"=20171210")

I understood that SUMIFS requires Sheet Name if range is in other sheet. So I define the SUMIFS with using Sheet Name. But, it is not correct.
I always create sheet if I want to add a new table, so my Numbers file has sheets which has only 1 table. I am used to this style, like Microsoft Excel.
But, Numbers is different from Excel, sheet name and table name are different. SUMIFS requires Table Name instead of Sheet Name. The syntax of it should be below.

=SUMIFS(TableB :: C,TableB :: D,"=20171210")

How to calculate summary with a condition on Numbers of Mac?

I wrote about the way how to calculate summary with a condition on Google Spread Sheet at QUERY is very useful!!! - Shammerism. I looked for the way because I thought I would use Debian as usually, but I can't decided to replace my Mac OS with Debian yet. If using Mac, I want to use Numbers as my default spread sheet application. And I would like to use the function like query of Google Spread Sheet on Numbers.
I feel query is a very flexible function and there is no completely equivalent function on other spread sheet application. But, I use query just as calculating summary with some conditions, and there is a such function just doing so.

On Numbers, SUMIFS can do what I would like to do. Here is an example.

=SUMIFS(SheetB :: C,SheetB :: D,"=20171210")

First param means the value range to be calculated. Then, second param means the range of conditions. And third param is the condition itself. Above example acts as following.

  1. Check SheetB's column D
  2. Extract rows whose column D value is 20171210
  3. Summarize extracted column C's values

How to display diff between local branch and remote branch of GIT?

Before commit

Just git diff can display the difference like below.

$ git diff
diff --git a/my-elisps.el b/my-elisps.el
index a7c3ee8..e4044da 100644
--- a/my-elisps.el
+++ b/my-elisps.el
@@ -161,7 +161,7 @@
                    ">\n"))
     (insert (concat "<div id=\""
                    element-id
-                   "\" style=\"display:none;chear:both;\" class=\""
+                   "\" style=\"display:none;clear:both;\" class=\""
                    element-class
                    "\"></div>"))))
 (define-key global-map (kbd "C-c i") 'insert-visible-change-element)
$ 

After commit

Once commit done, there is no output with git diff.

$ git commit -v -a -m "Bug fix of insert-visible-change-element"
[master fae5af0] Bug fix of insert-visible-change-element
 1 file changed, 1 insertion(+), 1 deletion(-)
$ 
$ git diff
$

In this case, should do "git diff remote/origin/master".

$ git diff remotes/origin/master
diff --git a/my-elisps.el b/my-elisps.el
index a7c3ee8..e4044da 100644
--- a/my-elisps.el
+++ b/my-elisps.el
@@ -161,7 +161,7 @@
                    ">\n"))
     (insert (concat "<div id=\""
                    element-id
-                   "\" style=\"display:none;chear:both;\" class=\""
+                   "\" style=\"display:none;clear:both;\" class=\""
                    element-class
                    "\"></div>"))))
 (define-key global-map (kbd "C-c i") 'insert-visible-change-element)
$ 

I wonder why remote/origin/master. I am not sure what is the difference between remote and master. I cloned local branch from master. I think master and remote is the same in my repository.