Readit News logoReadit News
zorlack commented on Show HN: Sping – An HTTP/TCP latency tool that's easy on the eye   dseltzer.gitlab.io/sping/... · Posted by u/zorlack
withinboredom · 6 days ago
FYI: the final summary gets hidden if the graph writes a frame after the summary is output.
zorlack · 6 days ago
That's a great catch! thank you!
zorlack commented on Show HN: Sping – An HTTP/TCP latency tool that's easy on the eye   dseltzer.gitlab.io/sping/... · Posted by u/zorlack
guessmyname · 6 days ago
> It's easy to install if you have pip. (Available at service-ping-sping on PyPi)

Consider rewriting the program in Go, then you’ll have a statically linked binary that’s much easier to install (less dependencies) and will be much faster too.

zorlack · 6 days ago
You're certainly right that statically linked binary is the most optimal expression of this goal. Especially for use in a secure environment.

Alas, this is just a python tool :)

zorlack commented on Show HN: Sping – An HTTP/TCP latency tool that's easy on the eye   dseltzer.gitlab.io/sping/... · Posted by u/zorlack
gnyman · 6 days ago
Looks nice.

I would add a link to the gitlab to the page also, clicking the LICENCE brings me to the source code but other than that there did not seem to be a link .

Out of curiosity, did you use LLM's to code this? My gut feeling tells me at minimum the readme was written by one, or maybe it's normal to use emojis everywhere :-) Also I am not meaning to judge it as good or bad, I'm just curious.

I think one thing that LLM's and coding agents enables, is creating these customised solution which solve a specific problem, in a specific way. Some might consider it wasteful. I bet many thinks your effort would have been better spent contributing to one of the existing ones instead of doing yet another tool, but I find fascinating that we can finally tell our computers what we need and the will do it.

If you hand-wrote everything, then apologies for the unrelated rant :-)

zorlack · 6 days ago
Yes, I used LLMs to develop this. I think the README has more emojis than any mortal could summon. Hehe

I used ChatGPT to design the solution that I wanted and Claude Sonnet to do most of the coding.

I'm trying to figure out what works for me in the brave new world of AI enabled development, so that I can make recommendations to my team.

A few things that really helped me here were:

- Having the gitlab cli (glab) installed and configured was very helpful because it allowed me to do things like lint the CI file and inspect the build output in the LLM context.

- Having the zereight/gitlab-mcp installed was useful as well. Even though I can make Issues and MRs using the CLI, the LLM frequently made escaping mistakes when writing long comment sections. The mcp tool was great for this.

- Almost all of my process started with me describing a bug or feature, then asking the LLM to investigate the feature and create an Issue. From there I tried as much as possible to keep the scope of my work small and exclusively tied to an issue branch.

I'm a reasonably good programmer - I've been at it for 30 years. I think there's no question that LLMs expand my "radius of capability." Just like everyone else, I'm trying to figure out the best way to safely maximize this new world of tools.

zorlack commented on Show HN: Sping – An HTTP/TCP latency tool that's easy on the eye   dseltzer.gitlab.io/sping/... · Posted by u/zorlack
johnQdeveloper · 6 days ago
Just fyi, looks like the shortened command defaults has a bug based on the docs @ https://pypi.org/project/service-ping-sping/

(i.e. # HTTP monitoring with interactive UI sping google.com )

  sping johnqdeveloper.com     
  Usage: sping [OPTIONS] URL
  Try 'sping --help' for help.
  ╭─ Error ──────────────────────────────────────────────────────────────────────╮
  │ Invalid value for '--palette': <ColorPalette.SUNSET:   'sunset'> is not one of │
  │ 'sunset', 'ocean', 'forest', 'volcano', 'galaxy', 'arctic', 'neon',          │
  │ 'monochrome'.                                                                  │
  ╰──────────────────────────────────────────────────────────────────────────────╯

zorlack · 6 days ago
Thank you for reporting this!

Would you mind telling me what environment you found this behavior in, and how you installed the app?

I've been testing in ubuntu containers doing:

    pip3 install service-ping-sping --break-system-packages
Thank you so much!!

*EDIT:*

I think this is to do with me not being specific about what version of typer I depend upon... working on it now!

This is now fixed in 0.2.11. Thanks @johnQdeveloper

zorlack commented on SpaceX Falcon 9 booster lost in landing failure   spaceflightnow.com/2024/0... · Posted by u/verzali
consumer451 · a year ago
> This was the booster’s 23rd flight

I did not realize that they had a booster with that many launches.

zorlack · a year ago
This booster is the record holder.

I'm sure they expect that a long-lasting reusable rocket will eventually fail.

SpaceX must be eager to study the wreckage to see where to improve their reconditioning process.

zorlack commented on Ask HN: Those running K8s in house, can you please explain your architecture?    · Posted by u/gnulinux996
speedgoose · a year ago
I can’t find anything about this. The project looks still active.

Perhaps it’s a confusion with k3os, a k3s operating system. https://github.com/rancher/k3os

zorlack · a year ago
Lol. Probably because it's actually confusing.

I love all of the oddball projects being spun out by Rancher/Suse. It can be hard to keep track of them.

Oh wait this one is kubernetes distro, and that one's an OS and this thing... well it's a... err... binary container something-or-other?

zorlack commented on Ask HN: Those running K8s in house, can you please explain your architecture?    · Posted by u/gnulinux996
zorlack · a year ago
My team does quite a bit of this. We handle it in two different ways:

For some clusters we carve nodes out of VMWare simply using OS templates. For other nodes we we use cheap-and-deep blade servers and install the OS on bare-metal using PXE. Once the nodes are provisioned we use ansible to deploy Kubernetes. (Lately it's been RKE2 on top of Rocky.)

Generally speaking VM-based nodes are extremely reliable and seldom have to be rebuilt. (If we're paying to run VMWare its because the underlying hardware is high-quality.) Bare-metal nodes, on the other hand, are built on inexpensive hardware and they tend to fail in different ways. When they fail we cordon and remove them from the cluster and put them in a list. (We maintain sufficient overcapacity to soak failures as they come.)

If we're using persistence we have to take care that the statefulsets are configured correctly. Sometimes we use local-disk persistence so that our services can benefit from local NVME performance. Other times we use NFS (when we need persistence but not performance.)

We monitor cluster node health internally to Kubernetes and also externally using Nagios (shudder).

Kubernetes upgrades are a pain in the ass. Lots of times we'll just set up a second cluster to avoid the risk of a failure during an upgrade.

zorlack commented on Global Firepower Index   globalfirepower.com/... · Posted by u/smartmic
zorlack · a year ago
I hope the advertising revenue is meaningful, because boy does it detract from the user experience.
zorlack commented on Power line will send Canadian hydropower to New York   newscientist.com/article/... · Posted by u/Brajeshwar
zorlack · 2 years ago
So if this power line will carry 1250MW. And elsewhere Hacker News tells me that it takes 200J to restart a heart.

Math... math... math... wolframalpha... calc.exe... math

I think this can restart 6.25M hearts per second.

(Please don't try this)

Edit: The defib duty cycle is probably closer to 100ms. So you could probably do 10 times this number, especially since you don't need a charge capacitor.

u/zorlack

KarmaCake day111March 22, 2021View Original