diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f9d4643 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +_drafts/ +_site/ diff --git a/_includes/nav.html b/_includes/nav.html deleted file mode 100644 index 3b12c88..0000000 --- a/_includes/nav.html +++ /dev/null @@ -1,40 +0,0 @@ -
-
- -
- diff --git a/_layouts/default.html b/_layouts/default.html index 79cf129..fdb96dc 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -3,32 +3,27 @@ - - {% feed_meta %} - andrew conlin - - + Andrew Conlin - + + -
- {% include nav.html %} -
-

+
+
+ {% if page.backlink == true %} + <-- back + {% endif %} +

{{ page.title }}

-

- {{ page.subtitle }} -

+ {{ page.subtitle }} {{ content }} -
-
- \ No newline at end of file diff --git a/_layouts/post.html b/_layouts/post.html index 2570486..d75ff78 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -2,10 +2,9 @@ layout: default --- -

-  {{ page.date | date_to_string }} -   -  {{ content | reading_time | pluralize: "minute" }} +

+ Posted {{ page.date | date_to_string }} to Andrew Conlin's blog
+ Reading time: {{ content | reading_time | pluralize: "minute" }}


diff --git a/_site/assets/css/default.css b/_site/assets/css/default.css deleted file mode 100644 index 779ccfd..0000000 --- a/_site/assets/css/default.css +++ /dev/null @@ -1,96 +0,0 @@ -@font-face { - font-family: "Geist"; - src: - local("Geist"), - url("../fonts/Geist/Geist-Regular.otf") format("opentype"), - url("../fonts/Geist/Geist-Regular.woff2") format("woff"); - } - -@font-face { - font-family: "Geist Bold"; - src: - local("Geist"), - url("../fonts/Geist/Geist-Bold.otf") format("opentype"), - url("../fonts/Geist/Geist-Bold.otf") format("woff"); - } - -@font-face { - font-family: "Geist Mono"; - src: - local("Geist"), - url("../fonts/Geist\ Mono/GeistMono-Regular.otf") format("opentype"), - url("../fonts/Geist\ Mono/GeistMono-Regular.woff2") format("woff"); - } - -b { - font-family: "Geist Bold"; -} - -hr { - border: none; - height: 3px; - background-color: #282828; - opacity: 100%; -} - -hr.menu { - display: none; -} - -@media (max-width: 768px) { - hr.menu { - display: block; - } -} - -div.content { - position: relative; - top: 90px; -} - -@media (max-width: 768px) { - div.content { - top: 20px; - } -} - -a { - color: gold; -} - -body { - background-color: black; - color: white; - font-family: "Geist"; - min-height: 100vh; -} - -code { - color: gold; - font-family: "Geist Mono"; -} - -pre { - color: gold; - background-color: #282828; - padding: 10px 10px 10px 10px; - border-radius: 10px; - white-space: pre-wrap; -} - -img.letterboxd { - display: inline-block; - width:20px; - margin-bottom: 5px; -} - -@media (max-width: 768px) { -img.letterboxd { - margin-left: 0; -} -} - -::selection { - background-color: gold; - color: black; -} diff --git a/_site/assets/fonts/Geist Mono/GeistMono-Black.otf b/_site/assets/fonts/Geist Mono/GeistMono-Black.otf deleted file mode 100644 index 20883e9..0000000 Binary files a/_site/assets/fonts/Geist Mono/GeistMono-Black.otf and /dev/null differ diff --git a/_site/assets/fonts/Geist Mono/GeistMono-Black.woff2 b/_site/assets/fonts/Geist Mono/GeistMono-Black.woff2 deleted file mode 100644 index f52d77c..0000000 Binary files a/_site/assets/fonts/Geist Mono/GeistMono-Black.woff2 and /dev/null differ diff --git a/_site/assets/fonts/Geist Mono/GeistMono-Bold.otf b/_site/assets/fonts/Geist Mono/GeistMono-Bold.otf deleted file mode 100644 index 7b51786..0000000 Binary files a/_site/assets/fonts/Geist Mono/GeistMono-Bold.otf and /dev/null differ diff --git a/_site/assets/fonts/Geist Mono/GeistMono-Bold.woff2 b/_site/assets/fonts/Geist Mono/GeistMono-Bold.woff2 deleted file mode 100644 index a03e09d..0000000 Binary files a/_site/assets/fonts/Geist Mono/GeistMono-Bold.woff2 and /dev/null differ diff --git a/_site/assets/fonts/Geist Mono/GeistMono-Light.otf b/_site/assets/fonts/Geist Mono/GeistMono-Light.otf deleted file mode 100644 index 65d5d5e..0000000 Binary files a/_site/assets/fonts/Geist Mono/GeistMono-Light.otf and /dev/null differ diff --git a/_site/assets/fonts/Geist Mono/GeistMono-Light.woff2 b/_site/assets/fonts/Geist Mono/GeistMono-Light.woff2 deleted file mode 100644 index 9119439..0000000 Binary files a/_site/assets/fonts/Geist Mono/GeistMono-Light.woff2 and /dev/null differ diff --git a/_site/assets/fonts/Geist Mono/GeistMono-Medium.otf b/_site/assets/fonts/Geist Mono/GeistMono-Medium.otf deleted file mode 100644 index ff2d66f..0000000 Binary files a/_site/assets/fonts/Geist Mono/GeistMono-Medium.otf and /dev/null differ diff --git a/_site/assets/fonts/Geist Mono/GeistMono-Medium.woff2 b/_site/assets/fonts/Geist Mono/GeistMono-Medium.woff2 deleted file mode 100644 index e6cfdbb..0000000 Binary files a/_site/assets/fonts/Geist Mono/GeistMono-Medium.woff2 and /dev/null differ diff --git a/_site/assets/fonts/Geist Mono/GeistMono-Regular.otf b/_site/assets/fonts/Geist Mono/GeistMono-Regular.otf deleted file mode 100644 index 436f40d..0000000 Binary files a/_site/assets/fonts/Geist Mono/GeistMono-Regular.otf and /dev/null differ diff --git a/_site/assets/fonts/Geist Mono/GeistMono-Regular.woff2 b/_site/assets/fonts/Geist Mono/GeistMono-Regular.woff2 deleted file mode 100644 index 281680e..0000000 Binary files a/_site/assets/fonts/Geist Mono/GeistMono-Regular.woff2 and /dev/null differ diff --git a/_site/assets/fonts/Geist Mono/GeistMono-SemiBold.otf b/_site/assets/fonts/Geist Mono/GeistMono-SemiBold.otf deleted file mode 100644 index 0038d7f..0000000 Binary files a/_site/assets/fonts/Geist Mono/GeistMono-SemiBold.otf and /dev/null differ diff --git a/_site/assets/fonts/Geist Mono/GeistMono-SemiBold.woff2 b/_site/assets/fonts/Geist Mono/GeistMono-SemiBold.woff2 deleted file mode 100644 index 014314e..0000000 Binary files a/_site/assets/fonts/Geist Mono/GeistMono-SemiBold.woff2 and /dev/null differ diff --git a/_site/assets/fonts/Geist Mono/GeistMono-Thin.otf b/_site/assets/fonts/Geist Mono/GeistMono-Thin.otf deleted file mode 100644 index 5bb7067..0000000 Binary files a/_site/assets/fonts/Geist Mono/GeistMono-Thin.otf and /dev/null differ diff --git a/_site/assets/fonts/Geist Mono/GeistMono-Thin.woff2 b/_site/assets/fonts/Geist Mono/GeistMono-Thin.woff2 deleted file mode 100644 index eae85ac..0000000 Binary files a/_site/assets/fonts/Geist Mono/GeistMono-Thin.woff2 and /dev/null differ diff --git a/_site/assets/fonts/Geist Mono/GeistMono-UltraBlack.otf b/_site/assets/fonts/Geist Mono/GeistMono-UltraBlack.otf deleted file mode 100644 index ca5f3bd..0000000 Binary files a/_site/assets/fonts/Geist Mono/GeistMono-UltraBlack.otf and /dev/null differ diff --git a/_site/assets/fonts/Geist Mono/GeistMono-UltraBlack.woff2 b/_site/assets/fonts/Geist Mono/GeistMono-UltraBlack.woff2 deleted file mode 100644 index e85a56c..0000000 Binary files a/_site/assets/fonts/Geist Mono/GeistMono-UltraBlack.woff2 and /dev/null differ diff --git a/_site/assets/fonts/Geist Mono/GeistMono-UltraLight.otf b/_site/assets/fonts/Geist Mono/GeistMono-UltraLight.otf deleted file mode 100644 index 342ae36..0000000 Binary files a/_site/assets/fonts/Geist Mono/GeistMono-UltraLight.otf and /dev/null differ diff --git a/_site/assets/fonts/Geist Mono/GeistMono-UltraLight.woff2 b/_site/assets/fonts/Geist Mono/GeistMono-UltraLight.woff2 deleted file mode 100644 index 9a4f776..0000000 Binary files a/_site/assets/fonts/Geist Mono/GeistMono-UltraLight.woff2 and /dev/null differ diff --git a/_site/assets/fonts/Geist Mono/GeistMonoVF.ttf b/_site/assets/fonts/Geist Mono/GeistMonoVF.ttf deleted file mode 100644 index d7144c5..0000000 Binary files a/_site/assets/fonts/Geist Mono/GeistMonoVF.ttf and /dev/null differ diff --git a/_site/assets/fonts/Geist Mono/GeistMonoVF.woff2 b/_site/assets/fonts/Geist Mono/GeistMonoVF.woff2 deleted file mode 100644 index a7e8bf4..0000000 Binary files a/_site/assets/fonts/Geist Mono/GeistMonoVF.woff2 and /dev/null differ diff --git a/_site/assets/fonts/Geist/Geist-Black.otf b/_site/assets/fonts/Geist/Geist-Black.otf deleted file mode 100644 index 4b7ad2d..0000000 Binary files a/_site/assets/fonts/Geist/Geist-Black.otf and /dev/null differ diff --git a/_site/assets/fonts/Geist/Geist-Black.woff2 b/_site/assets/fonts/Geist/Geist-Black.woff2 deleted file mode 100644 index d611ec8..0000000 Binary files a/_site/assets/fonts/Geist/Geist-Black.woff2 and /dev/null differ diff --git a/_site/assets/fonts/Geist/Geist-Bold.otf b/_site/assets/fonts/Geist/Geist-Bold.otf deleted file mode 100644 index 7fa041d..0000000 Binary files a/_site/assets/fonts/Geist/Geist-Bold.otf and /dev/null differ diff --git a/_site/assets/fonts/Geist/Geist-Bold.woff2 b/_site/assets/fonts/Geist/Geist-Bold.woff2 deleted file mode 100644 index e81a1dc..0000000 Binary files a/_site/assets/fonts/Geist/Geist-Bold.woff2 and /dev/null differ diff --git a/_site/assets/fonts/Geist/Geist-Light.otf b/_site/assets/fonts/Geist/Geist-Light.otf deleted file mode 100644 index c20cf24..0000000 Binary files a/_site/assets/fonts/Geist/Geist-Light.otf and /dev/null differ diff --git a/_site/assets/fonts/Geist/Geist-Light.woff2 b/_site/assets/fonts/Geist/Geist-Light.woff2 deleted file mode 100644 index 915672a..0000000 Binary files a/_site/assets/fonts/Geist/Geist-Light.woff2 and /dev/null differ diff --git a/_site/assets/fonts/Geist/Geist-Medium.otf b/_site/assets/fonts/Geist/Geist-Medium.otf deleted file mode 100644 index 7bcc6c2..0000000 Binary files a/_site/assets/fonts/Geist/Geist-Medium.otf and /dev/null differ diff --git a/_site/assets/fonts/Geist/Geist-Medium.woff2 b/_site/assets/fonts/Geist/Geist-Medium.woff2 deleted file mode 100644 index 2063398..0000000 Binary files a/_site/assets/fonts/Geist/Geist-Medium.woff2 and /dev/null differ diff --git a/_site/assets/fonts/Geist/Geist-Regular.otf b/_site/assets/fonts/Geist/Geist-Regular.otf deleted file mode 100644 index bb41355..0000000 Binary files a/_site/assets/fonts/Geist/Geist-Regular.otf and /dev/null differ diff --git a/_site/assets/fonts/Geist/Geist-Regular.woff2 b/_site/assets/fonts/Geist/Geist-Regular.woff2 deleted file mode 100644 index d8f99f2..0000000 Binary files a/_site/assets/fonts/Geist/Geist-Regular.woff2 and /dev/null differ diff --git a/_site/assets/fonts/Geist/Geist-SemiBold.otf b/_site/assets/fonts/Geist/Geist-SemiBold.otf deleted file mode 100644 index 2b98bca..0000000 Binary files a/_site/assets/fonts/Geist/Geist-SemiBold.otf and /dev/null differ diff --git a/_site/assets/fonts/Geist/Geist-SemiBold.woff2 b/_site/assets/fonts/Geist/Geist-SemiBold.woff2 deleted file mode 100644 index d4e88fd..0000000 Binary files a/_site/assets/fonts/Geist/Geist-SemiBold.woff2 and /dev/null differ diff --git a/_site/assets/fonts/Geist/Geist-Thin.otf b/_site/assets/fonts/Geist/Geist-Thin.otf deleted file mode 100644 index 199232b..0000000 Binary files a/_site/assets/fonts/Geist/Geist-Thin.otf and /dev/null differ diff --git a/_site/assets/fonts/Geist/Geist-Thin.woff2 b/_site/assets/fonts/Geist/Geist-Thin.woff2 deleted file mode 100644 index 1965d47..0000000 Binary files a/_site/assets/fonts/Geist/Geist-Thin.woff2 and /dev/null differ diff --git a/_site/assets/fonts/Geist/Geist-UltraBlack.otf b/_site/assets/fonts/Geist/Geist-UltraBlack.otf deleted file mode 100644 index 5c8aa1d..0000000 Binary files a/_site/assets/fonts/Geist/Geist-UltraBlack.otf and /dev/null differ diff --git a/_site/assets/fonts/Geist/Geist-UltraBlack.woff2 b/_site/assets/fonts/Geist/Geist-UltraBlack.woff2 deleted file mode 100644 index 8583efd..0000000 Binary files a/_site/assets/fonts/Geist/Geist-UltraBlack.woff2 and /dev/null differ diff --git a/_site/assets/fonts/Geist/Geist-UltraLight.otf b/_site/assets/fonts/Geist/Geist-UltraLight.otf deleted file mode 100644 index 5fd93cc..0000000 Binary files a/_site/assets/fonts/Geist/Geist-UltraLight.otf and /dev/null differ diff --git a/_site/assets/fonts/Geist/Geist-UltraLight.woff2 b/_site/assets/fonts/Geist/Geist-UltraLight.woff2 deleted file mode 100644 index 0406967..0000000 Binary files a/_site/assets/fonts/Geist/Geist-UltraLight.woff2 and /dev/null differ diff --git a/_site/assets/fonts/Geist/GeistVF.ttf b/_site/assets/fonts/Geist/GeistVF.ttf deleted file mode 100644 index f3d2f1d..0000000 Binary files a/_site/assets/fonts/Geist/GeistVF.ttf and /dev/null differ diff --git a/_site/assets/fonts/Geist/GeistVF.woff2 b/_site/assets/fonts/Geist/GeistVF.woff2 deleted file mode 100644 index 989f185..0000000 Binary files a/_site/assets/fonts/Geist/GeistVF.woff2 and /dev/null differ diff --git a/_site/assets/images/alarm.ico b/_site/assets/images/alarm.ico deleted file mode 100644 index 936d524..0000000 Binary files a/_site/assets/images/alarm.ico and /dev/null differ diff --git a/_site/assets/images/book.ico b/_site/assets/images/book.ico deleted file mode 100644 index b430c63..0000000 Binary files a/_site/assets/images/book.ico and /dev/null differ diff --git a/_site/assets/images/computer.ico b/_site/assets/images/computer.ico deleted file mode 100644 index c98c668..0000000 Binary files a/_site/assets/images/computer.ico and /dev/null differ diff --git a/_site/assets/images/desktop.ico b/_site/assets/images/desktop.ico deleted file mode 100644 index 2407e6e..0000000 Binary files a/_site/assets/images/desktop.ico and /dev/null differ diff --git a/_site/assets/images/film.ico b/_site/assets/images/film.ico deleted file mode 100644 index 0bcc525..0000000 Binary files a/_site/assets/images/film.ico and /dev/null differ diff --git a/_site/assets/images/globe.ico b/_site/assets/images/globe.ico deleted file mode 100644 index 49e7adb..0000000 Binary files a/_site/assets/images/globe.ico and /dev/null differ diff --git a/_site/assets/images/letterboxd.png b/_site/assets/images/letterboxd.png deleted file mode 100644 index e4c4ff6..0000000 Binary files a/_site/assets/images/letterboxd.png and /dev/null differ diff --git a/_site/assets/images/me-square.jpg b/_site/assets/images/me-square.jpg deleted file mode 100644 index a204d6d..0000000 Binary files a/_site/assets/images/me-square.jpg and /dev/null differ diff --git a/_site/assets/images/me.jpg b/_site/assets/images/me.jpg deleted file mode 100644 index 16f6b4e..0000000 Binary files a/_site/assets/images/me.jpg and /dev/null differ diff --git a/_site/assets/images/occ.png b/_site/assets/images/occ.png deleted file mode 100644 index 54d8a7c..0000000 Binary files a/_site/assets/images/occ.png and /dev/null differ diff --git a/_site/assets/images/og-image-template.jpg b/_site/assets/images/og-image-template.jpg deleted file mode 100644 index 9848e23..0000000 Binary files a/_site/assets/images/og-image-template.jpg and /dev/null differ diff --git a/_site/assets/images/write.ico b/_site/assets/images/write.ico deleted file mode 100644 index ef88e53..0000000 Binary files a/_site/assets/images/write.ico and /dev/null differ diff --git a/_site/blog/2023/01/14/musings-on-the-cinema/index.html b/_site/blog/2023/01/14/musings-on-the-cinema/index.html deleted file mode 100644 index cf669f3..0000000 --- a/_site/blog/2023/01/14/musings-on-the-cinema/index.html +++ /dev/null @@ -1,132 +0,0 @@ - - - - - - - - - andrew conlin - - - - - - -
-
-
- -
- - -
-

- Musings on the power of cinema -

-

- -

-

-  14 Jan 2023 -   -  1 minute -

-
- -

I’ve realised that going to the cinema makes me sad; a quiet, contemplative melancholy. Ennui. No matter the film, something about the cinema experience is meditative for me. I always look at things differently in the aftermath; like my perception is temporarily knocked off balance. No, more like a fog is lifted for a while. I especially enjoy that time immediately after, the cycle home. I notice so many little details, scenes of beauty and of strange nostalgia. Like I’m finally seeing the world how it is, or rather, I begin to see rather than look, listen rather than hear. I feel as though these moments, however brief, are when I am truly in touch with myself. My soul, my inner essence. This is why I love the cinema. These moments of private melancholy, of temporary clarity. It is a feeling I cannot replicate anywhere else in my life.

- - -
-
-
-
- - - - \ No newline at end of file diff --git a/_site/blog/2023/03/05/yuri-felsen-on-love/index.html b/_site/blog/2023/03/05/yuri-felsen-on-love/index.html deleted file mode 100644 index 18b696c..0000000 --- a/_site/blog/2023/03/05/yuri-felsen-on-love/index.html +++ /dev/null @@ -1,136 +0,0 @@ - - - - - - - - - andrew conlin - - - - - - -
-
-
- -
- - -
-

- Yuri Felsen on love -

-

- -

-

-  05 Mar 2023 -   -  1 minute -

-
- -

“Like everyone, I have my own, maybe obsessive futile, maybe in some way authentic, vision: all of a sudden, I will imagine the entire homogenous world as it is revealed to us-the streets, the cities, the rooms, those intelligent beasts of a sad and predatory nature, who have learn to stand on their hind legs, who have built all this but are fated to disappear, who, despite this, still try to cling to something solid and lasting, still try to ward off the inevitability of death, who dreamt up fairy tales and, now that these stories have been disproved, are disconsolate - and for me the only means of defending myself from our terrible fate is love, my love - Lyolya. Without love we fall into a stupor or despair, it covers our naked animal essence; with the fear of death, with deliberate attempts to grab hold of some kind of eternity, one that is at once a mystery to us and yet devised by us, even the remains of love, even its very echo in music, imbues us with a semblance of fearlessness, dignity and the spiritual range to disregard death. Only by loving, by knowing about love, hoping for love, are we inspired and meaningfully engaged in life, able to banish the sovereignty of petty day-to-day cares, to stop waiting for the end to come”

- -

- Yuri Felsen (trans. Bryan Karetnyk)

- -

From ‘Deceit’, first published in 1930 and translated to English in 2022.

- - -
-
-
-
- - - - \ No newline at end of file diff --git a/_site/blog/2023/03/10/putting-thoughts-into-action/index.html b/_site/blog/2023/03/10/putting-thoughts-into-action/index.html deleted file mode 100644 index bf56699..0000000 --- a/_site/blog/2023/03/10/putting-thoughts-into-action/index.html +++ /dev/null @@ -1,152 +0,0 @@ - - - - - - - - - andrew conlin - - - - - - -
-
-
- -
- - -
-

- A measure of how easily thoughts can be translated to action -

-

- -

-

-  10 Mar 2023 -   -  2 minutes -

-
- -

Recently, I’ve been using multiple different languages and frameworks (both at work and personally) and I’ve been thinking about why I prefer some over others. Ultimately, I think it comes down to this:

- -

How easily can I translate what I am thinking about into a working setup?

- -

That is, how much effort needs to go into converting my idea into a solution? (If there is not already a word for this, then there should be. Don’t worry, I am willing to take the hit and have it named after me.)

- -

For example, I’ve been building this website over the past month or so. Generally, for static websites, I think that HTML + CSS are very good at allowing me to get what I see in my head running on localhost. At this point CSS has so many different options that you just need to find the right search terms in order to get what you want.

- -

However, they are both lacking somewhat in intuitiveness. Especially when starting out, it can get very confusing to know the right tags and the right syntax and the right placement (and so on) to realise your vision.

- -

This is where services like Squarespace et al. come into play. They give you that intuitive UI, dragging and dropping of features, resizing and changing colours. They make it super duper easy to do the actual building, at the cost of the range of bricks you can use.

- -

So, we have two measures:

-
    -
  1. Can I do everything I want to?
  2. -
  3. How easy is it?
  4. -
- -

These are usually a direct tradeoff, with ease typically preferred over options. This tends to frustrate me, as I want full control of all those little configurations.

- -

The solution to this, at least for me, are frameworks such as Bootstrap and Jekyll. They put a layer between the user and the options; essentially translating and simplying all the little configurations into something much easier to work with. Columns in Bootstrap make page layouts simple; markdown-to-html parsing in Jekyll makes text formatting a breeze. But, most importantly of all, these frameworks don’t sacrifice on the possibilities. They make it easier to apply complex setups, but if you want to go in and tweak absolutely everything to your liking, go right ahead. By providing the user with simpler ways of doing the same things as before, they manage to bridge the gap between Can I do everything I want to? and How easy is it?. And I think that is beautiful.

- - -
-
-
-
- - - - \ No newline at end of file diff --git a/_site/blog/2023/04/29/links-arent-performances/index.html b/_site/blog/2023/04/29/links-arent-performances/index.html deleted file mode 100644 index 3e78e81..0000000 --- a/_site/blog/2023/04/29/links-arent-performances/index.html +++ /dev/null @@ -1,136 +0,0 @@ - - - - - - - - - andrew conlin - - - - - - -
-
-
- -
- - -
-

- Links aren't performances -

-

- -

-

-  29 Apr 2023 -   -  1 minute -

-
- -

“For starters, it finds that publishing a link can be a “performance” of a copyrighted work, which meant that when Linkletter linked to the world-viewable Youtube files that Proctorio had posted, he infringed on copyright.

- -

This is a perverse, even surreal take on copyright. The court rejects Linkletter’s argument that even Youtube’s terms of service warned Proctorio that publishing world-viewable material on its site constituted permission for people to link to and watch that material.”

- -

Via: Pluralistic

- - -
-
-
-
- - - - \ No newline at end of file diff --git a/_site/feed.xml b/_site/feed.xml deleted file mode 100644 index 4e52663..0000000 --- a/_site/feed.xml +++ /dev/null @@ -1,167 +0,0 @@ -Jekyll2023-11-06T13:57:50+00:00http://localhost:4000/feed.xmlAndrew ConlinLinks aren’t performances2023-04-29T00:00:00+01:002023-04-29T00:00:00+01:00http://localhost:4000/blog/2023/04/29/links-arent-performances“For starters, it finds that publishing a link can be a “performance” of a copyrighted work, which meant that when Linkletter linked to the world-viewable Youtube files that Proctorio had posted, he infringed on copyright.

- -

This is a perverse, even surreal take on copyright. The court rejects Linkletter’s argument that even Youtube’s terms of service warned Proctorio that publishing world-viewable material on its site constituted permission for people to link to and watch that material.”

- -

Via: Pluralistic

]]>
Andrew Conlin
Running a Python script periodically in a Docker container using cron2023-04-19T00:00:00+01:002023-04-19T00:00:00+01:00http://localhost:4000/til/running-python-in-cron-in-dockerRecently, my partner gave a great idea for utilising my old Kindle: generate a “newspaper” each morning from a bunch of RSS feeds, and email it to the Kindle using “Send-to-Kindle” feature (a blog post about this project is in the works).

- -

I loved this idea, and thought it would be no problem to get a Python script up and running periodically on my Raspberry Pi home server using cron. However, I ran into various issues along the way (some of which were not so easy to resolve), so I’m collating all the configuration changes I made in the hopes that it will be useful to someone one day. You can find the full repo for this project here, and I have also included my Dockerfile, docker-compose.yml and crontab at the end of this TIL.

- -

1. Double check the user

- -

A lot of problems with cron come down to user privileges. Each user has their own crontab, and then there is the system-wide root crontab. The first issue I ran into with creating a cron job inside a container was that Docker created the crontab as a non-root user. This issue presented itself to me when I tried to run the following command, to list the current cronjobs in the Docker container:

-
docker-compose exec container-name crontab -l
-
-

This returned the following output:

-
no crontab for root
-
-

Now, it is not necessarily a problem to have non-root cron jobs, but just make absolutely certain that you are creating the jobs with the user you expect. For me, I wanted to run as root, so I added to following line to my docker-compose.yml:

-
user: root
-
-

Now, the root user will be used when building your Docker image and the created crontab will be where you expect.

- -

2. Missing dependencies

-

When cron calls your Python script, you may run into issues with ModuleNotFoundError or ImportError, where Python cannot find your installed packages. This is because cron does not have access to your system environment variables, including the Python path. You can resolve most of these errors with imports by adding the PYTHONPATH environment variable to your crontab. This should be the path to your site-packages folder, something like this:

-
PYTHONPATH=/usr/bin/local/python3
-
-

You may also need to add a shebang (#!) to your Python script to direct cron to the correct version. You can find the Python location with one of the following commands:

-
which python
-which py
-which python3
-
-

NOTE: These commands must be performed in your Docker container when it is up and running. In docker-compose syntax this would be the following (with the name of your container instead of container-name):

-
docker-compose exec container-name which python3
-
-

You can then add this to the top of your Python script, as follows:

-
#!/usr/bin/local/python3
-
-

3. Still missing dependencies

-

Some modules will still run into errors even when the PYTHONPATH variable has been set. In particular, I ran into problems with reportlab and Pillow/PIL:

-
ImportError: cannot import name '_imaging' from 'PIL'
-
-

This was solved by adding the system PATH to the crontab as well. The system path is included in the default crontab that is created when you first run crontab -e:

-
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
-
-

Therefore, it is a good idea to include it if you are making a new crontab to make sure cron can find everything it needs to.

- -

4. Check relative paths in Python

-

By default, cron runs from the default root path. Therefore, both your call to Python in your crontab and the filepaths within Python should either be relative to root (i.e /main.py rather than main.py) or just use full paths instead.

- - -

This error is related to Python inside a Docker container rather than cron. However, someone might still find it useful. When you install your requirements.txt, you may encounter errors such as

-
legacy-install-failure
-error: command '/usr/bin/gcc' failed with exit code 1
-fatal error: Python.h: No such file or directory
-
-

I was able to resolve these by adding python3-dev, wheel and Cmake to my requirements.txt. These are sometimes required when packages include other binaries or need to compile other code when installed.

- -

6. Other useful tips

-
    -
  • crontab.guru is a great resource for checking cron syntax
  • -
  • Installing vim/nano in your Docker container to make the debugging stage easier. This is especially useful for changing your crontab to run much more frequently, or adding debugging messages etc., when the container is up.
  • -
- -

I hope this helped you resolve some errors! I’ve included my Dockerfile, docker-compose.yml and crontab below if you want to set up a similar project or adjust your own files. The full repo is also available here.

- -

Dockerfile:

-
FROM python:3
-
-COPY . .
-RUN python3.11 -m pip install --no-cache-dir -r requirements.txt
-
-RUN touch /var/log/cron.log
-
-RUN apt-get update \  
-&& apt-get install cron -y
-
-RUN chmod +x main.py
-
-RUN crontab crontab 
-
-CMD cron -f
-
-

docker-compose.yml:

-
version: "2.4"
-
-services:
-  watchman:
-    platform: "linux/arm64/v8"
-    image: watchman:latest
-    container_name: watchman
-    restart: always
-    user: root
-    build:
-      context: build
-      dockerfile: Dockerfile
-
-

crontab:

-
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
-PYTHONPATH=/usr/bin/local/python3
-15 7 * * * python3 /main.py >> /var/log/cron.log 2>&1
-
-
]]>
Andrew Conlin
A measure of how easily thoughts can be translated to action2023-03-10T00:00:00+00:002023-03-10T00:00:00+00:00http://localhost:4000/blog/2023/03/10/putting-thoughts-into-actionRecently, I’ve been using multiple different languages and frameworks (both at work and personally) and I’ve been thinking about why I prefer some over others. Ultimately, I think it comes down to this:

- -

How easily can I translate what I am thinking about into a working setup?

- -

That is, how much effort needs to go into converting my idea into a solution? (If there is not already a word for this, then there should be. Don’t worry, I am willing to take the hit and have it named after me.)

- -

For example, I’ve been building this website over the past month or so. Generally, for static websites, I think that HTML + CSS are very good at allowing me to get what I see in my head running on localhost. At this point CSS has so many different options that you just need to find the right search terms in order to get what you want.

- -

However, they are both lacking somewhat in intuitiveness. Especially when starting out, it can get very confusing to know the right tags and the right syntax and the right placement (and so on) to realise your vision.

- -

This is where services like Squarespace et al. come into play. They give you that intuitive UI, dragging and dropping of features, resizing and changing colours. They make it super duper easy to do the actual building, at the cost of the range of bricks you can use.

- -

So, we have two measures:

-
    -
  1. Can I do everything I want to?
  2. -
  3. How easy is it?
  4. -
- -

These are usually a direct tradeoff, with ease typically preferred over options. This tends to frustrate me, as I want full control of all those little configurations.

- -

The solution to this, at least for me, are frameworks such as Bootstrap and Jekyll. They put a layer between the user and the options; essentially translating and simplying all the little configurations into something much easier to work with. Columns in Bootstrap make page layouts simple; markdown-to-html parsing in Jekyll makes text formatting a breeze. But, most importantly of all, these frameworks don’t sacrifice on the possibilities. They make it easier to apply complex setups, but if you want to go in and tweak absolutely everything to your liking, go right ahead. By providing the user with simpler ways of doing the same things as before, they manage to bridge the gap between Can I do everything I want to? and How easy is it?. And I think that is beautiful.

]]>
Andrew Conlin
Yuri Felsen on love2023-03-05T00:00:00+00:002023-03-05T00:00:00+00:00http://localhost:4000/blog/2023/03/05/yuri-felsen-on-love“Like everyone, I have my own, maybe obsessive futile, maybe in some way authentic, vision: all of a sudden, I will imagine the entire homogenous world as it is revealed to us-the streets, the cities, the rooms, those intelligent beasts of a sad and predatory nature, who have learn to stand on their hind legs, who have built all this but are fated to disappear, who, despite this, still try to cling to something solid and lasting, still try to ward off the inevitability of death, who dreamt up fairy tales and, now that these stories have been disproved, are disconsolate - and for me the only means of defending myself from our terrible fate is love, my love - Lyolya. Without love we fall into a stupor or despair, it covers our naked animal essence; with the fear of death, with deliberate attempts to grab hold of some kind of eternity, one that is at once a mystery to us and yet devised by us, even the remains of love, even its very echo in music, imbues us with a semblance of fearlessness, dignity and the spiritual range to disregard death. Only by loving, by knowing about love, hoping for love, are we inspired and meaningfully engaged in life, able to banish the sovereignty of petty day-to-day cares, to stop waiting for the end to come”

- -

- Yuri Felsen (trans. Bryan Karetnyk)

- -

From ‘Deceit’, first published in 1930 and translated to English in 2022.

]]>
Andrew Conlin
Fixing php errors in a Nextcloud docker-compose configuration2023-03-01T00:00:00+00:002023-03-01T00:00:00+00:00http://localhost:4000/til/nextcloud-php-errorsI was trying to rescan the files in my Nextcloud server (running on Raspberry Pi 4 with DietPi), and kept running into some weird php errors.

- -

First error - “could not find driver”

- -

I was trying using the following syntax to call occ and scan the files:

- -
sudo -u www-data php /path/to/nextcloud/occ files:scan --all
-
- -

but I kept running into a PHP error. Specifically this error:

- -
Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: could not find driver in /path/to/nextcloud/lib/private/DB/Connection.php:139
-
- -

followed by a long, verbose stack trace.

- -

It took me a decent amount of time to diagnose the exact issue, but eventually I found this list of required PHP modules in the Nextcloud admin manual.

- -

Running php -m will print out the list of currently installed PHP modules. I noticed I was missing quite a few of the required modules, but the one that was causing my issue was the missing pdo_mysql module. -This can be installed by running:

- -
sudo apt-get install php7.4-mysql
-
-

Note: This command will change based on your OS, PHP version and database type

- -

This resolved the error! However (as is always the case), this only meant I got a shiny new error instead:

- -

Second error - “Name or service not known”

- -
Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known in /path/to/nextcloud/lib/private/DB/Connection.php:139
-
- -

From first glance, this looks like something wrong in the DNS name resolution. This sent me a long way down the wrong path, changing a whole bunch of things in my docker-compose.yml file. -Eventually however, after a long and perilous journey over the high seas of Nextcloud forums and StackOverflow, I found this example of running php occ in a docker-compose configuration. -This led me to running this command:

- -
docker-compose exec -u www-data nextcloud-app php occ files:scan --all
-
-

Note: replace nextcloud-app with the name of your Nextcloud container. Also, this command must be run from the directory of your Nextcloud docker-compose.yml

- -

….aaaaaand, voila! The command runs, the files are scanned and everything is up to date.

- -

terminal output showing the files that have been successfully been scanned

]]>
Andrew Conlin
Musings on the power of cinema2023-01-14T00:00:00+00:002023-01-14T00:00:00+00:00http://localhost:4000/blog/2023/01/14/musings-on-the-cinemaI’ve realised that going to the cinema makes me sad; a quiet, contemplative melancholy. Ennui. No matter the film, something about the cinema experience is meditative for me. I always look at things differently in the aftermath; like my perception is temporarily knocked off balance. No, more like a fog is lifted for a while. I especially enjoy that time immediately after, the cycle home. I notice so many little details, scenes of beauty and of strange nostalgia. Like I’m finally seeing the world how it is, or rather, I begin to see rather than look, listen rather than hear. I feel as though these moments, however brief, are when I am truly in touch with myself. My soul, my inner essence. This is why I love the cinema. These moments of private melancholy, of temporary clarity. It is a feeling I cannot replicate anywhere else in my life.

]]>
Andrew Conlin
\ No newline at end of file diff --git a/_site/feed/blog.xml b/_site/feed/blog.xml deleted file mode 100644 index 6c42d47..0000000 --- a/_site/feed/blog.xml +++ /dev/null @@ -1,29 +0,0 @@ -Jekyll2023-11-06T13:57:50+00:00http://localhost:4000/feed/blog.xml | BlogAndrew ConlinLinks aren’t performances2023-04-29T00:00:00+01:002023-04-29T00:00:00+01:00http://localhost:4000/blog/2023/04/29/links-arent-performances“For starters, it finds that publishing a link can be a “performance” of a copyrighted work, which meant that when Linkletter linked to the world-viewable Youtube files that Proctorio had posted, he infringed on copyright.

- -

This is a perverse, even surreal take on copyright. The court rejects Linkletter’s argument that even Youtube’s terms of service warned Proctorio that publishing world-viewable material on its site constituted permission for people to link to and watch that material.”

- -

Via: Pluralistic

]]>
Andrew Conlin
A measure of how easily thoughts can be translated to action2023-03-10T00:00:00+00:002023-03-10T00:00:00+00:00http://localhost:4000/blog/2023/03/10/putting-thoughts-into-actionRecently, I’ve been using multiple different languages and frameworks (both at work and personally) and I’ve been thinking about why I prefer some over others. Ultimately, I think it comes down to this:

- -

How easily can I translate what I am thinking about into a working setup?

- -

That is, how much effort needs to go into converting my idea into a solution? (If there is not already a word for this, then there should be. Don’t worry, I am willing to take the hit and have it named after me.)

- -

For example, I’ve been building this website over the past month or so. Generally, for static websites, I think that HTML + CSS are very good at allowing me to get what I see in my head running on localhost. At this point CSS has so many different options that you just need to find the right search terms in order to get what you want.

- -

However, they are both lacking somewhat in intuitiveness. Especially when starting out, it can get very confusing to know the right tags and the right syntax and the right placement (and so on) to realise your vision.

- -

This is where services like Squarespace et al. come into play. They give you that intuitive UI, dragging and dropping of features, resizing and changing colours. They make it super duper easy to do the actual building, at the cost of the range of bricks you can use.

- -

So, we have two measures:

-
    -
  1. Can I do everything I want to?
  2. -
  3. How easy is it?
  4. -
- -

These are usually a direct tradeoff, with ease typically preferred over options. This tends to frustrate me, as I want full control of all those little configurations.

- -

The solution to this, at least for me, are frameworks such as Bootstrap and Jekyll. They put a layer between the user and the options; essentially translating and simplying all the little configurations into something much easier to work with. Columns in Bootstrap make page layouts simple; markdown-to-html parsing in Jekyll makes text formatting a breeze. But, most importantly of all, these frameworks don’t sacrifice on the possibilities. They make it easier to apply complex setups, but if you want to go in and tweak absolutely everything to your liking, go right ahead. By providing the user with simpler ways of doing the same things as before, they manage to bridge the gap between Can I do everything I want to? and How easy is it?. And I think that is beautiful.

]]>
Andrew Conlin
Yuri Felsen on love2023-03-05T00:00:00+00:002023-03-05T00:00:00+00:00http://localhost:4000/blog/2023/03/05/yuri-felsen-on-love“Like everyone, I have my own, maybe obsessive futile, maybe in some way authentic, vision: all of a sudden, I will imagine the entire homogenous world as it is revealed to us-the streets, the cities, the rooms, those intelligent beasts of a sad and predatory nature, who have learn to stand on their hind legs, who have built all this but are fated to disappear, who, despite this, still try to cling to something solid and lasting, still try to ward off the inevitability of death, who dreamt up fairy tales and, now that these stories have been disproved, are disconsolate - and for me the only means of defending myself from our terrible fate is love, my love - Lyolya. Without love we fall into a stupor or despair, it covers our naked animal essence; with the fear of death, with deliberate attempts to grab hold of some kind of eternity, one that is at once a mystery to us and yet devised by us, even the remains of love, even its very echo in music, imbues us with a semblance of fearlessness, dignity and the spiritual range to disregard death. Only by loving, by knowing about love, hoping for love, are we inspired and meaningfully engaged in life, able to banish the sovereignty of petty day-to-day cares, to stop waiting for the end to come”

- -

- Yuri Felsen (trans. Bryan Karetnyk)

- -

From ‘Deceit’, first published in 1930 and translated to English in 2022.

]]>
Andrew Conlin
Musings on the power of cinema2023-01-14T00:00:00+00:002023-01-14T00:00:00+00:00http://localhost:4000/blog/2023/01/14/musings-on-the-cinemaI’ve realised that going to the cinema makes me sad; a quiet, contemplative melancholy. Ennui. No matter the film, something about the cinema experience is meditative for me. I always look at things differently in the aftermath; like my perception is temporarily knocked off balance. No, more like a fog is lifted for a while. I especially enjoy that time immediately after, the cycle home. I notice so many little details, scenes of beauty and of strange nostalgia. Like I’m finally seeing the world how it is, or rather, I begin to see rather than look, listen rather than hear. I feel as though these moments, however brief, are when I am truly in touch with myself. My soul, my inner essence. This is why I love the cinema. These moments of private melancholy, of temporary clarity. It is a feeling I cannot replicate anywhere else in my life.

]]>
Andrew Conlin
\ No newline at end of file diff --git a/_site/feed/til.xml b/_site/feed/til.xml deleted file mode 100644 index 4e13108..0000000 --- a/_site/feed/til.xml +++ /dev/null @@ -1,139 +0,0 @@ -Jekyll2023-11-06T13:57:50+00:00http://localhost:4000/feed/til.xml | TilAndrew ConlinRunning a Python script periodically in a Docker container using cron2023-04-19T00:00:00+01:002023-04-19T00:00:00+01:00http://localhost:4000/til/running-python-in-cron-in-dockerRecently, my partner gave a great idea for utilising my old Kindle: generate a “newspaper” each morning from a bunch of RSS feeds, and email it to the Kindle using “Send-to-Kindle” feature (a blog post about this project is in the works).

- -

I loved this idea, and thought it would be no problem to get a Python script up and running periodically on my Raspberry Pi home server using cron. However, I ran into various issues along the way (some of which were not so easy to resolve), so I’m collating all the configuration changes I made in the hopes that it will be useful to someone one day. You can find the full repo for this project here, and I have also included my Dockerfile, docker-compose.yml and crontab at the end of this TIL.

- -

1. Double check the user

- -

A lot of problems with cron come down to user privileges. Each user has their own crontab, and then there is the system-wide root crontab. The first issue I ran into with creating a cron job inside a container was that Docker created the crontab as a non-root user. This issue presented itself to me when I tried to run the following command, to list the current cronjobs in the Docker container:

-
docker-compose exec container-name crontab -l
-
-

This returned the following output:

-
no crontab for root
-
-

Now, it is not necessarily a problem to have non-root cron jobs, but just make absolutely certain that you are creating the jobs with the user you expect. For me, I wanted to run as root, so I added to following line to my docker-compose.yml:

-
user: root
-
-

Now, the root user will be used when building your Docker image and the created crontab will be where you expect.

- -

2. Missing dependencies

-

When cron calls your Python script, you may run into issues with ModuleNotFoundError or ImportError, where Python cannot find your installed packages. This is because cron does not have access to your system environment variables, including the Python path. You can resolve most of these errors with imports by adding the PYTHONPATH environment variable to your crontab. This should be the path to your site-packages folder, something like this:

-
PYTHONPATH=/usr/bin/local/python3
-
-

You may also need to add a shebang (#!) to your Python script to direct cron to the correct version. You can find the Python location with one of the following commands:

-
which python
-which py
-which python3
-
-

NOTE: These commands must be performed in your Docker container when it is up and running. In docker-compose syntax this would be the following (with the name of your container instead of container-name):

-
docker-compose exec container-name which python3
-
-

You can then add this to the top of your Python script, as follows:

-
#!/usr/bin/local/python3
-
-

3. Still missing dependencies

-

Some modules will still run into errors even when the PYTHONPATH variable has been set. In particular, I ran into problems with reportlab and Pillow/PIL:

-
ImportError: cannot import name '_imaging' from 'PIL'
-
-

This was solved by adding the system PATH to the crontab as well. The system path is included in the default crontab that is created when you first run crontab -e:

-
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
-
-

Therefore, it is a good idea to include it if you are making a new crontab to make sure cron can find everything it needs to.

- -

4. Check relative paths in Python

-

By default, cron runs from the default root path. Therefore, both your call to Python in your crontab and the filepaths within Python should either be relative to root (i.e /main.py rather than main.py) or just use full paths instead.

- - -

This error is related to Python inside a Docker container rather than cron. However, someone might still find it useful. When you install your requirements.txt, you may encounter errors such as

-
legacy-install-failure
-error: command '/usr/bin/gcc' failed with exit code 1
-fatal error: Python.h: No such file or directory
-
-

I was able to resolve these by adding python3-dev, wheel and Cmake to my requirements.txt. These are sometimes required when packages include other binaries or need to compile other code when installed.

- -

6. Other useful tips

-
    -
  • crontab.guru is a great resource for checking cron syntax
  • -
  • Installing vim/nano in your Docker container to make the debugging stage easier. This is especially useful for changing your crontab to run much more frequently, or adding debugging messages etc., when the container is up.
  • -
- -

I hope this helped you resolve some errors! I’ve included my Dockerfile, docker-compose.yml and crontab below if you want to set up a similar project or adjust your own files. The full repo is also available here.

- -

Dockerfile:

-
FROM python:3
-
-COPY . .
-RUN python3.11 -m pip install --no-cache-dir -r requirements.txt
-
-RUN touch /var/log/cron.log
-
-RUN apt-get update \  
-&& apt-get install cron -y
-
-RUN chmod +x main.py
-
-RUN crontab crontab 
-
-CMD cron -f
-
-

docker-compose.yml:

-
version: "2.4"
-
-services:
-  watchman:
-    platform: "linux/arm64/v8"
-    image: watchman:latest
-    container_name: watchman
-    restart: always
-    user: root
-    build:
-      context: build
-      dockerfile: Dockerfile
-
-

crontab:

-
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
-PYTHONPATH=/usr/bin/local/python3
-15 7 * * * python3 /main.py >> /var/log/cron.log 2>&1
-
-
]]>
Andrew Conlin
Fixing php errors in a Nextcloud docker-compose configuration2023-03-01T00:00:00+00:002023-03-01T00:00:00+00:00http://localhost:4000/til/nextcloud-php-errorsI was trying to rescan the files in my Nextcloud server (running on Raspberry Pi 4 with DietPi), and kept running into some weird php errors.

- -

First error - “could not find driver”

- -

I was trying using the following syntax to call occ and scan the files:

- -
sudo -u www-data php /path/to/nextcloud/occ files:scan --all
-
- -

but I kept running into a PHP error. Specifically this error:

- -
Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: could not find driver in /path/to/nextcloud/lib/private/DB/Connection.php:139
-
- -

followed by a long, verbose stack trace.

- -

It took me a decent amount of time to diagnose the exact issue, but eventually I found this list of required PHP modules in the Nextcloud admin manual.

- -

Running php -m will print out the list of currently installed PHP modules. I noticed I was missing quite a few of the required modules, but the one that was causing my issue was the missing pdo_mysql module. -This can be installed by running:

- -
sudo apt-get install php7.4-mysql
-
-

Note: This command will change based on your OS, PHP version and database type

- -

This resolved the error! However (as is always the case), this only meant I got a shiny new error instead:

- -

Second error - “Name or service not known”

- -
Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known in /path/to/nextcloud/lib/private/DB/Connection.php:139
-
- -

From first glance, this looks like something wrong in the DNS name resolution. This sent me a long way down the wrong path, changing a whole bunch of things in my docker-compose.yml file. -Eventually however, after a long and perilous journey over the high seas of Nextcloud forums and StackOverflow, I found this example of running php occ in a docker-compose configuration. -This led me to running this command:

- -
docker-compose exec -u www-data nextcloud-app php occ files:scan --all
-
-

Note: replace nextcloud-app with the name of your Nextcloud container. Also, this command must be run from the directory of your Nextcloud docker-compose.yml

- -

….aaaaaand, voila! The command runs, the files are scanned and everything is up to date.

- -

terminal output showing the files that have been successfully been scanned

]]>
Andrew Conlin
\ No newline at end of file diff --git a/_site/index.html b/_site/index.html deleted file mode 100644 index 03136f5..0000000 --- a/_site/index.html +++ /dev/null @@ -1,184 +0,0 @@ - - - - - - - - - andrew conlin - - - - - - -
-
-
- -
- - -
-

- latest posts -

-

- all the posts, in reverse chronological. there is an atom feed above. -

-
-
    - - - -
  • -

    Links aren't performances

    -
    -  29 Apr 2023 -
    - “For starters, it finds that publishing a link can be a “performance” of a copyrighted work, which meant that when Linkletter linked to the world-viewable Youtube files that Proctorio had... -
    -
    -
  • - - - - - - - -
  • -

    A measure of how easily thoughts can be translated to action

    -
    -  10 Mar 2023 -
    - Recently, I’ve been using multiple different languages and frameworks (both at work and personally) and I’ve been thinking about why I prefer some over others. Ultimately, I think it comes... -
    -
    -
  • - - - - -
  • -

    Yuri Felsen on love

    -
    -  05 Mar 2023 -
    - “Like everyone, I have my own, maybe obsessive futile, maybe in some way authentic, vision: all of a sudden, I will imagine the entire homogenous world as it is revealed... -
    -
    -
  • - - - - - - - -
  • -

    Musings on the power of cinema

    -
    -  14 Jan 2023 -
    - I’ve realised that going to the cinema makes me sad; a quiet, contemplative melancholy. Ennui. No matter the film, something about the cinema experience is meditative for me. I always... -
    -
    -
  • - - -
-
-
-
-
- - - - \ No newline at end of file diff --git a/_site/index_old/index.html b/_site/index_old/index.html deleted file mode 100644 index 6ae3436..0000000 --- a/_site/index_old/index.html +++ /dev/null @@ -1,137 +0,0 @@ - - - - - - - - - andrew conlin - - - - - - -
-
-
- -
- - -
-

- about me -

-

- -

-
- -
-Hi! My name is Andrew Conlin. I am a software engineer and photographer, currently based in Cambridge, England. -
-
-My main hobbies are film photography and running. I love watching movies, especially in the cinema. I love post-punk, dreampop and experimental hip hop. I love drinking good coffee, good beer and good whisky. I am also a passionate self-hoster, and like to think that I'm at least somewhat privacy conscious. -
-
-I mainly use this site as a space for my blog, where I post interesting things I've found, and some of my (not so interesting) thoughts. Inspired by Simon Willison, I also post my TIL series here. Any time I run into a weird error while programming, I post the full error message and the fix that I found, to hopefully help someone down the line. -
-
-

contact

-
-You can email me, or use any of the socials in the nav menu. -
-
-
-
- - - - \ No newline at end of file diff --git a/_site/robots.txt b/_site/robots.txt deleted file mode 100644 index d297064..0000000 --- a/_site/robots.txt +++ /dev/null @@ -1 +0,0 @@ -Sitemap: http://localhost:4000/sitemap.xml diff --git a/_site/sitemap.xml b/_site/sitemap.xml deleted file mode 100644 index 11c4da9..0000000 --- a/_site/sitemap.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - -http://localhost:4000/blog/2023/01/14/musings-on-the-cinema/ -2023-01-14T00:00:00+00:00 - - -http://localhost:4000/til/nextcloud-php-errors/ -2023-03-01T00:00:00+00:00 - - -http://localhost:4000/blog/2023/03/05/yuri-felsen-on-love/ -2023-03-05T00:00:00+00:00 - - -http://localhost:4000/blog/2023/03/10/putting-thoughts-into-action/ -2023-03-10T00:00:00+00:00 - - -http://localhost:4000/til/running-python-in-cron-in-docker/ -2023-04-19T00:00:00+01:00 - - -http://localhost:4000/blog/2023/04/29/links-arent-performances/ -2023-04-29T00:00:00+01:00 - - -http://localhost:4000/ - - -http://localhost:4000/index_old/ - - -http://localhost:4000/til/ - - diff --git a/_site/til/index.html b/_site/til/index.html deleted file mode 100644 index aa40a4a..0000000 --- a/_site/til/index.html +++ /dev/null @@ -1,164 +0,0 @@ - - - - - - - - - andrew conlin - - - - - - -
-
-
- -
- - -
-

- latest tils -

-

- my collection of tils (today-i-learned). i use this mainly to collect solutions to weird errors i have faced, and detail the little projects that i work on. this has its own atom feed (above) as they are typically very different from my other posts. all tils are blog posts but not all blog posts are tils. -

-
- -
-
-
-
- - - - \ No newline at end of file diff --git a/_site/til/nextcloud-php-errors/index.html b/_site/til/nextcloud-php-errors/index.html deleted file mode 100644 index df4947f..0000000 --- a/_site/til/nextcloud-php-errors/index.html +++ /dev/null @@ -1,174 +0,0 @@ - - - - - - - - - andrew conlin - - - - - - -
-
-
- -
- - -
-

- Fixing php errors in a Nextcloud docker-compose configuration -

-

- -

-

-  01 Mar 2023 -   -  2 minutes -

-
- -

I was trying to rescan the files in my Nextcloud server (running on Raspberry Pi 4 with DietPi), and kept running into some weird php errors.

- -

First error - “could not find driver”

- -

I was trying using the following syntax to call occ and scan the files:

- -
sudo -u www-data php /path/to/nextcloud/occ files:scan --all
-
- -

but I kept running into a PHP error. Specifically this error:

- -
Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: could not find driver in /path/to/nextcloud/lib/private/DB/Connection.php:139
-
- -

followed by a long, verbose stack trace.

- -

It took me a decent amount of time to diagnose the exact issue, but eventually I found this list of required PHP modules in the Nextcloud admin manual.

- -

Running php -m will print out the list of currently installed PHP modules. I noticed I was missing quite a few of the required modules, but the one that was causing my issue was the missing pdo_mysql module. -This can be installed by running:

- -
sudo apt-get install php7.4-mysql
-
-

Note: This command will change based on your OS, PHP version and database type

- -

This resolved the error! However (as is always the case), this only meant I got a shiny new error instead:

- -

Second error - “Name or service not known”

- -
Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known in /path/to/nextcloud/lib/private/DB/Connection.php:139
-
- -

From first glance, this looks like something wrong in the DNS name resolution. This sent me a long way down the wrong path, changing a whole bunch of things in my docker-compose.yml file. -Eventually however, after a long and perilous journey over the high seas of Nextcloud forums and StackOverflow, I found this example of running php occ in a docker-compose configuration. -This led me to running this command:

- -
docker-compose exec -u www-data nextcloud-app php occ files:scan --all
-
-

Note: replace nextcloud-app with the name of your Nextcloud container. Also, this command must be run from the directory of your Nextcloud docker-compose.yml

- -

….aaaaaand, voila! The command runs, the files are scanned and everything is up to date.

- -

terminal output showing the files that have been successfully been scanned

- - -
-
-
-
- - - - \ No newline at end of file diff --git a/_site/til/running-python-in-cron-in-docker/index.html b/_site/til/running-python-in-cron-in-docker/index.html deleted file mode 100644 index 02d0653..0000000 --- a/_site/til/running-python-in-cron-in-docker/index.html +++ /dev/null @@ -1,228 +0,0 @@ - - - - - - - - - andrew conlin - - - - - - -
-
-
- -
- - -
-

- Running a Python script periodically in a Docker container using cron -

-

- -

-

-  19 Apr 2023 -   -  3 minutes -

-
- -

Recently, my partner gave a great idea for utilising my old Kindle: generate a “newspaper” each morning from a bunch of RSS feeds, and email it to the Kindle using “Send-to-Kindle” feature (a blog post about this project is in the works).

- -

I loved this idea, and thought it would be no problem to get a Python script up and running periodically on my Raspberry Pi home server using cron. However, I ran into various issues along the way (some of which were not so easy to resolve), so I’m collating all the configuration changes I made in the hopes that it will be useful to someone one day. You can find the full repo for this project here, and I have also included my Dockerfile, docker-compose.yml and crontab at the end of this TIL.

- -

1. Double check the user

- -

A lot of problems with cron come down to user privileges. Each user has their own crontab, and then there is the system-wide root crontab. The first issue I ran into with creating a cron job inside a container was that Docker created the crontab as a non-root user. This issue presented itself to me when I tried to run the following command, to list the current cronjobs in the Docker container:

-
docker-compose exec container-name crontab -l
-
-

This returned the following output:

-
no crontab for root
-
-

Now, it is not necessarily a problem to have non-root cron jobs, but just make absolutely certain that you are creating the jobs with the user you expect. For me, I wanted to run as root, so I added to following line to my docker-compose.yml:

-
user: root
-
-

Now, the root user will be used when building your Docker image and the created crontab will be where you expect.

- -

2. Missing dependencies

-

When cron calls your Python script, you may run into issues with ModuleNotFoundError or ImportError, where Python cannot find your installed packages. This is because cron does not have access to your system environment variables, including the Python path. You can resolve most of these errors with imports by adding the PYTHONPATH environment variable to your crontab. This should be the path to your site-packages folder, something like this:

-
PYTHONPATH=/usr/bin/local/python3
-
-

You may also need to add a shebang (#!) to your Python script to direct cron to the correct version. You can find the Python location with one of the following commands:

-
which python
-which py
-which python3
-
-

NOTE: These commands must be performed in your Docker container when it is up and running. In docker-compose syntax this would be the following (with the name of your container instead of container-name):

-
docker-compose exec container-name which python3
-
-

You can then add this to the top of your Python script, as follows:

-
#!/usr/bin/local/python3
-
-

3. Still missing dependencies

-

Some modules will still run into errors even when the PYTHONPATH variable has been set. In particular, I ran into problems with reportlab and Pillow/PIL:

-
ImportError: cannot import name '_imaging' from 'PIL'
-
-

This was solved by adding the system PATH to the crontab as well. The system path is included in the default crontab that is created when you first run crontab -e:

-
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
-
-

Therefore, it is a good idea to include it if you are making a new crontab to make sure cron can find everything it needs to.

- -

4. Check relative paths in Python

-

By default, cron runs from the default root path. Therefore, both your call to Python in your crontab and the filepaths within Python should either be relative to root (i.e /main.py rather than main.py) or just use full paths instead.

- - -

This error is related to Python inside a Docker container rather than cron. However, someone might still find it useful. When you install your requirements.txt, you may encounter errors such as

-
legacy-install-failure
-error: command '/usr/bin/gcc' failed with exit code 1
-fatal error: Python.h: No such file or directory
-
-

I was able to resolve these by adding python3-dev, wheel and Cmake to my requirements.txt. These are sometimes required when packages include other binaries or need to compile other code when installed.

- -

6. Other useful tips

-
    -
  • crontab.guru is a great resource for checking cron syntax
  • -
  • Installing vim/nano in your Docker container to make the debugging stage easier. This is especially useful for changing your crontab to run much more frequently, or adding debugging messages etc., when the container is up.
  • -
- -

I hope this helped you resolve some errors! I’ve included my Dockerfile, docker-compose.yml and crontab below if you want to set up a similar project or adjust your own files. The full repo is also available here.

- -

Dockerfile:

-
FROM python:3
-
-COPY . .
-RUN python3.11 -m pip install --no-cache-dir -r requirements.txt
-
-RUN touch /var/log/cron.log
-
-RUN apt-get update \  
-&& apt-get install cron -y
-
-RUN chmod +x main.py
-
-RUN crontab crontab 
-
-CMD cron -f
-
-

docker-compose.yml:

-
version: "2.4"
-
-services:
-  watchman:
-    platform: "linux/arm64/v8"
-    image: watchman:latest
-    container_name: watchman
-    restart: always
-    user: root
-    build:
-      context: build
-      dockerfile: Dockerfile
-
-

crontab:

-
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
-PYTHONPATH=/usr/bin/local/python3
-15 7 * * * python3 /main.py >> /var/log/cron.log 2>&1
-
-
- - -
-
-
-
- - - - \ No newline at end of file diff --git a/assets/css/default.css b/assets/css/default.css index 779ccfd..0ced608 100644 --- a/assets/css/default.css +++ b/assets/css/default.css @@ -1,96 +1,32 @@ -@font-face { - font-family: "Geist"; - src: - local("Geist"), - url("../fonts/Geist/Geist-Regular.otf") format("opentype"), - url("../fonts/Geist/Geist-Regular.woff2") format("woff"); - } - -@font-face { - font-family: "Geist Bold"; - src: - local("Geist"), - url("../fonts/Geist/Geist-Bold.otf") format("opentype"), - url("../fonts/Geist/Geist-Bold.otf") format("woff"); - } - -@font-face { - font-family: "Geist Mono"; - src: - local("Geist"), - url("../fonts/Geist\ Mono/GeistMono-Regular.otf") format("opentype"), - url("../fonts/Geist\ Mono/GeistMono-Regular.woff2") format("woff"); - } - -b { - font-family: "Geist Bold"; +body { + font-family: Arial, Helvetica, sans-serif; } -hr { - border: none; - height: 3px; - background-color: #282828; - opacity: 100%; -} - -hr.menu { - display: none; -} - -@media (max-width: 768px) { - hr.menu { - display: block; - } +div.container { + margin: 0 auto; } div.content { + width: 40%; + height: auto; + margin: 0 auto; position: relative; - top: 90px; } -@media (max-width: 768px) { +@media screen and (max-width: 1080px) { div.content { - top: 20px; + width: 70%; + height: auto; + margin: 0 auto; + position: relative; } } -a { - color: gold; -} - -body { - background-color: black; - color: white; - font-family: "Geist"; - min-height: 100vh; -} - -code { - color: gold; - font-family: "Geist Mono"; -} - -pre { - color: gold; - background-color: #282828; - padding: 10px 10px 10px 10px; - border-radius: 10px; - white-space: pre-wrap; -} - -img.letterboxd { - display: inline-block; - width:20px; - margin-bottom: 5px; -} - -@media (max-width: 768px) { -img.letterboxd { - margin-left: 0; -} -} - -::selection { - background-color: gold; - color: black; -} +@media screen and (max-width: 768px) { + div.content { + width: 100%; + height: auto; + margin: 0 auto; + position: relative; + } +} \ No newline at end of file diff --git a/assets/fonts/Geist Mono/GeistMono-Black.otf b/assets/fonts/Geist Mono/GeistMono-Black.otf deleted file mode 100644 index 20883e9..0000000 Binary files a/assets/fonts/Geist Mono/GeistMono-Black.otf and /dev/null differ diff --git a/assets/fonts/Geist Mono/GeistMono-Black.woff2 b/assets/fonts/Geist Mono/GeistMono-Black.woff2 deleted file mode 100644 index f52d77c..0000000 Binary files a/assets/fonts/Geist Mono/GeistMono-Black.woff2 and /dev/null differ diff --git a/assets/fonts/Geist Mono/GeistMono-Bold.otf b/assets/fonts/Geist Mono/GeistMono-Bold.otf deleted file mode 100644 index 7b51786..0000000 Binary files a/assets/fonts/Geist Mono/GeistMono-Bold.otf and /dev/null differ diff --git a/assets/fonts/Geist Mono/GeistMono-Bold.woff2 b/assets/fonts/Geist Mono/GeistMono-Bold.woff2 deleted file mode 100644 index a03e09d..0000000 Binary files a/assets/fonts/Geist Mono/GeistMono-Bold.woff2 and /dev/null differ diff --git a/assets/fonts/Geist Mono/GeistMono-Light.otf b/assets/fonts/Geist Mono/GeistMono-Light.otf deleted file mode 100644 index 65d5d5e..0000000 Binary files a/assets/fonts/Geist Mono/GeistMono-Light.otf and /dev/null differ diff --git a/assets/fonts/Geist Mono/GeistMono-Light.woff2 b/assets/fonts/Geist Mono/GeistMono-Light.woff2 deleted file mode 100644 index 9119439..0000000 Binary files a/assets/fonts/Geist Mono/GeistMono-Light.woff2 and /dev/null differ diff --git a/assets/fonts/Geist Mono/GeistMono-Medium.otf b/assets/fonts/Geist Mono/GeistMono-Medium.otf deleted file mode 100644 index ff2d66f..0000000 Binary files a/assets/fonts/Geist Mono/GeistMono-Medium.otf and /dev/null differ diff --git a/assets/fonts/Geist Mono/GeistMono-Medium.woff2 b/assets/fonts/Geist Mono/GeistMono-Medium.woff2 deleted file mode 100644 index e6cfdbb..0000000 Binary files a/assets/fonts/Geist Mono/GeistMono-Medium.woff2 and /dev/null differ diff --git a/assets/fonts/Geist Mono/GeistMono-Regular.otf b/assets/fonts/Geist Mono/GeistMono-Regular.otf deleted file mode 100644 index 436f40d..0000000 Binary files a/assets/fonts/Geist Mono/GeistMono-Regular.otf and /dev/null differ diff --git a/assets/fonts/Geist Mono/GeistMono-Regular.woff2 b/assets/fonts/Geist Mono/GeistMono-Regular.woff2 deleted file mode 100644 index 281680e..0000000 Binary files a/assets/fonts/Geist Mono/GeistMono-Regular.woff2 and /dev/null differ diff --git a/assets/fonts/Geist Mono/GeistMono-SemiBold.otf b/assets/fonts/Geist Mono/GeistMono-SemiBold.otf deleted file mode 100644 index 0038d7f..0000000 Binary files a/assets/fonts/Geist Mono/GeistMono-SemiBold.otf and /dev/null differ diff --git a/assets/fonts/Geist Mono/GeistMono-SemiBold.woff2 b/assets/fonts/Geist Mono/GeistMono-SemiBold.woff2 deleted file mode 100644 index 014314e..0000000 Binary files a/assets/fonts/Geist Mono/GeistMono-SemiBold.woff2 and /dev/null differ diff --git a/assets/fonts/Geist Mono/GeistMono-Thin.otf b/assets/fonts/Geist Mono/GeistMono-Thin.otf deleted file mode 100644 index 5bb7067..0000000 Binary files a/assets/fonts/Geist Mono/GeistMono-Thin.otf and /dev/null differ diff --git a/assets/fonts/Geist Mono/GeistMono-Thin.woff2 b/assets/fonts/Geist Mono/GeistMono-Thin.woff2 deleted file mode 100644 index eae85ac..0000000 Binary files a/assets/fonts/Geist Mono/GeistMono-Thin.woff2 and /dev/null differ diff --git a/assets/fonts/Geist Mono/GeistMono-UltraBlack.otf b/assets/fonts/Geist Mono/GeistMono-UltraBlack.otf deleted file mode 100644 index ca5f3bd..0000000 Binary files a/assets/fonts/Geist Mono/GeistMono-UltraBlack.otf and /dev/null differ diff --git a/assets/fonts/Geist Mono/GeistMono-UltraBlack.woff2 b/assets/fonts/Geist Mono/GeistMono-UltraBlack.woff2 deleted file mode 100644 index e85a56c..0000000 Binary files a/assets/fonts/Geist Mono/GeistMono-UltraBlack.woff2 and /dev/null differ diff --git a/assets/fonts/Geist Mono/GeistMono-UltraLight.otf b/assets/fonts/Geist Mono/GeistMono-UltraLight.otf deleted file mode 100644 index 342ae36..0000000 Binary files a/assets/fonts/Geist Mono/GeistMono-UltraLight.otf and /dev/null differ diff --git a/assets/fonts/Geist Mono/GeistMono-UltraLight.woff2 b/assets/fonts/Geist Mono/GeistMono-UltraLight.woff2 deleted file mode 100644 index 9a4f776..0000000 Binary files a/assets/fonts/Geist Mono/GeistMono-UltraLight.woff2 and /dev/null differ diff --git a/assets/fonts/Geist Mono/GeistMonoVF.ttf b/assets/fonts/Geist Mono/GeistMonoVF.ttf deleted file mode 100644 index d7144c5..0000000 Binary files a/assets/fonts/Geist Mono/GeistMonoVF.ttf and /dev/null differ diff --git a/assets/fonts/Geist Mono/GeistMonoVF.woff2 b/assets/fonts/Geist Mono/GeistMonoVF.woff2 deleted file mode 100644 index a7e8bf4..0000000 Binary files a/assets/fonts/Geist Mono/GeistMonoVF.woff2 and /dev/null differ diff --git a/assets/fonts/Geist/Geist-Black.otf b/assets/fonts/Geist/Geist-Black.otf deleted file mode 100644 index 4b7ad2d..0000000 Binary files a/assets/fonts/Geist/Geist-Black.otf and /dev/null differ diff --git a/assets/fonts/Geist/Geist-Black.woff2 b/assets/fonts/Geist/Geist-Black.woff2 deleted file mode 100644 index d611ec8..0000000 Binary files a/assets/fonts/Geist/Geist-Black.woff2 and /dev/null differ diff --git a/assets/fonts/Geist/Geist-Bold.otf b/assets/fonts/Geist/Geist-Bold.otf deleted file mode 100644 index 7fa041d..0000000 Binary files a/assets/fonts/Geist/Geist-Bold.otf and /dev/null differ diff --git a/assets/fonts/Geist/Geist-Bold.woff2 b/assets/fonts/Geist/Geist-Bold.woff2 deleted file mode 100644 index e81a1dc..0000000 Binary files a/assets/fonts/Geist/Geist-Bold.woff2 and /dev/null differ diff --git a/assets/fonts/Geist/Geist-Light.otf b/assets/fonts/Geist/Geist-Light.otf deleted file mode 100644 index c20cf24..0000000 Binary files a/assets/fonts/Geist/Geist-Light.otf and /dev/null differ diff --git a/assets/fonts/Geist/Geist-Light.woff2 b/assets/fonts/Geist/Geist-Light.woff2 deleted file mode 100644 index 915672a..0000000 Binary files a/assets/fonts/Geist/Geist-Light.woff2 and /dev/null differ diff --git a/assets/fonts/Geist/Geist-Medium.otf b/assets/fonts/Geist/Geist-Medium.otf deleted file mode 100644 index 7bcc6c2..0000000 Binary files a/assets/fonts/Geist/Geist-Medium.otf and /dev/null differ diff --git a/assets/fonts/Geist/Geist-Medium.woff2 b/assets/fonts/Geist/Geist-Medium.woff2 deleted file mode 100644 index 2063398..0000000 Binary files a/assets/fonts/Geist/Geist-Medium.woff2 and /dev/null differ diff --git a/assets/fonts/Geist/Geist-Regular.otf b/assets/fonts/Geist/Geist-Regular.otf deleted file mode 100644 index bb41355..0000000 Binary files a/assets/fonts/Geist/Geist-Regular.otf and /dev/null differ diff --git a/assets/fonts/Geist/Geist-Regular.woff2 b/assets/fonts/Geist/Geist-Regular.woff2 deleted file mode 100644 index d8f99f2..0000000 Binary files a/assets/fonts/Geist/Geist-Regular.woff2 and /dev/null differ diff --git a/assets/fonts/Geist/Geist-SemiBold.otf b/assets/fonts/Geist/Geist-SemiBold.otf deleted file mode 100644 index 2b98bca..0000000 Binary files a/assets/fonts/Geist/Geist-SemiBold.otf and /dev/null differ diff --git a/assets/fonts/Geist/Geist-SemiBold.woff2 b/assets/fonts/Geist/Geist-SemiBold.woff2 deleted file mode 100644 index d4e88fd..0000000 Binary files a/assets/fonts/Geist/Geist-SemiBold.woff2 and /dev/null differ diff --git a/assets/fonts/Geist/Geist-Thin.otf b/assets/fonts/Geist/Geist-Thin.otf deleted file mode 100644 index 199232b..0000000 Binary files a/assets/fonts/Geist/Geist-Thin.otf and /dev/null differ diff --git a/assets/fonts/Geist/Geist-Thin.woff2 b/assets/fonts/Geist/Geist-Thin.woff2 deleted file mode 100644 index 1965d47..0000000 Binary files a/assets/fonts/Geist/Geist-Thin.woff2 and /dev/null differ diff --git a/assets/fonts/Geist/Geist-UltraBlack.otf b/assets/fonts/Geist/Geist-UltraBlack.otf deleted file mode 100644 index 5c8aa1d..0000000 Binary files a/assets/fonts/Geist/Geist-UltraBlack.otf and /dev/null differ diff --git a/assets/fonts/Geist/Geist-UltraBlack.woff2 b/assets/fonts/Geist/Geist-UltraBlack.woff2 deleted file mode 100644 index 8583efd..0000000 Binary files a/assets/fonts/Geist/Geist-UltraBlack.woff2 and /dev/null differ diff --git a/assets/fonts/Geist/Geist-UltraLight.otf b/assets/fonts/Geist/Geist-UltraLight.otf deleted file mode 100644 index 5fd93cc..0000000 Binary files a/assets/fonts/Geist/Geist-UltraLight.otf and /dev/null differ diff --git a/assets/fonts/Geist/Geist-UltraLight.woff2 b/assets/fonts/Geist/Geist-UltraLight.woff2 deleted file mode 100644 index 0406967..0000000 Binary files a/assets/fonts/Geist/Geist-UltraLight.woff2 and /dev/null differ diff --git a/assets/fonts/Geist/GeistVF.ttf b/assets/fonts/Geist/GeistVF.ttf deleted file mode 100644 index f3d2f1d..0000000 Binary files a/assets/fonts/Geist/GeistVF.ttf and /dev/null differ diff --git a/assets/fonts/Geist/GeistVF.woff2 b/assets/fonts/Geist/GeistVF.woff2 deleted file mode 100644 index 989f185..0000000 Binary files a/assets/fonts/Geist/GeistVF.woff2 and /dev/null differ diff --git a/assets/images/alarm.ico b/assets/images/alarm.ico deleted file mode 100644 index 936d524..0000000 Binary files a/assets/images/alarm.ico and /dev/null differ diff --git a/assets/images/book.ico b/assets/images/book.ico deleted file mode 100644 index b430c63..0000000 Binary files a/assets/images/book.ico and /dev/null differ diff --git a/assets/images/computer.ico b/assets/images/computer.ico deleted file mode 100644 index c98c668..0000000 Binary files a/assets/images/computer.ico and /dev/null differ diff --git a/assets/images/desktop.ico b/assets/images/desktop.ico deleted file mode 100644 index 2407e6e..0000000 Binary files a/assets/images/desktop.ico and /dev/null differ diff --git a/assets/images/film.ico b/assets/images/film.ico deleted file mode 100644 index 0bcc525..0000000 Binary files a/assets/images/film.ico and /dev/null differ diff --git a/assets/images/globe.ico b/assets/images/globe.ico deleted file mode 100644 index 49e7adb..0000000 Binary files a/assets/images/globe.ico and /dev/null differ diff --git a/assets/images/letterboxd.png b/assets/images/letterboxd.png deleted file mode 100644 index e4c4ff6..0000000 Binary files a/assets/images/letterboxd.png and /dev/null differ diff --git a/assets/images/me-square.jpg b/assets/images/me-square.jpg deleted file mode 100644 index a204d6d..0000000 Binary files a/assets/images/me-square.jpg and /dev/null differ diff --git a/assets/images/me.jpg b/assets/images/me.jpg deleted file mode 100644 index 16f6b4e..0000000 Binary files a/assets/images/me.jpg and /dev/null differ diff --git a/assets/images/occ.png b/assets/images/occ.png deleted file mode 100644 index 54d8a7c..0000000 Binary files a/assets/images/occ.png and /dev/null differ diff --git a/assets/images/og-image-template.jpg b/assets/images/og-image-template.jpg deleted file mode 100644 index 9848e23..0000000 Binary files a/assets/images/og-image-template.jpg and /dev/null differ diff --git a/assets/images/write.ico b/assets/images/write.ico deleted file mode 100644 index ef88e53..0000000 Binary files a/assets/images/write.ico and /dev/null differ diff --git a/index.html b/index.html index 96d0a38..92e4526 100644 --- a/index.html +++ b/index.html @@ -1,24 +1,28 @@ --- layout: default -title: latest posts -subtitle: all the posts, in reverse chronological. there is an atom feed above. +title: Andrew Conlin's blog permalink: / +backlink: false --- +This site is designed to be kept as simple as possible.
+It is pure HTML/CSS [*], which keeps things small, fast and accessible.
+* I use a self-hosted instance of umami for analytics. It respects do-not-track signals.
+--
+email: andrew@andrewconl.in
+masto: andrwcnln@mastodon.scot
+github: @andrwcnln
+--
+til · rss +

    {% for post in site.posts %} {% assign category = post.category %} {% if category == 'blog' %}
  • -

    {{ post.title }}

    -
    -  {{ post.date | date_to_string }} -
    - {{ post.content | strip_html | truncatewords: 30 }} -
    -
    +

    {{ post.title }} -- {{ post.date | date_to_string }}

  • {% endif %} {% endfor %} diff --git a/index_old.html b/index_old.html deleted file mode 100644 index 0164acd..0000000 --- a/index_old.html +++ /dev/null @@ -1,20 +0,0 @@ ---- -layout: default -title: about me ---- - -
    - -
    -Hi! My name is Andrew Conlin. I am a software engineer and photographer, currently based in Cambridge, England. -
    -
    -My main hobbies are film photography and running. I love watching movies, especially in the cinema. I love post-punk, dreampop and experimental hip hop. I love drinking good coffee, good beer and good whisky. I am also a passionate self-hoster, and like to think that I'm at least somewhat privacy conscious. -
    -
    -I mainly use this site as a space for my blog, where I post interesting things I've found, and some of my (not so interesting) thoughts. Inspired by Simon Willison, I also post my TIL series here. Any time I run into a weird error while programming, I post the full error message and the fix that I found, to hopefully help someone down the line. -
    -
    -

    contact

    -
    -You can email me, or use any of the socials in the nav menu. \ No newline at end of file diff --git a/misc.html b/misc.html new file mode 100644 index 0000000..df6212f --- /dev/null +++ b/misc.html @@ -0,0 +1,5 @@ +--- +layout: default +title: Miscellaneous +backlink: true +--- \ No newline at end of file diff --git a/til.html b/til.html index a0f61b7..21177fe 100644 --- a/til.html +++ b/til.html @@ -1,24 +1,21 @@ --- layout: default -title: latest tils -subtitle: my collection of tils (today-i-learned). i use this mainly to collect solutions to weird errors i have faced, and detail the little projects that i work on. this has its own atom feed (above) as they are typically very different from my other posts. all tils are blog posts but not all blog posts are tils. +title: TILs permalink: /til/ +backlink: true --- - +My collection of TILs (Today-I-Learned). I use this mainly to collect solutions to weird errors I have faced, and detail the little projects that I work on. This has its own atom feed (above) as they are typically very different from my other posts. All TILs are blog posts but not all blog posts are TILs.
    +--
    +rss
    +

      {% for post in site.posts %} {% assign category = post.category %} {% if category == 'til' %}
    • -

      {{ post.title }}

      -
      -  {{ post.date | date_to_string }} -
      - {{ post.content | strip_html | truncatewords: 30 }} -
      -
      +

      {{ post.title }} -- {{ post.date | date_to_string }}

    • {% endif %} {% endfor %}