Showing posts with label Scientific method. Show all posts
Showing posts with label Scientific method. Show all posts

Tuesday, November 24, 2020

Linux case sensitivity in mounted network path - ls v/s cp commands

This is about simple troubleshooting did in the Raspberry Pi (Raspberry Pi OS ) environment that related to path sensitivity. As most of us know when Windows guys start in Linux it happens. But here it's a little interesting as the issue occurred on a path that is mounted from a shared path using cifs driver.

If this is already known and feels obvious, please skip.

Problem

The below copy command failed.

Friday, June 19, 2020

[Video] Scientific approach to software engineering - Debugging template

One of the previous posts in this post was about scientific debugging and a template to document our hypotheses. The same has been published as a video. Below is the embedded video


The audio didn't get sync properly. Let me know your feedback about the content as well as video presentation.

Tuesday, April 28, 2020

Setting up home NAS - Part 1 - Scientific debugging to get USB drive visible as \\share in network

Introduction

One of the previous posts was about scientific debugging and a template for debugging notes. The scientific approach really shines when we have to pause and resume the debugging. 
This is one live example where it is applied not necessarily in code debugging but fixing an issue with the home router

The requirement was to set up a home NAS. There are many ways to make it. A detailed post on home NAS would be coming in the future as part 2. One way is to set up a poor man's NAS like system is by connecting a USB drive to the home router if the router supports it. Nothing fancy. No high availability. Just a backup mechanism.

This post is to discuss one problem faced during the setup. 
After connecting the USB drive, the corresponding share is not getting visible to Win 10 machines.

Debugging a router problem would not be interesting to the readers of this blog as the majority are developers. But this gives a good example of how to follow scientific debugging which guarantees an output.

Solutions in internet

Optimum is the internet connection provider here but their connection guide doesn't have anything on it. Then checked the D-Link DIR-868L router page. That also not talking about any specific than marketing works. Then read the support page of the router. It has some more details including how to connect USB. But there is no special step mentioned. Just connect a USB drive and navigate to \\Router IP

Scientific debugging

Since its lockdown and debugging with kids (5 and 2 years) is extremely difficult as continuous troubleshooting is not at all possible. So I decided to follow the scientific debugging using the template created earlier. It is in gist and embedded below.

Tuesday, February 25, 2020

Scientific approach to software engineering - debugging template

What is scientific debugging

It is the practice of bringing "The scientific method" into debugging software problems. It is mainly driven by hypothesis. If we follow scientific debugging, we can easily offload state from our brain, easy to pause and resume debugging. Ultimately to save our nights and weekends.

One more template!

There are limited resources on the web talking about scientific debugging. More links in the resources section below. When we practice the scientific debugging we need to document the hypothesis and its results on the paper. As we all know, without a template, developers never document. Unfortunately, there is no good template available. Hence need to create below one.

It is a gist so anyone can issue a PR to update the same.

Resources

Happy debugging...