博文

Building a Better Windows Terminal—Without Overengineering It

图片
At some point, I realized I had somehow made it this far without ever setting up a terminal that was both pleasant to use and pleasant to look at. So I finally fixed that. A terminal is one of those tools developers touch all day, every day. A good setup is not just eye candy—it removes friction from navigation, command history, file search, and everyday Git work. This post walks through the practical Windows 11 setup I ended up with. It is fast, clean, and useful without sending me too far down the dotfiles rabbit hole. My Starting Point If you are also running Windows 11, the following PowerShell snippet will print a quick summary of your hardware: $cs = Get-CimInstance Win32_ComputerSystem $cpu = Get-CimInstance Win32_Processor $os = Get-CimInstance Win32_OperatingSystem $gpu = Get-CimInstance Win32_VideoController $disk = Get-PhysicalDisk @" Model: $($cs.Manufacturer) $($cs.Model) OS: ...

Monty Hall problem

图片
The Monty Hall problem is a fascinating probability puzzle. I remember that when we learned Bayes' theorem in high school, our math textbook devoted an entire page to it. Unfortunately, I never gave that page the attention it deserved. So, until I started preparing this blog post—maybe only a few days ago—I still did not really understand the problem. The good news is that I finally do. It is a little embarrassing, perhaps, considering that I am a statistics major. xkcd #1282: Monty Hall The problem goes like this: Suppose you are on a game show and are asked to choose one of three doors. Behind one door is a car; behind each of the other two is a goat. You choose a door—say, Door 1. The host, who knows what is behind every door, then opens one of the other doors—say, Door 3—and reveals a goat. He asks, “Would you like to switch to Door 2?” Is switching to your advantage? The standard version of the problem assumes that the host always opens a door hiding a go...

How Google Ranks the Web

图片
Imagine a person who has never used Google before.  They open a random webpage and start clicking links randomly. They do not search for anything, they do not know what they are looking for. They simply wander through the Internet forever. After a very long time, where will they spend most of their time? Surprisingly, this simple random walk gives us a powerful way to measure the importance of webpages. Before the era of AI-powered search, search engines played a crucial role in how people accessed information on the Internet. If you have ever used traditional search engines, you probably understand why ranking webpages matters. form link:https://programmerhumor.io/programming-memes/image-life-without-google-stack-overflow/ Before we dive into the principles behind PageRank, let me ask a question: what makes a webpage important? Probably, you would think that links matter a lot. And you are right. But here comes another question: does one link from an important webpage matter more,...

此博客中的热门博文

How Google Ranks the Web

Monty Hall problem