about summary refs log tree commit diff
path: root/blog
AgeCommit message (Collapse)AuthorFilesLines
2020-03-17 Scatter blog post ideas for "Let's Learn Nix"William Carroll3-0/+211
I may not use any of these. I'm just scrawling notes as blog posts to see if anything sticks.
2020-03-16 Work on "Let's Learn Nix: Dotfiles" blog postWilliam Carroll1-2/+394
It has been awhile since I have written a tutorial. I have spent 2-3 hours working on this post, but I think I need to spend another 2-3 hours before I publish it. I expect to be able to write these posts faster as I practice. I would like to create a few resources that I can reuse in each article for things like: - "Let's Learn Nix" reproducibility: Where I list all of the tutorials' dependencies: nix version, <nixpkgs> version, OS type and version, etc. - Haskell type signature convention for Nix - Ad hoc vs. declarative configuration for Nix - Troubleshooting Nix: <nixpkgs> search, nix repl, searching the Nix codebase
2020-03-13 Remove UK qualifier to LondonWilliam Carroll1-2/+2
Vincent tells me that saying "London, UK" is a very *American* thing to do. I think that is his polite way of telling me that it's naive.
2020-03-13 Fix broken link to @tazjin's TwitterWilliam Carroll1-1/+1
Link to @tazjin's Twitter instead of @dmjio's Twitter.
2020-03-13 Init the "Let's Learn Nix" blog seriesWilliam Carroll2-0/+67
I'm creating a short blog series to help newcomers learn Nix.
2020-03-11 Remove the "Professional Emacs" blog postWilliam Carroll1-14/+0
I don't intend to finish this blog post and since my blog is live, I'd rather not show it on the internet.
2020-03-11 Add drafts for future blog postsWilliam Carroll3-0/+16
- caffeine.md: an explanation of my theory that caffeine antagonizes mindfulness. - nix-and-hugo.md: a short tutorial explaining how I use Nix, the package manager and Hugo, the static site generator, to host my blog. - self-hosting.md: explain how I installed NixOS on my used Acer laptop.
2020-03-10 Ad Google AdSense script to blog.wpcarro.devWilliam Carroll1-0/+1
I'm adding Google Ads to my blog to: - learn more about Google AdSense - attempt to offset the my advertising costs for learn.wpcarro.dev I may need to surround the <script></script> tags with markup to positions the ads optimally. I will publish this first, see what it looks like without any markup, and then progress.
2020-03-10 Lint hugo Tailwind themeWilliam Carroll1-3/+3
My Emacs automatically trims trailing whitespace when I save a buffer. As a result, this diff appears whenever I edit the baseof.html file. Instead of continuing to ignore the diff, I'm committing it.
2020-03-10 Draft blog post about March's cell phone challengeWilliam Carroll1-0/+92
Started working on my debut blog post about giving up my cell phone during march. I'd like to publish this post by the end of the month, once I conclude the experiment. At that time, I'd like to change the voice of some the content to be past test. For now, I'm dumping ideas here while they're fresh in my mind. I will refine and prune the final post later.
2020-03-10 Initialize //blog with lorriWilliam Carroll2-0/+10
To create new posts, I run... ```shell hugo new name-of-post.md ``` While writing posts, I run... ```shell hugo serve -D ``` I need hugo available on PATH environment variable, which lorri provides.
2020-03-10 Update Tailwind themeWilliam Carroll1-2/+2
Thing I changed: - prefer a white background - simplify the footer text Other things that I'd like to change: - use JetBrains Mono for the mono-font
2020-03-10 Rename my-first-postWilliam Carroll1-0/+0
I created this file while following Hugo's quick-start tutorial. When I publish a blog post, I will delete this file.
2020-03-09 Nixify hugo deploymentWilliam Carroll1-0/+12
Create a derivation for building the static files of my blog.
2020-03-09 Add 'blog/themes/tailwind/' from commit ↵William Carroll23-0/+377
'2cf446f4ef7bdcc4303ebcb0a3062e87cde4928b' git-subtree-dir: blog/themes/tailwind git-subtree-mainline: d206a2812fc07e9ae8af016d3dc9d24a8bcf0508 git-subtree-split: 2cf446f4ef7bdcc4303ebcb0a3062e87cde4928b
2020-03-09 Prefer hugo for blog.wpcarro.devWilliam Carroll8-104/+45
Instead of creating my own static website generator, I'm trying Hugo. Huge is a newer alternative to Jekyll. So far, I like what I see. - Ignoring /blog/public since this is where `huge -D` generates the static assets. - Using a TailwindCSS theme. - Creating a dumby post about Emacs to test deployments. - Deleting all Common Lisp and Nix code that powered my previous, half-baked blog.
2020-03-01 Remove default values for Nix expression parametersWilliam Carroll2-13/+4
I'm not sure if this commit breaks everything in my monorepo. I think it will. Why am I doing this? Perhaps it's a bad idea. I don't fully understand how readTree works. My ignorance is costing me hours of time spent debugging. In an effort to better understand readTree, I'm removing the default values for my Nix expression parameters, which I believe have preventing errors from surfacing.
2020-01-31 Add deploy.nix to blogWilliam Carroll1-0/+15
Adding a deploy.nix to output docker images based on the <briefcase>.blog derivation. See the deploy/README.md docs for more information.
2020-01-31 Consolidate injected dependenciesWilliam Carroll1-6/+3
Move the three injected dependencies into one.
2020-01-31 Render pandoc output to index.htmlWilliam Carroll3-13/+17
Using index.html allows us to use the Google AdSense script and extend the styling by adding a CSS stylesheet.
2020-01-31 Rename dotfiles -> briefcaseWilliam Carroll1-2/+2
Renaming my mono-repo briefcase. I first introduced this commit in master, but it introduced a bug where one of two things would happen: 1. Emacs wouldn't start and would crash X. 2. Emacs would start but my keyboard wouldn't work. I learned some valuable debugging skills in the process. Here are some of them: When my keyboard was broken, I wanted to control my computer using my laptop. Thankfully this is possible by using `x2x`, which forward X events from the SSH client to the SSH host. ```shell > # I'm unsure if this is the *exact* command > ssh -X desktop x2x -west :0.0 ``` Git commit-local bisecting. I didn't need to do a `git bisect` because I knew which commit introduced the bug; it was HEAD, master. But -- as you can see from the size of this commit -- there are many changes involved. I wanted to binary search through the changes, so I did the following workflow using `magit`: - git reset --soft HEAD^ - git stash 1/2 of the files changed - re-run `nix-env -f ~/briefcase/emacs -i` - restart X session - If the problem persists, the bug exists in the non-stashed files. Repeat the process until you find the bug. In my case, the bug was pretty benign. Calling `(exwm/switch "Dotfiles")` at the bottom of `window-manager.el` was failing because "Dotfiles" is the name of a non-existent workspace; it should've been `(exwm/switch "Briefcase")`. There may have been more problems. I changed a few other things along the way, including exposing the env vars BRIEFCASE to `wpcarros-emacs` inside of `emacs/default.nix`. The important part is that this was a valuable learning opportunity, and I'm glad that I'm walking away from the two days of "lost productivity" feeling actually productive.
2020-01-29 Splice ./universe directory into ./William Carroll4-0/+97
Manually merging: - README.md: I added the description from universe/README.md into the heading of dotfiles/README.md. - .envrc: dotfiles/.envrc was a superset of universe/.envrc - .gitignore: Adding some of the ignored patterns from universe/.gitignore to dotfiles/.gitignore Everything else here should be a simple rename.