2025-10-08

12:47 Have lunch I felt that my speaking and listening ability had decreased. 12:49 Janice Janice is a cross-platform open-source software, especially for viewing and simply handling JSON files. It’s perfect to help me solve the big JSON file problem. 18:15 Get out of work Today is a focus day. 20:59 Eat dumplings Recently, I became busier than before. I am already lazy for cooking. Prepare to do some assignments after eating dumplings. ...

2025-10-08 · 2 min · 248 words · Ben

2025-10-03

00:14 no more stroll It’s perfect now. 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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 # ===== CONFIG ===== $hostname = $env:COMPUTERNAME if ($hostname -eq "DESKTOP-KC9K3N7") { $vault = "D:\blog" } else { $vault = "D:\A\Jeapo's blog" } Set-Location -Path $vault # ===== DATE INFO ===== $yyyy = Get-Date -Format "yyyy" $month = Get-Date -Format "MMMM" $mm = Get-Date -Format "MM" $dd = Get-Date -Format "dd" $curtime = Get-Date -Format "HH:mm" $isodate = (Get-Date).ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ssZ") $folder = Join-Path $vault "\content\diary\$yyyy\$month" $file = Join-Path $folder "$yyyy-$mm-$dd.md" # ===== Ensure folders ===== if (-not (Test-Path $folder)) { New-Item -ItemType Directory -Path $folder | Out-Null } # ===== Create file with template if missing ===== if (-not (Test-Path $file)) { @" --- title: "$yyyy-$mm-$dd" date: "$isodate" categories: - diary series: tags: mood: weather: location: rating: 1 stime: release: 0 draft: true --- "@ | Set-Content $file } # ===== Input Mode ===== # Write-Host "Wow! What did you do just now?" -ForegroundColor Cyan # Write-Host "Type your entry. Press Enter 3 times to finish." -ForegroundColor DarkGray Write-Host "`r`n### $curtime " -ForegroundColor DarkYellow -NoNewline $lines = @() $emptyCount = 0 # 记录连续空行次数 while ($true) { $line = Read-Host if ([string]::IsNullOrWhiteSpace($line)) { $emptyCount++ if ($emptyCount -ge 3) { break } $lines += "" } else { $emptyCount = 0 $lines += $line } } $entry = $lines -join "`r`n" if ($entry.Trim().Length -gt 0) { Add-Content -Path $file -Value "`r`n### $curtime $entry" Write-Host "Saved to $file" } else { Write-Host "No entry written." } 00:21 Good Night Go to bed. ...

2025-10-03 · 1 min · 444 words · Ben

2025-10-02

22:48 finished the addnote script Now, I can conveniently add note to diary without startupping Obsidian. 23:39 give up to set writing at startup It is very convenient to use alias start recording. 23:42 Optimize line break now can automatic add a line break at each record.

2025-10-03 · 1 min · 47 words · Ben

2025-10-01

Today is normal day, no class, no meeting. I just did an assignment of Principles of Mining Engineering I played the Red Dead Redemption 2 for a while after school. It was a tiring day.

2025-10-01 · 1 min · 35 words · Ben

2025-09-29

I stayed up all night yesterday to finish my homework. I went to bed at six in the morning and still haven’t fallen asleep. It’s so sad. I have a group meeting at noon, and I have to be the host. I will come back after the group meeting. In the afternoon, I went to get a free haircut with Amirthan. I didn’t like the fact that my hair was cut by three people.

2025-09-29 · 1 min · 74 words · Ben

2025-09-28

Today is also a day to catch up on homework. The busier I am, the more I have to cook. Today I stewed pork ribs myself and made beef spring rolls in the evening. They were very delicious. In the afternoon, I went to help Amirthan solve his homework problems for the afternoon. Chat PGT is still not very reliable when it comes to complex issues. The more you help, the more confused you become. You still have to rely on yourself.

2025-09-28 · 1 min · 82 words · Ben

2025-09-27

Today is the day to do homework and make dumplings. I still spent a whole day doing homework. It was still quite complicated, but I didn’t find it difficult. I made some dumplings myself in the evening and they were quite delicious. I’ll freeze them and eat them later. There is a big age gap and a generation gap between us, which always feels a bit awkward.

2025-09-27 · 1 min · 67 words · Ben