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

While Python seems fine to me, JS is where it becomes too un-hard for me.
I have to use QML quite frequently in my work (which is based on JS) and make a point of including as less program logic as possible in QML and transfer any input to C++ code in as few steps as I can. Essentially keeping QML just for Markup and leaving the program to C++.

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

Wasn't the real reason for that, that all of those things still require the user to treat it is a logic system and feed proper logic in some or the other way (which might be not coding, but is still programming)?
And since the non-technical people are actually bad at logic itself, it was useless to them. I would see those tools being useful to any other kind of engineer that is not into coding (like a civil/mechanical engineer), who can do logic, but not into coding or even computers.
On the other hand, the user treats AI is a non-logical system, kinda like another person. And I see the business/marketing/hype types getting better at it. I, for one, find it much easier and faster using a hard logic system (the harder, the better) and programming suits me, while I find AI exhausting.

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

pop people like a kitten in a microwave

Does a kitten really pop in a microwave?
I would expect it to just boil as things normally do.

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

that will decimate the ozone layer in 15-30 years.

🤦
I always thought of de-orbiting just to burn-off as a waste, but now this.

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

They only became trillionaires by doing activities that make millions of people's needs unmet.

[-] ulterno@programming.dev 4 points 20 hours ago* (last edited 20 hours ago)

Code quality will not improve.

  1. People's expectations will go down.
  2. Normal programmers will be phased out of the industry.
  3. Educational systems will change, leading to no normal programmers for OSS.
  4. Once Gen AI companies get enough power, they will start increasing rates, citing costs.
  5. Vibe coding will become as expensive and time taking as current programming, but giving worse output.
  6. It will be tagged "inflation".

Source?
The same thing is currently happening with all factory type industries, which were originally workshop based and customisation friendly.

  1. They got overthrown by mass-production models, due to lower costs.
  2. Now mass produced stuff has lower creation costs but has higher shipping costs, so no real benefit after forgoing quality for quantity.
  3. All stuff is more expensive to buy than it would have been with the workshop based industries being dominant.
    • This causes increase in living expenses for everyone including the people working in the few remaining workshop producers
  4. Now workshop stuff is again more expensive than mass-produced stuff and can only be considered when one has enough stability and saving ability.
    • And lack of workshops will mean that even those are hard to find.
[-] ulterno@programming.dev 0 points 1 day ago* (last edited 1 day ago)

Yeah, but my point is that ChatGPT clearly has a high level of education.
Where education refers to training someone to take in a lot of data and spew out similar data based on it during exams.

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

I would assume they rank the stuff by vote-count.

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

In this case, it really doesn't have to do with education.

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

Nah it's fine now. We have rebindings right in the compositor. I can just use the space-key instead.

[-] ulterno@programming.dev 10 points 4 days ago

No one made them put an AI guard into their error message

Someone did, by being stupid, mean and inconsiderate to the creators.

6

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

I just started checking out auditd and made a rule to log file accesses.

auditctl -a always,exit -F dir=/path/to/my/directory -F perm=rwa

From the output, I got some things that might be useful:

  • The full path of the executable
  • pid
  • Parent's pid: ppid
  • Process' current working directory cwd

Now if the process was still running when I check the logs, I could open htop and find out what exactly called the process, from the pid.
For example, say I run a git pull on a repository and find out that /usr/bin/ssh is accessing some file, I will get something like:

st
└ bash
    └ git
        └ ssh

I will get the full executable path of each executable (and know if the executable was not in the system directories, but in some unsafe location writeable by another user). This will give me enough context to go by.

But using this same example, what happens if I check the logs after the git operation has ended?
The git process ppid will have been lost(?) and I would have no way to know which process called ssh.

How do I solve this condition?
Ideally, I want to have the audit log contain the whole calling tree with the full executable path of each parent.

9

I just started checking out auditd and made a rule to log file accesses.

auditctl -a always,exit -F dir=/path/to/my/directory -F perm=rwa

From the output, I got some things that might be useful:

  • The full path of the executable
  • pid
  • Parent's pid: ppid
  • Process' current working directory cwd

Now if the process was still running when I check the logs, I could open htop and find out what exactly called the process, from the pid.
For example, say I run a git pull on a repository and find out that /usr/bin/ssh is accessing some file, I will get something like:

st
└ bash
    └ git
        └ ssh

I will get the full executable path of each executable (and know if the executable was not in the system directories, but in some unsafe location writeable by another user). This will give me enough context to go by.

But using this same example, what happens if I check the logs after the git operation has ended?
The git process ppid will have been lost(?) and I would have no way to know which process called ssh.

How do I solve this condition?
Ideally, I want to have the audit log contain the whole calling tree with the full executable path of each parent.

-3
Body text (programming.dev)

Title

[-] ulterno@programming.dev 100 points 2 months ago

That's how it is done.
If it is a public camera, it has to be a public record.
And if not, then anyone having access to the feed, has to have their whole life (both work and personal) be available as a public record.

If not, then you now have cases where most people can't afford to defend themselves from malicious cop allegations.
To prevent this, anyone arrested, pre-trial has to have access to all searches done by cops, related to the allegation and ability to pull-up 100% of their own footage anytime near the event in question.

If any part of the footage is deleted, due to "technical issues" like, "the footage was deleted" or "some of the cameras were not working", then the arrest is illegal and the police department is responsible for compensation.

24
submitted 4 months ago* (last edited 4 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 9 months ago* (last edited 9 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 10 months ago* (last edited 10 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.

view more: next ›

ulterno

joined 1 year ago