It took about a week before Bill decided to upgrade notepad++ to the new version. When he did, he was fed a backdoored version that gave me a Meterpreter shell on his computer. I immediately emailed him a few screen shots and a keystroke log, and he unplugged his computer a few minutes later.
@Xeo Why is an anime using an old scottish song as the intro music for the first episode? Sure, it sounds good and they get bonus points for research, but singing in English with a thick Japanese accent never sounds right.
@jaggedSpire a full recipe was way more than I expected, thanks! I was a bit scarce on the supplemental ingredients (onion + tomato puree + chicken stock + tons of spices) but I liked the result all the same. I like the flexible aspect though, I’ll definitively try different things again
My car insurance website is retarded, it only allows you to re-active your membership by email. So if you are no longer able to access that email address of yours, you are screwed.
I would have thought, like most big companies, they would allow re-activation by mobile, but they don't
@dukevin An easier solution to entering a name is to simply use inspection and delete the overlay element. And it reveals some pretty poor code. Firstly, don't use online IDEs, they'll sell your personal info and all the practice problems are generally made poorly. Secondly, why are you using pointers with RAII?
Ultra sound is weird, basically whenever people can't do a MRI they do ultra sound. For example, your doctor might not have an MRI in the room, when they are inspecting a pregnant woman. A guy I work with uses it on a farm with his cows.
@user8469759 Codereview only accepts working code. Code that doesn't do what you expect doesn't count as working, stackoverflow would be the right site. A short example massively increases your chances of a useful answer.
@user8469759 Sorry, the distinction I'm trying to draw isn't about politeness. It's about the amount of work that is required of the answerer. SO tends to react poorly when answering requires doing all the work.
We've tried to help you get started by giving you advice to use a debugger. That also explains why you got downvoted before (not debugging first), which is more helpful advice.
@user8469759 Note that I'm also not saying you want someone to do all the work for you! I'm just warning you that if your question comes off like that, you'll probably get more downvotes, so you should be mindful of that when writing it.
If i want to compare and prove that a 4 thread ThreadPool can complete a task ( that can split into 4 smaller tasks ) is faster when run in sequence what kind of code should i look into. I had one where it was generating random list of integers and comparing for duplicates ( birthday paradox problem) , and the 4 thread is always too slow. Had help from the forum , turns out the checking for duplicate code (which accesses memory) was trashing the cachelines , making it much slower.
@spakai As you've discovered, the results will depend on what you're trying to do. So test it with your actual use case. That's the only useful approach.
@user8469759 When asking your question, first introduce what output you expect, then introduce what is going wrong, then introduce what you have tried or learned while debugging the problem. Finally, ask for help directly and politely thank anybody in advance for their help. Good grammar, clear formatting, and proper title+tags do wonders. If your code is long, break it into a simpler example of the error.
@user8469759 That request doesn't make a good question no matter how you phrase it. You should instead find a source of correct results (reference implementation or another algorithm that gives the same result) and compare.
@user8469759 "Correct" is in the eye of the beholder. Only you know what "correct" means to you. Maybe your expectation is wrong? We can't know if you just say "it doesn't work".
@BoundaryImposition , that's the thing - i wrote a threadpool , and want to test the threadpool, don't actually have a use case. i've seen code where they loop like a lot of times and just divide a few floating numbers, so that's like CPU heavy but using less memory , as they don't store the results. But yeah it's not a real life problem or use case.
@spakai Er, from your original description, it seems like you're trying to test the code that will be running with the threadpool, which is not at all the same as testing the threadpool.
@spakai If you don't have a use case then you have nothing to test. Go do something else instead
I'll be the first to advocate coding to abstractions rather than implementation details, but when you're benchmarking this kind of thing, I'm told it really is about specific hardware and code
I mean obviously you can make some more general measurements
if you're locking too tight or too many times then you can likely figure that out and fix it
but then that wouldn't differ depending on what the threaded "code" does, so you've probably already passed that stage
Right. I think you'd want to compare code using the threadpool to the "same" code without it.
The way it was presented at first, it tells you very little about the threadpool itself since you have no idea how the single-threaded code compares to the multi-threaded code.
so many SNMP notifications are being dispatched in a throttled fashion now, and my support team seems to think the volume of notifications we're sending is nominal (wtf). now I need to improve the efficiency of notification generation (woah too many std::string) and let support deal with the rest :D
@nwp My favourite is taking a look at some of the diy gaming table builds and suddenly being tempted to sink $500 on making one... when you only play the games once every few years. It's pretty cool to see the ones with embedded screens instead of gameboards though.
@BoundaryImposition It's basic statistics: you always want to remove as many confounding factors as possible. In this case the difference could be explained with the cache access patterns of the code, which is a factor external to the threadpool.
@Aaron3468 I did think about making a program that keeps track of character positions, stats and rolls. Too much time is wasted on "Make an investigation check! What do I add to that again?"
@spakai So, I'd grab some existing multi-threaded code and modify it to use your threadpool. Then compare the original to the modified one. Repeat with different pieces of code, especially if they exhibit different structure in the way they use threads.
@nwp Yeah, definitely lots of rote simulation. Personally I like the approach some DMs take where they fudge an occasional roll for a bit of drama or to save your character in a pinch. I know there's a few D&D oriented tools for online DMing.
also it takes trap name behind a const char* and looks it up in the MIB, converting to a number. but I can tell it what the OID is. so this is pointless too
@nwp yeah, a simple program where the DM can choose the type of check and who is doing it, just to have the bonus on screen. Then you can say "Hey Fred, I need an initiative roll. You have +5 right now"
@nwp For some players rolling this stuff is part of what makes it enjoyable for them, so I'd be wary of moving this into software entirely. You can reduce the time wasted looking up stuff by optimizing character sheets to give prominence to the modifiers for common rolls like these.
@nwp Also, you may want to do "investigation"-style rolls hidden. If a player rolls low they know the answer "you find nothing" means nothing.
@BoundaryImposition string_view? Or do you need ownership?
hmm how do I merge two sets of output side-by-side in Bash? I have cmd a and cmd b, both resulting in the same number of lines (assume one "word" per line). I want two words per line.
Lyanna Stark was a princess and kind of a celebrity in north and Westerors. Mormont is a smaller house as compared to Starks. People do name their kids after celebrities isn't it. — HBhatia3 hours ago