Daily blurbs Apr. 2023

Plans

daily blurbs


30 Apr 2023 (Sun)

16:53:39 # Life Lots of Windows dependencies in Debian Rust packages. As cargo tries to check even the optional dependencies exist, Debian has lots of rust packages that are not needed on Debian platforms. I would think it would be okay to have a stub that mirrors the version number but nothing else, but Debian seems to have a full copy of the packages. An alternative is to patch out the dependencies in Cargo.toml, which some packages. As a result so many packages depend on winapi package, but don't really use in our configuration. Seems like a waste of our resources to keep these around (albeit maybe a small resource).

29 Apr 2023 (Sat)

11:37:23 # Life Draw graph of number of commits. I thought I had lots of commits this month for Chrome OS. To count those, all merged commits have committer Chromeos LUCI. To get the timestamp of the commits, git log --committer="Chromeos LUCI" --pretty=%ct . gives me the list of timestamps. UNIX timestamp can be parsed with datetime.fromtimestamp, and then that array can be processed with density graph plot or histogram plotting tool, such as plt.hist.

r = subprocess.run(["git", "log", "--pretty=%ct", "--committer=Chromeos LUCI",
                    "."],
                   capture_output=True, check=True, encoding="utf-8", cwd=p)

data = [datetime.datetime.fromtimestamp(int(a)) for a in r.stdout.split()]

fig = plt.figure()
plt.hist(data)
fig.savefig("out/commits.histogram.png")
	

2 Apr 2023 (Sun)

07:49:17 # Life April. Cherry blossoms are in full. Beautiful weather.


Junichi Uekawa