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

Yeah, but not enough to be sticky, right?
Or maybe I have been adding too much water?

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

stick in a stew

I don't understand how one is able to make a stew sticky enough, though.
Isn't it usually watery?

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

Tic Tac Toe
On a potato


After every game, you can then take a thin slice off the top and you get a fresh surface for another game.

[-] ulterno@programming.dev 9 points 15 hours ago

Because any real life use that might come to mind would probably be related to some NDA protected database in a company.
And it is otherwise hard to think of anything at the spot, so just go with what the first example on the web-search came up with.

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

commonly agreed to be a Good Thing

So, did they open access their trained model weights?

it still can prevent complete rookies from making thousands of requests per second with a simple python script

So now you can know that if you are getting DOS'ed, it is actually malicious.

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

No boos
Only shoos.

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

Depends upon if you are the producer or the consumer.

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

Well they asked for ADHD resources, not for ADHD impact reduction resources.

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

I remember playing Carmageddon (not sure if it was 1 or 2). But iirc, killing pedestrians would reduce your credits, which were required to repair your car.

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

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

[-] ulterno@programming.dev 4 points 3 days ago* (last edited 3 days 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.
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

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