RSSAmplifier

Blog

Branislav Jenco

branislavjenco.github.ioRSS feed ↗10 posts

Latest posts

Don’t be afraid of rabbit holes

I’ve gotten myself into some deep rabbit holes in the course of everyday software development. I find some surprising behavior, or an apparent bug, and before I know it, 57 tabs are open in my browser. They hold a record of my journey through the source code of 5 different codebases, their GitHub Issues, their fork’s GitHub Issues, Stack Overflow, paywalled Medium articles that weren’t worth…

Why on Earth can I start two flask dev servers on the same port?

One day at work I noticed a peculiar behaviour—on Windows, I was able to start two local flask web servers on the same address and port. My previous experience lead me to expect a EADDRINUSE error but that didn’t occur. The two servers were happily running, but only the first one was getting the requests. First instinct, try the same thing on Linux (Ubuntu) and sure enough, there I get the Port…

Regex search/replace while preserving groups

For reference, I’m noting down here how to do a search and replace using regex when the text being replaced/removed is surrounding some text I want to keep. This came up in code with lots of occurrences of higher order functions:

When a key clears the mind

I’ve been a user of vim for many years. vim is a modal text editor. It uses “modes” that change what the keys on my keyboard do, in order to make writing and editing text more pleasant. There’s a default one for moving around and typing commands (Normal mode), one for selecting text (Visual mode), one for actually typing (Insert mode), etc. I would define a modal user interface as one where, at…

How to quickly search in the HEADs of all branches in git with PowerShell

Using PowerShell, you can quickly search for a string in the HEADs of all branches in a git repository like this:

Check this if editing the etc\hosts file doesn’t work properly on Windows

If you add an entry into the hosts file in Windows (path is C:\Windows\System32\drivers\etc\hosts) for the loopback address (127.0.0.1), but your domain mapping still doesn’t work, try adding the IPv6 version as well (::1).

How to fix a stuck SMB File Share in Azure

I had an issue with an SMB File Share in an Azure Storage Account stuck in an in-between state. The file share gets regularly deleted and created anew, and has a seven-day soft delete policy, meaning it has multiple deleted versions saved. At some point, possibly as a result of some Azure Service Health event, the latest version of the file share was both not present among the active file shares,…

Escaping dollar signs in PowerShell

In PowerShell, you have to use single quotes (') to escape dollar signs ($) in a string. Double quotes won’t do it. Alternatively escape a particular $ with a backtick in front (`$).

Use .show in Azure Data Explorer

In Azure Data Explorer, you can use .show to look up interesting information about the functions, previous commands and queries or clusters when writing a query. Example: .show cluster databases datastats shows stats about original/compressed/index size of your databases.

When in doubt, flush DNS

I had an interesting issue in Windows VM running in Azure, trying to connect to Storage Account A. From inside the VM I was unable to even resolve the storage account’s public domain name, yet this was possible from my computer. I was able to resolve the domain name of Storage Account B.