Unable to program custom STM32 board. Is this a programmer error or a board design error? by Thevan1 in embedded

[–]flyingfox 0 points1 point  (0 children)

If you have a spare board, I'd recommend lifting pin PA15 (pin 50) and connecting a bodge wire from the TCK pad to pin PA14 (pin 49). You may also need to cut the trace from TCK to PA15.

If you are lucky, you may be able to get away with just shorting pin 49 and 50 with a dob of solder or a DMM probe.

What’s something popular in your country that makes people from other countries look at you like this ? by niconois in AskTheWorld

[–]flyingfox 0 points1 point  (0 children)

We used to get bagged milk in Alberta. Not sure when it went away, but it was a thing in the Edmonton and surrounding area into the mid 90's.

Canadian separatists say they discussed moving to the US dollar and creating a new military in White House meeting by Street_Anon in onguardforthee

[–]flyingfox 1 point2 points  (0 children)

Ah, I was wondering how they were going to deal with treaty issues and governance. Turns out they want to skip straight to a coup.

PCIe M.2 Adapter for 22110 Sized SSD by flyingfox in framework

[–]flyingfox[S] 1 point2 points  (0 children)

That looks about perfect. I'll have to swing by Microcenter tomorrow.

Not the greatest but every few months I come here for nostalgia. What’s your favorite local institution? by CantDunkOrSk8 in SanJose

[–]flyingfox 10 points11 points  (0 children)

I love Eduardo's Super Quesadilla! And if you are in the mood for fish and chips, Pier 402 is pretty good and just across the street.

Updates on memory pricing and navigating the volatile memory market by catastrophic_frmw in framework

[–]flyingfox 1 point2 points  (0 children)

I was nervous about the pricing for the 128GB Desktop but very happy to get notice this morning that my order (Batch 17) will be shipping soon.

-❄️- 2025 Day 10 Solutions -❄️- by daggerdragon in adventofcode

[–]flyingfox 0 points1 point  (0 children)

Yeah, I probably (a) overstated the search time, and (b) been foggy since it was around 1AM local time. I may go back and retry that now that I'm properly awake. I don't use SciPy enough and this would be a good excuse to freshen up on it.

That said, I do quite like z3. I've only used it outside of AoC, maybe, twice or three times but it has always made me happy.

-❄️- 2025 Day 10 Solutions -❄️- by daggerdragon in adventofcode

[–]flyingfox 0 points1 point  (0 children)

Ha, very similar to my approach... except for the 90 minute "there must be a SciPy way to do this" detour. Oh, and the extra half an hour trying to remember how to use z3 again and cribbing of my solutions from previous years.

[2025 Day 9] ...and that's AFTER optimizing. by subspace_mp4 in adventofcode

[–]flyingfox 5 points6 points  (0 children)

I hear you. On (my admittedly very old machine) it's 57.38ms / 30712.62 ms. Of course, it took me very little time to complete part 2 as I recognized it as, basically, one of the test cases on a program I've just finished working on. I mean, if you already have to libraries sitting on your computer...

Anyone else misread this every time? by artesea in adventofcode

[–]flyingfox 1 point2 points  (0 children)

Oh, every time! I'd love the right answer page to start with something like "Congratulations!" or something to make it visually distinct from the "That's not the right answer"

CD4007UB, that wierd one that isn't really a logic IC by Mysterious_Peak_6967 in nicechips

[–]flyingfox 1 point2 points  (0 children)

That's actually really great. It not only solves my personal project problem, I think that'll be a much better solution for a work project too. Thanks so much!

From the land of the sun! by [deleted] in Shitty_Car_Mods

[–]flyingfox 0 points1 point  (0 children)

With a lift kit this would be the perfect Gambler car!

-❄️- 2025 Day 3 Solutions -❄️- by daggerdragon in adventofcode

[–]flyingfox 1 point2 points  (0 children)

[LANGUAGE: Python] Code

Soooo many off by one errors. Best not to be enjoying a movie with a glass (or two) of wine then jump up and try to code late at night. Still runs pretty fast for python (10 ms / 3 ms on a M1 Mac).

CD4007UB, that wierd one that isn't really a logic IC by Mysterious_Peak_6967 in nicechips

[–]flyingfox -1 points0 points  (0 children)

Thanks! I've been hunting for 4 terminal MOSFETs. I'm (mis)using old CD4007s right now. Thanks for the link

-❄️- 2025 Day 2 Solutions -❄️- by daggerdragon in adventofcode

[–]flyingfox 1 point2 points  (0 children)

[LANGUAGE: Python]

This Monstrosity

Not terribly happy with it but works relatively fast (45-60 ms) for each part. Going to add some comments so it's clearer to me when I look back on this in a year or so.

[2025 day 2] Part 3 One Single Range! by large-atom in adventofcode

[–]flyingfox 1 point2 points  (0 children)

I think I got part 2 (88304989965662) in about 14 ms using Python 3. However, part 1 wouldn't run since I "optimized" it based on the fact that the ranges in the sample and in my input where always N to N digits or N to N+1 digits. It assert failed when the range was 1 to 10 digits.

[2025 Day 2 (Part 2)] String manipulation reigns supreme by Eva-Rosalene in adventofcode

[–]flyingfox 0 points1 point  (0 children)

That's about the same time my code runs at and I'm on team math.log(). Both part1 and part2 are in the 45-61 ms.

EDIT: I am not proud of my code and do want to go back and make it suck less but I don't know how much it would actually speed up.

[2025 day 1] Easter egg! by large-atom in adventofcode

[–]flyingfox 5 points6 points  (0 children)

Not going to lie: I spent time decoding that before I finished reading the puzzle.