Color Scheme Media Query

It surprised me at first to notice that this site looks different based on the time of the day. Upon debugging (aka using Browser Developer tools) I realized that the CSS has media query for prefer-color-theme Learn more here to learn more.

I made some minor changes to the theme, but I could only test one variant based on the time of the day.

That when I remembered that I had set system auto theme for firefox, which enabled dark mode during the evening/night.

Continue Reading »

Dynalist to Logseq

Almost a decade ago, I came across Workflowy.

It is a simple outliner program. Think of a simple white paper of unlimited length, and digital.

That is all it was. No other frills.

One of its shortcomings was no mobile client. One could hack to get it working on mobile, but there was no app. Then I came across Dynalist.

I used it for a long time. I have it installed on my mobile even today.

Continue Reading »

Logseq

I came across logseq long ago, of all the places on Dendron’s discord channel. It has other-projects channel just for this purpose.

Logseq was still early back then (compared to Dendron at least).

I tried, but did not like it. Plus Dendron was much better.

Today, I came across Logseq again, when I was perusing my colleague’s twitter feed and noticed that he is using it. So I checked it again. They now have a Desktop app, plugins and decent community.

Continue Reading »

Deployed Microblog

Finally, deployed this site.

It took a while because, at first I was modifying the theme to my liking.

As most theme README state, I started with git submodule, but it gets confusing. That is when I came across hugo modules in this post.

But it did not work for me for multiple reasons.

First, I did not understand the difference between specifying theme from repo Vs local, and hugo mod init

Continue Reading »

Appflowy

Came across appflowy on twitter. It is an open source alternative to Notion.

I have never used Notion, but everyone and their grandma rave about it.

Why have I not used Notion so far ? Because I did not want to sign up for yet-another SaaS that I know I won’t use.

I use Dendron (these days) for my PKM. I use it because it is “local first” - meaning I always have access to my data.

Continue Reading »

Back to DDG

Few days ago, I came across you.com search engine. I tried it for solid 15 days. There was no set plan for “trial”

It presents the result in card like fashion, which I was OK with. But I think rendering take a bit longer. So much so that I noticed the delay.

Switching back to trusty DDG ๐Ÿ˜‡

Hacking IndieFeed Theme

I started with indiefeed theme. While it is possible to make visual changes by creating css/style.css (as explained in the README) I’m thinking of making other changes as well.

So I started by forking the theme. So far my changes are only in css/style.css

I’m not a frontend developer. But I know enough HTML/CSS to be dangerous ๐Ÿ˜†

Nvim

I have been using nvim for a while. Initially with VS Code, and then as replacement for vi/vim from the terminal.

Since I use Doom emacs as may primary editor, I use nvim only for occasional quick edits here and there.

So I had not paid attention, but nvim the ecosystem is getting better.

TIL that there are two ways to configure nvim. Via VimScript and Lua

Need to look into each and decide which one to use.

Continue Reading »

Integrated terminal in Emacs

I spend most of my time in Emacs and Terminal. I make code changes in emacs and switch to terminal to run the tests. It would be nice to do that without switching between the two.

In the past, I had tried shell-mode and inferior shell (python) for this, but it didn’t work, till I found vterm

Continue Reading »

Install LetsEncrypt certificate

Today I installed LetsEncrypt certificate on one of the production server.

I can not believe it is so simple to secure a website running on an Ubuntu server

sudo apt-get install certbot python-certbot-nginx
sudo certbot --nginx -d mydomain.com -d www.mydomain.com

It even configures nginx (or apache) server for you.

To manually renew run the following:

certbot renew --quiet

But you don’t have to, cause certbot is so awesome that it automatically adds an entry into crontab so that certbot runs twice daily. There is an entry under /etc/cron.d/certbot

Continue Reading »