NixOS on prgmr and Failing to Learn Nix
Code: docs, nix, prgmr
4 comments
This is a writeup of my notes on how to get NixOS running on a VPS at prgmr, followed by more general notes on this experiment in learning nix.
Continue this postMiscPodcast
Code: PHP, podcast, project
1 comment
I have some random episodes of podcasts laying around waiting to get listened to from podcasts I don’t (yet) care to subscribe to. Maybe they had an interesting guest or topic, or came recommended. These downloads will lay around on my computer for months because they’re not in my podcasting app, so they’re not really in my listening queue.
Continue this postArithmetic Wrap in GMS2
Code: gamedev, gms2
No comments
I’m learning GameMaker Studio 2 because my 10-year old nephew wants to make video games (and the 10 year old inside of me wants to make video games, too). It’s a nice toolkit and IDE for games, very beginner-friendly, with a friendly community. It’s even been used in some highly polished and popular games. If you’re curious, there’s a ~90 minute tutorial playlist that’s easy to skim as a demo.
Continue this postRedshift With Cloudiness Adjustment
Code: bash, redshift
No comments
A Lobsters story on the bright blue light of displays reminded me I should post this. I use redshift to adjust the color temperature of my monitor at night so I sleep better, and I wrote a custom wrapper script to include an adjustment for how overcast it is.
Continue this postHard Lessons
Code: email, handmade.network
No comments
Having worked on email-related code before, I have been morbidly fascinated by one of the founders of handmade.network writing an email client. Handmade Network is trying to reinvigorate programming by emphasizing small teams and from-scratch performant code. It’s a great way to write small, self-contained projects (games, libraries, utilities) that can be done, but fell out of favor two decades ago for complex user-facing software.
Continue this postVim: highlight word wrap column in insert mode
Code: vim
No comments
I like vim’s colorcolumn
for highlighting where word wrap will occur, but I consider it a distraction when I’m not in insert mode. After some tinkering, I wrote this in my .vimrc
:
Recursive Sum
Code: recursion, Ruby
No comments
In #ruby on Freenode, platzhirsch asked about how to total an array of Transactions when the Transactions may have parents. The two obvious approaches have pitfalls when there are a lot of Transactions, and he said he expects to have 23 million that may be deeply nested. Here’s his sample code:
Continue this postBattery Longevity
Code: batteries, systemd
1 comment
I switched to a Lenovo X1 Carbon (3rd gen) in January, and one of the delights of a new laptop was a new laptop battery. I chuckle when I get a stern notification that my battery is running low: it’s fallen to 20% charge! And it can only last for another… two hours and ten minutes. Well, I’m not in a big hurry to find a plug when I see that.
Continue this postHave You Seen This Cache?
Code: C, cache, memcached, Python, referential transparency, Ruby
2 comments
It looks like syntax highlighting, image thumbnails, and compiling object files. Let me explain.
Continue this postReplacing Ack with Ag
Code: ack, ag, searching, vim
No comments
I used grep to search code for a bit over a decade. I switched to ack to get more quicker searches without the distractions of svn/git metadata and other non-code files. After a very nice five years of ack, I’ve switched to ag. I’ve been recommending it to other devs for a year or two (it’s faster than ack with a couple really nice features like obeying .gitignore configs), but only took the time to switch this week.
Continue this post