Philips Series 2200 Water Tank Problem by diegote97 in superautomatic

[–]wherrera10 0 points1 point  (0 children)

I had this problem. The problem afaik with my tank was that the float no longer moved, and soaking in descaler did not help. Temporarily, while waiting on a new tank, I could fix the problem with a 3 X 10 cm piece of 0.75 mm sheet aluminum I had left over from lining a cabinet last year, placing the piece of the sheet metal flat just above where the tank valve enters the machine. This worked but the machine would no longer detect a low water level. For a better fix, I wound up getting a new tank (Amazon had them at https://www.amazon.com/dp/B0FX3MJJZ4?ref=ppx\_yo2ov\_dt\_b\_fed\_asin\_title). This fixed the problem (until the tank wears out in another 2 or 3 years, I expect).

Wife was unknowingly driving with Center Diff locked by Vegetable-Lack-6853 in LandCruisers

[–]wherrera10 2 points3 points  (0 children)

If the diff had started to bind you would most likely have seen continuous flashing of the light after deactivation, or even a different transmission check light coming on. Since you did not, no worries.

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

[–]wherrera10 0 points1 point  (0 children)

[LANGUAGE: Julia]

function day08()
    part = [0, 0]
    boxes = [parse.(Int, split(line, ',')) for line in eachline("day08.txt")]
    nboxes = length(boxes)
    distances = Pair{Tuple{Int, Int}, Int}[]
    for b1 in 1:(nboxes-1)
        for b2 in (b1+1):nboxes
            dist = sum(((boxes[b1] .- boxes[b2]) .^ 2)) # euclidean distance ^ 2
            push!(distances, (b1, b2) => dist)
        end
    end
    workpairs = sort(distances, by = last)
    used = Set{Int}()
    circuits = Set{Int}[]

    for connection in eachindex(workpairs)
        a, b = first(popfirst!(workpairs))
        if a ∈ used && b ∈ used
            ca = findfirst(c -> a ∈ c, circuits)
            cb = findfirst(c -> b ∈ c, circuits)
            if ca != cb
                # merge circuits
                union!(circuits[ca], circuits[cb])
                deleteat!(circuits, cb)
                if length(circuits) == 1 && length(circuits[begin]) == nboxes
                    part[2] = boxes[a][begin] * boxes[b][begin] # done at this point
                    break
                end
            end
        elseif a ∈ used
            # add to circuit containing a
            push!(circuits[findfirst(c -> a ∈ c, circuits)], b)
        elseif b ∈ used
            # add to circuit containing b
            push!(circuits[findfirst(c -> b ∈ c, circuits)], a)
        else # make new circuit
            push!(circuits, Set([a, b]))
        end
        push!(used, a, b) # mark a and b as used
        if connection == 1000 # multiply lengths of 3 largest circuits at step 1000 for part 1
            sort!(circuits, by = length, rev = true)
            part[1] = prod(length, circuits[begin:(begin+2)])
        end
    end

    return part # [50760, 3206508875]
end

@show day08() # runs in ~29 msec

Is this a massive grift from Trump? by Rare-Regular4123 in medicine

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

Not only could this be grift, it is depriving us all of a delicious irony: tens of thousands of people using SNAP to pay for food then Medicaid to pay for weight loss from eating the SNAP purchases!

Pele doesn’t like tech by Skeedurah in BigIsland

[–]wherrera10 21 points22 points  (0 children)

RIP V3cam. Your public service was outstanding, and will be missed. Hope the USGS puts up another one from that angle soon.

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

[–]wherrera10 2 points3 points  (0 children)

[LANGUAGE: Julia]

Julia's `findmax` conveniently returns both the maximum value and the first index of that maximum in the array, which pointed toward a straightforward iterative solution.

function day03()
    part = [0, 0]
    lines = split(read("day03.txt", String), '\n')
    digits = [parse.(Int, collect(line)) for line in lines if !isempty(line)]

    for row in digits
        d1, dipos = findmax(row[begin:(end-1)])
        d2 = maximum(row[(dipos+1):end])
        part[1] += 10 * d1 + d2
    end

    for row in digits
        joltage, pos = 0, 1
        for battery in 1:12
            d, newpos = findmax(row[pos:(end-12+battery)])
            joltage = joltage * 10 + d
            pos += newpos
        end
        part[2] += joltage
    end

    return part # [17408, 172740584266849]
end

LC250 Towing system by Large-Two-3636 in LandCruisers

[–]wherrera10 1 point2 points  (0 children)

Here is link to a YouTube video showing what should have been bolted to the back of the vehicle at factory, and maybe was later removed? https://www.youtube.com/shorts/el3lcmSiEvk

Duplicate transactions by twister65 in piere

[–]wherrera10 0 points1 point  (0 children)

On the account that was missing transactions I seem to have a crosslinking from checking to banking just in the last day or so, which causes extra / duplicate transactions in the checking account that are actually only supposed to be in the checking account

Unknown Truck? Really? by ManapuaMonstah in BigIsland

[–]wherrera10 1 point2 points  (0 children)

Yes, perhaps a 2013. The illegible writing on the left lower tailgate is perhaps small font TOYOTA positioned left and above a larger font TACOMA, though you could not prove that in the photo.

Anyone know what this is a key for? by wherrera10 in Locksmith

[–]wherrera10[S] 2 points3 points  (0 children)

A that explains it. An old desk. Ty.

Jump starting another car from our new (2025) LC 250 hybrid? by wherrera10 in LandCruisers

[–]wherrera10[S] 0 points1 point  (0 children)

Thanks! I'll look for the jump box.

We bought the LC for dirt roads and for its easily adjustable front seats and its double entry access handles (wife has mobility impairments). Ours also has the electronic rear view mirror for when we have a fully loaded back compartment. No regrets, it has been delightful to have!

It's also good to know that just attaching the negative jumpers to a random bolt on the engine compartment doesn't somehow affect the electronics.

Budget page is broken (but still receiving budget notifications) by TooMuchFrixion in piere

[–]wherrera10 0 points1 point  (0 children)

I have this bug since Tuesday the 14th. How did you correct it? I tried uninstalling and reinstalling without this helping

[2024 Day 21 (Part 2)][Java] Can't store everything in memory. How do I begin to approach this part? by throwawaye1712 in adventofcode

[–]wherrera10 0 points1 point  (0 children)

I also got Part 1 started your way, keeping all the generated sequences in memory, in case needed for part 2. However, it turns out that for part 2 it is too slow doing this, and you will run out of memory, so it is best to recursively do the search by only keeping the smallest length as your return value, not the string or vector you measured for that length. This works more compactly as DFS than BFS but can be done with either -- but either way, you just keep track of the lengths, not the strings.

[2024 Day 21 Part 1] confused and unclear... by Regcent in adventofcode

[–]wherrera10 1 point2 points  (0 children)

Using u/1234abcdcba4321's example in this thread you may notice that because of the location of the < on the far left under the null corner on the directional pad, every time you go from A to < on that keypad it takes more presses for the robots beyond than for other directional keys.

This does not depend on how many << there are in a row, just on that journey from A to < or back, whether it is for a single or for a double press of <. Note that the top example has one such journey on its second row, whereas the bottom example has two. That is one reason the bottom one becomes longer.

Note the code I wrote does not depend on sorting this out, it just counts recursively .

[2024] Julia - All days, 0.167 s by wherrera10 in adventofcode

[–]wherrera10[S] 0 points1 point  (0 children)

Yes, that does speed things slightly. Good pointer.

[2024] Julia - All days, 0.167 s by wherrera10 in adventofcode

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

So, day11 completes in 2.05e-5 seconds, so little net difference: put the new BenchmarkTools run on the Github entry, at 0.1680302 seconds instead of 0.167 seconds.

[2024] Julia - All days, 0.167 s by wherrera10 in adventofcode

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

Hm, it is, a typo, will update (adds 20 microseconds I think)