Posts.
Older posts at the bottom.
08-08-26
I've always wanted to write a book, but I don't know what to write about.
02-08-26
k doesn't have the concept of rank in the traditional APL sense. What it does
have is n-do and each:
d:3+&4
a:d#!*/d
a
(((0 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)))
1+//a
((81 84 87;90 93 96;99 102 105)
(108 111 114;117 120 123;126 129 132)
(135 138 141;144 147 150;153 156 159))
2+//a
(324 333 342
351 360 369
378 387 396)
3+//a
1053 1080 1107
4+//a
3240
+/a
((81 84 87;90 93 96;99 102 105)
(108 111 114;117 120 123;126 129 132)
(135 138 141;144 147 150;153 156 159))
+/'a
((27 30 33;36 39 42;45 48 51)
(108 111 114;117 120 123;126 129 132)
(189 192 195;198 201 204;207 210 213))
+/''a
((9 12 15;36 39 42;63 66 69)
(90 93 96;117 120 123;144 147 150)
(171 174 177;198 201 204;225 228 231))
+/'''a
((3 12 21;30 39 48;57 66 75)
(84 93 102;111 120 129;138 147 156)
(165 174 183;192 201 210;219 228 237))
01-08-26
It's hard to get motivation to work on the sky130 opamp, because Razavi is
such a dense book. But I will start working on that soon (hopefully).
23-07-26
I swapped out pikchr on the site in favour of dpic and circuit_macros.
I think I am wasting too much time on remaking the pipeline rather than
writing new articles. Writing articles is harder than it looks :P
19-07-26
Here is a stripped down version of
Regenerate
which only generates all strings matching a given PCRE regex.
#!/bin/sh
tr -dc '[:print:]\n' </dev/random | grep -oP "$1" | awk '!_[$0]++'
I think its obvious that this is extremely slow at generating the matching patterns themselves.
12-07-26
Honestly, I do not like Leetcode at all. Those types of questions
don't sit well with me, they are frustrating (why can I not see my outputs!)
and not the way I want to think about problems. I'd rather spend my time
on building real useful programs or making things from scratch. Besides I
don't get the point... what does Leetcode teach someone about software
engineering?
It might be a fun hobby, sure. But it is a terrible gatekeeper.
06-07-26
Vim recently added a feature to render images inside the terminal
using popup_create(). Can't wait for people to make cool
plugins with this.
30-06-26
Switched the syntax highlighter on my site from hljs to
hush. Yes, I
made that.
29-06-26
I hate writing parsers.
24-06-26
Due to lack of ideas for articles, I decided to start this
micro blog section. To make that date above work as a
hyperlink, I used the following sed command :P
sed -E 's/^## POST: ([0-9]{2}-[0-9]{2}-[0-9]{2})$/---\n<a href="#\1" id="\1" class="date">\1<\/a><br>/g'