|
It's both the caller and the callee. In the first sentence, it's the caller (of the async method). In the next sentence it's the callee.
If your actions inspire others to dream more, learn more, do more and become more, you are a leader.-John Q. Adams You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering.-Wernher von Braun Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.-Albert Einstein
|
|
|
|
|
Ok let's work through this. This is the way I understand what is being said. Note though that I am no "async" expert. In fact, I've never used the construct in C#. So, take it for what it's worth.
An async method provides a convenient way to do potentially long-running work without blocking the caller's thread.
This seems straightfoward.
The caller (say, M1) of an async method can resume its work without waiting for the async method to finish.
"The caller (say, M1)" -->
M1()
{
await asyncMethodName();
}
However, M1 typically uses the await keyword so that it returns immediately, allowing M1’s caller to resume work or return to the thread’s synchronization context (or message pump)
SomeOtherMethod()
{
M1();
M2();
}
If your actions inspire others to dream more, learn more, do more and become more, you are a leader.-John Q. Adams You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering.-Wernher von Braun Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.-Albert Einstein
|
|
|
|
|
I want to buy a tablet where different people can log in and access individual email accounts. I know Apple is out, what about Android? Or is a surface for me?
Thanks.
Regards,
Rob Philpott.
|
|
|
|
|
|
Snap!
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
Android does support multiple users: I haven't tried it (because Herself is scared stiff to go near my Nexus 7, thankfully) but this explains the procedure: http://www.dummies.com/how-to/content/how-to-add-another-user-to-your-android-tablet.html[^]
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
I think that Android devices are mainly to surf the web, check social media, check emails and play games. As soon as you want to get more work done (Powerpoint, Word, Excel and so on) a Surface tablet would be the best choice, since it is relatively close to a full-blown Windows OS.
I gots a Surface, and I am really happy with it.
Veni, vidi, caecus | Everything summarizes to Assembly code
|
|
|
|
|
I've really enjoyed my Surface Pro 2.
|
|
|
|
|
Ditto. And my Surface Pro 2 has pretty good battery life, depending on what you're doing, of course.
CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
I just got up and haven't had coffee yet and I had a double take at the subject line I read;
tablet with multiple accents
coffeeeeeeeee
|
|
|
|
|
Goooood mooorning over there
Veni, vidi, caecus | Everything summarizes to Assembly code
|
|
|
|
|
Ok I'm awake now and I see the error of my ways and know what to do from now on;
Open eyes before sitting down in front of computer.
|
|
|
|
|
After much jiggery pokery with the video card settings, I eventually managed to get the Oculus Rift working consistently last night.
Today, Sasha, my youngest (6), had a go of the RiftCoaster demo......http://www.youtube.com/watch?v=c34VL0_9K-4&[^]
She was quite happy to go round and round, me on the other hand was really starting to get a little bit disorientated after a couple of runs.
Even for the relatively low quality, you do get totally immersed in the content.
|
|
|
|
|
I love her reaction!
But my only problem with them is the same as all the other VR headsets that have tried and failed: you don't half look like a pillock wearing them...
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
OriginalGriff wrote: you don't half look like a pillock wearing them...
That is a downside of a lot of things, not just VR stuff. Take Hardhats, safety glasses/goggles or even cycling helmets!
Nothing can beat Crocs though!
|
|
|
|
|
DaveAuld wrote: cycling helmets Let's see.
Look like a pillock wearing a cycling helmet, or feel like one because my daughter has to feed her brain-injured father, change his diaper, and so on and so forth?
Decisions, decisions.
Software Zen: delete this;
|
|
|
|
|
I never said it was an excuse not to wear them!
Although I'm sure there are many millions who do...
modified 25-Jan-14 10:45am.
|
|
|
|
|
Just came across this[^]!
Well fads they come and fads they go.
And God I love that rock and roll!
Well the point was fast but it was too blunt to miss.
Life handed us a paycheck, we said, "We worked harder than this!"
|
|
|
|
|
|
...or are the generation that are coming though being taught not to think?
I'm increasingly noticing in QA that (not only is the standard of questions still dropping) but the thinking element of working with answers is getting less.
For example, a question asking how to remove the spaces between numbers without removing them at the start or end of the string. Understandably, String.Replace and String.Trim don't work. So I suggested a Regex, using his example as an input:
string input = " 2365 2365 ";
string output = Regex.Replace(input, @"(?<=\d+)\s+(?=\d+)", "");
What surprised me was getting a response saying that it didn't work because I had hard coded the string.
Now, you, I, everyone I know would look at the code above and see an example of the input to show where it goes in the regex - wouldn't you? I can't think that anyone who has got far enough to realise that Replace and Trim don't do what he wants, and use Google to find us here should have a problem with using the example to create exactly the code they need. OK, the Regex itself may be a little impenetrable - they do tend to be - but the code around it should be self explanatory, shouldn't it?
Now, I don't want anyone rushing off and downvoting or insulting the OP - hence no link to the question - but I can't help thinking that the next generation as a rule are just not thinking, even when given a solution that needs a tiny bit of input.
Is it just me? Am I getting too old for this? Or is anyone else noticing as well?
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
OriginalGriff wrote: Or is anyone else noticing as well? Well yes, but years ago. It's not such a recent development.
It happened a couple of times, probably 8-9 years ago on an entirely different forum, that I would leave something named "input" or "n" or "array" or something undefined, and people would complain that it didn't compile. It happened quite regularly, actually.
But maybe it's more prevalent now?
|
|
|
|
|
OriginalGriff wrote: Am I getting too old for this?
Yes of course!
The other parts of the message are irrelevant so don't bother on them...
Seriously yes, you are right, I don't know if this is about a new generation or about any other thing, but in any case it is clear that each day people puts less effort on their jobs.
|
|
|
|
|
I once had a fellow apprentice trying to add the MySQL connector for Java to an Eclipse project.
He tried to add it in his code, has not realzed that the *.jar file must be added to Eclipse.After him complaining that "The Java connector is broken, not usable, bullsh**" and so on I fired up a quick Google search to show him how it is done.
His Effort: Two weeks, swearing and complaining to everybody around (while claiming that he is a far better Dev than the rest of us)
My Effort: One Google search, 2 Minutes Clicking around in Eclipse
Problem solved by: Me.
So yes, the younger guys may get more stupid, but that was something to expect. The industry needs more and more Developers, sucking in more morons than in the old days. The good ones may raise up to be contractors, Requirement Engineers or Software Architects, while the code monkeys stay where they are, occupying the Q&A section.
Veni, vidi, caecus | Everything summarizes to Assembly code
|
|
|
|
|
No, it's most of us, and strangely ...
I was just thinking about a couple of questions I responded to this morning, and my conclusion was that both people showed a (seemingly) total inability to think for themselves. More and more questions are of the form:
OP: Please help me with X?
CP: You need to do Y, and maybe also Z
OP: How can I do that?
CP: Add some extra code at points A and B
OP: Please send me sample code?
...
OP: I have to create a project on X for my final year, I don't know where to start, please provide full details for me.
CP: ?
Veni, vidi, abiit domum
|
|
|
|
|
It's you. The sole purpose of CP is to provide source code and all other related relevant documentation free of cost and within an hour of posting question.
Moreover, that is your sole purpose of existence in this World. Feeling enlightened? Now get back to work and provide codezz plzz.
"Bastards encourage idiots to use Oracle Forms, Web Forms, Access and a number of other dinky web publishing tolls.", Mycroft Holmes[ ^]
|
|
|
|
|