ときどきの雑記帖 RE* (新南口)
エースにおまかせ
まとめて「パスのコピー」
これは知らなかった。 一つ一つのファイルをいちいち選択しておいてから
- シフトキー+右クリック→「パスのコピー」を選択
- ツールバー(リボン?)から「パスのコピー」を選択
とかやってた(ファイルの数が多いときは、コマンドプロンプトやPowerShellを利用)。
順位の付け方
まあ「アレ」だろうなあと読み進めたら
直近1年間にポイントを貯めたり使ったりした共通ポイントサービスで、最も多かったのは「Tポイント」と「楽天ポイント」で各7割弱、 次いで「Pontaポイント」(48.9%)、「dポイント」(37.6%)だった。
いやいやいや。こういう場合、Pontaポイントは3位、dポイントは4位になるんじゃないの?
「同率」というのも今回のこれにつかうには違和感があるのだけど ほかに良さげなキーワードが思いつかなかったのでそれで検索。
- 同率順位の表記ってどっちが正しいの?
- 1位タイが5人居たら次は6位?それとも2位?(ID:1250762) - インターエデュ
- WO2006062154A1 - 順位決定システム - Google Patents
そのものズバリなものは見つからなかったけど、前述の記事のようなものは見当たらない。 が、↑のリンクの一番目にあった二つ目の順位付けも初めてみた気がする。
追記
「コメント欄」で指摘されてた。 まあこういう見出しにしちゃった理由は想像つかなくもないんだけど、 でもねえ…
リニューアル
TechFeed - 無料で使える"地上最強"のエンジニア向け情報サービス
タイトルの自動翻訳
ほぼすべての英語記事のタイトルが翻訳された状態で表示されます(Google翻訳 APIを使用)。 これにより、ユーザーの皆さまが「自分が興味を持てる記事かどうか」を素早く判断できるようになり、 興味深い情報を見逃してしまうことが格段に減りました。
また、1クリックで元の英語タイトルを表示することも可能です。自動翻訳の結果が思わしくない場合や、原文のニュアンスを知りたい場合に有用です。
何もしない状態で原題が出ている方がありがたいんだけど、少数派なんかねえ… あとmediumの有料記事とかの扱いがちょっと気になる>自動翻訳 そもそも項目として上がってこないのかもしれないけど。
n本ノック
論理プログラミング言語Logicaでデータサイエンス100本ノック
日経MJのとあるコラムで、 知人が「100本ノック」という言葉を使っているので それは「1000本ノック」の間違いだろうと指摘しようか悩んだ (結局指摘した)という話があって、 そのコラムでは検索すると「100本ノック」もそれなりに見つかるという ということも書かれていたのだけどそれって
この辺から来たものだよねえ。たぶん。
「間違い」とするには微妙な気もしないでもない。
gcal
gcal ネタつづき。
gcal --long-help
とするとgcal --help
よりもたくさんの情報が出る。
その中に
-i[MOD] --type=special|standard
Use special format for calendar sheet
[MOD] = - Use standard format for calendar sheet
というのがあったので試してみた…が、 どうも動作が良くわからんな。
kbk@toybox4:/mnt/c/Users/kbk$ gcal --type=special
June 2021
Su Mo Tu We Th Fr Sa
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
kbk@toybox4:/mnt/c/Users/kbk$ gcal --type=standard
June 2021
Su Mo Tu We Th Fr Sa
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
kbk@toybox4:/mnt/c/Users/kbk$ gcal -i
June 2021
Su Mo Tu We Th Fr Sa
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
kbk@toybox4:/mnt/c/Users/kbk$ gcal -i-
June 2021
Su Mo Tu We Th Fr Sa
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
kbk@toybox4:/mnt/c/Users/kbk$ gcal
June 2021
Sunday 6 13 20 27
Monday 7 14 21 28
Tuesday 1 8 15 22 29
Wednesday 2 9 16 23 30
Thursday 3 10 17 24
Friday 4 11 18 25
Saturday 5 12 19 26
マニュアル
3.1.1.3 Calendar options
によれば、-i
と-i-
、--type=standard
と--type=special
とで表示結果が変わるはずなんだけど。
-i[-]
–type=special|standardTo obtain the standard calendar format17, either start Gcal omitting the -i[-] option because it is set by default, Aspects in Internationalization, or start Gcal with the -i- respectively –type=standard option:
$ gcal -i- -| -| September 1994 -| Su Mo Tu We Th Fr Sa -| 1 2 3 -| 4 5 6 7 8 9 10 -| 11 12 13 14 15 16 17 -| 18 19 20 21 22 23 24 -| 25 26 27 28 29 30
To obtain the special calendar format, start Gcal with the -i respectively –type=special option:
$ gcal -i -| \-| September 1994 -| -| Sunday 4 11 18 25 -| Monday 5 12 19 26 -| Tuesday 6 13 20 27 -| Wednesday 7 14 21 28 -| Thursday 1 8 15 22 29 -| Friday 2 9 16 23 30 -| Saturday 3 10 17 24
Hugo メモ
81.0 以後の変更点を抜粋
0.84.1
Release v0.84.1 · gohugoio/hugo
This is a bug-fix release with a couple of important fixes.
Fix language menu config regression 093dacab @bep #8672
config: Fix merge of config with map[string]string values. 4a9d408f @bep #8679
markup: Rename Header(s) to Heading(s) in ToC struct a7e3da24 @bep
0.84.0
Release v0.84.0 · gohugoio/hugo
his release brings several configuration fixes and improvements that will be especially useful for themes.
Deep merge of theme Params
One of the most common complaint from Hugo theme owners/users has been about the configuration handling. Hugo has up until now only performed a shallow merge of theme params into the configuration.
HTTP headers in getJSON/getCSV
getJSON now supports custom HTTP headers. This has been a big limitation in Hugo, especially considering the Authorization header.
New erroridf template func
Sometime, especially when creating themes, it is useful to be able to let the user decide if an error situation is critical enough to fail the build. The new erroridf produces ERROR log statements that can be toggled off:
{{ erroridf “some-custom-id” “Some error message.” }}
0.83.0
Release v0.83.0 · gohugoio/hugo
I you use i18n, there is an unfortunate regression bug in this release (see issue). A patch release coming Sunday.
Hugo 0.83 finally brings WebP image processing support. Note that you need the extended version of Hugo to encode to WebP. If you want to target all Hugo versions, you may use a construct such as this:
Release v0.83.1 · gohugoio/hugo
This is a bug-fix release with one important fix.
0.82.0
Release v0.82.0 · gohugoio/hugo
This is a small release, mostly a maintainance/bugfix release. But also notable is that you can now add custom Markdown attributes (e.g. CSS classes) to code fences (aed7df62 @bep #8278) and that you can use the attribute lists in title render hooks (.Attributes; see cd0c5d7e @bep #8270).
0.81.0
Release v0.81.0 · gohugoio/hugo
Hugo 0.81.0 is the first release in this decade, it is the fastest to date, and it’s packed with useful new features.
Newlines in Template Actions and Commands
You can now have newlines within template actions and pipelines. This means that you can now do this and similar:
{{ dict "country" "Norway" "population" "5 millions" "language" "Norwegian" "language_code" "nb" "weather" "freezing cold" "capitol" "Oslo" "largest_city" "Oslo" "currency" "Norwegian krone" "dialing_code" "+47" }}
Attribute Lists after Markdown Blocks
Hugo already supports adding attribute lists (e.g CSS classes) after titles. We now also allow adding attribute lists after Markdown blocks, e.g. tables, lists, paragraphs etc.:
> foo
> bar
{.myclass}