[-] ulterno@programming.dev 0 points 11 minutes ago

If someone walking by, falls over that, that's a lawsuit waiting to happen.

[-] ulterno@programming.dev 0 points 35 minutes ago

Tools that are closer to logic, are better for helping with coding. So an expert system is better than a Neural Network for making code helper tools, although its output would be more limited and wouldn't take human language input.

Using an LLM for this stuff means telling humans to not put the effort into making logic, hence "reducing their cognitive load", but instead using something that takes a lot more energy (as in fuel) to make logic.

What we are currently calling AI, is a fuzzy system, abstracted onto a logical system. And now we are trying to make that abstracted fuzzy system make another abstraction on top of it, that does logic. This is vs the human brain, which is a fuzzy system made directly out of chemical (and quantum, as some studies would state) processes, just creating a logical system on top of it.


Each leveI of abstraction has a cost.

  1. If you make an lC with a fixed instruction flow (i.e. it does only a single thing), it won't have to load instructions and will only load data and parameters, which wilI make it much more efficient at that specific process.
  • ln this case, the Ioading of variabIe data and parameters wiII be the sIowest part
  1. Now, you can specify a set of instructions, which are then implemented in hardware. Then, when you load instructions from a variable input (ROM, perhaps) you get to change the instruction flow can be changed on the fIy, but now the Ioaded instructions are an abstraction and are actuaIIy Ioaded parameters.
  • ln this case, loading of instructions becomes as sIow as parameters and then you see preloading/prefetching (and further, branch prediction) to make this part faster

One nice example of abstractions is interrupts:

  • EarIier you had polIing, which meant that the CPU would have to check the corresponding data Iine every n clocks, determined by the polling rate and this would have to be written by the software programmer.
  • With interrupts, you now have a separate unit doing the poIling (which is much more efficient, because that is the only thing it is made for) and storing any state changes an a buffer, which then, depending upon the type of interrupt, can be taken by the program (which is stiIl polling, but at a much slower rate) and acted upon or may be done using interrupt routines.
  • There is a similar thing you do in case of muItithreaded code. Where if there is a Ioop running in thread A that needs to be interrupted by B. B will change the value of some variable, which can be checked by A. Now if there is a Ianguage that simplifies this interruption process, there will be some runtime that is doing a similar job for you. This will be another level of abstraction, which will require extra effort on runtime.

One of the heaviest examples of abstraction l can think of, is what is done by the programs that simulate other processors. Things like the tools provided by FPGA manufacturers that let you emulate the logic inside the processor and Mentor tools which even have simulation starting from the user, designing the transistors.
These are usually not used anywhere other than cases of testing, debugging, prototyping and the sort.
Virtual Machines made for emulation are a bit different from these, but are pretty heavy nonetheless and one won't consider, say emulating a Nintendo 3Ds on a hardware of similar performance for daily use.

[-] ulterno@programming.dev 2 points 1 hour ago

It was specifically for ST2000DM008-2FR102 and not all ST2000DM008's.
Felt weird from the summary paragraphs, because I have a ST2000DM008 which works perfectly with LPM. I have even tried some manual control a few times.

[-] ulterno@programming.dev 0 points 2 hours ago

I used it a few times and it seems like a good choice for keyframe cuts.
For when you are re-encoding anyway, might as well go with ffmpeg.

[-] ulterno@programming.dev 2 points 17 hours ago

And then the religious leaders will make fake commandments that lets them get their way and use the hand as an undeniable truth.

[-] ulterno@programming.dev 1 points 18 hours ago

Yeah, therapy and medication comes after the cheaper stuff.
But after OP gets more for themselves, you get some for you.

[-] ulterno@programming.dev -3 points 18 hours ago

About the word, "safe" and how it is contextual.

[-] ulterno@programming.dev -3 points 19 hours ago

Depends upon what you want to be safe from.

If you want to be safe from having a flash mob come and beat you up, I'd say, this assumption doesn't really compromise your safety.
If you want to be safe from having the wrong assumption, well, you are deep in unsafe territory.

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

Next, try uploading a 1 GB PDF.

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

I feel like that wide skirt would be good to make others give some personal space.
But then there are people that would bend over to get in your face.

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

OOP can now confidently check the "I'm not a robot" checkbox.

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

ffmpeg ... -c:a flac -exact_rice_parameters 1 -multi_dim_quant 1 ...

I was encoding wav to flac.

  • With default options, the result was almost instant
    • At > 500x speed
  • Used -compression_level 12, finished in ~ 7 seconds
    • speed = 48.9x
  • Then I used multi_dim_quant
    • After ~ 10 minutes, I checked the speed to be ~ 0.02x. So thought it would take an hour or so. 1.30 seconds worth of audio was encoded
    • It's been over 2 hours now.
      • Shows 1.46 seconds of audio encoded with current speed = 0.00017x

Considering running it in a VM, so I can "pause" it whenever I need to restart my computer.

Update:
size= 123KiB time=00:00:02.82 bitrate= 356.3kbits/s speed=4.68e-05x
It stopped trying to use layman notation.
I'll need to restart soon-ish, but I'll see how far this goes and if the 2.82 seconds of audio is even listenable.

6

cross-posted from: https://programming.dev/post/34025065

DeviantArt Link

Endless Sky is and open source game. This animation is inspired by the compass image that shows up on the menu screen.

CC BY-NC-SA 4.0 : https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en

Used stock https://github.com/endless-sky/endless-sky.github.io/blob/master/images/compass.svg as the base. License info at https://github.com/endless-sky/endless-sky/blob/master/copyright:

==========

Files: images/*

Copyright: Michael Zahniser mzahniser@gmail.com

License: CC-BY-SA-4.0

==========

When sharing, please make sure to include the information in this description including information regarding the stock image. If not possible, then at leas keep the metadata in the file, which contains similar information.

Modelled and animated in Blender on Linux


If you are affiliated to the game "Endless Sky" and need a change in licensing info let me know here.

pacman -S endless-sky

10

DeviantArt Link

Endless Sky is and open source game. This animation is inspired by the compass image that shows up on the menu screen.

CC BY-NC-SA 4.0 : https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en

Used stock https://github.com/endless-sky/endless-sky.github.io/blob/master/images/compass.svg as the base. License info at https://github.com/endless-sky/endless-sky/blob/master/copyright:

==========

Files: images/*

Copyright: Michael Zahniser mzahniser@gmail.com

License: CC-BY-SA-4.0

==========

When sharing, please make sure to include the information in this description including information regarding the stock image. If not possible, then at leas keep the metadata in the file, which contains similar information.

Modelled and animated in Blender on Linux


If you are affiliated to the game "Endless Sky" and need a change in licensing info let me know here.

3

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?

43
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.

41
submitted 7 months ago* (last edited 7 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});
			}
21
submitted 8 months ago* (last edited 8 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% !?
19

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
0

Hopefully we can get better input to the discussion here.

29
submitted 1 year ago* (last edited 9 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)

270
submitted 1 year ago* (last edited 1 year 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 1 year ago