Browsing 7239 questions and answers with Jon Skeet
No, I believe you (at least currently) have to specify the input language. (Unlike the Translation API where you can let it auto-detect, for example.) more 7/4/2017 8:15:15 AM
I suspect it turns out to be safe because GroupBy doesn't stream results - it consumes all of the input before it returns any values. (It's lazy in that it doesn't do any work until you ask it for its first element, but then it consumes... more 7/4/2017 8:05:22 AM
There are two separate logical operations here: Converting from ticks to microseconds. This is basically a matter of dividing by 10 (there are 100 nanoseconds or 0.1 microseconds in each tick), so that can lose information already in... more 7/3/2017 8:26:19 AM
I thought that the 0xff made it unsigned. Well, it does, sort of - it promotes it to an int, and keeps just the last 8 bits. However, you're then casting the result of that back to a byte, and a byte in Java is always signed. (It's... more 6/29/2017 7:37:33 PM
Okay, I've found the reference to Google.Apis.Auth 1.21.0 - it's in the Grpc.Auth NuGet package. If you just add a reference to the Grpc.Auth DLL, you'll get this kind of failure - but if you manage all the dependencies via NuGet, I'd... more 6/29/2017 2:44:26 PM
Looking at the Image code I believe you should just be able to pass in the URI as a string: $uri = "https://fallaviblob.blob.core.windows.net/createdblobs/20170601_191635_237.png" $image = $vision->image($uri, ['LABEL_DETECTION',... more 6/28/2017 6:05:41 AM
The simplest way is to use &: if ((available & me) != 0) You can use 0 here as there's an implicit conversion from the constant 0 to any enum, which is very handy. Note that your enum should be defined using the Flags attribute... more 6/27/2017 8:38:31 AM
Take string concatenation as an example. Suppose you're using a language which uses + for string concatenation. That's naturally associative, as the grouping doesn't matter: ("a" + "b") + "c" == "abc" "a" + ("b" + "c") == "abc" But the... more 6/26/2017 12:18:44 PM
No, because this: string Error { get; } ... is an automatically-implemented property. The compiler is generating a field for you behind the scenes, but you can't refer to that field within the code. If you need to use the backing field,... more 6/26/2017 9:43:53 AM
Because it makes life much, much simpler to regard UTC as a time zone than to treat it as something else, basically. It's one of those "Yeah, strictly speaking it's not" scenarios. For everything except "Which region of the world is this... more 6/26/2017 9:18:21 AM