Troubleshooting ssh error

Today, I needed to setup ssh on a newly installed Ubuntu machine. Setting up ssh itself was straight forward install openssh-server start it via systemctl enable the port in the firewall But when I tried connecting it from other machine, I got the following error: Received disconnect from 192.168.1.110 port 22:2: Too many authentication failures 1 When I tried to get help, GenAI focused on Too many authentication part of the error, and gave me suggestions to change server to allow more attempts.

Continue Reading »

Make Bad Art Everyday

The tile of the post comes from Cheat code #3 of this post. I had a good streak writing here for a long time. Then in late April, I went on a week long trip. (Not vacation, it was a volunteering trip. I should have posted about it here. I did write about it in marathi, but shared it with closed group.) Long story short, that broke my streak, and it occurs to that I wrote 1 post in May, none in June, and this is my 2nd post in July.

Continue Reading »

How to use real android device for flutter development

I recently started learning Flutter. My 10 year old MBP with 8GB RAM is apparently not “enough” based on this documentation It “recommends” 32GB RAM. Lowest number listed is 8GB, but it means I can’t use Android Emulator, which seems like most common way to test the app during the development phase. But I do have a real android device, can I use that instead ? But most documentation talks/assumes emulator.

Continue Reading »

Failed attempt at Integrating Webmentions

I wanted to use webmentions as comments (maybe that is incorrect term, but I wanted to show thes webmentions at the end of each post) So setup everything correctly. I have been posting links to my posts on mastodon, like this one First I tested using Telegraph but I got an error The source document does not have a link to the target URL or domain Little bit of searching informed me that it must be <a href=.

Continue Reading »

It feels so good to “Do the right thing even if you don’t feel like doing it”

Hal Elrod (Miracle Morning fame) defines Habit as

Doing what needs to be done whether you feel like it not.

I did my MM SAVERS for 50 days, and then fell off the bandwagon.

Till I picked it up yesterday.

Today was the second day, and I didn’t feel like getting up.

But I did.

Once I was up, rest was easy 😄

Initial resistance needs to be overcome.

Maybe use 5-second rule ? (I didn’t. Today. Just sayin)

Firebase Studio : It is not ready yet

I read Addy Osmani’s announcement on LinkedIn, and wanted to give it a try myself.

Coming from Google, I had high hopes.

As per Google, it is improved version of, and will replace Project IDX.

While I have not used Project IDX in past, Firebase Studio looks like hosted VS Code.

Continue Reading »

Is GenAI biased toward a specific region ?

I came across a LinkedIn post here where the author asked ChatGPT to create a fake Aadhar card, and a fake US Green Card.

For later, ChatGPT added “For Fictional Use only” in the image, and wouldn’t remove it when asked to.

So such “security concern” for the Aadhar Card.

Here is my take on it.

Continue Reading »

Rust : How to use `match` to replace nested if/else

When solving errors4.rs exercise of rustlings, I initially used nested if/else. It helps with readability.

While the solution was correct, clippy suggested following:

help: consider rewriting the if chain with match: match value.cmp(&0) {...}

I had used match only with various possible values (mostly from Enum) and thus was unfamiliar with value.cmp(&0) approach.

Continue Reading »

Eight must have pre-commit hooks for #python code

Recently there was an article on LinkedIn about how debugger statement was left in the production code (front end javascript) and thus user could not move forward. People commented about the code review. But why invest manual efforts when such things can be automated ? See #4 in the list below. pre-commit hook is an under appreciated (dare I say, unknown) feature of git As the name suggests, set of commands/scripts can be executed before git commit

Continue Reading »

Announcing my rust project: snb

After learning (and I’m still learning) basics of Rust, I decided that I need to work on real world project to get better understanding of the language and face real problems 😄

Introducing snb 1 - Superfast notes from the terminal 🎉

Continue Reading »