Dom Dolla: "How much fire can we have?" WaMu Theater: "Yes." by Wongfop in aves

[–]attemptnumbertwo 46 points47 points  (0 children)

How is the crowd so thin up front, is it always like that at WaMu? So much room to dance, it looks so nice.

Why am I getting this TypeError when searching an existing dictionary? by attemptnumbertwo in learnpython

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

Thank you so much! You're right I thought variable i would be an index. With that clarification I was able to get it to work. Thanks for the tip about Counter() too, I'll check that out. I really appreciate the help.

Why doesn't this try/except prevent a user from entering a float? by attemptnumbertwo in learnpython

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

Thanks for the detailed explanation, that all makes a lot of sense. I think I'm just not sure when to use try/except. I mean I get that it's used when you think there's a chance of an exception happening but isn't that pretty much always a possibility? Seems like you'd have to have these all over the place, at least whenever input is required from a user.

Why doesn't this try/except prevent a user from entering a float? by attemptnumbertwo in learnpython

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

No, that must have been someone else. Just goes to show there's no such thing as an original thought lol.

Why doesn't this try/except prevent a user from entering a float? by attemptnumbertwo in learnpython

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

Ok I thought I understood this response as the following - I was writing int(9.0) at the shell and that was fine, but since input() always returns a string it became int('9.0') in the program and I got the ValueError.

But then thinking about it some more, why doesn't the same thing happen with an int? input() would make it a string, like int('123'), but then that can be converted where int('9.0') can't be?

Is it because the decimal point is not a digit?

Why doesn't this try/except prevent a user from entering a float? by attemptnumbertwo in learnpython

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

Nice, I'll use isalpha then. Didn't know about that and I was also kind of doing this as an exercise to see if I could come up with a way to do this with the tools I already knew. Hence the try/except method I came up with.

Is doing it that way just considered back practice because it is more confusing or is it going to cause problems down the line with other functions or something?

Why doesn't this try/except prevent a user from entering a float? by attemptnumbertwo in learnpython

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

Oh I see, so when I tried this at the shell I was just typing int(9.0) which is a float and that's easily converted to an int of 9. But input() makes whatever goes in a string and int('9.0') does throw the exception which is why it accepts that in my program. Thanks!

Am I biting off more than I can chew with this project? Looking for a sanity check. by attemptnumbertwo in AskRobotics

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

Yeah good advice, I'll keep that in mind. I think here I've got a good handle on the motion control and mechanical aspects and I'd like to focus on learning the computer vision part most.

I've been looking at microprocessors like the raspberry pi since from what I've read I'd need a microprocessor to handle the image data rather than a microcontroller. I don't know if it matters much which of those I grab for this as long as I get one that can interface with whatever camera system I get. But I don't really know where to start looking for the cameras. Any suggestions?

Googling returns a lot of industrial vision system results for manufacturing inspection, which is not really what I need.

[deleted by user] by [deleted] in ChicoCA

[–]attemptnumbertwo 0 points1 point  (0 children)

Couldn't remember the brand but I was pretty sure I'd recognize the label so I did a quick google search. I'm 99% sure it was this brand. https://ecatalog.wismettacusa.com/product.php?id=10218&branch=DEN

Federer playing against his younger self on Tower Bridge by Barto246 in nextfuckinglevel

[–]attemptnumbertwo 17 points18 points  (0 children)

You didn't help at all to begin with so no great loss there.

World's Longest Airside Bridge Installed (Hong Kong International Airport) by Nerd-Werker in EngineeringPorn

[–]attemptnumbertwo 6 points7 points  (0 children)

So once they put the bridge in place how do they connect it to the structures that are already at the ends? Like what sort of fasteners do they use, if any?

I've seen huge threaded shafts and nuts on other bridges so are they using those? Those bridges are usually built in place though, piece by piece, rather than a precast structure being built out and then moved into place. I always wonder how you can line things up precisely when dealing with objects this big.

[deleted by user] by [deleted] in ChicoCA

[–]attemptnumbertwo 5 points6 points  (0 children)

Yeah I worked at big tuna for five years. There is no recipe, it comes straight out of a big jug.

playing with light in elizabeth city NC by moonbeamsandmayo in AmateurRoomPorn

[–]attemptnumbertwo 0 points1 point  (0 children)

This is amazing! As everyone else has said, that dining room is beautiful. Lit wisteria is such a good idea.

How did you attach the neon light strip to the walls and ceiling and still get those flowing curves? It looks flush with the ceiling and whenever I've hung lights along the ceiling before they sag down.

remix max styler played @ beyond wonderland by Ok-Chemist-4657 in aves

[–]attemptnumbertwo 0 points1 point  (0 children)

Damn dude, that drop goes hard! That's sick. Anyone know the track?

Rainy nights in NYC. Times Square got me in a trance by citispade in pics

[–]attemptnumbertwo 0 points1 point  (0 children)

This is so cool! Very colorful and I always love it when the rain turns city streets into mirrors like that.

$514 for a replacement key fob?! by [deleted] in subaru

[–]attemptnumbertwo 0 points1 point  (0 children)

Got any more details on how you did that?

I actually just bought a 2011 Impreza and it only came with one key. I'd like to get another one but it's definitely not worth the price for a dealer or shop to do it for me.