-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathposts.html
206 lines (185 loc) · 10.3 KB
/
posts.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Matthew Finlayson's personal website.">
<title>Matt Fin</title>
<link rel="apple-touch-icon" sizes="180x180" href="favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon/favicon-16x16.png">
<link rel="manifest" href="favicon/site.webmanifest">
<link rel="stylesheet" href="style/main.css">
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
</head>
<body>
<div id=sidebar>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<!-- <li><a href="this_site.html">Making this site</a></li> -->
</ul>
</nav>
</div>
<main>
<!-- <h1>My new desktop background</h1> -->
<!-- <p>I was going for a grainy film texture but it may have ended up more like a plastic fold-out table texture which aruably isn't so bad either.</p> -->
<!-- <figure> -->
<!-- <img src="img/bg.png"> -->
<!-- <figcaption>My desktop background</figcaption> -->
<!-- </figure> -->
<!-- I made it with this command. -->
<!-- <pre><code>convert -size 3456x2234 xc:WhiteSmoke +noise gaussian -blur 0x0.5 -colorspace gray img/bg.png</code></pre> -->
<!-- <h1>I made a drawing</h1> -->
<!-- <p>In GIMP.</p> -->
<!-- <figure> -->
<!-- <img src="img/fin.png" style="width:200px; image-rendering:pixelated"> -->
<!-- <figcaption>Fin the shark.</caption> -->
<!-- </figure> -->
<!-- <hr> -->
<!-- <h1 id="simplex-visualization">Simplex visualization</h1> -->
<!-- <a href=https://gist.github.com/mattf1n/514eaeb27cbce1ed038bc83e00c81f07>[Code]</a> -->
<!-- <figure> -->
<!-- <img src="files/simplex.gif" alt="1D subspaces of the simplex" /> -->
<!-- <figcaption>1D subspaces of the simplex</caption> -->
<!-- </figure> -->
<!-- <p> -->
<!-- I made a gif visualize 1D subspaces of the standard <span class="math inline">\(\mathbb R^3\)</span> simplex. Alternatively, I made a visualization of what happens in probability space when you increase softmax temperature. Interestingly, I think this method gives a smoothed version of if you were to map 1D subspaces of <span class="math inline">\(\mathbb R^3\)</span> onto the closest point within the standard simplex.</p> -->
<!-- <hr> -->
<h1 id="ss.py-a-cli-wrapper-for-the-semantic-scholar-api."><code>ss.py</code>: a cli wrapper for the Semantic Scholar API.</h1>
<a href="ss.html">[About]</a>
<a href=https://github.com/mattf1n/ss>[GitHub]</a>
<!-- <article> -->
<!-- <h1>Don't organize prematurely</h1> -->
<!-- <time>2023-03-21</time> -->
<!-- <p> -->
<!-- Early organization procrastinates progress. -->
<!-- Organizational needs become apparent later. -->
<!-- </p> -->
<!-- </article> -->
<hr>
<h1>Putting word count in Vim statusline for LaTeX files</h1>
<time>2022-11-28</time>
<p>This ftplugin updates the word count in the statusline on every save.
More frequent updates slow Vim down and cause random rendering problems.
<pre><code>" .vim/after/ftplugin/tex.vim
function CountWords()
silent return systemlist('texcount ' .. expand('%:p'))[2]
endfunction
let b:wordcount = CountWords()
augroup tex
autocmd! * <buffer>
autocmd BufWritePost <buffer> :let b:wordcount = CountWords()
augroup END
setlocal statusline=%{b:wordcount}</code></pre>
</p>
<h3>Update <time>2023-03-27</time></h3>
<p>Using vim’s <code>job_start</code> function, I can asynchronously update the word count, preventing the short hang on save.</p>
<pre><code>" .vim/after/ftplugin/tex.vim
function UpdateWordcount(_, msg)
if match(a:msg, 'Words in text:') >= 0
let b:wordcount = a:msg
let &l:statusline = &l:statusline " Refresh statusline
endif
endfunction
augroup my_tex
autocmd! * <buffer>
autocmd BufEnter,BufWritePost <buffer> call job_start(
\ [ 'texcount', expand('%:p') ],
\ {'out_cb': 'UpdateWordcount'}
\)
augroup END
let b:wordcount = 'Words in text: ...'
setlocal statusline=%{b:wordcount}</code></pre>
<!-- <hr> -->
<!-- <h1>GOES-16 map</h1> -->
<!-- <time>2022-11-18</time> -->
<!-- <p> -->
<!-- I wrote a script to retrieve and composite the latest GOES-16 satellite image of Earth. GitHub link coming soon. -->
<!-- </p> -->
<!-- <figure> -->
<!-- <img src="img/fulldisk.png"/> -->
<!-- <figcaption>Earth 5 minutes before I ran my script.</figcaption> -->
<!-- </figure> -->
<hr>
<h1>Configuring Zathura</h1>
<time>2022-10-11</time>
<p>I finally got Zathura (the pdf viewer) configured the way I want it on MacOS. I installed using homebrew following these <a href="https://github.com/zegervdv/homebrew-zathura">instructions</a>. I set up an automator script to launch Zathura for me according to this <a href="https://gist.github.com/agzam/76d761804330cc8c4600fccda952ed1c">gist</a>. I chose my colors based on the blacks and whites in the <a href="https://github.com/preservim/vim-colors-pencil">pencil</a> colorscheme.</p>
<p>Here’s my zathurarc file:</p>
<pre><code>set selection-clipboard clipboard
set guioptions ""
set window-title-basename true
set recolor true
set recolor-keephue true
set recolor-lightcolor \#F1F1F1
set recolor-darkcolor \#181818
set default-bg \#E5E6E6
set completion-bg \#181818
set completion-fg \#F1F1F1
set completion-group-bg \#181818
set completion-group-fg \#F1F1F1
set completion-highlight-fg \#181818
set inputbar-bg \#181818
set inputbar-fg \#F1F1F1
set statusbar-bg \#181818
set statusbar-fg \#F1F1F1</code></pre>
<p>Good luck! <span class="emoji" data-emoji="page_facing_up">📄</span></p>
<hr>
<h1>Washington State</h1>
<time>2021-1-20</time>
<p>I learned some Blender and used some open source elevation data to make a nice looking relief map of Washington State. Check out how I made it <a href="https://github.com/mattf1n/Relief-Map">here</a>. <span class="emoji" data-emoji="round_pushpin">📍</span></p>
<figure>
<img src="img/wa.png" alt="Rendered relief map of WA" /><figcaption aria-hidden="true">Rendered relief map of WA</figcaption>
</figure>
<hr>
<h1>Camping in Cottonwood Wash</h1>
<time>2020-5-14</time>
<p>This last weekend, <a href="http://caitlyndang.com">Caitlyn</a> and I backpacked up Cottonwood Wash in Utah’s San Rafael Swell, a beautiful canyon all to ourselves. We even spotted some petroglyphs. <span class="emoji" data-emoji="mountain">⛰️</span></p>
<figure>
<img src="img/UT_Mexican%20Mountain_250561_1983_24000.jpg" alt="1983 USGS map of Mexican Mountain" /><figcaption aria-hidden="true">1983 USGS map of Mexican Mountain</figcaption>
</figure>
<hr>
<h1>Course notes from CS183</h1>
<time>2020-4-20</time>
<p><a href="files/lecture.pdf">These are my notes</a> from the course CS183: Foundations of Machine Learning. They are imperfect and incomplete but I really enjoyed making them. If you would like to make edits <a href="mailto:[email protected]">email me</a> and I can send you the source code. <span class="emoji" data-emoji="notebook">📓</span></p>
<!------->
<!--# The TNT game -->
<!--*2020-4-18*. While taking a class on theoretical computer science last semester-->
<!--someone showed me [the NAND game](http://nandgame.com/). The idea of the game-->
<!--is to start from a [NAND gate](https://en.wikipedia.org/wiki/NAND_gate) and-->
<!--build a series of [boolean-->
<!--circuits](https://en.wikipedia.org/wiki/Boolean_circuit) of increasing-->
<!--complexity until you build a computer in a surprisingly few number of rounds.-->
<!--While reading the book *[Gödel, Escher,-->
<!--Bach](https://en.wikipedia.org/wiki/Gödel,_Escher,_Bach)* by Douglas-->
<!--Hofstadter, I began imagining a similar 'game' where the user begins with a-->
<!--small set of axioms and rules from which they build theorems of increasing-->
<!--complexity. The axioms and rules could come from Hofstadter's [TNT-->
<!--system](https://en.wikipedia.org/wiki/Typographical_Number_Theory). The game-->
<!--would begin by establishing basic properties of addition, multiplication, and-->
<!--so on, eventually proving profound mathematical concepts like Fermat's last-->
<!--theorem (about which I would recommend reading [this book by Simon-->
<!--Singh](https://www.goodreads.com/book/show/38412.Fermat_s_Enigma).) -->
<!--I'm not sure exactly how something like [Gödel's incompleteness-->
<!--theorems](https://en.wikipedia.org/wiki/G%C3%B6del%27s_incompleteness_theorems)-->
<!--could be incorporated into the game. It's something I will have to keep-->
<!--thinking about. :space_invader: -->
<!------->
<!--# Notice anything new?-->
<!--*2020-4-17*. I overhauled the look of this site by ditching-->
<!--[Marx](https://github.com/mblode/marx) and making my own custom CSS file. I-->
<!--wanted an academic look for the site so I found [Latin-->
<!--Modern](https://github.com/slashfoo/lmweb) for web (LM is the $\LaTeX$ default-->
<!--font.) Also, inspired by [Butterick's Practical-->
<!--Typography](https://practicaltypography.com/) which is an amazing online book,-->
<!--I decided to go with more subtle links. They are now all [small caps](). The-->
<!--downside of this is that links do not pop out so much. Upside is that the focus-->
<!--is now more on the text!-->
<!--Oh, and I added a [favicon](https://favicon.io/). :nail_care: -->
<!-- --- -->
<!-- # [iloveyoumatthew.com](https://Iloveyoumatthew.com) -->
<!-- *2020-4-16* -->
<!-- My [partner](https://caitlyndang.com) made me this love-letter -->
<!-- website for Valentines day. I love it! (I hope I'm not embarrassing myself too -->
<!-- much here.) :heart: -->
</main></body></html>