« first day (619 days earlier)      last day (4326 days later) » 

8:00 AM
@user1220811 IMHO, it makes sense to search for related questions and answer for them
 
@GManNickG ok
That would get me some rep too
 
user784668
Time to try to write a question, I guess.
 
Welp, that was a nice day I was having. I ended up logging into Facebook for the first time in ages, notice I have message to be read. One of them is from my estranged farther, saying he intends to this winter, come to and have a drink with me in my local. I've felt better to say the least
 
8:16 AM
It's probably better that I know about it, I can't imagine how I might react to just meeting him in person; not well for sure. It's just now I have months of waiting for it to happen
 
@thecoshman My advice is don't try to worry too much about how you think you should act and just treat him like a distant cousin
 
distant cousin is fine, that's just some person who is basically a stranger
 
@thecoshman precisely
That's what he is to you essentially. Someone who is related to you
 
This is nothing like a distant cousin. The prospect of interacting with him overloads me with more or less every emotion I can think of
 
It's normal I think, but just keep in mind that I'm sure he had his reasons, whatever they were
That and I'm sure he's more nervous about it than you are
I'd rather be you than me, lets just say that
 
8:26 AM
@Fanael Induce more headache?
 
Next week I have to attend a wedding of two vegetarians
 
user784668
@Neil What.
 
¬_¬
 
That means there's going to be lots of zucchini and salads and bean sprouts, but NO MEAT!
I already hate weddings, but at least there's good eating. There's not even that. :(
 
not in the mood
 
8:35 AM
@whuber Saying the diatonic scale is so relevant because all of the church modes share the same 'layout', that is a bit like saying "standard dice layout is important: many specimen can be found with a 1 on top, a 2 on top, a 3 on top...". It's cyclically defined. What's more interesting is how the diatonic scale evolved. Some of the (sadly) lower-ranked answers go into this — sehe 33 secs ago
@thecoshman farther ~ father?
 
@sehe Perhaps not the best time to joke *awkward eye-contact avoidance*
 
hi
 
hi all
 
user784668
hi
 
how to find PDO for the input of IoGetDeviceProperty function
PDEVICE_OBJECT DeviceObject how to get this value.. I want to use it as an input for IoGetDeviceProperty function
@Neil hi
 
8:51 AM
@user1317084 hi
 
Why the hell is finding a complete word list for English so hard? Arg.
 
any idea in this.... PDEVICE_OBJECT DeviceObject how to get this value.. I want to use it as an input for IoGetDeviceProperty function
@Neil any idea in this.... PDEVICE_OBJECT DeviceObject how to get this value.. I want to use it as an input for IoGetDeviceProperty function
 
@user1317084 If I knew the answer, I probably would have volunteered information, sorry
 
@Neil k....
 
@Neil Sorry but that was not intended as a joke. As a non-native speaker, I might be missing the clue there. So, yeah, I'd like to check whether father was in fact the intended message.
@GManNickG cat /etc/dictionaties-common/words
 
8:56 AM
@sehe ¬_¬ does it make even the slightest bit of sense if you don't assume I made yet another mistake?
 
user784668
@GManNickG If you find one, please share it. I'd love to have word autocompletion in the browser and the text editor and stuff.
 
@thecoshman Neil was right. Sorry
@thecoshman Specially for you:
 
@GManNickG because the language is not complete
 
@GManNickG damn I was literally 1 second late pressing enter on the typo correction here
 
@sehe not really answering the question is it
 
8:58 AM
@thecoshman Nope.
 
@sehe np
 
@sehe Ha, it's okay. That dictionary is way too incomplete though. :(
None seem to contain expletives, for whatever reason. I can understand a reluctance to publish a Scrabble dictionary with "fuck" in it, but when it comes to word lists it is a word.
 
@GManNickG beebee.com.cn/english/F.htm, easily parsed :)
 
Haha. Maybe I am asking too much, but surely 'fuck' is worthy enough to be in a word list without 'fab-flippin-tastic'.
 
9:13 AM
@GManNickG There's a word called fab-flippin-tastic?
 
@Neil In the linked slang dictionary, apparently.
 
sbi
@GManNickG The other day I downloaded a document with English swear words to add to my phone's dictionary. I still have it somewhere, if you're interested...
 
@sbi Ha, that's okay. I just decided to settle with a large plain text word list, only missing vulgar AFAICT.
 
user784668
@GManNickG What do you need that for, anyway?
 
sbi
> The level of abstraction in this code is so low you can get carpet burn just by following the if statements. — Kevlin Henney
 
9:26 AM
@Fanael Decided to make a hangman program, just to beat my sister even more at the game.
 
sbi
Whoa, he star fairy must have gone wild. There's barely anything on the starboard that doesn't have at least 5 stars, and most of yesterday's starred messages have been buried thrice. If you say something good now and get a star, it will likely be lost within 5hrs. What is this? Do we utter too many great statements? Or are we indifferent starrers? Or are we just victims of our room's success? (See psychology of SO votes or of retweets.)
 
@sbi I blame it on star sluts
 
@sbi Is that a trick question or did you want me to star that?
 
sbi
@Neil What's with that "or" in your question?
 
Oh here's a collection of word lists, yay: gutenberg.org/ebooks/3201
 
9:39 AM
@sbi What's with the "or" in yours? What do you mean by that?
 
sbi
@Neil Couldn't it be a trick question and I want you to star that?
 
'tis a job for the semi-colon me thinks
they answer to the first question has no influence on the answer to the second
 
@sbi No, because if it is a trick question, I don't have to evaluate the second question.
Short circuit evaluation and that jazz
 
@Neil in which case you need to say 'if not,' rather than use 'or'
 
sbi
@Neil You shouldn't shortcut your intellect. No, really, there's bad consequences.
BTW, has anyone seen @Xeo, lately?
 
9:43 AM
@thecoshman It was an "or rather" but the rather was omitted
 
nope
@Neil your lack of apostrophe says otherwise
 
@thecoshman What you mean, "Is that a trick question o'rather did you want me to star that?"
 
@Neil "Is that a trick question or' did you want me to star that?"
 
sbi
@Neil He lives in Ireland, you know. O'Really?
 
9:47 AM
though as you can see, it's a stupid thing to do
 
@thecoshman As a matter of fact, I didn't write or'. Never knew you could do that in fact.
 
@Neil just because you can, does not mean you should
this is a prime example where your laziness has obscured the true meaning of what you said
 
Maybe I'm not yet seeing it, but how else could you interpret that sentence?
 
I am so happy I finally got my PKI working
:)
 
@Neil that you want to know if he was either asking a trick question OR that he wanted you star it. The 'or' clearly implies you wanted to know one thing. Programming logic would apply a short circuit possible depending on the language and pedantic details. However, with English, the or implies you want to know just one of this things, "do you want an apple or do you want a kick in the balls", to which the only expected responses would 'apple' and 'kick in the balls', of course you could...
... also expect some one to say 'both' or 'neither'. They could also perfectly validly answer with just 'yes' or 'no'. If they did answer either 'both' or 'yes' you would have to then ask which one, if you cared to know which one they want, though equally, it could mean both.
 
sbi
9:58 AM
@thecoshman Actually, "or" could mean both, too.
 
@sbi keep reading
 
sbi
@thecoshman I do! (Elsewhere, though.)
 
@sbi ¬_¬
 
@sbi Actually, "or" in spoken language means "xor" :)
 
sbi
"I can cast out either one of your demons, but not both of them." — the XORcist.
 
10:01 AM
All true, however as it was, it wasn't really a question I intended anyone to take seriously. And as such I didn't expect one answer or two, but none.
 
@ScarletAmaranth but a response to 'A or B' can be 'both'
@Neil pedantics
 
sbi
@ScarletAmaranth Ah, there it is. Took me a while to dig this out:
> I hope one day a waitress at a restaurant will ask me: Soup XOR Salad? — Brian R. Bondy
3
 
@thecoshman Yeah, but we say: "You can have one OR the other." not "One XOR the other :P."
@sbi That one's good :)
 
I just came across "revision inserted by cvs2svn" in a git repository :)
 
@ScottW What food would you eat at a binary diner?
 
sbi
10:12 AM
@Neil Booleans, or course!
 
Quick byte
 
2 days ago, by sehe
He's posted comments on the main site, including yesterday.
 
sbi
@sehe Yeah, I know.
 
user784668
folks
 
user784668
Any idea how to make this piece of code cleaner? ideone.com/DlD3R
 
sbi
10:14 AM
Ha, this one's nice, too: What do you think Paris Programming is about?
 
@Fanael I'd write the second batch of assignments a single loop
 
sbi
@Flexo Look at the rhs indices.
 
@sbi d'oh
@Fanael why are some of the first batch of assignments function calls and some not?
 
user784668
@Flexo Because some are actual fields and some are methods that use these fields to compute the points. So @ScottW is right.
 
(was just contemplating ways of specifying the ordering without quite so much repetition)
 
sbi
10:27 AM
@Fanael I stumbled across that, too. Why would I, as a user, have to distinguish between those two? Why would I, as a user, need to know which one is which? Why don't you make all of them functions?
 
Question (not rhetorical): If one wanted to load the contents of a file into a byte array in C++, is there an efficient way to do that?
 
It's not like inlined accessors would slow things down, but they would unify the the syntax
@Neil mmap? But that's platform specific
 
@Flexo Nooooo, not platform-specific
 
user784668
@Flexo Probably the best.
 
If possible using only stream as input.
However I don't know the size of the array to make
 
10:29 AM
@Neil read the whole fstream into a string stream and then just copy (or don't)
 
user784668
@sbi Because I don't want no silly setters. And because I haven't thought of that.
 
@Flexo Ah, true. I could convert std::string to byte array
 
@Neil it's just a chunk of memory anyway so you might not need to
 
@Flexo Would it matter if it were binary data and not text?
 
sbi
@Neil How do you define "byte array"? (A std::string is an array of bytes.) Why do you need it in such a beast? What do you want to do with it?
 
10:32 AM
I wouldn't do it like this if the interface didn't outright ask for a void* and an integer indicating buffer size in order to work
 
1
Q: Check whether a driver is installed for my USB device

user1317084I used SetupDiGetClassDevs(), SetupDiEnumDeviceInfo() and SetupDiGetDeviceRegistryProperty() to enumerate my USB device and check whether my device is available or not. How can I check whether my proper driver is installed for my device or not? Is there any APIs available to check this?

 
@sbi Yes I know but I didn't want there to be some wide-character crap going on or something that would interfere with that
 
user784668
@sbi If you have an idea how to provide uniform access through methods without creating stinking setters, I'm all ears.
 
openAL takes a void* to an audio file buffer, meaning it has to be completely in memory before passing it on to openAL
 
sbi
@Neil There's no "wide character crap" going on in std::string.
 
10:34 AM
@Neil pass &string[0], string.size() then
 
sbi
@Neil std::string or std::vector then.
 
(assuming it's const)
 
@Flexo I think I'll take your advice and pour it into a string stream
 
sbi
@Fanael set_dimensions(int ulx, int uly, int lrx, int lry)
 
  std::ifstream in("test.dat");
  std::ostringstream out;
  out << in.rdbuf();
 
user784668
10:39 AM
@sbi That's essentially equivalent to rect = IntRect{…}. Not as convenient as public members, but good enough.
 
user784668
11:28 AM
ping
 
sbi
11:43 AM
pong
 
syn
 
no rst for the wicked
 
syn ack
 
gtfo with TCP :)
 
11:59 AM
@ScarletAmaranth is that some new extension?
 
@ScarletAmaranth rst
fail
 
GTFO is new RST.
 
ack
 
she get's it right :P
 
12:10 PM
Ravioli with sausage and meat sauce yum
 
pwn sauce - yum yum
 
@TonyTheLion No, hold the pwn. Just meat.
 
@sbi but you have the option to refuse either, so it should be "soup NAND salad"
sorry, had to get that off my chest
 
@ecatmur But you could say "fuck you, restaurant" and say you want to have both the soup AND salad, despite whatever costs you may pay to do so.
 
12:30 PM
@Neil so... soup OR salad
hello conversation from two hours ago
 
@thecoshman it's not soup or salad if you can choose neither also
 
bob
hi, I would just like to get confirmation regarding a pointer question: if I want to write 160 bits to a buffer 16 bits at a time, using a function writeU16 that takes uint16_t as an argument, and assuming I'm given a pointer to pick the data from, would this be right: for (int j=0;j<10; j++){ result.writeU16(*(pointer+j)) } ? I'm specially concerned about the pointer syntax, including the star and sum between pointer and integer.
 
@Neil well, it depends how you are applying bollean logic to this shit :P
repeating questions will not help you get it answered
 
bob
I was not repeating, merely corrected a typo
 
@thecoshman I was referring to @ecatmur's NAND operation which implies you can't have both. :P
 
bob
12:36 PM
apparently writing a star doesn't work, it takes it as a italic word instead
 
@bob You can edit your comments within two minutes though :)
 
You can edit messages for two minutes. Also put code in backticks, then it won't be interpreted as Murkdown.
 
so you don't need to repost/delete
 
*blah*
 
bob
sorry about that
 
12:37 PM
anyway, looks good to me
 
bob
should j be a uint too?
 
you could just do pointer[j] instead of *(pointer+j)
@bob doesn't matter.
 
bob
I wasn't sure. Thanks
 
@bob then edit
 
You're late to the party.
 
12:39 PM
@CatPlusPlus meh, he still won't learn I am sure
 
0
Q: Thread-safe singleton class using std::shared_ptr in C++(11)

Joseph FloydWhat I am trying to accomplish is to create an efficient thread-safe singleton base class (as stated in the title). So this is my singleton class, which is used via inheritance (see below). #pragma once #ifndef SINGLETON_HEADER_INCLUDED #define SINGLETON_HEADER_INCLUDED #include <memory> ...

I have inner bleeding
 
@KonradRudolph <any-adjective> singleton class causes that :)
 
@ScarletAmaranth Ignore for now that this is a dreaded singleton
the code is SHIT
half the code makes NO sense
instance = (NULL && 0);
6
if(instance.get() == 0 || instance == (NULL && 0) || !instance)
 
@KonradRudolph wth?
 
What is this I don’t even …?!
 
12:45 PM
@KonradRudolph Wow, that's some journeyman-level dark magic o_O
 
bob
By the way I forgot to mention something in my previous question: pointer is a char*, not uint16_t*. Does this not matter ? (is there an automatic cast?)
 
@KonradRudolph Looks like he's trying to cover his bases in case it's 0 and not NULL???
 
@bob I didn't see the question but I think you're doing it wrong regardless, why would you need a raw pointer :P ?
 
@bob yes, that matters. Pointer arithmetics are performed in terms of the pointed-to type. Adding 4 to a pointer to char will make the pointer point 4 chars further ahead. Adding 4 to a pointer to uint16_t will make the pointer point 4 uint16_t's further ahead
 
bob
so the correct answer would instead be : for (int j=0;j<10; j++){ result.writeU16(*((*uint16_t) pointer+j)) } right ?
 
12:48 PM
yeah
 
bob
thank you
 
except it's uint16_t*, not *uint16_t
 
bob
yes that's just a typo
thanks
just a follow up question: according to what you just said, what would happen if you add 1 to a void* ?
 
@bob Technically that's the same as ++ to a pointer
 
@bob If I have make a coding standard, I will ban j and l as variable names. They are too easily mistaken for i and 1.
 
12:53 PM
@FredOverflow Huh, dat haskell gravatar :)
 
I guess everybody noticed by now :)
 
bob
@neil but how many bits ahead does it go?
 
bits ?
 
bob
or bytes
 
@bob It either typecasts is to something default and then moves it or it won't let you do it at all.
 
12:54 PM
@bob I'd imagine 4 bytes, but that's probably not safe by any means
 
@sbi And if your answer is "no", does that mean you want neither or both?
 
@FredOverflow That's why you answer "doch" :)
 
bob
thanks
 
@bob your compiler would complain :)
 
bob
ok
 
12:55 PM
It's not allowed
 
bob
@jalf thanks
 
@Mysticial Floating point is far less dangerous than people spreading nonsense about floating point.
 
Floating points saves lives.
 
@TonyTheLion Don't you already have a job?
 
12:56 PM
Whenever I take the boat I bring a floating point with me.
2
 
@Cicada Never leave home without it.
 
@Cicada at least 99.99999998% of the lives that need saving
 
@chris void main is legal in D :)
 
1:12 PM
@FredOverflow contract
it ends at a certain time
 
Oh crap Mysticial left
I had a question for him / her / it
 
mystical is a him
you're the only "her" I know of that regularly visits this room
not to sound weird, but it's just what I know
 
sbi
@FredOverflow Both, of course. When it comes to food, I am not known for holding back!
@TonyTheLion You might be interested in this:.
> They use neuter or male profiles — Anna Billstrom
With everybody now reading Anna's blog entry, the room has gone quiet.
 
1:31 PM
huh?
 
> some douchebag opinionated guys
 
sbi
@thecoshman Huh what?
 
@sbi never mind
 
sbi
@thecoshman Never mind what?
 
@sbi What never mind what?
 
1:35 PM
@sbi would you rather I just delete the posts? or do you want to continue?
 
I disagree with that woman
 
sbi
@thecoshman Continue what?
Waits for the table coming flying at him.
 
@Cicada Satisfy my curiosity. Why?
 
sbi
@Neil Exactly!
 
I'd rather not plonk you
 
1:36 PM
She's an internet newbie
A newfag as we colloquially say
 
She's got her own blog. She can't be that new
 
sbi
@Cicada Of course, you disagree. You are still around, rather than given up on us douchebags, so by definition your opinion must be different from that of the women she sympathizes with.
Or you're male.
 
Who says I don't think you're douches
 
sbi
@Cicada I dunno. I didn't, anyway.
 
I think the test for internet mediocrity is having your own blog or updating your status on facebook on purpose rather than by accident.
Gothshake, what a great name for a comic character
 
1:48 PM
Hello guys
@thecoshman coshie!!!
 
¬_¬
 
@thecoshman here. I even made a side page for the game - darkshadow.elementfx.com/project-game.html
Havent got a name so I called it gamx
which is ok
tis was a 5 minute job
 
You do know how long it took to make minecraft right?
 
@Neil Neily!!!!!
 
You want to make something similar, but more realistic, is that right?
 
1:52 PM
@Neil Tis was not a 5 min job lol
@Neil Yes, bettera
*betterer
lol
 
I think you set your sights a little high, if I may be honest
 
I saw German tourists in the metro this morning. They looked and acted like ordinary human beings. I'm appalled.
2
 
Well don't go anywhere dreaming
@EtiennedeMartel ?
 
@JamesDyson (It's a somewhat racist joke)
 
lol
 
1:55 PM
@EtiennedeMartel That's very offensive. Stupid canadian
 
@copy Yeah, I'm aware of my stupidity.
 
@EtiennedeMartel Did they have blue socks under brown or black sandals ?
 
@Neil Well Im not going anywhere by dreaming so I might as well have a bash. Its not like im gonna wast my time. It will be useful and if successful (game wise) its will be very successful with the public
 
@Dolanor No, why? But they spoke German. Or at least it sounded like German.
 
@EtiennedeMartel they weren't trying to claim it with their towel were they?
 
1:57 PM
@EtiennedeMartel then they aren't germans. They might be good enough to fake their gibberish language, but in their heart, they aren't. And since it seems they have heart, they aren't
 
@JamesDyson Well good luck to you. In my experience though, it's difficult to stay motivated on a project that you yourself push yourself to finish. Add in a fulltime job and there you go.
 
@Neil Im still a student
 

« first day (619 days earlier)      last day (4326 days later) »