ときどきの雑記帖 RE* (新南口)
Madness Has Its Place
東スポ
また値上げするらしい。 ただ、今回は月~木の夕方発売分は値段据え置きで、 週末(金曜、土曜発売分)だけ250円という形なのだとか。
もとより、直近の九スポ(東スポ)は、大谷翔平選手の話ばかりしており、日本のプロ野球やプロレス・UFOネタなどの話は 大幅にフェードアウトしていることから、東スポがレガシーを追っ払って競馬・公営競技専門紙として独立するのは時間の問題である。 他の朝刊スポーツ紙も、いつまでも野球ばかりで乗り切れるかは疑問である。
うーむ、どうすっかねえ。ところで
日経MJの購読料見直し(日経各種の購読料一覧表つき) - そらマメさん鉄道局・流通局
こっちも一部250円(現在200円)に値上げらしい。 一時期買ってたんだけど最近ご無沙汰している(そしてそのままフェードアウト?)
SUMSQ
こんな関数あったのか。まあ動作を見るとあって不思議のないものではあるけど。 SUMSQ 関数 - Microsoft サポート
お仲間(?)もいろいろ
【Excel】SUMSQ, SUMX2PY2, SUMX2MY2, SUMXMY2
地球の歩き方
『地球の歩き方 群馬』の制作が決定! 24年夏発売、群馬の魅力を深堀り(1/2 ページ) - ねとらぼ
というのを見てへー、と思ったのだけど J06 地球の歩き方 神奈川 2024~2025 (地球の歩き方J) | 地球の歩き方編集室 |本 | 通販 | Amazon をはじめとして色々出ているのね。
Hugo メモ
今回のサイトのビルドができなくなった件とは関係ないのだけど、 警告が出ていたのを見逃がしていたので原因を追いかけた
PS C:\Users\kbk> $env:HUGO_ENV="production" ; hugo-122.0 --source C:\Users\kbk\home\mypage\z3 --verbose
WARN deprecated: --verbose was deprecated in Hugo v0.114.0 and will be removed in a future release. use --logLevel infoStart building sites …
hugo v0.122.0-b9a03bd59d5f71a529acb3e33f995e0ef332b3aa+extended windows/amd64 BuildDate=2024-01-26T15:54:24Z VendorInfo=gohugoio
INFO copy static: syncing static files to \
INFO build: running step "process" duration "256.4013ms"
INFO build: running step "assemble" duration "5.4273382s"
WARN _internal/google_analytics_async.html is no longer supported by Google and will be removed in a future version of Hugo
INFO deprecated: .Site.GoogleAnalytics was deprecated in Hugo v0.120.0 and will be removed in a future release. Use .Site.Config.Services.GoogleAnalytics.ID instead.
INFO Downloading: https://publish.twitter.com/oembed?dnt=false&url=https%3A%2F%2Ftwitter.com%2Fajiyoshi%2Fstatus%2F1395242076082634752 ...
INFO Downloading: https://publish.twitter.com/oembed?dnt=false&url=https%3A%2F%2Ftwitter.com%2Fqrs%2Fstatus%2F1425364831293616137 ...
INFO Downloading: https://publish.twitter.com/oembed?dnt=false&url=https%3A%2F%2Ftwitter.com%2Fkanji_jigen%2Fstatus%2F1477188755035680770 ...
INFO Downloading: https://publish.twitter.com/oembed?dnt=false&url=https%3A%2F%2Ftwitter.com%2Fhologon15%2Fstatus%2F1759684955092008997 ...
INFO build: running step "render" duration "9.4357353s"
INFO build: running step "postProcess" duration "0s"
| JA
-------------------+------
Pages | 375
Paginator pages | 30
Non-page files | 3
Static files | 13
Processed images | 0
Aliases | 3
Sitemaps | 1
Cleaned | 0
Total in 16183 ms
まずはこれ
INFO deprecated: .Site.GoogleAnalytics was deprecated in Hugo v0.120.0 and will be removed in a future release. Use .Site.Config.Services.GoogleAnalytics.ID instead.
使っていたのはここ
theme/ananke/layouts/partials/analytics.html
{{ if not hugo.IsServer }}
{{ with .Site.GoogleAnalytics }}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=xxxxxxxxxxxx"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'xxxxxxxxxx');
</script>
{{ end }}
{{ end }}
手作業で.Site.GoogleAnalytics
を
.Site.Config.Services.GoogleAnalytics.ID
に
書き換えて対処。
Deprecated in v0.120.0.
Use Site.Config.Services.GoogleAnalytics.ID instead.
WARN _internal/google_analytics_async.html is no longer supported by Google and will be removed in a future version of Hugo
の本体(?)をみてみる
hugo/tpl/tplimpl/embedded/templates/google_analytics_async.html at master · gohugoio/hugo
{{ warnf "_internal/google_analytics_async.html is no longer supported by Google and will be removed in a future version of Hugo" }}
{{- $pc := .Site.Config.Privacy.GoogleAnalytics -}}
{{- if not $pc.Disable -}}
{{ with .Site.Config.Services.GoogleAnalytics.ID }}
<script>
{{ template "__ga_js_set_doNotTrack" $ }}
if (!doNotTrack) {
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
{{- if $pc.UseSessionStorage }}
if (window.sessionStorage) {
var GA_SESSION_STORAGE_KEY = 'ga:clientId';
ga('create', '{{ . }}', {
'storage': 'none',
'clientId': sessionStorage.getItem(GA_SESSION_STORAGE_KEY)
});
ga(function(tracker) {
sessionStorage.setItem(GA_SESSION_STORAGE_KEY, tracker.get('clientId'));
});
}
{{ else }}
ga('create', '{{ . }}', 'auto');
{{ end -}}
{{ if $pc.AnonymizeIP }}ga('set', 'anonymizeIp', true);{{ end }}
ga('send', 'pageview');
}
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>
{{ end }}
{{- end -}}
最初の行で警告出すようになってますな。
Deprecation of .Site.GoogleAnalytics in v0.120.0 - support - HUGO
ところでこの_internal/google_analytics_async.html
なんてどこで使っていたっけ?
と調べたらテーマ(ananke)で使っていた
ananke/layputs/_default/baseof.html
<!DOCTYPE html>
<html lang="{{ site.LanguageCode | default site.Language.Lang }}" {{- with partialCached "func/GetLanguageDirection" "GetLanguageDirection" }} dir="{{ . }}" {{- end }}>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
{{/* NOTE: the Site's title, and if there is a page title, that is set too */}}
<title>{{ block "title" . }}{{ with .Params.Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title>
<meta name="viewport" content="width=device-width,minimum-scale=1">
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
{{ hugo.Generator }}
{{/* NOTE: For Production make sure you add `HUGO_ENV="production"` before your build command */}}
{{ $production := eq (getenv "HUGO_ENV") "production" | or (eq site.Params.env "production") }}
{{ $public := not .Params.private }}
{{ if and $production $public }}
<meta name="robots" content="index, follow">
{{ else }}
<meta name="robots" content="noindex, nofollow">
{{ end }}
{{ partial "site-style.html" . }}
{{ partial "site-scripts.html" . }}
{{ block "favicon" . }}
{{ partialCached "site-favicon.html" . }}
{{ end }}
{{ if .OutputFormats.Get "RSS" }}
{{ with .OutputFormats.Get "RSS" }}
<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
<link href="{{ .RelPermalink }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" />
{{ end }}
{{ end }}
{{ if .Params.canonicalUrl }}
<link rel="canonical" href="{{ .Params.canonicalUrl }}">
{{ else }}
<link rel="canonical" href="{{ .Permalink }}">
{{ end }}
{{/* NOTE: These Hugo Internal Templates can be found starting at https://github.com/gohugoio/hugo/tree/master/tpl/tplimpl/embedded/templates */}}
{{- template "_internal/opengraph.html" . -}}
{{- template "_internal/schema.html" . -}}
{{- template "_internal/twitter_cards.html" . -}}
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
{{ template "_internal/google_analytics.html" . }}
{{ end }}
{{ block "head" . }}{{ partial "head-additions.html" . }}{{ end }}
</head>
<body class="ma0 {{ $.Param "body_classes" | default "avenir bg-near-white"}}{{ with getenv "HUGO_ENV" }} {{ . }}{{ end }}">
{{ block "header" . }}{{ partial "site-header.html" .}}{{ end }}
<main class="pb7" role="main">
{{ block "main" . }}{{ end }}
</main>
{{ block "footer" . }}{{ partialCached "site-footer.html" . }}{{ end }}
</body>
</html>
ううむどう直したもんだか。 テーマの方で対処してくれると楽なんだけど
ざべ
バッ活の電子書籍もいいけど、個人的には「THE BASIC(ざべ)」の電子書籍化が欲しいんだよなぁ
— シエル@PC-98用すきま同人ハード製作屋 (@star_alpha2) March 14, 2024
「ざべ」は98関係のコアな改造記事も多く、独自ハードを作る記事もあったり、周りはみんなベーマガ読んでたのに、そこから外れてざべ読者だったんだよなぁ_(:3」∠)_
「The BASIC」時代のもので読み返したいもの結構あるかも。 「ざべ」に変わってからはどうかなあ…
マクロ
「7つのマクロ 7つの世界」👈みたいな企画をやりたいな🤔(Java・Go・Swift・Rust・Scalaなど代表的なプログラム言語のメタプログラミングを解説し、それぞれのメリット・デメリットを議論する)
— 吉村 優 ☕ YOSHIMURA Yuu (@_yyu_) March 13, 2024
TeXマクロも混ぜて混乱させたい https://t.co/5DQQozdcwB
— 専門性・売上・原稿 (@golden_lucky) March 14, 2024