inetknght

joined 1 year ago
[–] inetknght@lemmy.ml 10 points 3 months ago

As someone who's written pipelines who do exactly that on Windows, macOS, Linux across x86_64, aarch64, and MIPS, with optimized, unoptimized, instrumented for ASAN, instrumented for TSAN, and instrumented for coverage, and does it all in a distributed containerized workflow... It's not as easy as it sounds. Honestly macOS is way more of a hassle to deal with than Linux.

Unless you need ROS. ROS is utter garbage. ROS is popular in robots. ROS is, unlike its name, not actually an operating system but rather a system of tools and utilities which do not follow any standards and certainly not the OS standards. I literally hate ROS. I would burn that shit to the ground and rebuild-the-world if I had the time to.

[–] inetknght@lemmy.ml 6 points 6 months ago

Yes, you're right.

And so non-competes should indeed be banned.

[–] inetknght@lemmy.ml 2 points 6 months ago

I'll quote my current boss's boss's boss when he asked a question of me:

@inetknght, can you please not write a book? I need a quick answer

[–] inetknght@lemmy.ml 4 points 6 months ago (4 children)

https://en.wikipedia.org/wiki/Serial_console

tl;dr:

Serial ports are (for example) commonly RS-232, although other types of ports exist. Imagine it to be a very slow Ethernet device. Because it's so slow (and the technology predates Ethernet and also has different requirements), it's usually attached directly to a device instead of to a network. But you could connect a modem to it and it becomes connected to a network device.

It could also be connected to a system console device. These are commonly called terminals. Such devices are often monochrome (especially older ones) because a serial connection is often bandwidth limited (eg, measured in kilobits per second instead of megabits or gigabits). Since it's so slow, it's not practical for video, so it's generally just text-only.

Note that your GPU might also output a system console but rendered on your display at very high resolution and with graphics-drawing capabilities. So a system console would be any console that connects to the system.

What is a console? Well, Wikipedia presents several valid articles and the common theme as far as computers go is that a "console" is typically something that a human and a computer use to interact with each other.

For serial consoles, you might find device files for them at /dev/tty*. But for general serial devices, it could be any of several different types of device files.

Wikipedia's article on /dev devices has a pretty decent listing of what kinds of devices you might find and several of them might be classified as a serial port. Any serial port might be connected to a serial console.

So in my case, a serial console is:

  1. 2x USB-to-RS-232 (USB is a serial protocol and is basically "just" another (Universal) (and perhaps high speed) Serial port (Bus), so conversion is super cheap)
  2. 1x RS-232 null modem cable

That's pretty much it in a nutshell. Then

  1. System 1 (the failing system) UEFI boots into repair system partition on a separately attached disk (eg, boot from CD or live USB) to get a local system console
  2. System 1 repair system mounts the failing system partition
  3. System 1 modifies failing system grub configuration to enable a serial console on the attached USB-to-serial device file and saves changes, then unmounts failing system partition
  4. Power off System 1
  5. Remove repair partition device
  6. Open terminal window on System 2 (recovery system)
  7. Connect System 2 terminal to the attached USB-to-serial device file using screen (oh wow those were some old days)
  8. Power on System 1
  9. System 1 boot enters grub recovery menu which allows fixing the system remotely

To be fair, a lot of that complexity could have been done by either reinstalling, or removing the hard drive and attaching it to another computer. But doing it this way allowed me to poke around and try different ways of solving the issue, rebooting, etc. It was a learning experience worth exploring.

It was years ago though and I think there was some complication with trying to understand what device file (or device number or something) needed to be to work on the correct serial device (there are often multiple)

[–] inetknght@lemmy.ml 5 points 6 months ago (1 children)

It’s also not a scripting language.

It definitely is a scripting language.

hello-world.js:

#!/usr/bin/env node

console.log("Hello world");

Your favorite command line tool:

chmod +x ./hello-world.js
./hello-world.js

You just need to install npm, eg via apt-get install npm.

[–] inetknght@lemmy.ml 49 points 6 months ago (18 children)
  1. have an nvidia GPU

  2. have Fedora

  3. download RPM package of drivers for Red Hat (after all, Fedora and Red Hat are... compatible, right?)

  4. Everything goes fine

  5. Six months later, upgrade to a new version of Fedora

  6. oops, kernel panic at boot after the upgrade, and no video to troubleshoot after UEFI boot

  7. figure out how to boot into a recovery partition from UEFI

  8. figure out how to enable a serial console over a USB device

  9. figure out how to connect to the serial console from another computer using another USB device

  10. figure out what the kernel panic is from (not the upgrade, but the driver which wasn't upgraded)

  11. figure out how to uninstall the incorrectly installed driver

  12. figure out how to install the correct driver

That was a fun three week OS upgrade.

[–] inetknght@lemmy.ml 2 points 6 months ago

Just make sure you're sitting when you're practicing... unless you like having your urine splash absolutely everywhere.

[–] inetknght@lemmy.ml 10 points 6 months ago (2 children)

There's less regulation in a developing country. So... if you get them hooked on it then, at least, you've got easy (albeit low) income. During the developing country maturity they will then be hooked on sugar and less likely to ban it or curb it.

It's just as any addiction.

[–] inetknght@lemmy.ml 77 points 6 months ago* (last edited 6 months ago) (13 children)

OTA TV: with ads

OTA TV: if you record you are pirating

Cable TV: you pay a fortune to have no ads!

Cable TV: now with extra premium stuff!

Cable TV: now with ads!

Cable TV: if you record, you'll be prosecuted

Cable TV: pray we do not alter the deal further

Cable TV: why is everyone moving away from Cable TV?

Youtube: your own videos!

Youtube: your own videos are actually ours

Youtube: our videos with ads!

Youtube: now pay a fortune to remove ads!

Youtube: pray we do not alter the deal further

Youtube: if you download or remove ads you'll be banned

This isn't the pattern you're looking for. Move along.

[–] inetknght@lemmy.ml 9 points 6 months ago

Absolutely. If you're passionate about it then you might want to learn more about how the scams are enabled by modern technology's complete disregard for security and privacy.

[–] inetknght@lemmy.ml 90 points 6 months ago

I'm honestly on Torvalds' side here.

Tabs are a necessary part of the tooling and configuration files. Any tool which doesn't properly handle files that are correctly formatted for other tools is... a broken tool.

[–] inetknght@lemmy.ml 4 points 6 months ago

grep -oP ' *' oops no tabs

cut -d ' ' -f 3 oops no tabs

view more: next ›