-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
361 lines (276 loc) · 17.3 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
<!DOCTYPE html>
<html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article#" lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="Ramblings of a veteran Pythonista with a passion for refactoring and education.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Zahlblog</title>
<link href="assets/css/all-nocdn.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Playfair+Display:700,900" rel="stylesheet">
<meta name="theme-color" content="#5670d4">
<meta name="generator" content="Nikola (getnikola.com)">
<link rel="alternate" type="application/rss+xml" title="RSS" hreflang="en" href="rss.xml">
<link rel="canonical" href="https://zahlman.github.io/">
<link rel="icon" href="icon_32x32.png" sizes="32x32">
<link rel="icon" href="icon_192x192.png" sizes="192x192">
<link rel="next" href="index-1.html" type="text/html">
<!--[if lt IE 9]><script src="assets/js/html5.js"></script><![endif]--><link rel="prefetch" href="posts/2025/01/24/leaning-in-to-my-ux/" type="text/html">
</head>
<body>
<a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
<div class="container">
<header class="blog-header py-3"><div class="row nbb-header align-items-center">
<div class="col-md-0 col-xs-2 col-sm-2" style="width: auto;">
<button class="navbar-toggler navbar-light bg-light nbb-navbar-toggler" type="button" data-toggle="collapse" data-target=".bs-nav-collapsible" aria-controls="zb-sidebar" aria-expanded="true" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</div>
<div class="col-md-12 col-xs-10 col-sm-10 bootblog4-brand" style="width: auto;">
<a class="navbar-brand blog-header-logo text-dark" href=".">
<span id="blog-title">Zahlblog</span>
</a>
</div>
</div>
</header>
</div>
<div class="container" id="content" role="main">
<div class="body-content">
<div class="row">
<aside id="zb-sidebar" class="col-md-4 blog-sidebar bs-nav-collapsible collapse show"><p class="sidebar-heading">Search</p>
<!-- DuckDuckGo custom search -->
<form method="get" id="search" action="https://duckduckgo.com/" class="navbar-form pull-left">
<img src="https://duckduckgo.com/assets/logo_header.v109.svg" width="28" height="28"><input type="hidden" name="sites" value="https://zahlman.github.io/"><input type="hidden" name="k8" value="#444444"><input type="hidden" name="k9" value="#D51920"><input type="hidden" name="kt" value="h"><input type="text" name="q" maxlength="255" placeholder="Search…" class="span2" style="margin-top:4px;margin-left:4px;"><input type="submit" value="DuckDuckGo Search" style="visibility: hidden;">
</form>
<!-- End of custom search -->
<p class="sidebar-heading">Posts by year
</p>
<ul>
<li><a href="2025">2025</a></li>
<li><a href="2024">2024</a></li>
<li><a href="2023">2023</a></li>
<li><a href="2022">2022</a></li>
</ul>
<p class="sidebar-standalone"><a href="tags-and-series">Tags</a> | <a href="rss.xml">RSS feed</a></p>
<p>
</p>
<hr>
<p class="sidebar-heading">Info</p>
<ul>
<li><a href="pages/about">About Me</a></li>
<li><a href="pages/codidact">Codidact</a></li>
<li><a href="pages/dpo">My archived posts from discuss.python.org</a></li>
</ul></aside><div class="col-md-8 blog-main">
<h1>All Posts</h1>
<nav aria-label="Page navigation"><ul class="pager hidden-print">
<li class="previous">
<a href="#" class="page-link disabled" aria-label="Newer posts">
<span aria-hidden="true">« Newer posts</span>
</a>
</li>
<li class="page-item">
<a href="." class="page-link">
1 <span class="sr-only">(current)</span>
</a>
</li>
<li class="page-item">
<a href="index-1.html" class="page-link">2</a>
</li>
<li class="page-item">
<a href="index-2.html" class="page-link">3</a>
</li>
<li class="next">
<a href="index-1.html" class="page-link" aria-label="Older posts">
<span aria-hidden="true">Older posts »</span>
</a>
</li>
</ul></nav><div class="postindex">
<article class="h-entry post-text" itemscope="itemscope" itemtype="http://schema.org/Article"><header><div class="metadata">
<p class="byline author vcard p-author h-card">
<span class="byline-name fn p-name" itemprop="author">
Karl Knechtel
</span>
</p>
<p class="dateline">
<a href="posts/2025/01/24/leaning-in-to-my-ux/" rel="bookmark">
<time class="published dt-published" datetime="2025-01-24T00:00:00-05:00" itemprop="datePublished" title="January 24, 2025">
January 24, 2025
</time></a>
</p>
<p class="commentline">
<a href="posts/2025/01/24/leaning-in-to-my-ux/#giscus-comments">Comments</a>
</p>
</div>
<h2 class="p-name entry-title">
<a href="posts/2025/01/24/leaning-in-to-my-ux/" rel="bookmark" class="u-url">
Leaning IN to my U/X
</a>
</h2>
</header><div class="p-summary entry-summary">
<div>
<div class="code"><pre class="code literal-block">$<span class="w"> </span>stat<span class="w"> </span>/<span class="w"> </span><span class="p">|</span><span class="w"> </span>grep<span class="w"> </span>Birth<span class="w"> </span><span class="p">|</span><span class="w"> </span>cut<span class="w"> </span>-d<span class="w"> </span><span class="s1">' '</span><span class="w"> </span>-f<span class="w"> </span><span class="m">3</span>
<span class="m">2022</span>-01-24
</pre></div>
<p>Today (although this won't go live until the 25th in my time zone) is three years since the day I finally kicked Windows to the curb and installed Linux on my home desktop. I'd used Linux before, but all my life I'd had a habit of just using whatever OS was provided to me, without really giving it much thought.</p>
<p>In late 2021, Windows Update told me - entirely unprompted - that my system didn't meet minimum specs to run Windows 11. (Perhaps it would now - I understand that the declared requirements have been relaxed, even if nothing has been optimized or stripped down - but I don't care to check. I'm also told that people still on Windows 10 are under increasing pressure to switch, even though they're <a href="https://www.pcworld.com/article/2508289/windows-11-market-share-grows-but-windows-10-still-twice-as-popular.html">still comfortably in the majority</a> - unless something has radically changed in the last few months.)</p>
<p>I found this impolite - as I hadn't asked, and didn't consider anything wrong or inadequate about my computer - and a bit absurd (whatever they're offering now that requires more computing power, I'm not interested; especially not if it's anything to do with Cortana). So I took that as my queue to switch. I bought a new SSD (figuring I would need the space anyway) and attempted to set up a dual boot - GRUB never worked properly for me, but I could still use the BIOS screen to boot Windows from the old SSD.</p>
<p>And I never looked back.</p>
<p>Today, I'd like to relate a few anecdotes about that experience.</p>
<p class="more"><a href="posts/2025/01/24/leaning-in-to-my-ux/">Read more (12)…</a></p>
</div>
</div>
</article><hr>
<article class="h-entry post-text" itemscope="itemscope" itemtype="http://schema.org/Article"><header><div class="metadata">
<p class="byline author vcard p-author h-card">
<span class="byline-name fn p-name" itemprop="author">
Karl Knechtel
</span>
</p>
<p class="dateline">
<a href="posts/2025/01/11/a-brief-annotation/" rel="bookmark">
<time class="published dt-published" datetime="2025-01-11T00:00:00-05:00" itemprop="datePublished" title="January 11, 2025">
January 11, 2025
</time></a>
</p>
<p class="commentline">
<a href="posts/2025/01/11/a-brief-annotation/#giscus-comments">Comments</a>
</p>
</div>
<h2 class="p-name entry-title">
<a href="posts/2025/01/11/a-brief-annotation/" rel="bookmark" class="u-url">
A Brief Annotation
</a>
</h2>
</header><div class="p-summary entry-summary">
<p>I've been quite busy working on both the next article in my <a href="tags-and-series/series-python-packaging">packaging series</a> and on the overall appearance of the blog (I wasn't able to keep that confined to the weekend, apparently).</p>
<p>So, today, just a quick note, on the occasion of the 4th anniversary of the creation of <a href="https://peps.python.org/pep-0649/">PEP 649</a> "Deferred Evaluation Of Annotations Using Descriptors".</p>
<p>Yes, that's a mouthful, but in short: starting in Python 3.14, if you use annotations, you'll be able to defer the evaluation of the annotation code. (The feature <a href="https://discuss.python.org/t/_/21331/43">was supposed to be added for 3.13, but didn't make it in</a>.) That means you don't have to rely on strings for forward references in your type annotations, but you can still make full use of annotations at runtime (you'll have a proper object for the annotation itself, rather than just a string). Thank you to core Python developer Mr. Larry Hastings for putting a tremendous amount of effort into refining this proposal.</p>
<p>Now, I don't personally use type annotations very much - I don't use a type checker at all; I only write annotations as a form of documentation. But as it happened, <a href="tags-and-series/series-python-discourse-ban">when I was new to the Python Discourse forum</a>, I came across Mr. Hastings' post, puzzling over the best way to name what will soon become the <code>__annotate__</code> attribute of annotated objects.</p>
<p>The name <code>__annotate__</code> <a href="https://discuss.python.org/t/_/25672/4">was my suggestion</a>.</p>
<p>I was not credited in the PEP, and I <a href="https://discuss.python.org/t/_/25672/61">was ignored</a> when I tried to point this out. So it falls to me to draw attention to my contribution.</p>
<p>This is all very niche stuff, of course - but I'm happy to have been able to leave this mark on the Python language itself, as opposed to just making useful things with it.</p>
</div>
</article><hr>
<article class="h-entry post-text" itemscope="itemscope" itemtype="http://schema.org/Article"><header><div class="metadata">
<p class="byline author vcard p-author h-card">
<span class="byline-name fn p-name" itemprop="author">
Karl Knechtel
</span>
</p>
<p class="dateline">
<a href="posts/2025/01/07/python-packaging-2/" rel="bookmark">
<time class="published dt-published" datetime="2025-01-07T00:00:00-05:00" itemprop="datePublished" title="January 7, 2025">
January 7, 2025
</time></a>
</p>
<p class="commentline">
<a href="posts/2025/01/07/python-packaging-2/#giscus-comments">Comments</a>
</p>
</div>
<h2 class="p-name entry-title">
<a href="posts/2025/01/07/python-packaging-2/" rel="bookmark" class="u-url">
Python Packaging: Why we can't have nice things<br><small>Part 2: Stupid Pipx Tricks</small>
</a>
</h2>
</header><div class="p-summary entry-summary">
<div>
<p>Pip has a lot of problems (that I'll be discussing in future posts in this series), but the good news is that you don't have to resort to heavyweight third-party tools to improve your experience with Python packaging. <a href="https://pipx.pypa.io/stable/">Pipx</a> (now <a href="https://packaging.python.org/en/latest/key_projects/#pipx">under</a> the <a href="https://www.pypa.io/en/latest/">Python Packaging Authority (PyPA)</a> umbrella) is a focused wrapper around Pip that handles the major pain points without trying to take over your entire workflow.</p>
<p>In this post I'll talk about Pipx's major use cases, its limitations, and how to get more mileage out of it with a few simple tweaks.</p>
<p class="more"><a href="posts/2025/01/07/python-packaging-2/">Read more (10)…</a></p>
</div>
</div>
</article><hr>
<article class="h-entry post-text" itemscope="itemscope" itemtype="http://schema.org/Article"><header><div class="metadata">
<p class="byline author vcard p-author h-card">
<span class="byline-name fn p-name" itemprop="author">
Karl Knechtel
</span>
</p>
<p class="dateline">
<a href="posts/2025/01/01/new-year-new-blog/" rel="bookmark">
<time class="published dt-published" datetime="2025-01-01T00:00:00-05:00" itemprop="datePublished" title="January 1, 2025">
January 1, 2025
</time></a>
</p>
<p class="commentline">
<a href="posts/2025/01/01/new-year-new-blog/#giscus-comments">Comments</a>
</p>
</div>
<h2 class="p-name entry-title">
<a href="posts/2025/01/01/new-year-new-blog/" rel="bookmark" class="u-url">
New year, new blog
</a>
</h2>
</header><div class="p-summary entry-summary">
<div>
<p>You're not imagining things - the blog has a whole new look, in large part as a result of switching to the <a href="https://getnikola.com">Nikola</a> site generator.</p>
<p class="more"><a href="posts/2025/01/01/new-year-new-blog/">Read more (3)…</a></p>
</div>
</div>
</article><hr>
<article class="h-entry post-text" itemscope="itemscope" itemtype="http://schema.org/Article"><header><div class="metadata">
<p class="byline author vcard p-author h-card">
<span class="byline-name fn p-name" itemprop="author">
Karl Knechtel
</span>
</p>
<p class="dateline">
<a href="posts/2024/12/31/todo-list-2/" rel="bookmark">
<time class="published dt-published" datetime="2024-12-31T00:00:00-05:00" itemprop="datePublished" title="December 31, 2024">
December 31, 2024
</time></a>
</p>
<p class="commentline">
<a href="posts/2024/12/31/todo-list-2/#giscus-comments">Comments</a>
</p>
</div>
<h2 class="p-name entry-title">
<a href="posts/2024/12/31/todo-list-2/" rel="bookmark" class="u-url">
<code>fixup! added list</code><br><small>The rest of the TODOwl</small>
</a>
</h2>
</header><div class="p-summary entry-summary">
<div>
<p>Happy new year to all.</p>
<p>Today's post is about a folder on my desktop named <code>dev</code>. It's where I've kept (for many years, well into my Windows-using days, even into the era when I used SVN rather than Git) all my working copies for my own projects (and forks of others'), mostly Python code of course. (I'm not sure how I organized things at the time, but there are projects in there dating back to 2006.)</p>
<p class="more"><a href="posts/2024/12/31/todo-list-2/">Read more (21)…</a></p>
</div>
</div>
</article>
</div>
<nav aria-label="Page navigation"><ul class="pager hidden-print">
<li class="previous">
<a href="#" class="page-link disabled" aria-label="Newer posts">
<span aria-hidden="true">« Newer posts</span>
</a>
</li>
<li class="page-item">
<a href="." class="page-link">
1 <span class="sr-only">(current)</span>
</a>
</li>
<li class="page-item">
<a href="index-1.html" class="page-link">2</a>
</li>
<li class="page-item">
<a href="index-2.html" class="page-link">3</a>
</li>
<li class="next">
<a href="index-1.html" class="page-link" aria-label="Older posts">
<span aria-hidden="true">Older posts »</span>
</a>
</li>
</ul></nav><br>
</div>
</div>
<footer id="footer">
Contents © 2022-2025 <a href="mailto:[email protected]">Karl Knechtel</a> - Powered by <a href="https://getnikola.com" rel="nofollow">Nikola</a>
</footer>
</div>
</div>
<script src="assets/js/all-nocdn.js"></script><!-- Social buttons --><!-- End of social buttons --><script>
baguetteBox.run('div#content', {
ignoreClass: 'islink',
captions: function(element){var i=element.getElementsByTagName('img')[0];return i===undefined?'':i.alt;}});
</script>
</body>
</html>