Preview Images in terminal with iTerm2, Tmux, and VIFMIn this blog, we will explore how to preview images directly in the terminal using iTerm2, tmux, and vifm. This capability can significantly enhance your workflow, especially if you are a developer, system administrator, or a terminal enthusiast. Int...Dec 18, 2023 · 4 min readblog.rockydd.net
How to Remove Background from PDF on Mac: A Step-by-Step GuideIntroduction Removing the background from a PDF file can be a tricky task, especially for Mac users. However, with a combination of Preview, iLovePDF, and Microsoft PowerPoint or Keynote, you can achieve a clean PDF without the background. In this bl...Mar 20, 2023 · 2 min readblog.rockydd.net
Exploring Haskell's Type System: From data constructors to :t and :kIn Haskell, every value has a specific type and the type of a value determines the set of operations that can be performed on it. Haskell is a statically typed language, which means that the type of a value must be known at compile-time. Types are a ...Jan 17, 2023 · 5 min readblog.rockydd.net
Error Handling in JavaScript: Either vs Try/CatchError handling is an important aspect of any programming language, and JavaScript is no exception. In this post, we will compare two approaches for handling errors in JavaScript: the Either type and the try/catch statement. What is the Either type? F...Jan 8, 2023 · 3 min readblog.rockydd.net
Dancing in VIMVim 作为最受欢迎的编辑器(之一),其中最强大的一点就是各式花样跳转。如果能把这些技能烂熟于心,你肯定会在 VIM 中凌波微步,随意穿越了。 文件内跳转 基本位置跳转 在这里先定义两种不同的行。第一种是文本行,就是从开始到下一个回车的全部字符。另一个是屏幕行, 指的是当一行超出了当前屏幕大小的时候自动折行之后的每一行是一个屏幕行(screen line)。如果不特别指出的话,就是指文本行。 字符跳转 其中最基本的跳转方式就是 hjkl 了,分别对应左下上右。于此相关联的另外两个命令是 gj 和...Nov 14, 2022 · 2 min readblog.rockydd.net