
Every time I need to check the current version of Ubuntu, I have to run
$> lsb_release -a
But what if lsb_release is not installed?
The easiest way is to run
$> cat /etc/*release
This gives me an output like this!


Every time I need to check the current version of Ubuntu, I have to run
$> lsb_release -a
But what if lsb_release is not installed?
The easiest way is to run
$> cat /etc/*release
This gives me an output like this!


There’s been a number of times I’ve wanted to not include some commands that I type into bash from being added to bash_history
The most convenient is to start a subshell by typing in bash again. This ensures that the commands in the subshell don’t get added to the history.
There are additional ways of achieving this as well.
Continue readingWhen you face a fork in the road, you always have three choices
Abhijit

A number of times I’ve needed to export a specific table from an SQLite database to a CSV file.
The sqlite program itself gives a very clean interface for this.
sqlite3 -header -csv database.sqlite "SELECT * FROM artists;" > ./artists.csv
Conversely, if I need do this from the SQLite prompt, I need to do it slightly differently.
Continue reading
In the Windows explorer address bar enter –
\\wsl$

While running a cron job in Linux, I sometimes get this error and I had been struggling to solve this until I came across this post.
Although that particular post mentions the cause being Vagrant, mine was due to a cron job.
First the solution …
.profile under home folderOpen ~/.profile
Replace the following line –
mesg n || true
with
tty -s && mesg n
The reason for this is given very well in the post linked above.
Continue reading
We got a weird error today when running the latest migration on a production Postgres DB.
cannot update table "schema_info" because it does not have a replica identity and publishes updates
The table schema_info is created when we run ruby Sequel migrations. This table stores just the version number of the latest migration applied under a column called version.
We had set up a replica database some time ago and it looked like the issue was because of this.
Continue reading
ExtJs Grid has a lot of features built in. Some examples are the Grouped Grid and the Checkbox Selection.
However, grouping these two together poses a bit of a challenge.
After searching on the forums, this post guided me into a nice, working example.
Continue readingGood decisions come from experience.
Experience comes from making bad decisions
Mark Twain

A number of times, I prefer to use the Windows key on the keyboard to create shortcuts, especially to applications which I use frequently.
However, Windows has a default set of keyboard shortcuts that it maps to various applications and those key mappings can’t be changed. A few examples are Cortana (Win+C), Clipboard (Win+V).
To get around this, the Registry Editor needs to be modified.
Continue readingCopyright © 2026 the möbius trip
Theme by Anders Noren — Up ↑