2021年12月28日

父の葬儀と相続の記録 その5(最後)

11月末に墓ができたとの連絡が母からあり、その週日帰りで実家に行って母をつれて墓を確認、ついでに食事会に使うレストランへの道順も確認。

12月下旬の土曜日、晴れていたものの強風で凍える中、母、伯父一家、叔父、伯母、叔母夫婦、私と相方にて納骨を行い、その後近くのレストランで食事し、年内にと思っていた一つの区切りが付きました。

ただ、弟が12月になって体調を崩して入院し、納骨に参加できなかったので、暖かくなったら母、弟一家を交えた食事会でもやらなきゃいかんなあと。
タグ:家族の葬儀
posted by K's at 16:01| Comment(0) | TrackBack(0) | 日記

2021年12月27日

Safariの仕様(スマート検索フィールドに入れた検索ワードの一部が…表示になる件)

MacOSのSafariで複数タブを開いているとき、アドレス欄(Safari的には「スマート検索フィールド」)に入力した検索ワードの一部が「…」となってしまう問題に遭遇しました。残念ながらこの現象はSafariの仕様で回避策はありません。

safari.jpg
(「こんな風になる サファリの仕様」と入力したものが上記スクショのようになる)

アップルのチャットサポートに相談したところ、まずは再起動、OS再インストールを案内され、それらを実施しても発生したため、数日後再度問い合わせ。電話&リモートの画面共有サポートにエスカレーションされ、担当者と画面を見ながら現象を確認いただいたところ「Safariの仕様」と判明。不便だけど仕様ならしゃあない。。

タグ:Safari MacOS
posted by K's at 14:36| Comment(0) | TrackBack(0) | Mac/iPhone/iPad

2021年12月07日

GnuCashを使う~ Monterey + MacPorts + XCode betaでやるもうまくいかない

GnuCash、特にFinance::Quoteを使ってみようとする試みの続き。
MacOS Montereyが安定してきた?ようなので、BigSurからUpdateし、Monterey環境にMacPortとXCodeもインストールしてやってみるが、GnuCashそのもののインストールができない。。。
以下Terminal.appのログから。

$ sudo port install gnucash

Error: 

Error: No valid Xcode installation is properly selected.

Error: Please use xcode-select to select an Xcode installation:

Error:     sudo xcode-select -switch /Users/xxxxx1/Downloads/Xcode-beta.app/Contents/Developer # version 13.2

Error: 

Error: Port gnucash requires a full Xcode installation, which was not found on your system.

Error: You can install Xcode from the Mac App Store or https://developer.apple.com/xcode/

Error: Follow https://guide.macports.org/#project.tickets if you believe there

is a bug.

Error: Processing of port gnucash failed


となったので、以下を入力

$ sudo xcode-select -switch /Users/xxxxx1/Downloads/Xcode-beta.app/Contents/Developer

その後、$ sudo port install gnucash

--->  Computing dependencies for gnucashWarning: cltversion: The Command Line Tools are installed, but MacPorts cannot determine the version.

Warning: cltversion: For a possible fix, please see: https://trac.macports.org/wiki/ProblemHotlist#reinstall-clt


The following dependencies will be installed: 

 Xft2

(中略)

 zstd


Continue? [Y/n]: y  

#ここでyをタイプして続けたログのWarning、Error、Failedとある部分抜粋。ここがうまくいってないところ?


--->  Cleaning xpm

Warning: The macOS 12 SDK does not appear to be installed. Ports may not build correctly.

Warning: You can install it as part of the Xcode Command Line Tools package by running `xcode-select --install'.

--->  Fetching archive for gd2

--->  Attempting to fetch gd2-2.3.3_1+x11.darwin_21.arm64.tbz2 from https://packages.macports.org/gd2

--->  Attempting to fetch gd2-2.3.3_1+x11.darwin_21.arm64.tbz2 from https://kmq.jp.packages.macports.org/gd2

--->  Attempting to fetch gd2-2.3.3_1+x11.darwin_21.arm64.tbz2 from https://pek.cn.packages.macports.org/macports/packages/gd2

--->  Fetching distfiles for gd2

--->  Attempting to fetch libgd-2.3.3.tar.xz from https://distfiles.macports.org/gd2

--->  Verifying checksums for gd2

--->  Extracting gd2

--->  Applying patches to gd2

--->  Configuring gd2

Error: Failed to configure gd2: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gd2/gd2/work/libgd-2.3.3/config.log

Error: Failed to configure gd2: configure failure: command execution failed

Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gd2/gd2/main.log for details.

Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.

Error: Processing of port gnucash failed

--->  Some of the ports you installed have notes:

  dbus has the following notes:

    Startup items (named 'dbus-system, dbus-session') have been generated that will aid in starting dbus with

    launchd. They are disabled by default. Execute the following command to start them, and to cause them to

    launch at startup:

    

        sudo port load dbus

  libpsl has the following notes:

    libpsl API documentation is provided by the port 'libpsl-docs'.

  lzma has the following notes:

    The LZMA SDK program is installed as "lzma_alone", to avoid conflict with LZMA Utils

  python27 has the following notes:

    To make this the default Python or Python 2 (i.e., the version run by the 'python' or 'python2' commands),

    run one or both of:

    

        sudo port select --set python python27

        sudo port select --set python2 python27

  python39 has the following notes:

    To make this the default Python or Python 3 (i.e., the version run by the 'python' or 'python3' commands),

    run one or both of:

    

        sudo port select --set python python39

        sudo port select --set python3 python39

(base)


続きを読む
posted by K's at 15:59| Comment(0) | TrackBack(0) | Mac/iPhone/iPad

2021年12月03日

GnuCashをM1 MacBook Airで使う(その1)

プログラミング素人だが財務の知識はちょっとあるブログ主が、Excelでの個人収支・資産管理を、フリーの財務ソフトGnuCashを使った複式簿記形式の管理に移行するための作業メモ。利用環境はMacOS BigSur (MacBook Air M1, 2020)

インストールし、科目を設定してExcel帳簿との並行稼働を開始。チュートリアル通りになかなかうまくいかないところも多いです。

勘定科目設定はデフォルトをベースにしつつ、以下のようにしてみた。
固定資産:引き出しが60歳以降の確定拠出(iDeco)勘定は投資勘定ではなく固定資産とした。住宅や車は見た目の数字が大きくなりすぎるため残高入力しないこととした。
負債:住宅ローンとクレジットカードを会社ごとに設定
投資:前述の通り確定拠出は固定資産的な性格があるため固定資産にしたため、ここには証券口座にある有価証券を設定している。株や投資信託など価格が変動するものは、口座の簿価を開始残高として入力。そして、純資産に有価証券評価額勘定を作り、保有している株式や投資信託ごとに評価損益を入力することで時価を把握。固定資産に置いた確定拠出年金も同じ処理。株式は保有個別ごと、投信は証券会社ごとに勘定科目を作っている。これは下の方に書いてますがFinance::Quoteモジュールがインストールできてないこと、それに依存するのかどうかわかりませんが、証券エディターがチュートリアル通りに動かず、勘定科目設定画面で通貨しか選択できず、適切な証券勘定を設定できないため。

米国ETFや外国株口座に待機しているUS$預り金残高を円ベース合計に反映するには、チュートリアルに従ってツール>価格データベースからUS$の為替レートを手動で設定し、円ベースの合計額に反映させている。

日々の記帳はアクション>資金移動から実施。入力例は以下のように行っている。
例1)昼食代1,200円を財布の現金で支払う
資金移動を開き、金額、説明を入力し、借方勘定の「収益・費用を表示する」をチェックし、費用>食費を選択、貸方勘定で資産>流動資産>現金を選択し、OKをクリック
例2)アマゾンでワイヤレスイヤホンを5000円で購入しAmexカードで決済
資金移動を開き、金額、説明を入力し、借方勘定の「収益・費用を表示する」をチェックし、費用>コンピューターを選択、貸方勘定で負債>クレジットカード>AMEXを選択し、OKをクリック。

その他ネットで見つけて適用した小技

ファイル形式を変更する
デフォルトだとデータがxmlで保存され、書類フォルダに大量にlogファイルが生成されるのでうざい。以下を参考にファイル保存用のフォルダを作り、ファイル形式をDB(SqLite3)に変更した。すでにファイルを作成している場合はGNUcashのファイル>名前を付けて保存で「データ形式」をSqLite3にすればOK。ログファイルは削除しても問題ない模様。

通貨記号を変更する
日本語版だとツール>証券エディター>「国際通貨を表示」にチェックを入れ、通貨ツリーを表示させてから日本円を選択して以下を参考にしてJP\を¥にする。


Finance::Quoteがどうしても入らない。。
これができれば為替レートや株式、投信の時価が取得できて便利なのだが現時点(2021/12/3)ではPerlモジュールがインストールできず使えていない。
以下は参考にしたサイトや失敗した履歴。

以下のサイトなどを参考にPerlbrew, cpanmインスコ、rootユーザーを有効にしてrootでログインしてGnucash.appのパッケージの中を開いてResources/bin/のgnc-fq-updateを直接ダブルクリックして実行したりするが、FAILする。

GnuCashで株価や外貨預金の時価を表示する
GnuCashで日本の投資信託の基準価額を取得するPerlモジュールを書いた
Finance::Quote and Big Sur
Bruce Schuck  /   Finance-Quote-1.51  7 ++  / Finance::Quote
Online Quotes

Perlbrewとcpanmインストール
その後、sudo /Applications/Gnucash.app/Contents/Resources/bin/gnc-fq-update をターミナルでたたくがうまくいかないので、gnc-fq-updateを行うべく、Gnucash.appのパッケージの中を開いてResources/bin/のgnc-fq-updateを直接ダブルクリックして実行するが、FAILとなる。どうやらFinance::Quoteに必要なDate::Range, Date::Simple, Test::Perl::Critic がインストされてないのでうまくいかない?
Warning: prerequisite Date::Range 0 not found.
Warning: prerequisite Date::Simple 0 not found.
Warning: prerequisite Test::Perl::Critic 0 not found.

My MacOS Finance::Quote Successful Tweaks
これを見てsudoからいくつかコマンドを打ち込み、最後にgnc-fq-update走らせてみても駄目。rootでやり直しても同じ。。
sudo cpan -i B::Keywords
sudo cpan -i Test2
sudo cpan -i DateTime
sudo cpan -i DateTime::Locale
sudo cpan -i DateTime::Format::Strptime
sudo cpan -i Mozilla::CA

いろいろ試したことをアップデート予定



posted by K's at 10:18| Comment(0) | TrackBack(0) | Mac/iPhone/iPad

飲み物のカフェイン含有量

寒くなったので温かいお茶(ルイボス茶、緑茶、ウーロン茶)を飲む機会が増えたのでうろ覚えしていたカフェイン含有量を確認してみた。紅茶、煎茶、ウーロン茶は加工の違いにかかわらず茶葉のフェイン含有量が反映されているってことでしょうか。一方で玉露って通常のドリップコーヒーよりかなり多いので、コーヒーより効き目あるかも(笑)

caffeine.jpg

ソースは内閣府食品安全委員会 ファクトシート「食品中のカフェイン」
人体への影響の詳細などはソースのPDF参照
タグ:カフェイン