WTF Bites
-
@Rhywden You need a lot of salt to cure the hides of animals. After the fabric of society breaks down you'll have to make your own leather!
-
Why I don't just ignore him? Because he's in half of my recommendations.
Isn't there a "stop seeing this" option?
-
@Tsaukpaetra said in WTF Bites:
Why I don't just ignore him? Because he's in half of my recommendations.
Isn't there a "stop seeing this" option?
There is if you're logged in, but I don't think it does much of anything but tell Google you picked it. It certainly doesn't seem to stop them from recommending videos from the same channel(s) as long as they're similar to something I've watched in the last few months.
-
I have an appliance repair dude on his way to my house. They use dispatch.me when he's on his way, and it gives me his estimated arrival time and shows me where he is on a google maps interface. That's really cool.
Except they have it configured to drive on the left side of the road, so his expected path always shows U-turns or him driving on the wrong side of the highway.
-
@boomzilla said in WTF Bites:
configured to drive on the left side of the road,
Why is that a definable setting?!?
-
@Tsaukpaetra said in WTF Bites:
@boomzilla said in WTF Bites:
configured to drive on the left side of the road,
Why is that a definable setting?!?
I assume they use it in countries where driving is legally done on the left side of the road. It might also not be a definable setting, which could be the problem..except...they appear to be based in Boston, so presumably familiar with driving on the right side of the road. At least if you don't believe the stories about the way they drive there.
-
@boomzilla Not seeing any options to define the side of the road you're driving on. Very weird.
-
@boomzilla said in WTF Bites:
I assume they use it in countries where driving is legally done on the left side of the road.
Which could be automatically detected based on location.
-
@boomzilla Not seeing any options to define the side of the road you're driving on. Very weird.
Yeah...so even though the end of the route looks like you'd expect (the map pointer thingy with a checkbox) maybe they're putting the route in backwards when they draw it?
-
-
@boomzilla said in WTF Bites:
@boomzilla Not seeing any options to define the side of the road you're driving on. Very weird.
Yeah...so even though the end of the route looks like you'd expect (the map pointer thingy with a checkbox) maybe they're putting the route in backwards when they draw it?
So, setting his house as the start and the mobile coach as the destination?
-
@Tsaukpaetra said in WTF Bites:
@boomzilla said in WTF Bites:
@boomzilla Not seeing any options to define the side of the road you're driving on. Very weird.
Yeah...so even though the end of the route looks like you'd expect (the map pointer thingy with a checkbox) maybe they're putting the route in backwards when they draw it?
So, setting his house as the start and the mobile coach as the destination?
Yeah. That would explain why it looks like it's having him on the wrong side of the road.
-
@loopback0 said in WTF Bites:
@boomzilla said in WTF Bites:
I assume they use it in countries where driving is legally done on the left side of the road.
Which
couldshould be automatically detected based on location.It's not like drivers can choose.
-
It's not like drivers can choose.
They can, they just might not get very far.
-
@boomzilla said in WTF Bites:
I have an appliance repair dude on his way to my house. They use dispatch.me when he's on his way, and it gives me his estimated arrival time and shows me where he is on a google maps interface.
Aw shucks. This tecknology probably spells the end to those repairmen videos of certain sort I will not confirm or deny I've been seeing.
-
@Applied-Mediocrity said in WTF Bites:
@boomzilla said in WTF Bites:
I have an appliance repair dude on his way to my house. They use dispatch.me when he's on his way, and it gives me his estimated arrival time and shows me where he is on a google maps interface.
Aw shucks. This tecknology probably spells the end to those repairmen videos of certain sort I will not confirm or deny I've been seeing.
You mean of the "Warum liegt hier überhaupt Stroh rum?" kind?
Filed under: Y'all are not gonna get this one
-
@Tsaukpaetra said in WTF Bites:
I don't use my sausage as the input implement
That seems like it would be rather unsanitary.
Filed under NSFW thread is
-
-
@HardwareGeek said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
I don't use my sausage as the input implement
That seems like it would be rather unsanitary.
Filed under NSFW thread is
Well so long as you're not actively infected, not actually, turns out it's probably cleaner than your hands!
-
@Rhywden The entire KH lore is a confusing mess anyway, I've watched several videos trying to explain it and it just gets so convoluted so fast. Fun fact, my introduction to the series was "Kingdom Hearts: 358/2 Days", probably the worst one to start with due to how confusing everything is.
-
@LB_ especially the title.
-
status: what the fuck? How did the Status Thread start merging with WTF Bites?
-
@Gąska Well, yeah, seems to be par for the course.
I mean, the game is called Kingdom Hearts III and the first mission I went on was called "Kingdom Hearts II.9"
-
try { ... } catch (Exception ex) { ProjectData.SetProjectError(ex); Exception ex2 = ex; sqlConnection.Close(); throw ex2; }
-
@Applied-Mediocrity said in WTF Bites:
We need to talk about your flair
My flair is adequate to my current situation.
I only count 14. You're below the minimum.
-
I only count 14. You're below the minimum.
Not my problem if everyone else is constipated.
Posted from the loo
-
This thread under maintenance.
To continue the discussion of sleeping streamers, go here:
https://what.thedailywtf.com/topic/27087/streamers-of-the-world-unite
If I missed a post or forked a wrong post, leave a comment here letting me know and someone will deal with it.
Follow ups that should go in the forked thread may be deleted.
-
This post is deleted!
-
@loopback0 said in WTF Bites:
try { ... } catch (Exception ex) { ProjectData.SetProjectError(ex); Exception ex2 = ex; sqlConnection.Close(); throw ex2; }
Is that Java, where it's just mildly
, or C++, where it would be massive
?
PS: I am using
in the original sense. Is that
?
-
@boomzilla said in WTF Bites:
If I missed a post or forked a wrong post, leave a comment here letting me know and someone will deal with it.
ISYWDT
-
@loopback0 said in WTF Bites:
try { ... } catch (Exception ex) { ProjectData.SetProjectError(ex); Exception ex2 = ex; sqlConnection.Close(); throw ex2; }
Is that Java, where it's just mildly
, or C++, where it would be massive
?
Looks like C# given the naming conventions. Both Java and C++ tend to prefer lower case for the first letter of method names (and I think C++ often uses underscores to separate words rather than casing).
-
C++ tend to prefer lower case for the first letter of method names (and I think C++ often uses underscores to separate words rather than casing).
C++ is every dog different village, and Microsoft uses the same naming convention for both C++ and C# (the C# naming convention is the one they've been using in C++ since ages).
-
Looks like C# given the naming conventions.
It's sending mixed signals to me with the
.Close()
method. Java'sjava.io.Closeable
has.close()
and C#'sSystem.IDisposable
has.Dispose()
. So.Close()
is some kind of cross-breed.
-
https://docs.microsoft.com/en-us/dotnet/api/system.data.sqlclient.sqlconnection.close , or maybe even:
-
@Bulb It would be a
in Java (quite apart from the nonstandard naming) since virtually everything that can be closed is
AutoCloseable
and so best handled usingtry
-with-resources instead of that sort of home-cobbled version.
-
Q: How many "memorable" "security" questions should you ask a user to enter when they update a password that's got a forced expiry date?
1
Would be nice, but no
2
Still not enough
3
Keep going
7
What? No, that'd be ridiculous
13
-
Crazy fool!
-
Ok,
. Why on $earth does it have its own method instead of using
IDisposable
.
-
@Bulb Presumably so you can close it without disposing it.
I haven't tried closing a connection and opening it again, but I don't think there's anything in the docs saying you can't do that.
Why one would do that is beyond me.
-
@Bulb It does use IDisposable. So it's not "instead of" but "in addition to."
-
@Mason_Wheeler said in WTF Bites:
@Bulb It does use IDisposable. So it's not "instead of" but "in addition to."
Ok, that's
² (a.k.a
×
) then.
-
@levicki said in WTF Bites:
The Close method rolls back any pending transactions. It then releases the connection to the connection pool, or closes the connection if connection pooling is disabled.
That's exactly what
Dispose()
shall do in this case.@levicki said in WTF Bites:
An application can call Close more than one time without generating an exception.
That's exactly what
Dispose()
shall do as well.
-
@levicki Meanwhile:
https://docs.microsoft.com/en-us/dotnet/api/system.data.sqlclient.sqlconnection says:
Close and Dispose are functionally equivalent.
This is specific to the SqlConnection subclass though.
-
thread.latch.class from the C++20 spec draft:
bool try_wait() const noexcept; Returns: With very low probability false. Otherwise counter == 0.
I guess that's one way of describing that.
-
How many "memorable" "security" questions should you ask a user to enter when they update a password that's got a forced expiry date?
It sounds like you may not have to choose all of them ("Please choose your security questions"), but it's not clear. I can see some advantages over this sort of interface compared to having the questions in dropdowns as one sees.
-
@boomzilla I thought so too, especially from the wording of the yellow message ("Please add an additional random response."), but it wouldn't let me continue until I filled out all of them.
-
thread.latch.class from the C++20 spec draft:
bool try_wait() const noexcept; Returns: With very low probability false. Otherwise counter == 0.
I guess that's one way of describing that.
What?!
Does that mean it immediately returns true if counter == 0, false otherwise?
Or does it actually mean:bool try_wait() const noexcept { try { wait(); return true; } catch(const system_error&) { return false; } }
-
@topspin Hmm. That's an interesting interpretation. Based on the aptly numbered paper 666 (r2), I don't think that
try_wait()
is supposed to block. In P666,latch::try_wait()
just says that it returnscounter == 0
(no gotchas).barrier::try_wait()
uses a few more words, and says that it returns true if the condition is satisfied and false otherwise (barrier::try_wait()
isn't in the standard draft, so who knows?).I ended up interpreting it to mean that an implementation is allowed to occasionally return false even if the counter is already zero. I guess if you are on a weirdo platform where you don't have atomics [of the right size], and instead need a mutex around the counter, you could
try_lock()
and if that fails, you would just return false? Like, instead of actually waiting for the mutex...I just do
return 0 == counter.load()
, where counter is an std::atomic if some kind.
-
The way I interpret it, while having no idea what it does or is meant to do is:
most likely this will return true, in which case it's guaranteed that counter == 0. But there's a small chance it will return false, in which case the counter can be whatever.
Edit: having read what a latch is, I stand by my interpretation. The description speaks of the most unlikely case first though, which is what makes it weird.
-
The description speaks of the most unlikely case though, which is what makes it weird.
Yeah, that's what threw me off. The first thing that's mentioned is the exception/escape hatch for implementers, and then they follow up with the actual thing it does. (To be fair, their description is closer to the order in which things would happen in an implementation, I guess. I.e., sometimes things don't go as planned, and the function returns false; otherwise, if things go well, it returns the result of the comparison.)