Emacs Bedrock : First impressions

As mentioned earlier I tried new starter kit called Emacs Bedrock. Getting started was easy with --init-directory option in Emacs 29 I also enabled a few mixins in init.el as recommended. Especially evil mode. The *Quick Help* that shows up at the start is very useful. Especially for someone like myself who is not familiar with native emacs keybindings. Enabling evil mode means I can at least edit the text.

Continue Reading »

Use different init directory in emacs 29+

Recently when reading about emacs Bedrock I learnt that emacs 29+ has command line option that lets the user pass custom init directory via emacs --init-directory=MYDIR option. 1 This makes it easy to try out different starter kits without touching your stable/working config Currently, I use Minemacs on my personal machine. In past I would rename my .emacs.d to try new config. (Then switch it back) This makes things easier.

Continue Reading »

Spellcheck in Vi/m

I’ve been using vi for 20+ years and somehow I didn’t know that it has spell check built in 🤷‍♂ Enable it by simply :set spell Now misspelled words are shown in red background 1 (depending on the terminal’s capability this might vary - I assume) Off course, this is nowhere near full fledged LSP like ltex which I use with emacs and helix. ltext does more than spell check.

Continue Reading »

Markdown vs Orgmode

My thoughts in the context of this thread. I did try org for some time (initially when I switched to Emacs) as mentioned here But eventually I realized that markdown is more pervasive. I am aware that Org is supported outside of Emacs as well. But compared to markdown, that is nothing. But that is not necessarily the point. e.g. When I do code review, most of the git service providers support markdown.

Continue Reading »

Respect and Authority

Why do we “listen” to somebody ? Here I do not mean hearing when I say listen I mean obey or follow. I think it comes from either respect or authority. Authority maybe given by someone else e.g. Teacher in school, boss at work, parents at home. Lot of times, most people do what these people tell you to do, because of the authority inferred on them. Because you are “supposed to” do what they say.

Continue Reading »

Rails is not ruby

I had written earlier how learning the language before the framework is more important. It is important to know which parts is part of the language, and which comes from the framework. This becomes more important when there are defacto web frameworks (rails in ruby, django in python, phoenix in elixir.. maybe more) For a newcomer who is learning both the language and framework together (or back to back, or worse learning the language via the framework tutorials :shudders: )

Continue Reading »

Trying Macports

I was aware of macports for quite some time (since I moved to macOS about 8 years ago) But most of the tools seem to be suggesting brew install, so I didn’t give macports a second thought. 8 years later, my MBP is old, and soon will not be supported by Apple and brew While I upgraded to macOS monterey, this is going to be last version supported on this hardware.

Continue Reading »

Interesting Netlify Build Problem

After build problems with my PKM site, today I ran into another problem with this site. What puzzled me was Deploy showed Build step failing but no useful error (other than exit code 2 - which does not help much) But in the process of debugging, I learnt 1 about the environment variable NETLIFY_BUILD_DEBUG (set to true when needed) It did not help 😞 I also upgraded hugo version (which is another environment variable) in the process.

Continue Reading »

Pass request specific context to Sidekiq

In a multi-tenant rails application, usually we extract the tenant, before we process it further. Sometimes, the process requires us to process the data in background (via Sidekiq) and because the background job also needs to query the DB, it also needs to set tenant. Turns out, we can pass “some” data from the controller to the sidekiq job via ActiveSupport::CurrentAttributes While, sidekiq may need to set the tenant again (for more DB queries) but one can save at least one query (to find out the account itself)

Continue Reading »

Migrating PKM Site : Updates

As mentioned here and later here I recently moved PKM from Dendron to obsidian-zola The original code seems abadoned (No updates in little over a year). I understand this since it is likely built for personal use, and it works for them (FWIW, the demo site itself is not updated for exactly same duration) Turns out people forked it and improved it. At first I tried this fork, renamed as obsidian-zola-plus (as it made it better than the original) This one seemed active (updated little over 2 months ago.

Continue Reading »