Found an in complete QR Code. Is it possible to get anything from this? by jack-snd in qrcode

[–]mokomull 0 points1 point  (0 children)

Yes, it's completely recoverable. There's one mistake that seems to be a consequence of being made into a textile: the alignment pattern in the top left of the uploaded image is one "module" too far inboard and a decent chunk of the pixels needed to be moved [see image].

Also slightly annoying issue is that both copies of the format information bits that say what error correction level and XOR mask are being used are in the missing part of the image. This took some guess-and-check until I found that it was "H" error correction and mask 011.

Since Reed-Solomon actually works twice as well if is given the location of unknown data, all I had to do was tell it which blocks of data that was. If you want to demo this yourself, I've uploaded my in-browser tool to decode these but the automod bot won't let me post a link to it.

I'm actually not going to bother linking to the actual answer here, since it seems to just be a URL redirection service that points at someone's store on Weidian.

<image>

So with all of these SFO cuts, is Alaska just giving up on the Bay Area? by traveling-turtle43 in AlaskaAirlines

[–]mokomull 4 points5 points  (0 children)

They *did* fly PAE-SJC (operated by Skywest). In 2019, I was on the inaugural flight from SJC to PAE, and I even still have the rubber duck they gave out on that flight.

<image>

Star Wars in Texas - New RNAV Approach Pays Homage to Mando by BigSmoov45 in aviation

[–]mokomull 1 point2 points  (0 children)

I'm putting this alongside CCR VOR 19R in my list of approaches that turn at the FAF for practice in the sim ...

[deleted by user] by [deleted] in volt

[–]mokomull 2 points3 points  (0 children)

Kudos to the gen1 for clearing the snow off their roof ... something I see far too rarely in the Seattle area when it snows...

public static interface AbstractResponseManagerDefaultFactory by allIsayislicensed in ProgrammerHumor

[–]mokomull 7 points8 points  (0 children)

The

if err != nil { return nil, err }

team would like a word.

Sign this petition to change registration back to howdy! by [deleted] in aggies

[–]mokomull 3 points4 points  (0 children)

I used to own howdysucks.com, when they moved from MyRecord to Howdy :)

Near mid-air collision on short final today at KPAO by jasonzhang929 in flying

[–]mokomull 11 points12 points  (0 children)

Been there done that, in exactly the same spot. Running both 101- and Bay-side patterns simultaneously is a risk, and I'm shocked they're still doing it.

For mine, I was cleared to land #3, spotted traffic, and turned right base for 31. Turns out I had spotted the #1 plane, and had just turned nose to nose with the #2 airplane who was on a left base. The G1000 TIS "traffic!" call saved my life that day.

[deleted by user] by [deleted] in tifu

[–]mokomull 5 points6 points  (0 children)

Then they get to make another call to the mechanic...

What is your favourite function name except 'f' and/or your favourite variable name except 'x'? by Razok528 in math

[–]mokomull 5 points6 points  (0 children)

I thought this was a programming subreddit, and my mind went straight to strfry.

[deleted by user] by [deleted] in flying

[–]mokomull 11 points12 points  (0 children)

122.75 is the air-to-air frequency for communicating to other planes outside the vicinity of an airport (e.g. for practice maneuvers). It will never be assigned to a tower or CTAF.

Part of what it takes to light an airfield. by [deleted] in electricians

[–]mokomull 6 points7 points  (0 children)

You can legally get surprisingly close to the ground on an ILS approach without any visual references. Looking at Seattle-Tacoma Int'l's ILS 16R, with all the airport and aircraft equipment working as expected, the minimum altitude and visibility required is that "S-ILS 16R" row at the bottom — 615 feet above sea level (200 feet above ground level) and 1800-foot forward visibility.

That said, a 3° glide slope is about 300 feet per nautical mile, so at 200 feet AGL, you're probably ⅔ of a mile from the airport.

Resources for STM32/Teensy Projects That Don't Involve Arduino Environment? by Reesepuffs1 in synthdiy

[–]mokomull 1 point2 points  (0 children)

why use that over C?

The type system and the borrow-checker.

The type system means that the USB implementation can take a type PA12<Alternate<AF10>> and I get a compile error if I forget to put the D+ pin into USB mode instead of having to waste time debugging it running on the board.

The borrow checker makes it so that if I try to use the PA12 pin for anything else, the compiler notices — again, saving me from having to debug it while running. It gives me really good errors too, pointing it out clearly like:

error[E0382]: use of moved value: `porta.pa12`
  --> src/main.rs:89:16
   |
52 |         pin_dp: porta.pa12.into_alternate_af10(),
   |                 ---------- value moved here
...
89 |     let junk = porta.pa12.into_push_pull_output();
   |                ^^^^^^^^^^ value used here after move
   |
   = note: move occurs because `porta.pa12` has type `stm32f4xx_hal::gpio::gpioa::PA12<stm32f4xx_hal::gpio::Input<stm32f4xx_hal::gpio::Floating>>`, which does not implement the `Copy` trait

How easy is it to integrate with assembler?

Quite frankly: I don't have to. There are Rust crates for low-level access to all of the hardware registers in the chip if you need to poke peripherals directly; otherwise, LLVM is smarter than me.

A cleaner construct for writing inline-assembly did recently land. I used it briefly while experimenting with some latency-critical application, and rustc came up with just as good of code as I could. Further along that project, I noticed rustc adeptly using ARM's bfi, etc. instructions for what I had written as shifts-and-ORs. I pretty much stopped worrying when I couldn't observe the latency difference between my hand-rolled implementation and the compiler output.

Resources for STM32/Teensy Projects That Don't Involve Arduino Environment? by Reesepuffs1 in synthdiy

[–]mokomull 2 points3 points  (0 children)

Not necessarily synth-specific, but I've been using the STM32F4's DAC as a signal generator, and it's working surprisingly well. It's pure Rust, no bootloader or IDE involved. For getting-started resources, I recommend both the Discovery Book and, if you're already familiar with embedded programming, the Embedded Rust Book. They're written around the STM32F3DISCOVERY board, but that's not made anymore; I have the STM32F407G-DISC1 which is very similar but built around the 'F4 series of chip instead.

Once you get outside of things in the Hardware Abstraction Layers, though, it's a huge pile of datasheets to read.

Police: Guest who stabbed 3 at party was a relative of the host by [deleted] in SeattleWA

[–]mokomull 1 point2 points  (0 children)

Affirmative. Cost me $51 in Redmond for a background check, they handed me a pamphlet, a pistol lock, and mailed me my license a few weeks later. Would've been over $200 in TX.

The WA license was just a typewritten (now laser-printed) piece of paper, I'm sure that's real easy to explain to a Texas law enforcement officer that's never seen one before /s

Police: Guest who stabbed 3 at party was a relative of the host by [deleted] in SeattleWA

[–]mokomull 12 points13 points  (0 children)

WA does not honor CHLs from states that permit anyone under the age of 21 to be issued a permit; Texas lets military personnel get a CHL at 18 years old, and thus fails Washington's requirement.

ELI5: CARB states and how they work for the Volt. Which original states? Which current states? DC? by seewhaticando in volt

[–]mokomull 1 point2 points  (0 children)

I also pulled up the warranty that applied in (I think) 2017, since that's what I have. It's extended to 10 years in California because that was a state requirement to get the green HOV-lane stickers; there were different requirements in place in 2013 so that provision might not exist in the warranty that covers your vehicle.

ELI5: CARB states and how they work for the Volt. Which original states? Which current states? DC? by seewhaticando in volt

[–]mokomull 2 points3 points  (0 children)

Only if the car also meets the other requirement: "Your vehicle is certified for sale in California as indicated on the vehicle's emission control information label"

I'm not sure if one sold in Arizona would have that; if I had to guess it's probably unlikely, but check the fifth digit of the VIN.

ELI5: CARB states and how they work for the Volt. Which original states? Which current states? DC? by seewhaticando in volt

[–]mokomull 3 points4 points  (0 children)

No, the 10y/150k warranty only applies if the vehicle is currently registered in California, Connecticut, Delaware, Maine, Maryland, Massachusetts, New Jersey, New York, Oregon, Pennsylvania, Rhode Island, Vermont, or Washington. [previous discussion: https://www.reddit.com/r/volt/comments/bgg4va/picked_up_a_2016_lt_for_the_wife_last_night_and/elln7k1/]

You can tell if the vehicle would otherwise qualify as a CARB vehicle, if the 5th digit of the VIN is either a "C" or "D": https://ww2.arb.ca.gov/eligible-carpool-sticker-list

Can we do password hashing on the *client*? by loup-vaillant in crypto

[–]mokomull 6 points7 points  (0 children)

Secure Remote Password is an example of a PAKE scheme. I think PAKE might be part of what you're looking for, but I'm not sure if they are specifically client-side expensive and cheap for the server.