While I was searching for useful snippets for Markdown (I was specifically looking for snippet to insert current time.)
I came across this article.
To be honest, it feels like cheating. Like writing HTML manually. (With snippets, work could reduce)
ⓘ Info: I don't see myself using it often. Did you see what I did there 😉
If you are reading my posts, you would have realized that I had switched to nvim and went down the rabbit hole with different configurations etc. I think I got it to a stable state, and then I stopped tinkering.
But when I recently started coding again in Ruby, I realized that nvim is good as an editor, but at least I was not able to configure it as IDE. It has all the right tools (lsp, syntax highlighting, packages) yet something didn’t work 😞
Continue Reading »
I had written about Telekasten earlier, but in the context that I was unable to get it working with NVChad.
But I must confess, I almost forgot about it.
I should use it daily (as intended) to capture things I’m doing, where am I blocked, what unblocked me, make it as part of my daily workflow.
I have seen my colleague keeping a simple daily.txt file open in Sublime, and it works for them (I hope)
Continue Reading »
I had installed Wezterm long time ago. I think when I started looking for alternatives to Alacritty. But I settled on kitty (I think I could not get wezterm to work)
Few days ago, I stumbled upon it again, and I wanted to give it a try. So these days, I’m using wezterm as terminal. I specifically liked the built-in multiplexing feature. I haven’t tried it yet 🤷
Today I learned about Bang methods in Ruby.
Methods ending with ! are potentially dangerous, because they update the object they operate on.
➜ irb --sample-book-mode >> name = "sample_string" => "sample_string" >> name.reverse => "gnirts_elpmas" >> name => "sample_string" >> name.reverse! => "gnirts_elpmas" >> name => "gnirts_elpmas" As we can see above, reverse! modified name itself. Most times (?) we don’t want that. But sometimes we do.
Knowing that !
Continue Reading »
Yesterday, I listened to the episode of rework podcast, titled Interruption is the Enemy of Productivity 😄
The link has full transcript of the episode, or listen via your favourite podcast app.
Some quotes (edited little to make sense) from the episodes :
people know that the time they get the real “work done” is when they don’t have the interruptions.
If that time only exists outside of work, that is where they will find it.
Continue Reading »
When working on large(ish) code files, sometimes it is easier to fold rest of the code from that file and focus on one “block” at a time.
I use the word “block” because based on the context, it means different things. It could be as big as a class (if the file contains multiple classes) or as small as a if-else block.
But this functionality is not always turned on.
Continue Reading »
NvChad is yet another neovim starter kit.
Creator of NvChad is on the VimUser’s Telegram Group. So I was intrigued to try NvChad. (I had tried it a while ago, but decided to visit it later. That “later” is now)
One of the plugin I use is Telekasten. It reminds me of Dendron, another tool I used to use (requires VSCode, which I consider too heavy. But Dendron now works without VScode as well.
Continue Reading »
Earlier I imported the data to locally running Elastic (via Docker)
But others in my team could not run Docker on their machines, so we decided to use a hosted Elastic server.
The steps to import the data were the same. Well, almost. Because this was a hosted instance, it would not allow operations without authentication. I got the following error:
dump ended with error (get phase) => UNAUTHORIZED: {"error":{"root_cause":[{"type":"security_exception","reason":"missing authentication credentials for REST request [/]","header":{"WWW-Authenticate":["Basic realm=\"security\" charset=\"UTF-8\"","Bearer realm=\"security\"","ApiKey"]}}],"type":"security_exception","reason":"missing authentication credentials for REST request [/]","header":{"WWW-Authenticate":["Basic realm=\"security\" charset=\"UTF-8\"","Bearer realm=\"security\"","ApiKey"]}},"status":401} It took me a while to figure it out, but I did.
Continue Reading »
Some time ago, I started using kitty terminal emulator. I used Alacritty for a long time. But Alacritty is meant to be minimalistic in a sense it does not even have concept of having different tabs.
The suggestion/solution is to use tmux (or like) to manage different shell instances.
And I did that.
And learnt a great deal about tmux in the process.
I don’t regret it one bit.
But sometimes, tmux gets in a way of how terminal based programs look (and behave) when executed inside tmux.
Continue Reading »