[-] ch00f@lemmy.world 3 points 3 hours ago* (last edited 3 hours ago)

Yo momma so fat she sat on a binary tree and squashed it into a linked list in O(1) time.

[-] ch00f@lemmy.world 93 points 12 hours ago

Something poetic and quaint about a link to a Wikipedia article titled "Tree"

[-] ch00f@lemmy.world 34 points 1 day ago

You're used to seeing your mirror image. You aren't perfectly symmetrical, so your reflection looks slightly different than your image in a camera.

[-] ch00f@lemmy.world 28 points 2 days ago

Deadlines have entered the chat.

[-] ch00f@lemmy.world 102 points 3 days ago

In Elder Scrolls III on Xbox, there was a memory leak that they couldn't fix, so sometimes when the game is loading a new area, it actually reboots the Xbox. Apparently there's a way the developer can keep a freeze frame loading screen up while the console completely reboots.

10

Just got my Minimal Phone last week after two years between a LightPhone II and Sunbeam F1. Ask me anything.

3
submitted 3 weeks ago by ch00f@lemmy.world to c/selfhost@lemmy.ml

I’m running funkwhale in docker. This consists of a half dozen docker containers one of which is postgres.

To run a backup, funkwhale suggests shutting down all of the containers and then docker compose running pg_dump on the postgres container. Presumably this is to copy the database when nobody is accessing it.

For some reason when I do this, I get an error like:

pg_dump: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
	Is the server running locally and accepting connections on that socket?

It would seem that postgres isn’t running. I see the same error with other commands such as psql.

If I fully boot the container and then try exec-ing the command, it works fine.

So it would seem that the run command isn’t fully booting the instance before running the command? What’s going on here?

The container is built from postgres:15-alpine

4
submitted 1 month ago by ch00f@lemmy.world to c/selfhosted@lemmy.world

I'm moving my music library to a funkwhale instance, but I don't want to have to keep two copies of every song (one imported to Funkwhale, one on a local drive).

It looks like Funkwhale will let you download a single song at a time from your own library , but there doesn't seem to be a similar button for albums or playlists.

The files themselves are obfuscated in whatever indexing system it uses, so there's nothing to be done there.

Anyone know how this is possible?

5
submitted 1 month ago by ch00f@lemmy.world to c/selfhost@lemmy.ml

Just got Whisper working on my local server so I can send it audio files via curl POST request and receive transcribed text.

Are there any keyboard plugins for phones that could be directed to a personal server running Whisper to replace functions like Siri/Google assistant voice transcription?

30
submitted 2 months ago by ch00f@lemmy.world to c/selfhosted@lemmy.world

I'm hosting a few services using docker. For something like an openstreetmap tileserver, I'd like it to remain on my SSD because high speed improves performance, and the directory is unlikely to grow and fill the drive.

For other services like NextCloud, speed isn't as important as storage size, so I might want it on a larger HDD raid.

I know it's trivial to move the volumes directory to wherever, but can I move some volumes to one directory and some volumes to another?

65
submitted 2 months ago* (last edited 2 months ago) by ch00f@lemmy.world to c/mildlyinteresting@lemmy.world
1

You always hear about gun sales in the US, but you never hear about what happens to the guns at the end of their lifecycle. I assume guns wear out eventually, and I assume you can't just chuck them in the garbage when they do. What happens to them?

[-] ch00f@lemmy.world 125 points 2 months ago

No. You see Twitter was keeping them contained. This is like the power going out at Jurassic Park.

4
submitted 3 months ago* (last edited 2 months ago) by ch00f@lemmy.world to c/techsupport@lemmy.world

I'm working on trying to streamline the process of ripping my blu-ray collection. The biggest bottlneck in this process has always been dealing with subtitles and converting from image-based PGS to textbased SRT. I usually use SubtitleEdit which does okay with occasional mistakes. My understanding is that it combines Tesseract with a decent library to correct errors.

I'm trying to find something that works in the command line and found pgs-to-srt. It also uses Tesseract, but it appears without the library, the results are...not good:

Here's the first two minutes of Love, Actually:

00:01:13,991 --> 00:01:16,368
DAVID: Whenever | get gloomy
with the state of the world,

2
00:01:16,451 --> 00:01:19,830
| think about
the arrivals gate
alt [Heathrow airport.

3
00:01:20,38 --> 00:01:21,415
General opinion
Started {to make oul

This is just OCR of plain text on a transparent background. How is it this bad? This is using the Tesseract "best" training data.

Edit: I’ve been playing around with ocr-to-pgs which also uses tesseract and discovered that subtitles having black outlines really messes with it. I made some improvements.

https://github.com/wydengyre/pgs-to-srt/pull/348

21
submitted 3 months ago* (last edited 3 months ago) by ch00f@lemmy.world to c/hardware@lemmy.ml

Upgrading a server for the first time in 10 years, so I’m a little out of the loop. I was surprised to find that the RAM I bought didn’t fit.

This is my first time dabbling in ECC RAM, so I figured there was some minor detail I missed when purchasing, but I eventually came across the data sheet for this stick, and the dimensions given don’t match the measurements I’m making. The tip of the caliper should be in the middle of the notch at 68.1mm.

What’s more is that the dimensions in the data sheet seem to match the dimensions on my motherboard. What’s going on here?

[SOLVED] I and Kingston are morons. I ordered RDIMM instead of UDIMM. The Kingston datasheet gives the wrong dimensions.

1
submitted 3 months ago* (last edited 3 months ago) by ch00f@lemmy.world to c/writingprompts@lemmy.world

This requires either multiple trips or a quick view theough your gadget into the new future.

6
submitted 3 months ago* (last edited 3 months ago) by ch00f@lemmy.world to c/selfhosted@lemmy.world

Since 2016, I've had a fileserver mostly just for backups. System is on 1 drive, RAID6 for files, and semi-annual cold backup.

I was playing with Photoprism, and their docs say "we recommend placing the storage folder on a local SSD drive for best performance." In this case, the storage folder holds basically everything but the pictures themselves such as the database files.

Up until now, if I lost any database files, it was just a matter of rebuilding them by re-indexing my photos or whatever, but I'm looking for something more robust since I'll have some friends/family using Pixelfed, Matrix, etc.

So my question is: Is it a valid strategy to keep database files on the SSD with some kind of nightly backup to RAID, or should I just store the whole lot on the RAID from the get go? Or does it even matter if all of these databases can fit in RAM anyway?

edit: I'm just now learning of ZFS caching which might be my answer.

1

I’m working on driving a very finicky lcd. I have it working now with an FPGA dev kit. I had to use an FPGA because some of the timing requirements are in the tens of nanoseconds.

At the end of the day, I wrote a block for a one shot/continuous clock with a programmable duty cycle and initial delay. This block was repeated six times for the various clocks with their specific values.

Moving to the final product, this feels like overkill. In the past, I’ve managed to make this kind of thing work with a Rube Goldberg collection of on-board timer/counters on the microcontroller.

I’d like to avoid that mess this time around. If I can generate the clocks externally, I can have the host MCU send the data quickly using DMA.

An FPGA works great, but they’re expensive and there’s the issue of licensing for FPGA and and CPLD software.

I’ve seen this problem solved with a lookup table, but there aren’t a lot of cheap/small rom/ram options for what I’m trying to do.

Basically, what I’m asking is is there a component that can be easily programmed to generate a number of clocks, doesn’t need any costly software licensing, and comes in a very small package? (Like wlcsp)

[-] ch00f@lemmy.world 149 points 8 months ago

Not saying OP is fibbing but I used to work alumni soliciting and they’d absolutely track your call duration and success rate. If you spent that long on the phone, you’d better have something to show for it.

[-] ch00f@lemmy.world 125 points 11 months ago* (last edited 11 months ago)

Even if it was free, opening an app to get water is bullshit.

Edit: Let the record show, I was referring to the chilled water.

[-] ch00f@lemmy.world 165 points 1 year ago

Yeah but that actually works tho

[-] ch00f@lemmy.world 152 points 2 years ago

Yeah alternative was MicroUSB which is dogshit.

[-] ch00f@lemmy.world 126 points 2 years ago

The closest planet to Earth is Mercury.

On average that is. Mercury is actually the closest planet to every other planet in average. Because when it’s on the other side of the Sun, it’s still pretty close.

view more: next ›

ch00f

joined 2 years ago