microblog.desipenguin.com Open in urlscan Pro
2a05:d014:275:cb01::c8  Public Scan

URL: https://microblog.desipenguin.com/
Submission Tags: phishingrod
Submission: On June 27 via api from DE — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

@MANDARVAZE’S MICROBLOG.

 * Microposts
 * Posts
 * About


INTERESTING NETLIFY BUILD PROBLEM

Posted on June 26, 2023 in meta, devops

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

Posted on June 26, 2023 in rails, ruby, 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

Posted on June 24, 2023 in misc

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 »


RENAME FILE IN EMACS

Posted on June 23, 2023 in emacs

First impression people have is that Emacs is an editor. So in an editor one
should just save as to different name/path. 1 But save as is different from
renaming a file. save as creates a copy of the file with a different name/path.
So one has two files with old and new paths. But rename leaves just one file at
thenew path. Older versions of Emacs (< Emacs 26) did not have this
functionality built-in So either one had to use dired or people wrote their own
functions.

Continue Reading »


→ NEW PKM SITE ∞

Posted on June 18, 2023 in misc



Finally migrated my PKM from Dendron to Obsidian-Zola

Things I needed to do were :

 1. Remove Dendron specific frontmatter
 2. [In Progress] Restructure flat file names that were like Dev.DB.mysql.md to
    Development/Databases/mysql.md
 3. Pushed this branch as main
 4. Make main as default and protected branch
 5. Unprotect master
 6. Renamed old master as dendron (just in case)- without unprotecting old
    master I could not rename it.
 7. Remove Dendron specific settings from netlify. Since this time there is
    netlify.toml so no additional settings needed.

I would say it was pretty smooth transition 😄




CONSIDERING MIGRATING PKM SITE

Posted on June 16, 2023 in misc

My PKM is currently based on Dendron Main appeal of Dendron was local-first. At
the same time, it indeed was loosely tied to VSCode editor. Over the years, they
had a command line tool to create new notes. Still, its strength always was as a
VSCode plugin Then today, I came across Obsidian-Zola It splits the task of
taking notes and publishing it. Obsidian for note taking Zola for publishing
What I liked about it is Search functionality (To be fair, my current PKM build
on Dendron also has it)

Continue Reading »


EMACS GLASSES MODE

Posted on June 15, 2023 in emacs, c-sharp

Now that I’m working on .NET and C#, I enabled csharp-mode in Doom Emacs. While
exploring minor modes related to csharp-mode, I came across Glasses minor mode.
Here is the EmacsWiki page. TL;DR: The default setting is to separate the Capped
bits with an underscore, so EmacsIsStudly shows as Emacs_Is_Studly. I too,
prefer to see the code as-is, but it is good to know that Glasses mode exists. I
can see it being useful.

Continue Reading »


.NET PACKAGE MANAGEMENT

Posted on June 14, 2023 in .net, programming

I recently started writing C# code at work. While I can read and understand the
sample code (and modify partially per my requirement) I still trip up by
new-ness (to me) of the ecosystem. So while I intuitively understand that using
is equivalent of require in Ruby (or import in python), I didn’t know which ones
are “standard library” and which ones are not. The sample code worked with
standard library, but writing to Azure Service bus requires external library.

Continue Reading »


CHANGING EMACS LOOK-N-FEEL

Posted on June 6, 2023 in emacs

I’ve been using nano emacs theme with minemacs I got bored today, and wanted to
try something new. I’m trying circadian.el modus-operandi during the day
doom-tokyo-night during the night Iosevka font (Have not settled on exact
variation) Also trying org-modern but I use denote - so I’m not sure whether it
matters


LANGUAGE BEFORE FRAMEWORK

Posted on June 5, 2023 in learning, programming

Several years ago, I came across a quote1 about how learning python via Django.
The author said that if you don’t properly know python, you may not understand
what is Django specific and what is not. FWIW, even after working with python, I
never used Django in any of my main project. But I did learn python first before
the frameworks. Fast forward to few days ago. I am working on Ruby code to read
from Azure Service Bus.

Continue Reading »
Older »


HI, I'M MANDAR

I'm a Software Engineer. I like to tinker with various technologies and I like
to sketch.
Follow me on Twitter, Mastodon, Instagram, and Github

© 2023 Mandar Vaze