ch00f

joined 2 years ago
[–] [email protected] 17 points 1 day ago (4 children)

TF is a lifestyle pickup?

[–] [email protected] 2 points 1 day ago

Check out www.batteryhookup.com for a good time. I bought a few dozen unused modem backup batteries there for $50 and shucked enough 18650s out of them to build a new ebike battery.

[–] [email protected] 4 points 1 day ago (1 children)

Now do LinkedIn where I want job offers and responses to applications, but not some douchebag's take on the impact of VR on the grocery supply chain.

[–] [email protected] 2 points 1 day ago

Yeah plus, y'know... free night light.

[–] [email protected] 23 points 1 day ago (4 children)

I wish apps would just stop being coy with notification settings. Like it'd be cool to be notified when my eBay order is delivered. But if I just want that, I need to manually disable:

  • Auction Updates
  • Offer updates
  • Order updates
  • Listing help
  • Messaging
  • Personalized recommendations
  • Rewards and offers
  • General promotions
  • Item ending
  • Item updates
  • Auction updates
  • Offer updates
  • Cart updates
  • eBay live (whatever the hell that is)

You can flip one switch to disable all, but if you want any one of them, you need to manually disable each and they're split between four sub-menus.

Multiply this by 20-30 apps because every parking garage and water fountain needs an app now, and it's a nightmare.

I carry a dumbphone now and wear a Casio.

[–] [email protected] 4 points 1 day ago (2 children)

I used to work in portable electronics. We had a battery vendor who wanted to overnight us some samples (like 100mAh cells).

To get them on the plane, they just bought a My Neighbor Totoro night light, popped it open, and shoved the battery inside. They didn't even tell us they were going to do that.

[–] [email protected] 9 points 1 day ago (7 children)

No. They're all contained with protection circuitry. Unprotected cells have different requirements.

[–] [email protected] 7 points 1 day ago (4 children)

What happened to Nicole aka the fediverse chick?

[–] [email protected] 7 points 1 day ago* (last edited 1 day ago)

231 million iPhones were sold in 2023. They weigh about 6 ounces but round up to 10 to account for packaging. Assume that 10% of those were sold at launch. That's 719 tons or 13 767-300 jets.

Obviously the vast majority are shipped by sea, but to handle the initial wave, they ship air.

Edit: obviously, most of those phones aren't going to the US, but it's still at least a few planes full.

https://www.businessofapps.com/data/apple-statistics/

[–] [email protected] 19 points 1 day ago

If you see an elk and you're like "that's a big deer" that's an elk. If you see another elk and you're like "that's a monster from the dawn of time" that's a moose.

~Brennan Lee Mulligan

[–] [email protected] 68 points 1 day ago* (last edited 1 day ago) (16 children)

From a friend I have at Apple, they ship new iPhones in planes for every new release to deal with the order surge. Plane cabins stacked floor to ceiling with phones. An insane quantity of phones.

 

Over the week, I've been slowly moving from mdadm raid to ZFS. My process was:

  • create ZFS pool on secondary server
  • rsync all files over to zfs server
  • Nuke mdadm array on primary and set up zpool
  • ssh dataset from secondary server to primary server.

This is 15tb of data and even over gigabit, it took a day and a half to transfer. It finally finished tonight, and somehow I'm the owner and group of every single file. In addition to this generally being weird, it also broke some docker volume binds, and I generally don't want it.

It looks like the same is the case for the files on the secondary server too, so it must have happened during the initial rsync.

Fortunately, I also rsynced to some offline drives which kept ownership fine.

Anyway, I'm trying to figure out how the hell this happened. The rsync command I used was:

sudo rsync -ahu --delete --info=progress2 -e ssh /mnt/MONSTERDRIVE/ [email protected]:/bluepool/monsterdrive/

At least I'm pretty sure this is what I used. I had to reverse-i-search to find it.

This is similar to the command I use when backing up to cold storage which has worked fine in the past. My understanding is that -a is shorthand for -rlptgoD where -o is "preserve owner."

So how could this have happened?

Does it matter that the secondary server doesn't have the same users as the primary server?

[SOLUTION]

From what I read online, using rsync over ssh as I did does not establish root permissions on the receiving end. So while I have the rights to modify the owners on the local side, I can only set the owners to the user I ssh'd as on the receiving side. Thus, I was the owner of every file.

The solution is two fold. First, I need to specify --rsync-path "sudo rsync" This tells the receiving side to use rsync as a super user.

Secondly, because there is no way to enter a super user password on the receiving side, I added a file to /etc/sudoers.d/ with

ch00f ALL=NOPASSWD:/usr/bin/rsync

This makes it so that the ch00f user doesn't need to enter a password when running rsync as a super user.

I don't think this is a security hole, and it got it to work.

 

Just noticed this a week or so ago. When I try to scroll the feed on lemmy.world, my page will halt and go even though I'm scrolling consistently on my trackpad. No other website has this problem to my knowledge.

Info: Framework 13 AMD laptop 32 gigs memory Firefox 136.0.1 64-bit

Any ideas? It's really irritating.

 

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?

6
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/[email protected]
 

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

20
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/[email protected]
 

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.

 

I hate the cloud.

 

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

 

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.

 

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)

 

Just finished 12 Minutes and Indika with my wife. Enjoyed the tight 5-ish hour gameplay with decent not-too-challenging puzzles and great story.

Basically 5-hour date night that’s more engaging than a movie.

Any other games that you can recommend in this category?

 

Given the amount of pull individual influencers have managed to amass over the last decade, it looks like the original 1985 prediction aged better than this 2009 rebuttal.

view more: next ›