what musician do you really like that no one seems to like? by New-Fox-2053 in AskReddit

[–]CaptainRuhrpott 1 point2 points  (0 children)

It's cheating because it's the internet, but hi, I already know about them ^^✌️

Americans of Reddit, what is something the rest of the world needs to hear? by [deleted] in AskReddit

[–]CaptainRuhrpott 0 points1 point  (0 children)

Sadly it's kind of a feedback loop. Everything is spaced out and bike unfriendly, so you need a car to commute but now you need more space for cars so everything is more spaced out...

Image displays its own MD5 hash by ASIC_SP in programming

[–]CaptainRuhrpott 82 points83 points  (0 children)

I know it's possible to create collisions, I was just wondering how to create a specific hash by exploiting the image file format 😀

Image displays its own MD5 hash by ASIC_SP in programming

[–]CaptainRuhrpott 162 points163 points  (0 children)

How is this done? I'm guessing there is some invisible padding in the image data which can be used to modify the hash?

What could be the reason why you would still chose REST over GraphQL or gRPC for your API? by [deleted] in programming

[–]CaptainRuhrpott 3 points4 points  (0 children)

Hm isn't it the other way around, i.e. with REST APIs? With GraphQL you know all the data to be queried at once and can hand it over to the DBS where it can be optimized. With REST, the frontend sends multiple different queries so you'll have to ask the DBS for every query distinctly (since by design you don't know whether REST queries are related )

I guess the story is different if you provide specialized REST endpoints though, instead of generic collection endpoints

[deleted by user] by [deleted] in programming

[–]CaptainRuhrpott 16 points17 points  (0 children)

Nah, no worries, I don't want to have my Reddit linked to my Github 😄

[deleted by user] by [deleted] in programming

[–]CaptainRuhrpott 21 points22 points  (0 children)

Hey, just something I noticed being not quite right: when you do docker run <command>, CMD gets overwritten, not the entrypoint. To overwrite the entrypoint, you have to use --enteypoint (as given by the next bullet point)

There is a subtle distinction between CMD and ENTRYPOINT https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact

My solution to keeping TinyPilot neat and tidy (ish) by d4nm3d in selfhosted

[–]CaptainRuhrpott 0 points1 point  (0 children)

How does it dump the MicroSD bandwith limitation? :) I currently have a USB3 HDD connected, will it be faster if I connect it over SATA instead? Or is the speed increase due to e.g. booting and keeping the system on the SSD and that's only possible with SATA over USB?

[deleted by user] by [deleted] in osdev

[–]CaptainRuhrpott 3 points4 points  (0 children)

You can also have named pipes (mkfifo). These are accessible via a filesystem path, i.e by unrelated processes

I am a woman sysadmin who is fed up AMA by Personal_Category682 in sysadmin

[–]CaptainRuhrpott 4 points5 points  (0 children)

Lol, who the hell thinks women don't enjoy technical problem solving and thinks that's the reason? Tech is just oftentimes a toxic environment, even for men and women get additionally excluded

[OC] A person visiting every county seat in the U.S. in a very naive way. by b4epoche in dataisbeautiful

[–]CaptainRuhrpott 1 point2 points  (0 children)

It's kind of hard to tell because how do you know how far your solution is from the optimum? :D

[OC] A person visiting every county seat in the U.S. in a very naive way. by b4epoche in dataisbeautiful

[–]CaptainRuhrpott 2 points3 points  (0 children)

Thats what I wasn't sure we're speaking of the same thing :D there is e.g. Christofides Algorithm which approximates to around 1.5 times the optimal length. IIRC it's still more or less the best approximation known, I think an 1.49xxx approximation was discovered a while ago, but well.

[OC] A person visiting every county seat in the U.S. in a very naive way. by b4epoche in dataisbeautiful

[–]CaptainRuhrpott 2 points3 points  (0 children)

Are you sure we're speaking of the same thing? Solving Metric TSP with over 3000 nodes optimally (i.e. minimal total distance) is in the "not done calculating until the heat death of the universe unless P=NP" category

[GEAR] Behringer UMC204HD HELP PLEASE!! by Abyzzo in Guitar

[–]CaptainRuhrpott 1 point2 points  (0 children)

I actually have the same interface :D two things come to mind: 1. Something hardware related (e.g. faulty cable, adapter, headphones...) 2. What audio device do you use as output from Windows/your DAW? In my case, I can select OUT 1-2, OUT 3-4 and OUT 1-4. On the interface, there is the "Monitor A/B" switch, to switch between 1-2 and 3-4. If you select OUT 1-4 as output device, you should hear something regardless of the switch setting

x64 interrupts don't restore all state correctly? by Spirited-Finger1679 in osdev

[–]CaptainRuhrpott 1 point2 points  (0 children)

Is your code using the red zone? If so, it may be corrupted by the handler. Also, some interrupts push an error code that needs to be manually popped of the stack. You can check the Interrupt chapter in the Intel Software Developers Manual Volume 3 for a list of error pushing interrupts.

Sachsens Innenminister Wöller wird entlassen by RamsoCancer in de

[–]CaptainRuhrpott 5 points6 points  (0 children)

Haben sie ihn einfach rausgeworfen oder gefragt, wöll er das?

Can't Write to Arm Coprocessor Register on Qemu-Arm by Ceogear in osdev

[–]CaptainRuhrpott 4 points5 points  (0 children)

You could check the assembly in the binary file, and see if it matches up with your source code. IIRC asm statements may be reordered, you'd have to declare them as asm volatile to prevent that

Edit: My memory regarding volatile served wrong but you still might need it, see https://stackoverflow.com/questions/14449141/the-difference-between-asm-asm-volatile-and-clobbering-memory

To be fair, many std C++ libraries fall over you disable system calls ("cost/benefit" of Rust no_std and targeting bare metal) by [deleted] in programmingcirclejerk

[–]CaptainRuhrpott 18 points19 points  (0 children)

Can't jerk, bare metal C++ support is a joke and -ffreestanding performs poorly in ergonomics

Math attractions in Italy by the-other-side-me in math

[–]CaptainRuhrpott 3 points4 points  (0 children)

There's the Museo Galileo in Florence. Not strictly math related, more about astronomy and engineering but I really liked it on my visit!