Toots for sumanthvepa@mastodon.social account

Written by sumanthvepa on 2025-01-30 at 07:00

If you are writing individual unittests, you may be doing testing wrong.

I finally #parameterized all the #python #unittest for my deployment tool.

This is the way testing should be done.

The way testing is taught, with single unit tests is very misleading.

With parameterized tests, I can automatically test a significant portion of the input space of function or program.

[#]testing #softwaredevelopment #programming

=> More informations about this toot | View the thread

Written by sumanthvepa on 2025-01-27 at 05:31

  1. How frequently the user interacts with the CLI.

The more frequently the user interacts with a CLI, the more complexity the CLI can have. For example #git can get away with having a complex CLI, because users interact with it a lot, and get used to the complexity quickly. But for #systemd, the frequency of use is not high enough for the user to remember how to use its complex CLI.

[#]cli #design #software #programming

=> More informations about this toot | View the thread

Written by sumanthvepa on 2025-01-27 at 05:28

I'm in the middle of designing a #CLI (command line interface) for my deployment tool and came across this comment on hacker news about how hard some CLIs are.

My theory is that the level of complexity that a CLI is able to support without causing the user to lose the ability to use it, is a function of two factors:

[#]cli #design #software #programming

=> More informations about this toot | View the thread

Written by sumanthvepa on 2025-01-25 at 16:36

[#]Python really needs better support for #parameterised #unittests. The paremeterized python package is okay, but leaves much to be desired.

I would love have package that integrates with my #IDE, (#VScode, #PyCharm) etc.

=> More informations about this toot | View the thread

Written by sumanthvepa on 2025-01-24 at 09:38

4/4 So over the weekend, as I get some time off from the main tasks of the week, I thought, I'll try and build something.

=> More informations about this toot | View the thread

Written by sumanthvepa on 2025-01-24 at 09:36

3/4 The command should just figure out everything, including GitHub repository where the code for the app is located, the branch that is relevant to the specified environment. It should build the docker images needed for deployment, create the db instances that are needed for the environment, deploy the application and start it the correct way.

=> More informations about this toot | View the thread

Written by sumanthvepa on 2025-01-24 at 09:34

2/3 So, I've decided to just clean up my deployment scripts, re-write them in #python instead of #bash, and call it a day.

I'm looking for a command like:

deploy --environment=local my application

=> More informations about this toot | View the thread

Written by sumanthvepa on 2025-01-24 at 09:31

1/2 Now that've I've #docker -ized my application, infrastructure. I need a small tool that will easily deploy my applications to local dev environments, the test server running on rack in the office, and to the cloud.

I took a brief look at #terraform #ansible, #kubernetes, and #docker #swarm

But each of these seems overly heavyweight for my use case.

=> More informations about this toot | View the thread

Written by sumanthvepa on 2025-01-24 at 04:19

So my wife, asked me yesterday what a Neural Network was. After shedding copious tears of joy that she took an interest in what I did for a living I pointed her to @3blue1brown 's beautiful tutorial on the subject.

Now she want's to learn the stuff, and I'm wondering what sort of resources would be appropriate for a motivated learner with just a high-school math background.

https://www.youtube.com/watch?v=aircAruvnKk.

[#]neuralnetworks #education

=> More informations about this toot | View the thread

Written by sumanthvepa on 2025-01-06 at 14:11

Started the new year by pushing a bunch of commits to #github, when I got the dreaded warning about commit file size:

remote: warning: File ... is larger than GitHub's recommended maximum file size of 50.00 MB.

The recommended solution is to use #gitlfs, but having been burned by it in the past, I know Git LFS is the spawn of the devil.

So looking for an alternative, I came upon #gitannex.

Will try that on an experimental basis to see if it works.

https://git-annex.branchable.com

=> More informations about this toot | View the thread

Written by sumanthvepa on 2024-12-03 at 11:26

Was writing C++ code that deals with very large files in memory. Sometimes the files in question are larger than physical memory. I wrote my C++ code to catch memory allocation failures and terminate gracefully,

But that is not what happens. On modern Unixes, the kernel's OOM (out-of-memory) process will kill a process to terminate it before the process itself gets a a chance to terminate gracefully.

How do folks deal with this?

https://stackoverflow.com/questions/58935003/detecting-that-a-child-process-was-killed-because-the-os-is-out-of-memory

#linux #macOS #cpp #cplusplus

=> More informations about this toot | View the thread

Written by sumanthvepa on 2024-11-27 at 05:32

If you are looking to virtualize your infrastructure, #docker isn't the only game in town. It's worthwhile looking at options, if only to understand the underlying technology. This #Fedora page gives you a good overview of your options. https://docs.fedoraproject.org/en-US/fedora-server/containerization/

[#]virtualization #containers #virtualmachines

=> More informations about this toot | View the thread

Written by sumanthvepa on 2024-11-27 at 04:16

I'm configuring #KVM on my #Linux laptop this morning and I came across #netplan. It's a tool to easily configure, networks on Linux. Very useful if you need to configure bridge devices on #Ubuntu. #networking https://netplan.io

=> More informations about this toot | View the thread

Written by sumanthvepa on 2024-10-28 at 03:51

I came across the #hindleymilner type system while learning swift. Got curious. The #wikipedia page is a good start.

[#]types #programming #lambda #calculus

https://en.wikipedia.org/wiki/Hindley–Milner_type_system

=> More informations about this toot | View the thread

Written by sumanthvepa on 2024-10-26 at 12:03

I'm releasing an experimental version of our #postgres #docker image built on top of @almalinux

It is, for the most part a drop in replacement for the official postgres docker image that runs on Debian.

It's licensed under the GNU GPLv3.

The code is experimental, so please use it at your own risk.

But if you do, please do drop me a note on your experience, and if there's anything I can do to improve it.

You can build the image from this GitHub link:

https://github.com/sumanthvepa/experiments/tree/main/docker/basics/postgres-test

=> More informations about this toot | View the thread

Written by sumanthvepa on 2024-10-23 at 12:07

Apparently, #Microsoft uses a bunch of scripts for their developers to 'de-bloat' a #Windows installation for developers.

Useful if you want to setup a streamlined Windows development environment. https://github.com/microsoft/windows-dev-box-setup-scripts/tree/master

[#]development #programming

=> More informations about this toot | View the thread

Written by sumanthvepa on 2024-10-22 at 05:47

I'm upto my neck debugging our custom #docker container for #postgres.

One really useful tool that I've found for debugging docker containers is docker debug. It lets me examine the container to get a feel for what's going on.

https://docs.docker.com/reference/cli/docker/debug/

[#]containers #devops

=> More informations about this toot | View the thread

Written by sumanthvepa on 2024-10-19 at 12:27

I love sites like #McMasterCarr. They are not in fact simple to build despite their look. They are blazingly fast because they have been engineered to be.

https://www.youtube.com/watch?v=-Ln-8QM8KhQ

[#]webdev #development #programming

=> More informations about this toot | View the thread

Written by sumanthvepa on 2024-10-14 at 14:17

I walked out into the balcony of my flat last week to, be confronted by bunch of #warships in the harbour.

Thankfully, it wasn't WWIII Just the four-nation QUAD Malabar 2024 naval exercises.

After a little research, the ship in the background is the Arleigh-Burke class destroyer, USS Dewey (US #Navy) the ship in the middle is the replenishment ship INS Shakti (Indian Navy) and the ship in the foreground is the Marusame class destroyer JS Ariake (Japan Self Defence Force) #photography

=> View attached media

=> More informations about this toot | View the thread

Written by sumanthvepa on 2024-10-13 at 21:20

I just realised that I've never seen an actual, real TTY. https://www.youtube.com/watch?v=AwqryPuwl_w #linux #unix

=> More informations about this toot | View the thread

=> This profile with reblog | Go to sumanthvepa@mastodon.social account

Proxy Information
Original URL
gemini://mastogem.picasoft.net/profile/109316164103730696
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
350.10603 milliseconds
Gemini-to-HTML Time
6.148032 milliseconds

This content has been proxied by September (3851b).