Feed Link to Atom feed of posts

Micro Blog

one hundred eight tiny posts on miscellaneous topics.

1 ↩️ 0 🔁 2 ♥️

Went to a chafé today for some tea. Some people were sitting with their laptops as usual. But there was this woman sitting next to me with an entire server computer with her. I didn't disturb her.

3 ↩️ 0 🔁 3 ♥️

On the other side of my table was sitting a guy with a small laptop, wearing a black hoodie, with the hoodie on in this heat. I overheard him say, “The deployment is broken because some new guys checked in some code in our repo. I think the right way to solve this is to break our repo into smaller repos and create more microservices from them.” I didn't disturb him either.

0 ↩️ 0 🔁 0 ♥️

The tea was okayish and very overpriced. ~fin~

0 ↩️ 0 🔁 2 ♥️

I hate how the hum of the cab engine hides the bassline of the I listen to while commuting. But I'm too cheap to buy good headphones with noise cancellation. So I guess this is my life now.

1 ↩️ 1 🔁 0 ♥️

What's a reasonably priced and good RSS feed to email service that I can use to send my posts to my twelve subscribers?

0 ↩️ 1 🔁 2 ♥️

Went for a morning walk after a long time. It's strange how expending energy makes us feel better compared to conserving energy as a couch potato.

2 ↩️ 1 🔁 4 ♥️

A random Netflix show about a guy going around the world on a inspired me to dust off my bike and go out for a ride.

Almost immediately I was reminded of why I don't cycle in anymore: Dust and smoke everywhere. Even with mask and goggles on, it was in my nose and eyes. Not to mention, the broken roads with pot holes and the terrible traffic.

5 years ago, I used to commute to work daily on my bicycle. Now it is hard for me to even imagine doing that. 😭

0 ↩️ 0 🔁 2 ♥️

I've started downloading files to the temp directory now. That way, I don't have to go back and delete all the junk later on. And if something is important enough to be kept around, I move it the proper location fearing the automatic deletion.

1 ↩️ 0 🔁 2 ♥️

Now my website's search indexes my Mastodon posts as well, along with my blog posts and notes. Another step towards .

0 ↩️ 0 🔁 0 ♥️

Switched from LocalStorage to IndexDB for caching the search index on the browser. Apparently, that's the recommended thing now. 🤷

1 ↩️ 0 🔁 0 ♥️

I need to be more patient with phone charging.

1 ↩️ 0 🔁 1 ♥️

Turns out it was because of adaptive charging in which reduces the charging rate when you charge the phone at night. It expects me to charge the phone for the whole night, but I kept unplugging it in the middle of the night. Turned off adaptive charging and my phone is fully charged now.

1 ↩️ 0 🔁 1 ♥️

Set up a mesh router in my house. Finally I can read Reddit in each of my washrooms.

0 ↩️ 0 🔁 0 ♥️

I have feed reader apps on my phone, my iPad, my laptop, and my Kindle. Now to actually read all these blog posts ...

1 ↩️ 1 🔁 4 ♥️

The Man-running-to work-with-a-briefcase metal statue at the Sarjapur junction makes me feel understood when I pass it by on my way to work.

0 ↩️ 0 🔁 0 ♥️

I tried out @elk and I've decided that I'll switch to be as soon as they add support for hashtag and account lists.

0 ↩️ 0 🔁 1 ♥️

Some days I wake up inexplicably even after a full night's sleep. Today is one of those days.

0 ↩️ 0 🔁 0 ♥️

Spent the day thinking about how to compile my small language with coroutines to Javascript, without actually doing a CPS transform of the AST. I think I may have a solution involving yield* and setImmediate. Proof of concept yet to be done.

1 ↩️ 0 🔁 1 ♥️

Last week I spend almost three days to figure out a bug in my code. And the final fix was a single line change. It was both infuriating and exhilarating at the same time.

0 ↩️ 0 🔁 2 ♥️

I'm so glad I deleted my account years ago when they had their first breaches.

3 ↩️ 0 🔁 2 ♥️

I really like reading things on my Kindle. I wish there was an easy way to read all these interesting blog posts on it. Maybe a service to which I can send URLs, or points them to an RSS feed and it sends me a book for them.

0 ↩️ 0 🔁 1 ♥️

Is it me or this year's seems too heavy on automata, game plays and simulations? I was hoping for more parser and interpreter related problems.

1 ↩️ 0 🔁 1 ♥️

It worked! Couldn't figure out how to patch the service, so I copied the file, made the change in it, and replaced the service module with the copied one.

0 ↩️ 0 🔁 2 ♥️

Decided to play some old school today as work , instead of the usual. Liking it so far.

0 ↩️ 1 🔁 2 ♥️

@pratul शुभ जन्मदिवस ब्रो

0 ↩️ 0 🔁 1 ♥️

I use the bookmarking feature on as a read-later list to mark interesting posts that I want to read in depth, but I can't at the moment while scrolling the timeline. After reading them later, I remove the bookmark. Am I doing it right?

8 ↩️ 0 🔁 7 ♥️

Nobody told me that subscribing to relays will make my server's disk usage rate 10x. Sigh.

0 ↩️ 0 🔁 2 ♥️

I'm not doing all of this year after doing it for past couple of years. Most of the problems seem very similar to those in previous years. So this time, I'm going to pick only the ones that truly interest me.

1 ↩️ 0 🔁 1 ♥️

My plan this year was to solve them in . Unfortunately, Zig 0.10 is not available on and I was too lazy to install it manually. So I defaulted to .

0 ↩️ 0 🔁 0 ♥️

Looks like I'll also need to write a parser and use a tree zipper. Great!

1 ↩️ 0 🔁 0 ♥️

The new Arctic Monkeys album is even more mellow than the previous one. Maybe I'll grow to like the new AM, but for now I miss the old one.

0 ↩️ 0 🔁 0 ♥️

TBH, I like the albums in the middle the most, around early 2010s. When they started out to mellow out, but were still Rock like.

1 ↩️ 0 🔁 0 ♥️

Saw someone's toot about trying to learn how to drive a geared car (or drive stick, as they say in USA). And here I am driving a geared car, and hating it, being anxious all the time about missing gear changes and driving in wrong gear. I'd love to not drive stick, but I can't buy a new car right now.

0 ↩️ 0 🔁 0 ♥️

Also hooked up IFTTT to hit a webhook to deploy my website when I post a toot here.

1 ↩️ 1 🔁 3 ♥️

I like solving #AdventOfCode problems with one liners, and I cannot lie (split into multiple lines below for your convenience):

solve n input =
(+ (n - 1))
. fst
. fromJust
. find ((== n) . length . snd)
. zip [1 .. ]
. map nub
. transpose
. map (flip drop input)
$ [0 .. (n - 1)]

1 ↩️ 0 🔁 0 ♥️

Is it just me or 80% of songs in 's Best of Indie India sounds like Prateek Kuhad songs? WDYT @s3thi?

1 ↩️ 0 🔁 0 ♥️

Turns out, ChatGPT cannot write quines, at least in Haskell. Quite a serious limitation.

0 ↩️ 0 🔁 1 ♥️

Took my 3am server admin sleep break to drink a cup of water and to ban those DDOSsing domains.

0 ↩️ 0 🔁 1 ♥️

Finally found time to catch up with my feed reader.

0 ↩️ 0 🔁 1 ♥️

If you are running a instance, be sure to ban the bad bots using Fail2Ban. Otherwise they'll soak up all your bandwidth by crawling the public assets and media.

1 ↩️ 0 🔁 0 ♥️

Is this why people hate using Haskell?

0 ↩️ 0 🔁 0 ♥️

TBH, this is how it looked before I golfed it down:

1 ↩️ 1 🔁 1 ♥️

The upgrade to 22.11 worked almost smoothly! I had to
— disable a python service because of "infinite recursion encountered" error (I wanted to disable it anyway),
— change config of one service, and
— fix dependencies of two services.

0 ↩️ 0 🔁 1 ♥️

Advent Of Code '22 Day 1 was easy

Solved in GHCI REPL:

λ> import Data.List.Split (splitWhen)
λ> maximum . map (sum . map read) . splitWhen (== "") . lines <$> readFile "input1"
λ> import Data.List (sortOn)
λ> import Data.Ord (Down(..))
λ> sum . take 3 . sortOn Down . map (sum . map read) . splitWhen (== "") . lines <$> readFile "input1"

0 ↩️ 0 🔁 0 ♥️

I'm a bit disappointed that the hashtag is not about the 90's movie about a speeding bus that could travel in time.

1 ↩️ 0 🔁 0 ♥️

I've found and followed so many interesting people from different walks of life on Mastodon in the last one week. I don't think this would be possible on the Twitter of now.

1 ↩️ 0 🔁 1 ♥️

: Mastodon creates and exposes a public key for each user at <instance-url>/users/<username>.json.

I wonder if that can used for signing things we put on internet.

0 ↩️ 0 🔁 0 ♥️

I hate waking up and finding spam comment on my blog 😠

0 ↩️ 1 🔁 0 ♥️

Trying to figure out how to write health checks for on . Can't find anything on Google. Netdata docs are not straightforward.

2 ↩️ 1 🔁 0 ♥️

/ protip for people an Nginx server: add the following line to your Nginx virtual host config so that you can be found by a search like @me@yourdomain.com:

rewrite ^/.well-known/webfinger.* https://<your-mastodon-host>/.well-known/webfinger?resource=acct:<your-username>@<your-mastodon-host>? permanent;

1 ↩️ 1 🔁 1 ♥️

For example, my server at abhinavsarkar.net has this config:

rewrite ^/.well-known/webfinger.* https:// fantastic.earth/.well-known/webfinger?resource=acct:abnv@fantastic.earth? permanent;

(Minus the space after https://. Mastodon converts it to a link so I had to put the space.)

1 ↩️ 0 🔁 0 ♥️

So you can find me in Mastodon search by @me @abhinavsarkar.net

(Minus the space between. Mastodon automatically convert it to the resolved account so I had to put a space between.)

0 ↩️ 0 🔁 0 ♥️

Hardest part of is fixing the damned fail2ban that is too eager to ban everyone, including myself. But I wrote those ban rules so I'm the one to blame.

0 ↩️ 1 🔁 0 ♥️

Watching Mastodon Sidekiq logs is a very unhealthy obsession.

1 ↩️ 0 🔁 0 ♥️

Code to run Mastodon was only 20 lines. Rest was for system setup and security.

0 ↩️ 0 🔁 0 ♥️

I live on a ball of dirt going really fast around a ball of fire.

2 ↩️ 0 🔁 1 ♥️

So this is what happens behind the scene when you post a toot. All of sends requests to your server within seconds. I can imagine why Mastodon instances are so overloaded these days.

0 ↩️ 0 🔁 0 ♥️

Holding off moving completely to self-hosted instance till it reaches better feature parity with Mastodon. One thing I'll definitely miss is the Glitch-soc UI.

1 ↩️ 1 🔁 0 ♥️

I hear read that Mastodon supports Markdown.

1 ↩️ 0 🔁 0 ♥️

I wonder if it can show highlighted code?

main = putStrLn "Hello world"
0 ↩️ 0 🔁 0 ♥️

Well, no code highlighting but at least we got:

  1. numbered
  2. lists
  • Bullet
  • lists
2 ↩️ 0 🔁 0 ♥️

I knew about for at least a few years but I was afraid that the clients would be unpolished. Now that I'm here, I must say I am pleasantly surprised by how good all Mastodon apps are. Both Android and iOS apps are easy to use and reasonably smooth. Though I don't use the web UI much, it's pretty good as well.

0 ↩️ 0 🔁 0 ♥️

Still trying to get Bridgy Fed working on my website. I can see my website on Mastodon but I don't see any posts, neither am I able to follow it. I guess it's time to look at the Nginx logs.

1 ↩️ 0 🔁 0 ♥️

I uninstalled Reddit, Hacker news and Twitter apps from my phone so Mastodon is my only friend now.

0 ↩️ 0 🔁 0 ♥️

My levels of yak shaving:

1. Get on Mastodon.
2. Enable Activity Pub for my website using Bridgy Fed.
3. Embed h-card on my website's home page.
4. Add support for transclusion in Markdown files.
5. Modify Mustache templating code to add support for chasing dependencies using Shake build system.

Fortunately, the stack has unwound now, for I am posting this on Mastodon, and my website is Activity Pub enabled.

0 ↩️ 0 🔁 0 ♥️

So I got on Mastodon. Next, find people to follow.