[-] ulterno@programming.dev 9 points 2 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.

[-] ulterno@programming.dev 1 points 5 days ago* (last edited 5 days ago)

Money is, essentially, a representation of our time and effort

Well said. Although I tend to say: money was originally a representation of our time and effort.

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 38 points 2 months ago

I don't get how an MDA would translate to "no programmers needed". Maybe they meant "coders"?
But really, I feel like the people who use this phrase to pitch their product either don't know how many people actually find it difficult to break down tasks into logical components, such that a computer would be able to use,, or they're lying.

[-] 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.

[-] ulterno@programming.dev 50 points 7 months ago

That looks like buttons in the thumbnail, on the left of the visualisation.
I'd say that's enough to call it UI.

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% !?
[-] ulterno@programming.dev 54 points 10 months ago* (last edited 10 months ago)

pops into my head semi-regularly

Isn't that called "trauma"?

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
[-] ulterno@programming.dev 34 points 10 months ago

commit signing is a thing

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

0

Hopefully we can get better input to the discussion here.

[-] ulterno@programming.dev 42 points 1 year ago
  1. A good anime avatar takes skill = money
  2. Getting people to desire your streams takes effort
[-] ulterno@programming.dev 31 points 1 year ago

Guess I need to put learning kernel C on a higher priority to prevent you from running back to Windows.

Guess not. You will be running back in no time after the AI pesters you enough and makes you have to replace your CPU fans every 6 months.

[-] ulterno@programming.dev 49 points 1 year ago* (last edited 1 year 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 1 year ago

Get into police?

[-] ulterno@programming.dev 57 points 1 year ago* (last edited 1 year 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.

view more: next ›

ulterno

joined 1 year ago