aion

joined 1 year ago
[–] aion@lemmy.world 2 points 3 months ago

A party nominating their candidate before the state deadlines to appear on the ballot is not authoritarian, its making sure their candidate appears on the ballots for the election.

[–] aion@lemmy.world 1 points 3 months ago* (last edited 3 months ago) (1 children)

Yep, according to the US Flag Code:

When displayed either horizontally or vertically against a wall, the union should be uppermost and to the flag’s own right, that is, to the observer’s left.

TBF, it does have different instructions about how to display the flag outdoors, hard to tell from this perspective if it was actually hung properly.

[–] aion@lemmy.world 15 points 3 months ago (3 children)

Even when hanging the flag vertically, this is the correct orientation, with the stars in the upper left.

 
[–] aion@lemmy.world 1 points 4 months ago (1 children)

what relays do you recommend?

[–] aion@lemmy.world 1 points 4 months ago (1 children)

I'm think about putting them on bathroom fans as well. It would be really nice to have them automatically turn on/off based on humidity.

[–] aion@lemmy.world 2 points 4 months ago

I was looking at the Enbrighten switches, the zigbee ones are on Amazon but they only list them the z-wave ones the Enbrighten website. Maybe the zigbee ones were discontinued? Seems like the industry is moving toward z-wave, maybe I should get a z-wave adapter as well.

 

I'm looking to replace a few in-wall light switches for lights that are not easily replaced with smart bulbs. I currently use Home Assistant with z2m for all my smart lights and switches, so zigbee switches would be preferred. Does anyone have recommendations for smart in-wall switches?

 
 
 

I picked this up at a yard sale and reseasoned it. There are no markings on it. Any idea what brand this is?

 
 

cross-posted from: https://radiation.party/post/41704

[ comments | sourced from HackerNews ]

 

Is this the best way to use expectEqual?

fn add(a: i64, b: i64) i64 {
    return a + b;
}

test "basic test" {
    try std.testing.expectEqual(@as(i64, 10), add(3, 7));
}

Without the @as the test doesn't even compile:

./src/main.zig:12:40: error: expected type 'comptime_int', found 'i64'
    try std.testing.expectEqual(10, add(3, 7));

Having to use @as seems makes the test less readable. It seems to me inferring the type of expected from the type of actual would make more sense.

1
submitted 1 year ago* (last edited 1 year ago) by aion@lemmy.world to c/nationalparks@lemmy.world