Spyke

Replies

Comment on

Stick shift drivers - would you get an electric vehicle?

Recently had an electric Fiat 500 as a replacement while my car (Mazda 3) was in service and I absolutely loved how it drives. Nice consistent acceleration, immediate reaction to the throttle. Much better than the automatic transmission cars I drove before. 3 problems though:

  • range (duh): I often need to drive for 280km in one go, vast majority of EVs can't do that reliably (with AC and going 130km/h). If you can survive a day on one charge it is awesome though: plug it overnight and you're ready to go in the morning
  • the price of the car (it felt waaay too simple and plastic-y inside compared to 30K euro price I googled)
  • big brother software on the headunit, although there is no escape from it with any new car these days
cpp

Comment on

When using command line arguments, is better to use them as c strings and interact with them using the cstring header functions?, or is better to convert them to library strings for using them?

Use std::string_view to sort of get the safety of std::string without copying the contents (just in general make sure the original c string won't get freed or overwritten, which won't happen to argv in your case).

Or just std::string and yolo, the overhead of copying the contents is negligible in your use case.

Comment on

Streaming local Webcam in a Linux machine, and acessing it when on vacations - which protocol to choose?

I'd go for HLS due to its simplicity: just files over http(s). VPN or not - depends on your network. If your machine is accessible from the internet, just putting the files into a webserver subdirectory with a long random path and using https will be secure enough for the usecase. Can be done with an ffmpeg oneliner.

The downside of HLS is the lag (practically -- 10s or more, maybe 5 if you squeeze it hard). It is in no way realtime. Webrtc does it better (and other things too), but it is also a bigger pain to set up and forward.

Also, just in case, test that the webcam works fine if left active 24/7. I had (a cheapo) one that required a powercycle after a week or so...

Comment on

Data visualization, like Grafana, but configurable without gui.

Reply in thread

To be precise, the page explains how to configure some things and how to upload the config. I also tried that.

The problem is in the dashboard jsons. They are not well documented (docs on specific plots are missing), and are a pain to edit (as any json). The grafanalib tool I mentioned tries to help with that by implementing a sort of DSL for dashboards, but it is not ideal. (edit: lost a word)

tech

Comment on

Brain chips to be tested on humans this year, Elon Musk says

Reply in thread

As a concept - why the hell not?! The first use - typing/moving mouse more or less by thinking about it. Even for me, whose main problem right now is the tiny annoying soft keyboard of a phone it's a great feature, but think about people with various disabilities (or just stuff like Parkinson's, which also makes typing difficult).

However, there is a problem. It of course will be made by an evil corporation (the non-evil ones are outcompeted and dead), with shitty security and a few back doors...

Comment on

In the Context of Gaming, What do you Like/Dislike about your current Distribution?

  • Gentoo.
  • Gives me Wine, it works. And if it doesn't, there is an easy and out of the box way to apply patches. Also it gives me libvirtd for (offtopic), it also works. Upd: and doesn't do anything stupid, so native games (rimworld, factorio, etc) don't break.
  • Not sure, I've got all I need. Maybe some nice sandboxing tool, writing apparmor configs is a pain. Although it's not really a distro's responsibility.
  • Nope.

edit: removed accidental markup

Comment on

Use desktop to self-host?

Whatever works for you. Just do it. It is convenient as f when you are just starting. You can always improve incrementally later on when (if) you encounter a problem.

Too much noise/power costs to run a small thing - get a pi and run it there. Too much impct on your desktop performance - okay, buy a dedicated monster. Want to deep dive into isolating things (and VMs are too much of a hassle) - get multiple devices.

No need to spend money (maybe sponsoring more e-waste) and time until it's justified for your usecases.

Comment on

Data visualization, like Grafana, but configurable without gui.

Reply in thread

Something like that, where I just write a function that spits out a numpy array or something like that and it gets plotted, would be great, but there is one thing Grafana can do and vega-altair, plotly and even matplotlib (*): a UI that allows to select a time interval to view.

So I can freely pan/zoom in/out in time, and only the required part of the data will be loaded (with something like select ... where time between X and Y under the hood). So if I look at a single day, it will only load that day, and only if I dare to zoom out too much it will spend some time loading everything from the last year.

(*) yes, you can do interactive things with matplotlib, but you don't really want to, unless you must...