Category Archives: geek

2020-05-25 Emacs news

Links from reddit.com/r/emacs, r/orgmode, r/spacemacs, r/planetemacs, Hacker News, planet.emacslife.com, YouTube, the Emacs NEWS file and emacs-devel.

Compiling autotrace against GraphicsMagick instead of ImageMagick

In an extravagant instance of yak-shaving, I found myself trying to compile autotrace so that I could use it to trace my handwriting samples so that I could make a font with FontForge so that I could make worksheets for A- without worrying about finding a handwriting font with the right features and open font licensing.

AutoTrace had been written against ImageMagick 5, but this was no longer easily available. ImageMagick 7 greatly changed the API. Fortunately, GraphicsMagick kept the ImageMagick 5 API. I eventually figured out enough about autoconf and C (neither of which I had really worked with much before) to switch the library paths out while attempting to preserve backward compatibility. I think I got it, but I can’t really tell aside from the fact that compiling it with GraphicsMagick makes the included tests run. Yay!

At first I tried AC_DEFINE-ing twice in the same package check, but it turns out only the last one sticks, so I moved the other AC_DEFINE to a different condition.

Anyway, here’s the pull request. Whee! I’m coding!

2020-05-18 Emacs news

Links from reddit.com/r/emacs, r/orgmode, r/spacemacs, r/planetemacs, Hacker News, planet.emacslife.com, YouTube, the Emacs NEWS file and emacs-devel.

2020-05-11 Emacs news

Links from reddit.com/r/emacs, r/orgmode, r/spacemacs, r/planetemacs, Hacker News, planet.emacslife.com, YouTube, the Emacs NEWS file and emacs-devel.

2020-05-04 Emacs news

Links from reddit.com/r/emacs, r/orgmode, r/spacemacs, r/planetemacs, Hacker News, planet.emacslife.com, YouTube, the Emacs NEWS file and emacs-devel.

Minor bug fix: autocomplete styling on quantifiedawesome.com

I haven’t really touched quantifiedawesome.com’s codebase in a while. I’m afraid of breaking it in a way that requires focused time to fix. I’m starting to be able to code teeeny tiny bits after A- goes to bed, but I can’t stay up too late or the next day gets pretty tough. I also feel myself thinking less effectively as I stay up longer.

Still, I thought I’d dust it off and give it a try, especially since it turns out that other people actually still use the thing frequently enough to notice when the site isn’t working. (I accidentally messed up my database permissions the other night. Fortunately, it was something I could fix by chown-ing my MySQL data directory back to my mysql user instead of docker. Oops.)

Maybe thinking out loud will help. Back to using blog posts for writing my way through a problem.

Okay. Small bug. Autocomplete dropdown doesn’t look so nice. I have to go figure out where to set the styles again… That’s in app/assets/stylesheets/style.css.sass . I think I’ve figured out the change to make. How do I build rails app scss assets again? RAILS_ENV=production rake assets:precompile – oh, I need rake assets:precompile… Oops! That really didn’t like that, resulting in lots of errors like this:

.../lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Fixnum is deprecated .../lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Bignum is deprecated rake aborted! SystemStackError: stack level too deep

Hmm, maybe I have the wrong Ruby version. I peeked in ruby-with-env and used the source line from that to load the right environment. I really need to upgrade Ruby and gem versions, but that requires lots of focused time and kindergarten is looking like less of a possibility.

Okay, that rebuilt my CSS file. Yay! Wait, I think I’m starting to remember how to restart this thing. touch tmp/restart.txt

It’s not very pretty, but it’s marginally better than before. It’ll do.