Posts

Fix: macOS Dock Right-Click Acting Like Left-Click & VS Code Recents Not Opening

If you use macOS and rely on the VS Code Dock menu to switch projects, you might have run into a bizarre issue where your “Recent Folders” list is visible, but clicking an item does absolutely nothing. Here are the specific symptoms I encountered: Unresponsive Recent Folders: You can see the list of recent projects in the VS Code Dock menu, but clicking them triggers no action. Dock Right-Click Glitch: The issue spreads to other apps in the Dock. Right-clicking (or two-finger clicking) an icon behaves exactly like a left-click . It simply brings the app window to the front instead of showing the menu. The “Control” Exception: If you hold Control and click, the menu appears and functions correctly. If you experience one or more of these symptoms, you are likely affected by the same underlying problem. The Solution You can fix this by clearing the extended attributes on the VS Code application bundle. Follow these steps: Quit VS Code completely using ⌘Q...

Workaround for macOS Dictionary All Tab Issue

After installing custom dictionaries on macOS, you may encounter an issue where the All tab in the built-in Dictionary app does not display correctly. The main problem is that the CFBundleIdentifier key in the Info.plist file of the custom dictionaries is either missing or not unique. Here’s a step-by-step workaround I found to resolve the issue: Steps to Fix the Issue: Locate the ~/Library/Dictionaries directory. To do this, open Finder, press Cmd + Shift + G , and enter ~/Library/Dictionaries (the Library folder is hidden by default). Inside the Dictionaries folder, you will find a list of .dictionary files, which represent the custom dictionaries you have installed. To fix the issue, check the Info.plist file of each dictionary. Navigate to the .dictionary folder, then go to the Contents subfolder, where you will find the Info.plist file. Open the Info.plist file using a text editor or a plist editor. Look for the CFBundleIdentifier key in the ...

Essential Utilities for LaTeX Package and Class Development

Developing LaTeX packages or classes is not a common task for most users, who typically rely on pre-existing packages. According to the CTAN: Comprehensive TeX Archive Network , there are only 3,040 TeX developers worldwide (as of February 2025). As a result, online resources for LaTeX package and class development are relatively scarce. From my perspective, there isn’t currently a comprehensive guide to the utility commands essential for package development. So, I’ve compiled this blog post, gathering a set of useful commands and packages I’ve discovered or developed through experience. I hope it proves helpful for anyone who is developing—or planning to develop—LaTeX packages or classes. This post also serves as a personal reference for me to revisit the next time I work on a package. This post will be a dynamic document, and I’ll update it as I discover new commands. If you have any useful commands that I haven’t mentioned, please feel free to share them in the ...

Slang Terms About Money

Term Meaning Example Buck $1 “It costs 20 bucks.” K $1,000 “He makes 100K a year.” Dime $10 (or a tenth of a dollar) “I spent a dime on snacks.” Bill $100 “That’s a couple of bills.” C-note $100 “He handed me a C-note.” Benjamin $100 “I got paid in Benjamins.” Stack/Rack $1,000 “He dropped 5 racks on a new car.” G $1,000 “The job pays 50G a year.” Grand $1,000 “The car costs 20 grand.” Green Money in general “He’s got a lot of green.” Cheddar/Dough/Bread Money in general “Making bread is important.” Smackers/Clams/Bones Dollars (old-fashioned) “It cost me 50 smackers.”

Mathematical Objects

A cheat sheet for mathematical objects and structures, useful for quick reference. Foundations of Sets and Relations Set A collection of distinct objects, often written as X = { x ∣ P ( x ) } X = \{x \mid P(x)\} X = { x ∣ P ( x )} , where P ( x ) P(x) P ( x ) is a property. No additional structure. Map / Function A mapping f : X → Y f: X \to Y f : X → Y assigns each x ∈ X x \in X x ∈ X to a unique y ∈ Y y \in Y y ∈ Y . Relation A subset R ⊆ X × X R \subseteq X \times X R ⊆ X × X , such as equivalence relations or partial orders. Basic Algebraic Structures Semigroup A set S S S with a binary operation ⋅ : S × S → S \cdot: S \times S \to S ⋅ : S × S → S such that: Associativity: For all a , b , c ∈ S a, b, c \in S a , b , c ∈ S , ( a ⋅ b ) ⋅ c = a ⋅ ( b ⋅ c ) (a \cdot b) \cdot c = a \cdot (b \cdot c) ( a ⋅ b ) ⋅ c = a ⋅ ( b ⋅ c ) . Monoid A semigroup with an identity element e ∈ M e \in M e ∈ M , satisfying: Identity: a ⋅ e = e ⋅ a = a ...