[-] ulterno@programming.dev 0 points 1 day ago

As long as it is something I want to be loading all at once, I would go with JSON and use the JSON binary format provided by QJsonDocument and forget about it.
But if I expect it to get bigger and need stuff partially loaded, things get lengthier.
Stream Reading libraries (e.g. the XML one in Qt) makes it much longer to write and that's where I would consider whether to use a database instead.

[-] ulterno@programming.dev 1 points 1 day ago

Yeah, seems weird.
Normally one would use multiple horses and some ropes for that. No idea how you would manage that with a single dog

[-] ulterno@programming.dev 7 points 2 days ago

Your disk quota shall be reduced by 100MB before redirecting you to ed

[-] ulterno@programming.dev 0 points 3 days ago

If I am using Excel, I am using Windows and I will be changing all text to use CR-LF newline format (if sending from a Linux system) anyway.

[-] ulterno@programming.dev 3 points 3 days ago

more of a concept

And it's better to be considered so.
The name itself suggests a Comma as a separator, but we know how inconvenient that is and that tab characters tend to be useful in most cases.
Even LibreOffice Calc asks the user what they expect as the separator when given a csv file, even if it has enough commas to feel correct.

[-] ulterno@programming.dev 3 points 3 days ago

One big reason for requiring comments being updates the same time as what is commented. I once managed to do that for a while when I alone was making and maintaining a project.

It becomes harder, the more people are working on a project and the larger the project gets.

But the alternative would lead to Java-like function-etc names and that is not very desirable either.

4

Also, bought 2 of them, because the brain needed to fart out loud.

Not only are the fans much slower than what the sticker says (2000RPM), they also make more heat in the motor than they will ever dissipate. And of course, they just couldn't sell one without RGB.

Looked closely and even the axle is not centred.

On the other hand

Can someone help me do something fun with this that would make me feel less shitty about myself?

44
KTorrent LoL (programming.dev)

Screen Recording of an application window: at the bottom of a widget, the cursor changes to a resize icon. Click+Dragging the portion reveals empty white space.

42
submitted 2 months ago* (last edited 2 months ago) by ulterno@programming.dev to c/programmer_humor@programming.dev

Description, because "alt text" can't show it well:

			{
				emit differentFiles (ckFile.absoluteFilePath(),
					otherFile.absoluteFilePath(),
					FileCompareWorker::FileComparisonParams{FileComparisonParams::FileNameMatch,
						(ckFile.size() > otherFile.size()) ? FileComparisonParams::File1IsLarger
							: FileComparisonParams::File2IsLarger});
			}

After Alignment

			{
				emit differentFiles (ckFile.absoluteFilePath(),
					otherFile.absoluteFilePath(),
					FileCompareWorker::FileComparisonParams{FileComparisonParams::FileNameMatch,
						(ckFile.size() > otherFile.size()) ? FileComparisonParams::File1IsLarger
														   : FileComparisonParams::File2IsLarger});
			}
22
submitted 3 months ago* (last edited 3 months ago) by ulterno@programming.dev to c/asklemmy@lemmy.world

To WiFi users.

Do you reduce your router's WiFi Transmit Power to the bare minimum as required by you?

  • Do you just keep it at the default 100%
  • Did you not know you could reduce it (until now)
  • Are you not able to control "your" WiFi router because it's the ISP provided router and they didn't give you the password?
  • Do you actually require the 100% !?
[-] ulterno@programming.dev 54 points 3 months ago* (last edited 3 months ago)

pops into my head semi-regularly

Isn't that called "trauma"?

20

A person, on the Gnome Issue, suggested that terminals inhibit sleep when there is stuff running in them.

Continuing from that discussion, I am trying to understand, at which point it would be desirable to implement said inhibition - terminal emulator, the shell or the program itself

Additionally:

  • We want to inhibit when running stuff like pacman, wget, cp or mv
  • We don't want to inhibit when running stuff like htop, less, watch
[-] ulterno@programming.dev 34 points 3 months ago

commit signing is a thing

The tech-lead is in the adjacent cell. Now you know why.

1

Hopefully we can get better input to the discussion here.

[-] ulterno@programming.dev 42 points 5 months ago
  1. A good anime avatar takes skill = money
  2. Getting people to desire your streams takes effort
[-] ulterno@programming.dev 49 points 5 months ago* (last edited 5 months ago)

You'd want that, but a lot of programs do that, both in Windows and Linux.

e.g. The .directory files with the [Desktop Entry] spec by freedesktop.org
Dolphin has the option to enable/disable the feature

[-] ulterno@programming.dev 35 points 6 months ago

Get into police?

[-] ulterno@programming.dev 57 points 6 months ago* (last edited 6 months ago)

gut push --force does not work.

But I added "force"!

sudo gut push --force still not working.
Of course I don't try to understand the error output. I just see that it is not working.

30
submitted 7 months ago* (last edited 3 months ago) by ulterno@programming.dev to c/linux@programming.dev

I have a multiboot system. One of the installed OS's does not use the NVMe SSD installed on the motherboard at all.
At the time of taking the screenshot, all the SSD partitions are unmounted, so apart from detection, the SSD is mostly unused.

  • I would like the temps to drop down to SYSTIN (≈35°C) levels.
  • I know, it's right next to my GPU, but I am not doing anything GPU intensive, the GPU temps are ~37°C ^[apart from GPU memory, which is 48°C due to the awful AMD 7th gen Zero RPM, which has no workarounds on Linux]

For the unmounted and unused HDDs, I just use hdparm -Y, but there seems to be nothing in terms of that for the SSD. And even though I appreciate the additional heat in winters, this is going to be too expensive for me. I'd rather burn some cheap Nichrome than my data storage device.

I checked out a Debian forum thread and from that, I checked the following:

❯ sudo nvme get-feature /dev/nvme0 -f 2 -H
get-feature:0x02 (Power Management), Current value:0x00000004
        Workload Hint (WH): 0 - No Workload
        Power State   (PS): 4

Showing it is already in the lowest power state.

Update: I probably checked that at the wrong time before. Did so again after Sleep and realised the Power State was 0. So just need to make sure the Power State went back to 4 after wake.

I have no active cooling setup for the SSD from my side. This becomes relevant soon.

  • Checking the SSD temps (using the same widget as in the image), the temperature on Sensor 2 starts out at ~40°C (after a normal reboot) and slowly increases to >50°C as shown at the start of the graph. Power State (PS) is still 4.

  • Running KDE partitionmanager, which probably does some reading to check the partition information, at 50°C stage, causes a temperature drop, as shown in the image.

  • Running KDE partitionmanager right after reboot, when the temperature is increasing very sloowly, seems to do nothing significant.


  • Turns out that after a few minutes of System Standby, the SSD doesn't return to PS: 4, so I have the culprit.
  • Running partitionmanager after that causes it to go back to PS: 4

So we have a solution! All I need to do is run partitionmanager on wake. nlol jk


Motherboard: MSI MAG X570S TORPEDO MAX (MS-7D54)
SSD: Samsung 980 512GB (correct firmware, bought long before the fakes started coming out)

271
submitted 7 months ago* (last edited 7 months ago) by ulterno@programming.dev to c/programmer_humor@programming.dev

Until he actually had to use it.

Took 2 hours of reading through examples just to deploy the site.
Turns out, it is hard to do even just the bash stuff when you can't see the container.

view more: next ›

ulterno

joined 7 months ago