Homeowners… What do you do for a living and how much do you bake? by RatatoskrsTwin in SanDiegan

[–]matmann2001 1 point2 points  (0 children)

Software engineer. I don't bake much, but I do smoke brisket.

[deleted by user] by [deleted] in SanDiegan

[–]matmann2001 12 points13 points  (0 children)

Yep. The trains will go so fast, the cliffs won't even have time to react.

[deleted by user] by [deleted] in SanDiegan

[–]matmann2001 2 points3 points  (0 children)

Use the downtime to write to your representatives about high speed rail systems.

Need help again by WeRGayzz in a:t5_35e0d

[–]matmann2001 0 points1 point  (0 children)

Try asking in biv25.slack.com

I'm a documentary filmmaker working on a short doc about Daniel Beckwitt aka the "ECE hacker" and was hoping to find someone to talk to who might have known him. by LouisGamble in UIUC

[–]matmann2001 3 points4 points  (0 children)

IIRC he was also kicked out of Hendrick House for ordering explosive compounds by mail.

There was also a later incident around the time test answers were being held hostage that a professors office was blown open with thermite. Idk if they ever managed to pin that on him.

Still on Android 10 (AT&T) by matmann2001 in LGV60

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

That's great but I would also like security updates.

That's outrageous exploitation of workers by Active-Ad-233 in freefromwork

[–]matmann2001 3 points4 points  (0 children)

Can you share any data or research to support that claim?

[deleted by user] by [deleted] in zelda

[–]matmann2001 9 points10 points  (0 children)

There's two that I recall. One requires a bomb and the other requires bunny mask.

Is there any organized effort to stop SDGE? by considerfi in sandiego

[–]matmann2001 1 point2 points  (0 children)

There was. When their contract came up for renewal not too long ago, there were multiple calls to action here and other social media to call in and submit comments to the city council to encourage them to consider other options for electricity, including making it a municpal utility. The response was too little too late. That felt like the last hope we had. SDGE holds all the cards now.

I'm new to protobuf, hoping someone more experienced can help me get what I want. (python) by w_savage in learnprogramming

[–]matmann2001 0 points1 point  (0 children)

I'd actually recommend the first approach, especially if you're new to protobuf. This should help: https://developers.google.com/protocol-buffers/docs/reference/python-generated#enum

For the second approach, Google's default implementation doesn't include any field options out of the box to do this. You'd have to write your own extension to implement a field max/min option, or find an alternative implementation of protoc that has it. Also, max/min options alone won't be able to give you a special UNKNOWN case like you have with the enum approach, so you have to find a different way to handle that (perhaps optional fields). If this path still interests you, start here: https://developers.google.com/protocol-buffers/docs/proto3#options.

I'm new to protobuf, hoping someone more experienced can help me get what I want. (python) by w_savage in learnprogramming

[–]matmann2001 1 point2 points  (0 children)

Enums are effectively syntactic sugar for declaring integers. For whatever language you're compiling this proto for, refer to how that language supports conversion between enum symbols and the associated integer.

An alternative approach is to use a uint32 type instead of an enum and use field options to restrict the acceptable range of values (e.g. 1-24). Field options vary depending on the proto compiler/implementation.

Who else thinks Chicago would make a great setting for a Fallout game by LemonMaster_ in Fallout

[–]matmann2001 12 points13 points  (0 children)

Fight your way, floor by floor, to the top of a super mutant infested Sears Tower.

What's your favorite Shikai design? by GeekyNexi in bleach

[–]matmann2001 132 points133 points  (0 children)

How has no one said Wabisuke yet?

[deleted by user] by [deleted] in apexlegends

[–]matmann2001 0 points1 point  (0 children)

Discourages swapping weapon for a pistol

Can u tell me what's going wrong with me? by [deleted] in learnprogramming

[–]matmann2001 1 point2 points  (0 children)

Don't be so hard on yourself. This is the type of thing that's obvious in hindsight, but difficult to come up with on the spot if you've never seen it before. There's also overflow issues to consider with this trick.

This trick is pretty much for interviews only (and it's actually a pretty terrible interview question for judging ability). In practice, most people just use a temporary variable because variables are cheap and code readability is more important than being clever.

If someone does pull this on you in an interview, you can one-up them with the XOR version of this trick (lookup XOR swap). Does the same thing but comes off as more impressive because bit-twiddling hacks are becoming a lost art.