excellent!
glad my googlefu could help.
excellent.
of that isn't what you are looking for here's the Googlefu i used to find that link: c# invoke on another thread
perhaps another of those links will help if this one didn't
assuming your host computer is beefy enough and your internet pipe is big enough, with a low enough latency. VNC may work for that purpose.
I wouldn't play an FPS over that kind of connection, but YMMV
hmm... Maybe what you want is something like this?
At least that should work if your concern is to get the processing out of thread C and onto thread A where object B lives.
Chrome remote desktop does multimonitors in a weird way. it shows them all, in their layout, in your browser window. it works okay if you have the same number of monitors on both ends, and they are in a rectilinear layout.
it also bypasses most NAT firewalls because it uses a passive connection. both computers connect to a google server that proxies the connection between the two computers so the connection is outbound from both computers perspectives.
it's free and both mac and PC are supported as the "host", Linux support comes and goes. any computer that runs chrome can use the client to connect to another computer. might be worth a look, unless you consider google to have crossed the evil line.
ok. so let me see if i follow you on this.
you have main processing thread A
A
creates object B
to handle external API C
API C
periodically fires events that object B
picks up and does some processing, maybe
Object B
then has to inform process A
that the event occured, likely with some data about the event
correct?
in that case, unless you have some weird thread affinity issues that I've never yet run into outside of dealing with GUI, i think what you want to do is create events on object B
that process A
registers for with the appropriate handlers to do whatever it needs to with the events as they occur.
maybe what you are looking for is the C# 4.5 async methods. Those are [expletive deleted] awesome, and what i'd go for if i could use 4.5 and the objects i was dealing with did not have the kind of thread affinity that the WPF objects have.
I know it's less than optimal, but when i have an invoke across thread boundaries issue i usually just create a WPF GUI object (a label say) and use the invoke method on it that ensures that whatever i gave it to run runs on the GUI thread.
of course the reason i use that is almost always to manipulate the states of other WPF GUI objects from a worker thread (progress feedback anyone?) and those calls have to be from the GUI thread.
I'm sure with a little creative thinking one could create an object that captures the thread it is created on and exposes an invoke method that takes an action, or delegate from any other thread and arranges it to run on the thread that created the object.
That would probably get complicated fast, but it's the only solution i can think of (because i rarely deal with esoteric event driven models in C#. i should do more with them, but i don't, yet.)
reading What If? by Randall Munroe
so far it is every bit as awesome as i expected.
www.youtube.com/watch?v=LrObZ_HZZUc
CGP Grey explains all.
i am rapidly running out of internetz to give away.
+4 internetz to you!
London or the City of London?
one is significantly cooler than the other.
take the credit for using it then.
i'll set aside 13 more internetz that i owe to the creator if we ever find them.
you, sir and/or/xor/nor/xnor/xand madam, are evil.
I like that.
+13 internetz to you.
oooh.... i LIKE that!
Learn to knit or chrochet and bring that to the meeting.
this works especially well when you learn a pattern to the point that not only can you carry on a conversation while knitting you don't even have to look at your hands. (extra bonus points for gesticulating with the crochet hook between stitches and still not needing to look at your hands)
it's amazing how many meetings it turns out you didn't have to attend if you start that.
and if it fails, well at least you have a cool scarf or blanket at the end.
Yes. <small>So keep your voice down</small>
no! don't even think about that! if some marketdroid gets a wind of that then we'll all be in deep [excrement, extremely vulgar]!
the correct answer is: No, you cannot override keys.
that looks a lot like it actually. It's a single helix, and flattened, but yeah, same basic idea.
of course it's become a lot harder to wear since i started keeping my hair short.
It does!
i get the strangest looks when i wear it. Seeing people's reactions to it is quite fascinating.
Filed under: With my love of social experimentation you would think i was a shrink or something
It's a custom piece. It's a chinese dragon that you can wind into your hair like a cross between a hairstick and a curler (bad description, it looks way cooler than that)
if i remember i'll take a picture of it when i get home and post it somewhere.
+
I can agree with that. it is far too monday morning for it to be tuesday afternoon.
nice. I don't wear anything on my neck, but i do have a silver dragon that i wear in my hair when i want to be fancy.
of course getting it back out at the end of the day is a B**** so usually it rests on top of my monitors staring accusingly at me.
why resist?
bottling it up just hurts everyone when the bottle explodes.
I have updated my OP to clarify what i meant by 'source code' due to some certain pendants that i shall not name
i'll grant you that you could take it that way. but i did literally mean the HTML source.
@Morpheus said:
Use the Source Luke. Use the Source
Yes, yes they are.
good luck convincing Jeff about it.
We're lucky we can edit posts at all!
honestly neither am I, except for those code injection bugs it has.
wait, did i say that out loud?
hoooom...
fair enough. there's a reason i don't have production access at work, even though i could if i wanted it.
who do we beg to have this added then?
Unlikely, I'm writing it on a headless VM. I'm probably going to be doing most of my development using cloud9
I will be checking that editor out soon though. it looks interesting enough and if it performs well enough (usability wise not speed, i got a beast of a computer for that) i may switch to it.
then again, i do still seem to default back to ViM whenever i get the chance. so maybe not so much.
I like the language. there's a lot of things it gets right(parallel processing for example. great model), and a whole [censored]-tonne of things it gets wrong (how it handles packages, oh and the whole uncaught exception that you actually couldn't have caught and handled because it's in package code crashing your process.... grrr.)
besides if it's not too much trouble to deal with i like the idea of a forum bot for the dailyWTF being a bit of a WTF itself.
of course i'm willing to put up with
i read that status and the words of Maximus (Russell Crowe) suddenly came to mind.
Status: We who are about to die, salute you!
Status: eating a cookie i baked yesterday. it is yummy.
aww... it's gone.
/me raises hand
ahem
i'm working on one now.
two actually. I'm not sure if it's going to be in Python3 or node.js yet so i'm developing in parallel for now.
Continuing the discussion from The Fizz Buzz from Outer Space:
The cornify was really easy to find.
But I find myself incapable of understanding WTF the "source code" is supposed to mean.
if one is impatient with Remy's posts and wants to find all those html comments and the cornify script without looking through the HTML source code (and going WTF more than once on the way) I present to you my "auto Remify" greasemonkey script.
Enjoy
// ==UserScript==
// @name Auto Remify
// @namespace http://use.i.E.your.homepage/
// @version 0.2
// @description enter something useful
// @match http://thedailywtf.com/*
// @copyright 2012+, You
// ==/UserScript==
function remify(){
function inner() {
document.querySelector('.ArticleBody').innerHTML=document.querySelector('.ArticleBody').innerHTML.replace(/<!--/g,"<span style='color: red'> (").replace(/-->/g,") </span>");
var clicker = document.querySelector('.ArticleBody span[onclick]');
if (clicker) {
clicker.style.color = 'magenta';
}
}
if (document.body){
inner();
} else {
setTimeout(remify, 5);
}
}
remify();
Edit: clarified what i meant by 'source code' due to some certain pendants that i shall not name
[snip]what would @boomzilla think?[snip]
ROFL! WWBT~!
that is going in my book of acronyms to use when confused. i hope you don't mind.
Filed Under: @accalia, would the river Styx be too much to ask?
hmm.... tricky. I'll call Grimm and see what we can work out.
There, take your repro on chrome and start crying because Discourse
if you insist. what size river would you like me to cry?
can repro on Chrome.
so we can add that to the bug list
+ת
oooooh.... i have white chocolate chips too. no raspberries tho. they are too delicious and never make it in the house.
frankly, they rarely make it the trip from the store to my car.
well the product they run is a ~$50M/yr tradeshow. so that's not going anywhere any time soon, even if the current members of the product team might be.
Mostly, progressives have no clue what conservatives think about things. I probably have different thoughts on this topic than most people, let alone conservatives.
see? This is exactly why i'm interested in talking about things like that. + 50 internetz to you, as well as some of my cookies if i can figure out how to scan them into the internet.
If you are willing to consider and learn about my position i'd love to learn about yours! the more we understand each other as the complex individuals we are the better everyone's life will be.
or so I believe. You are of course welcome to have your own opinion, and i'd love to hear about it!
slightly off topic: @GOG now that i think of it i'm somewhat surprised that you didn't use on 'the gripping hand' It seems rather apropos in this context to me.
wha... but... EWWWWWWWWWW!
do you know what those things EAT?!
ICK ICK ICK!
no thank you!
mmmm.... cookies.
peanut butter, gingersnap, chocolate chip, chocolate with peanut butter chips... i may even do macaroons and shortbread if i'm not totally wiped out y the time these finish baking (did i mention the humidity?)
You may be underestimating the conservatism of some of the most active members (judging by their output to date).
eeh, you are right about the conservatism of some. Of course I would welcome disputation with them if engaged with an open mind and willingness to learn/acknowledge the opposing side of the argument. I certainly would be holding an open mind (i also keep it in my other jacket).
If they can't hold an open mind or acknowledge that my point of view, while different from theirs, is also valid. well in that case they're just bags of hot air and i can ignore them.
On the third hand (I keep it in my other jacket), opening up too much on a forum like this, where trolling and snark are rife, is probably asking for grief. Perhaps I'm underestimating the tact and empathy of the forum members now, but the progress of this thread does not fill one with optimism.
It may be asking for grief. I've dealt with that enough over the years and know how harmful that can be. I prefer to think that while we may spout vitriolic opinions about the correct text editor to use (ViM or death!) we know enough to stop ourselves from striking out against personal targets.
I might be proven wrong, but until then i prefer to be optimistic. I'm usually pleasantly surprised.
In the kitchen. Baking cookies. Fitting isn't it?
also: why did i agree to bake cookies when the humidity was going to be 80+?! INSANE i tell you~!
It might be a little mature for TDWTF, given what i've seen of some members posting habits, but progressive? nah.
and @dkf Actually i do find this interesting, but you are more than welcome not to read if you don't find it so.
yes. them too. cute little guys. but watch out for their claws.