Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
24 lines (24 loc) · 17.9 KB
/
Copy pathindex.html
File metadata and controls
24 lines (24 loc) · 17.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!doctype html><html lang=en dir=auto data-theme=auto><head><meta name=generator content="Hugo 0.149.0"><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name=robots content="index, follow"><title>Phrygiangates</title><meta name=description content><meta name=author content><link rel=canonical href=https://phrygiangates.github.io/><link crossorigin=anonymous href=/assets/css/stylesheet.a5781257de4197b8e3d54346acdf1dd55a9ba4cb91dcace192fc1baf228c08b5.css integrity="sha256-pXgSV95Bl7jj1UNGrN8d1VqbpMuR3KzhkvwbryKMCLU=" rel="preload stylesheet" as=style><link rel=icon href=https://phrygiangates.github.io/favicon.ico><link rel=icon type=image/png sizes=16x16 href=https://phrygiangates.github.io/favicon-16x16.png><link rel=icon type=image/png sizes=32x32 href=https://phrygiangates.github.io/favicon-32x32.png><link rel=apple-touch-icon href=https://phrygiangates.github.io/apple-touch-icon.png><link rel=mask-icon href=https://phrygiangates.github.io/safari-pinned-tab.svg><meta name=theme-color content="#2e2e33"><meta name=msapplication-TileColor content="#2e2e33"><link rel=alternate type=application/rss+xml href=https://phrygiangates.github.io/index.xml title=rss><link rel=alternate hreflang=en href=https://phrygiangates.github.io/><link rel=alternate hreflang=zh href=https://phrygiangates.github.io/zh/><noscript><style>#theme-toggle,.top-link{display:none}</style><style>@media(prefers-color-scheme:dark){:root{--theme:rgb(29, 30, 32);--entry:rgb(46, 46, 51);--primary:rgb(218, 218, 219);--secondary:rgb(155, 156, 157);--tertiary:rgb(65, 66, 68);--content:rgb(196, 196, 197);--code-block-bg:rgb(46, 46, 51);--code-bg:rgb(55, 56, 62);--border:rgb(51, 51, 51);color-scheme:dark}.list{background:var(--theme)}.toc{background:var(--entry)}}@media(prefers-color-scheme:light){.list::-webkit-scrollbar-thumb{border-color:var(--code-bg)}}</style></noscript><script>localStorage.getItem("pref-theme")==="dark"?document.querySelector("html").dataset.theme="dark":localStorage.getItem("pref-theme")==="light"?document.querySelector("html").dataset.theme="light":window.matchMedia("(prefers-color-scheme: dark)").matches?document.querySelector("html").dataset.theme="dark":document.querySelector("html").dataset.theme="light"</script><link rel=stylesheet href=https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.css><script defer src=https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.js></script><script defer src=https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/contrib/auto-render.min.js onload='renderMathInElement(document.body,{delimiters:[{left:"$$",right:"$$",display:!0},{left:"\\(",right:"\\)",display:!1},{left:"\\[",right:"\\]",display:!0}],throwOnError:!0})'></script><meta property="og:url" content="https://phrygiangates.github.io/"><meta property="og:site_name" content="Phrygiangates"><meta property="og:title" content="Phrygiangates"><meta property="og:locale" content="en"><meta property="og:type" content="website"><meta name=twitter:card content="summary"><meta name=twitter:title content="Phrygiangates"><meta name=twitter:description content><script type=application/ld+json>{"@context":"https://schema.org","@type":"Organization","name":"Phrygiangates","url":"https://phrygiangates.github.io/","description":"","logo":"https://phrygiangates.github.io/favicon.ico","sameAs":[]}</script></head><body class=list id=top><header class=header><nav class=nav><div class=logo><a href=https://phrygiangates.github.io/ accesskey=h title="Phrygiangates (Alt + H)">Phrygiangates</a><div class=logo-switches><button id=theme-toggle accesskey=t title="(Alt + T)" aria-label="Toggle theme">
<svg id="moon" width="24" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/></svg>
<svg id="sun" width="24" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg></button><ul class=lang-switch><li>|</li><li><a href=https://phrygiangates.github.io/zh/ title=中文 aria-label=中文>Zh</a></li></ul></div></div><ul id=menu></ul></nav></header><main class=main><article class=first-entry><header class=entry-header><h2 class=entry-hint-parent>Zhangye</h2></header><div class=entry-content><p>Tonight I “understood” Beethoven’s Hammerklavier. What actually happened was that, while I was cooking, the Adagio suddenly started playing in my head on its own, which compelled me to open my music player and listen to the entire sonata. Then I realized what it was trying to express. A lot of different thoughts have been tangled together in my mind lately, and I’m a little too lazy to sort them out into something coherent here, but I see this experience as, in a Heideggerian sense, the world showing itself to Dasein. It reminded me of a similar experience I had while traveling.
...</p></div><footer class=entry-footer><span title='2026-11-16 22:31:00 -0400 -0400'>November 16, 2026</span></footer><a class=entry-link aria-label="post link to Zhangye" href=https://phrygiangates.github.io/posts/zhangye/></a></article><article class=post-entry><header class=entry-header><h2 class=entry-hint-parent>From Learning French to Building My First Mac App</h2></header><div class=entry-content><p>Souvoix · Official Website · Mac App Store · Watch Demo
I recently released my first macOS app, Souvoix. The name Souvoix comes from the French words sous and voix, meaning “under” and “voice,” respectively. I wanted the name to reflect what the app does: turning speech into readable, translatable text and generating bilingual subtitles.
It’s designed for people who want to watch foreign-language videos without subtitles. I would say that using LLMs for translation is definitely one of the most cost-effective applications of AI right now. Google’s LLMs are especially good at subtitle translation, and translating an entire video usually costs just a few cents, sometimes even less.
...</p></div><footer class=entry-footer><span title='2026-11-11 18:05:00 -0600 -0600'>November 11, 2026</span></footer><a class=entry-link aria-label="post link to From Learning French to Building My First Mac App" href=https://phrygiangates.github.io/posts/souvoix/></a></article><article class=post-entry><header class=entry-header><h2 class=entry-hint-parent>Zurich - 1</h2></header><div class=entry-content><p>I started to recall the places I have traveled to in the past. I went to Zurich in 2023, which was almost my first time leaving China (except for a trip to Japan when I was a child). I lived in Zurich for half a year; this was my exchange semester during the second half of my junior year.
One of the reasons for choosing Zurich for the exchange was actually to travel around Europe. Traveling to Europe is not easy for Chinese citizens. Tourist visas must be applied for early on, requiring a lot of materials to be prepared, and then spending a large amount of money to go on an assembly-line tour of those Western European countries, especially in a place like Switzerland where money flows like water on hotels, dining, and so on. In hindsight, actually renting an apartment in Europe, staying for a few months, and slowly traveling to different countries is indeed the right way to experience Europe. In fact, it is cheaper this way, and Europe is always very friendly to young people (compared to North America and Asia), offering various discount tickets and student fares.
...</p></div><footer class=entry-footer><span title='2026-09-15 23:17:00 -0400 -0400'>September 15, 2026</span></footer><a class=entry-link aria-label="post link to Zurich - 1" href=https://phrygiangates.github.io/posts/zurich/></a></article><article class=post-entry><header class=entry-header><h2 class=entry-hint-parent>Quantum Field Hamiltonian</h2></header><div class=entry-content><p>We are given a Hamiltonian: \[ H=\int dx\left[\Psi^\dagger(x)\left(-\frac{\nabla^2}{2m}\right)\Psi(x)+V(x)\Psi^\dagger(x)\Psi(x)\right]. \] Here we take \(\hbar=1\). The first term is the kinetic energy term, because in single-particle quantum mechanics, \(\hat p^2/(2m)\) in the position representation corresponds to \(-\nabla^2/(2m)\). The second term is the potential energy term, where \(\Psi^\dagger(x)\Psi(x)\) is the particle number density at position \(x\), so \(V(x)\Psi^\dagger(x)\Psi(x)\) represents the potential energy density at \(x\). If we take \(V(x)=mc^2\), it just adds a rest energy to each particle; there is still no interaction force between particles here.
...</p></div><footer class=entry-footer><span title='2026-04-30 22:30:00 +0800 +0800'>April 30, 2026</span></footer><a class=entry-link aria-label="post link to Quantum Field Hamiltonian" href=https://phrygiangates.github.io/posts/quantum_field_hamiltonian/></a></article><article class=post-entry><header class=entry-header><h2 class=entry-hint-parent>Second Quantization</h2></header><div class=entry-content><p>We start with a setup: the potential energy \(V(x)\) in the Hamiltonian has a shape similar to a symmetric double well, with two symmetric minima and a very high barrier in the middle (insert a diagram of the potential energy here). Let’s discuss the energy eigenstates of this system and the time evolution of the states.
First, we need to solve the time-independent Schrödinger equation \(H|\psi\rangle = E|\psi\rangle\) to find the energy eigenvalues and eigenstates. Here, the projection of the eigenstate in the \(x\) basis is the wave function \(\psi(x)=\langle x|\psi\rangle\).
...</p></div><footer class=entry-footer><span title='2026-02-23 16:00:00 +0800 +0800'>February 23, 2026</span></footer><a class=entry-link aria-label="post link to Second Quantization" href=https://phrygiangates.github.io/posts/second_quantization/></a></article><article class=post-entry><header class=entry-header><h2 class=entry-hint-parent>Quantum Field Theory</h2></header><div class=entry-content><p>Let’s talk about the basic setup of quantum field theory.
Start with a single quantum harmonic oscillator. Its energy eigenvalue equation is \[ H|\psi\rangle = E|\psi\rangle . \] It has a set of discrete energy eigenstates. For the harmonic oscillator, a more convenient set of eigenstates is the number states \(|n\rangle\) (\(n=0,1,2,\dots\)), satisfying \(H|n\rangle=E_n|n\rangle\). We introduce the annihilation operator \(a\) and the creation operator \(a^\dagger\), require them to satisfy \([a,a^\dagger]=1\), and define the number operator \(N=a^\dagger a\). The number states are also eigenstates of \(N\): ...</p></div><footer class=entry-footer><span title='2026-01-03 22:00:00 +0800 +0800'>January 3, 2026</span></footer><a class=entry-link aria-label="post link to Quantum Field Theory" href=https://phrygiangates.github.io/posts/quantum_field_theory/></a></article><article class=post-entry><header class=entry-header><h2 class=entry-hint-parent>Fermion</h2></header><div class=entry-content><p>We want to classify different particles using wavefunctions. Consider a two-particle system: if we exchange the two particles, how does the state of the system change?
In classical mechanics, even if two particles are completely identical in their physical properties, in principle we can still distinguish them by “labels” (such as “particle 1” and “particle 2”). Therefore, exchanging the positions of two classical particles produces a new, distinguishable microscopic configuration.
...</p></div><footer class=entry-footer><span title='2025-12-16 22:00:00 +0800 +0800'>December 16, 2025</span></footer><a class=entry-link aria-label="post link to Fermion" href=https://phrygiangates.github.io/posts/fermions/></a></article><article class=post-entry><header class=entry-header><h2 class=entry-hint-parent>Dalian</h2></header><div class=entry-content><p>I’m now at Dalian Train Station waiting for a train to Dandong. I arrived in Dalian the morning before last and stayed for two days.
In early November, Dalian had just started its heating season. Sometimes the smog is heavy, with the city shrouded under gray smoke from suburban chimneys, but once the wind picks up, the smog is blown out of the city very quickly, revealing the cloudless sky—deep and crystalline blue, characteristic of higher latitudes (compared with southern China). When the weather clears, the sea looks beautiful. Sea-viewing is often best from high ground, so you can see the water’s aquamarine hue under the blue sky. Haizhiyun Park is an excellent vantage point: it’s a small hill along the southeastern coast of the urban area. Enter from the park’s north gate and head uphill; after a short climb you’ll reach the summit and take in the sea view. Following the mountain path, you can watch cruise ships in the distance carving tracks across the sea; closer in, you can see seaside cliffs, and the water is emerald and clear enough to reveal stones beneath the surface. Even in late autumn, Dalian’s sunlight is still intense, and the slightly dry air adds to the illusion that you’re somewhere on the Mediterranean as you walk along the coastal mountain path. ...</p></div><footer class=entry-footer><span title='2025-11-11 09:44:00 +0800 +0800'>November 11, 2025</span></footer><a class=entry-link aria-label="post link to Dalian" href=https://phrygiangates.github.io/posts/dalian/></a></article><article class=post-entry><header class=entry-header><h2 class=entry-hint-parent>Automated Transcription and Translation</h2></header><div class=entry-content><p>Today, on a whim, I wanted to study various courses in English, like biology and geography. There are quite a few The Great Courses offerings on Bilibili, but based on my previous viewing experience, these courses often use a lot of terminology; just listening—even with English subtitles—I still can’t fully understand them. So I figured I’d add bilingual Chinese–English subtitles to these course videos and then watch them.
The technical plan is straightforward: use yutto to download videos from Bilibili, ffmpeg to extract audio from the videos, whisper.cpp to transcribe the audio into SRT subtitles (by the way, I’m using Apple M3 Silicon), and finally use the DeepSeek API to translate the SRT subtitles.
...</p></div><footer class=entry-footer><span title='2025-11-07 23:00:00 +0800 +0800'>November 7, 2025</span></footer><a class=entry-link aria-label="post link to Automated Transcription and Translation" href=https://phrygiangates.github.io/posts/automating_transcription_and_translation/></a></article><article class=post-entry><header class=entry-header><h2 class=entry-hint-parent>Thoughts on Doing Business</h2></header><div class=entry-content><p>This morning at work I wanted to listen to an audiobook, so I searched online and found this 【“Madness and Civilization” Michel Foucault【Audiobook | Synchronized Text】】
I think what he’s done is very appropriate. For sociology- and philosophy-related books, just reading often feels dull and leads to giving up; just listening often means forgetting the context, zoning out, and not knowing what’s being said. These kinds of books are best suited for audiobooks with synchronized text. So I started thinking: how did he make an audiobook like this? What AI tools did he use? How did he align the text and audio precisely? I dug through r/localllama for quite a while. Open-source solutions are usually very complicated: first convert the ebook into audio and timestamped subtitles, then synchronize the subtitles with the audio to produce a video.
...</p></div><footer class=entry-footer><span title='2025-11-03 12:00:00 +0800 +0800'>November 3, 2025</span></footer><a class=entry-link aria-label="post link to Thoughts on Doing Business" href=https://phrygiangates.github.io/posts/thoughts_on_doing_business/></a></article><footer class=page-footer><nav class=pagination><a class=next href=https://phrygiangates.github.io/page/2/>Next »</a></nav></footer></main><footer class=footer><span>© 2026 <a href=https://phrygiangates.github.io/>Phrygiangates</a></span> ·
<span>Powered by
<a href=https://gohugo.io/ rel="noopener noreferrer" target=_blank>Hugo</a> &
<a href=https://github.com/adityatelange/hugo-PaperMod/ rel=noopener target=_blank>PaperMod</a></span></footer><a href=#top aria-label="go to top" title="Go to Top (Alt + G)" class=top-link id=top-link accesskey=g><svg viewBox="0 0 12 6" fill="currentColor"><path d="M12 6H0l6-6z"/></svg>
</a><script>let menu=document.getElementById("menu");if(menu){const e=localStorage.getItem("menu-scroll-position");e&&(menu.scrollLeft=parseInt(e,10)),menu.onscroll=function(){localStorage.setItem("menu-scroll-position",menu.scrollLeft)}}document.querySelectorAll('a[href^="#"]').forEach(e=>{e.addEventListener("click",function(e){e.preventDefault();var t=this.getAttribute("href").substr(1);window.matchMedia("(prefers-reduced-motion: reduce)").matches?document.querySelector(`[id='${decodeURIComponent(t)}']`).scrollIntoView():document.querySelector(`[id='${decodeURIComponent(t)}']`).scrollIntoView({behavior:"smooth"}),t==="top"?history.replaceState(null,null," "):history.pushState(null,null,`#${t}`)})})</script><script>var mybutton=document.getElementById("top-link");window.onscroll=function(){document.body.scrollTop>800||document.documentElement.scrollTop>800?(mybutton.style.visibility="visible",mybutton.style.opacity="1"):(mybutton.style.visibility="hidden",mybutton.style.opacity="0")}</script><script>document.getElementById("theme-toggle").addEventListener("click",()=>{const e=document.querySelector("html");e.dataset.theme==="dark"?(e.dataset.theme="light",localStorage.setItem("pref-theme","light")):(e.dataset.theme="dark",localStorage.setItem("pref-theme","dark"))})</script></body></html>