ch00f

joined 1 year ago
[–] ch00f@lemmy.world 4 points 23 hours ago* (last edited 23 hours ago)

See also: Jesse Owens.

[–] ch00f@lemmy.world 1 points 1 day ago

Possibly. I’ve ordered a higher end cable. Waiting for the weather to clear before installing.

[–] ch00f@lemmy.world 3 points 1 day ago

Like half of the water in the US goes to grow plants to feed animals that we eat. Fuck those animals, I want that water.

[–] ch00f@lemmy.world 3 points 1 day ago

Nuts in brownies. Fucking don’t.

[–] ch00f@lemmy.world 5 points 1 day ago

I mean to paraphrase Brenan Lee Mulligan: “if you have magic that can teleport things instantly, giving the task of delivering letters to Earth’s slowest bird is animal cruelty.”

[–] ch00f@lemmy.world 6 points 1 day ago* (last edited 1 day ago)

With very few exceptions, that popular TV show you like with either end bad or get cancelled before it gets a chance to end bad.

[–] ch00f@lemmy.world -1 points 1 day ago (2 children)

Bilbo says he feels like butter spread over too much bread.

Just don’t eat all the bread! If I have too much bread, I freeze it. I don’t butter it with a tragically small amount of butter.

The line should be like “too little butter spread over bread” or something.

[–] ch00f@lemmy.world 5 points 2 days ago (4 children)

I've been thinking of doing this for my server. How do you organize the extra features?

[–] ch00f@lemmy.world 24 points 3 days ago (1 children)

I mean if you think of a car as a personal privacy pod, many people don’t have those inside their homes. I remember seeing this a lot on our walks during covid. I think some people needed a private place for a phone call or just needed to get away from their family for an hour or so when there was literally nowhere else to go.

Hate cars all you want, but this is hardly indicative of car culture.

[–] ch00f@lemmy.world 1 points 4 days ago

Haven’t watched this particular video, but we watched the iPhone 14 one when my wife was shopping for a new phone a year ago.

He only does landscapes, so he won’t answer the question for indoor lighting.

And I guess I can walk my claim back a bit. I’m just a bit frustrated since I had a hard time finding a purpose built camera that could match an iPhone while being remotely pocketable.

Ricoh does alright for my purposes.

[–] ch00f@lemmy.world 15 points 4 days ago

I mean you had to wait 20 seconds for it to buffer, so you were at least going to give it a fair shot.

 

Looking to ROM dump just a handful of games, so I’m trying not to spend hundreds on a Sanni or Retrode. I saw this on AliExpress for $15.

I’ve personally had good luck with Alibaba and Aliexpress, but I recognize that this could just straight not work. There’s no documentation, but it claims the game data will show up like files on a USB flash drive.

Anybody know where this design came from?

 

Edit: turns out these are all bootleg and I’m a moron. Only two Zelda games were officially released for GBA.

Just kicked off a return.

 

I’m now at a point where I can detect 152 nodes in my city. 25 are listed as “online.”

Yet the only contact I’ve gotten is the occasional “hello world” and once or twice a response to my own “hello world.”

It’s possible that nobody has anything to say, but I also suspect the network isn’t robust enough to maintain contact and facilitate a real conversation between random strangers.

Has anybody else here managed to actual chat with someone they don’t know?

 

Rak wireless module with battery/solar.

My question is…now what? I’m in Seattle, I can pick up 121 nodes, but there no traffic.

Is everybody using private channels? Or is nobody talking? I don’t see many messages and got one reply to a general CQ I sent out, but no response to the follow up.

I guess I was kind of hoping for what I get over ham radio, occasional chats, evening nets, etc.

Am I running into a technical limitation? Or is that the gist of Meshtastic?

As a follow-up, can I easily see if my router is handling other people’s traffic? I’d like to know if I’m helping.

 

This might not be news to everyone, but since 2021, they stopped offering an alternative to the app. You can no longer print or screenshot the barcodes because they roll.

Super lame.

 

…the correct answer on the crossword is wrong. “Earthrise” is not a natural phenomenon. The Earth doesn’t rise in the sky of the Moon. The Moon is tidally locked. It only appears to rise from orbit where it was observed by Apollo 8 in 1968.

And pulsars were first discovered in 1968 (or at least that’s when they were named).

So, it recognized that it was a crossword question, but it didn’t give the crossword answer. The answer it did give us technically more correct.

 

In my head this was Ian Kung, but I can’t find it on his channel.

The creator was trying to make a point about how broken copyright enforcement is on YouTube by basically watching cool videos and “reacting” by saying the same thing after each one loosely tailored to the content. They were all based around the phrase “my wife” or something like that.

Like “wow, what a cute lazy dog. It’s almost as lazy as my wife,” “if you think that’s a big whale, you should meet my wife,” or something to that effect.

 

I originally told the story over on the other site, but I thought I’d share it here. With a bonus!

I was working on a hardware accessory for the OG iPad. The accessory connected to the iPad over USB and provided MIDI in/out and audio in/out appropriate for a musician trying to lay down some tracks in Garage Band.

It was a winner of a product because at its core, it was based on a USB product we had already been making for PCs for almost a decade. All we needed was a little microcontroller to put the iPad into USB host mode (this was in the 30-pin connector days), and then allow it to connect to what was basically a finished product.

This product was so old in fact that nobody knew how to compile the source code. When it came time to get it working, someone had to edit the binaries to change the USB descriptors to reflect the new product name and that it drew <10mA from the iPad's USB port (the original device was port-powered, but the iPad would get angry if you requested more than 10mA even if you were self-powered). This was especially silly because the original product had a 4-character name, but the new product had a 7-character name. We couldn't make room for the extra bytes, so we had to truncate the name to fit it into the binary without breaking anything.

Anyway, product ships and we notice a problem. Every once in a while, a MIDI message is missed. For those of you not familiar, MIDI is used to transmit musical notes that can be later turned into audio by whatever processor/voice you want. A typical message contains the note (A, B, F-sharp, etc), a velocity (how hard you hit the key), and whether it's a key on or key off. So pressing and releasing a piano key generate two separate messages.

Missing the occasional note message wouldn't typically be a big deal except for instrument voices with infinite sustain like a pipe organ. If you had the pipe organ voice selected when using our device, it's possible that it would receive a key on, but not a key off. This would result in the iPad assuming that you were holding the key down indefinitely.

There isn't an official spec for what to do if you receive another key-on of the same note without a key-off in between, but Apple handled this in the worst way possible. The iPad would only consider the key released if the number of key-ons and key-offs matched. So the only way to release this pipe organ key was to hope for it to skip a subsequent key-on message for the same key and then finally receive the key-off. The odds of this happening are approximately 0%, so most users had to resort to force quitting the app.

Rumors flooded the customer message boards about what could cause this behavior, maybe it was the new iOS update? Maybe you had to close all your other apps? There was a ton of hairbrained theories floating around, but nobody had any definitive explanation.

Well I was new to the company and fresh out of college, so I was tasked with figuring this one out.

First step was finding a way to generate the bug. I wrote a python script that would hammer scales into our product and just listened for a key to get stuck. I can still recall the cacophony of what amounted to an elephant on cocaine slamming on a keyboard for hours on end.

Eventually, I could reproduce the bug about every 10 minutes. One thing I noticed is that it only happened if multiple keys were pressed simultaneously. Pressing one key at a time would never produce the issue.

Using a fancy cable that is only available to Apple hardware developers, I was able to interrogate the USB traffic going between our product and the iPad. After a loooot of hunting (the USB debugger could only sample a small portion, so I had to hit the trigger right when I heard the stuck note), I was able to show that the offending note-off event was never making it to the iPad. So Apple was not to blame; our firmware was randomly not passing MIDI messages along.

Next step was getting the source to compile. I don't remember a lot of the details, but it depended on "hex3bin" which I assume was some neckbeard's version of hex2bin that was "better" for some reasons. I also ended up needing to find a Perl script that was buried deep in some university website. I assume that these tools were widely available when the firmware was written 7 years prior, but they took some digging. I still don't know anything about Perl, but I got it to run.

With firmware compiling, I was able to insert instructions to blink certain LEDs (the device had a few debug LEDs inside that weren't visible to the user) at certain points in the firmware. There was no live debugger available for the simple 8-bit processor on this thing, so that's all I had.

What it came down to was a timing issue. The processor needed to handle audio traffic as well as MIDI traffic. It would pause whatever it was doing while handling the audio packets. The MIDI traffic was buffered, so if a key-on or key-off came in while the audio was being handled, it would be addressed immediately after the audio was done.

But it was only single buffered. So if a second MIDI message came in while audio was being handled, the second note would overwrite the first, and that first note would be forever lost. There is a limit to how fast MIDI notes can come in over USB, and it was just barely faster than it took to process the audio. So if the first note came in just after the processor cut to handling audio, the next note could potentially come in just before the processor cut back.

Now for the solution. Knowing very little about USB audio processing, but having cut my teeth in college on 8-bit 8051 processors, I knew what kind of functions tended to be slow. I did a Ctrl+F for "%" and found a 16-bit modulo right in the audio processing code.

This 16-bit modulo was just a final check that the correct number of bytes or bits were being sent (expecting remainder zero), so the denominator was going to be the same every time. The way it was written, the compiler assumed that the denominator could be different every time, so in the background it included an entire function for handling 16-bit modulos on an 8-bit processor.

I googled "optimize modulo," and quickly learned that given a fixed denominator, any 16-bit modulo can be rewritten as three 8-bit modulos.

I tried implementing this single-line change, and the audio processor quickly dropped from 90us per packet to like 20us per packet. This 100% fixed the bug.

Unfortunately, there was no way to field-upgrade the firmware, so that was still a headache for customer service.

As to why this bug never showed up in the preceding 7 years that the USB version of the product was being sold, it was likely because most users only used the device as an audio recorder or MIDI recorder. With only MIDI enabled, no audio is processed, and the bug wouldn't happen. The iPad however enabled every feature all the time. So the bug was always there. It's just that nobody noticed it. Edit: also, many MIDI apps don't do what Apple does and require matching key on/key off events. So if a key gets stuck, pressing it again will unstick it.

So three months of listening to Satan banging his fists on a pipe organ lead to a single line change to fix a seven year old bug.

TL;DR: 16-bit modulo on an 8-bit processor is slow and caused packets to get dropped.

The bonus is at 4:40 in this video https://youtu.be/DBfojDxpZLY?si=oCUlFY0YrruiUeQq

 
view more: next ›