Skip to content

Commit 2aca0df

Browse files
committed
capture lost notes
1 parent 7f7f9c4 commit 2aca0df

File tree

4 files changed

+156
-1
lines changed

4 files changed

+156
-1
lines changed

chan.dev/src/content/posts/10000.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: '$1000 per hour'
2+
title: '$10,000 per hour'
33
date: 2025-07-23
44
---
55

chan.dev/src/content/posts/2025.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ Don't just say "unkwown-uknowns" say "Rumpsfeld's unkwnown-unkwnowns".
88
Attribution increases compitence and gravitos in what you've said.
99
You're not just saying something you heard, third-party.
1010
You're harkening back to original source.
11+
12+
Measure quantity, not results (output vs outcome).
13+
Tap into what's relevant.
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
---
2+
title: LazyVim for Omarchy
3+
date: 2025-08-18
4+
---
5+
6+
## What is modal editing
7+
8+
Most modern text editors have a single mode where every key you enter gets inserted into on open document.
9+
10+
In these editors, you access editing with modifier keys (e.g., <kbd>⌘</kbd>, <kbd>⌥</kbd>, <kbd>⌃</kbd>, etc).
11+
12+
Modal editors behave differently.
13+
In modal editors, you switch between modes to complete different editing operations.
14+
15+
## What are major modes in Vim?
16+
17+
`Insert`
18+
: The text editing mode you're used to. Type; characters get inserted.
19+
20+
`Normal`
21+
: Every key is a macro or action (like a keyboard shortcut).
22+
23+
`Command`
24+
: Issue editor commands, e.g., `write`, `quit`, `help`, etc.
25+
26+
`Visual`
27+
: Make text selections (like holding <kbd>shift</kbd> or click-and-drag).
28+
29+
## How do I make visual selections with motions?
30+
31+
First, arrow keys work.
32+
So you can just use those in visual mode.
33+
34+
But there better ways to make selections.
35+
I like to start with `word`/`Word` motions.
36+
37+
<kbd>w</kbd>ord
38+
: move to the beginning of the next `word` (deleniated on whitespace and punctuation).
39+
40+
<kbd>W</kbd>ord
41+
: move to the beginning of the next `WORD` (deleniated on whitespace).
42+
43+
<kbd>b</kbd>eginning
44+
: move to the beginning of the previous `word` (deleniated on whitespace and punctuation).
45+
46+
<kbd>B</kbd>eginning
47+
: move to the beginning of the previous `WORD` (deleniated on whitespace).
48+
49+
<kbd>e</kbd>nd
50+
: move to the end of the next `word` (deleniated on whitespace and punctuation).
51+
52+
<kbd>E</kbd>nd
53+
: move to the end of the next `word` (deleniated on whitespace).
54+
55+
_(There is logical opposite to `e`/`E`. But you can use the `g` modifer to get it, with `ge`/`gE`)_
56+
57+
## How do I make visual selections with text objects?
58+
59+
## What can you do with a visual selection?
60+
61+
<kbd>d</kbd>elete
62+
: delete into `normal` mode
63+
64+
<kbd>c</kbd>change
65+
: delete into `insert` mode
66+
67+
<kbd>y</kbd>ank
68+
: yank into `normal` mode
69+
70+
### Other notes
71+
72+
```
73+
## Thesis
74+
75+
Every editor you've used, as a modern programmer has just one editing mode.
76+
77+
Open a file, move the blinking cursor with your mouse, insert or delete text
78+
79+
For you, this is "normal".
80+
81+
in Vim, `normal` is something else.
82+
83+
84+
## Bridge
85+
86+
Insert mode is just one mode in Vim.
87+
But what if i told you tehre where other editing modes you use on a daily basis?
88+
89+
## Antithesis
90+
91+
Vim is a `modal` editor.
92+
You'll use multiple different modes to edit and operate on text.
93+
(Metaphors: Lightroom, video editor, physical workbench.)
94+
95+
## A simple end-to-end edit
96+
- open a file in vim (normal)
97+
- select an insertion point
98+
- make a visual selection (visual) and change (insert)
99+
- escape (normal)
100+
- save and close (command)
101+
```

chan.dev/src/content/posts/usb.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
title: 'USB cables'
3+
date: 2025-08-11
4+
references:
5+
- https://en.wikipedia.org/wiki/USB
6+
- https://www.nytimes.com/wirecutter/reviews/best-usb-c-cables/
7+
---
8+
9+
Everything I know about cables after testing them.
10+
11+
## Charging
12+
13+
### Type-A
14+
15+
Every Type-A connector I tested registered 7.8 W or fewer when charging.
16+
17+
### Type-A to Type-C, or Lightning
18+
19+
I had a few cables that registered 13 W.
20+
Definitely less common.
21+
22+
### Type-C (PD)
23+
24+
Most cables with Type-C connections regestered 30 W, even if they looked pretty cheap.
25+
But there were outliers that only registered 17 W.
26+
27+
### Type-C (PD), cable matters
28+
29+
Cables that I purchased intentionally for charging are the only ones capable of high-watt charging.
30+
31+
The [Extreme Flexible USB Charging model](https://amzn.to/475OdJS) achieved 60 W, as advertized.
32+
33+
My 100 W cable (now discontinued) also achived the advertized 100 W.
34+
35+
## Data
36+
37+
All cables were capable of the USB 2.0 standard 480Mbps transfer speed.
38+
39+
Those capable of more were notibly thicker (and sometimes ridgid).
40+
41+
Not all high-speed cables were marked.
42+
Brands really like to put their stupid logos on things instead.
43+
Even so, they regularly had an elongated connector… but not always.
44+
45+
Moving forward, I'll prefer cables that state their rating on the connector.
46+
47+
## Takeaways
48+
49+
- [Thunderbolt 5](https://amzn.to/45HGbV0) and [Thunderbolt 4](https://amzn.to/475OdJS) cables are best as clearly marked and broadly capable. This [OWC Thunderbolt 4 cable](https://amzn.to/4mnInbn) is also well-regarded.
50+
- Cable Matters makes charging cables in [flexible](https://amzn.to/4mIFSjE) and [braided](https://amzn.to/4mygVrx) styles with high wattage. But they only transfer data at 480Mbps
51+
- Everything else is just kinda irritating.

0 commit comments

Comments
 (0)