« first day (1005 days earlier)      last day (3960 days later) » 

8:00 PM
3
Q: What's the output of the following code?

MaverickThis code was published in http://accu.org/index.php/cvujournal, Issue July 2013. I couldn't comprehend the output, any explanation would be helphful #include <iostream> int x; struct i { i() { x = 0; std::cout << "--C1\n"; } i(int i) { x = i; std::...

That confused the hell out of me.
 
@Griwes This is better :3
 
@melak47 Lots of useless 0s.
And they hide parts of the information. :P
 
@Borgleader What a derp, I knew better than that and still couldn't figure it out.
 
At first i thought it might have to do with that random int x; at the top
but NOPE, i was fooled
 
@Jeffrey back
 
8:04 PM
@Pawnguy7 get yo ass over here
 
@Borgleader Not a bad example for a uniform initialization lesson.
 
.
ok so @melak47. i mean the first one. last time i checked that's not .8099999999
it's .8000000000randomshitfrombinary
 
@EiyrioüvonKauyf int(1.81/100) is 181. But int(1.809999999/100) is 180. Since it's the only way to explain his results....
 
? i don't mean his results
i mean how it's stored in memory
 
For. Fucks. Sake.
What's unfair? The question clearly says, "logging which produces no overhead when not needed", not "logger which produces no overhead". All evaluation between the parentheses of the log(...) call is part of logging. — Kaz 15 mins ago
 
8:08 PM
@EiyrioüvonKauyf I meant at the time of division
 
This guy ^ is annoying
 
@MooingDuck that's unrelated
euh nvm i giveup
 
WHAT THE FUCK WHY DO I HAVE AN ERROR THAT CAME OUT OF FUCKING NOWHERE AND DOESN'T GO AWAY EVEN WHEN CODE IS DOWNGRADED TO VERSION THAT FUCKING WORKED FOUR HOURS AGO
Please kill me now.
Arrrrrrrrrrrrrrrrgh
 
There must be a term for that...
 
8:11 PM
@CatPlusPlus android? :3
 
oh. I hate it when that happens in real code :/
 
"NHibernate.PropertyValueException: not-null property references a null or transient value " ... that makes NO GODDAMN SENSE
 
@EtiennedeMartel amazing
Also I feel overwhelmed by idiots advocating macros.
 
@CatPlusPlus and here you go stackoverflow.com/questions/568029/…
@BartekBanachewicz macros are good for C++ reflection :3 .. or attempts at it
 
8:13 PM
YES THANKS I CANNOT USE GOOGLE AT ALL
 
@EtiennedeMartel no DonGML output, would not use
 
@EiyrioüvonKauyf NO, no fuck no not ever.
 
@CatPlusPlus calm down yo.
@BartekBanachewicz calm. down.
 
Yes, people, calm down.
 
Fuck you, I have an error out of fucking nowhere on a goddamn production site.
 
8:14 PM
that's very cool
but if you show me "reflection" using macros in production code I will punch you in the face.
 
@CatPlusPlus Could be worse. Could be two errors.
 
lol PP reflection
@EiyrioüvonKauyf Please show me
 
Not a chance, shitface
 
@BartekBanachewicz not for production. unless someone really don't know how to send a constant type and you have to do bs checking.
then you get rid of him and THEN remove the macro
is ok for internal testing
it's for checking stupidity
 
eh, whatever
 
8:18 PM
I don't get it
 
it
^ here you go
 
I changed the mappings and it works.
Why the fuck did it work without that.
For entire day.
I don't get it. This project drains my brain.
Fuck programming.
Now I want to be drunk.
 
I wanted to be drunk but the medication provides a similar effect so that's ok
 
Oh WELP no, that's not it.
Oh no, that's completely different mapping.
That worked for like a week.
Fuck you, NHibernate.
 
programming: crying at a screen till it outputs a certain sequence of lights
7
 
8:24 PM
So I recently read about C++11 default initialization. However, I can't remember if array elements are default initialized to a defined value. If I declare a local int v[10]; are the elements default initialized to 0?
 
@EiyrioüvonKauyf Programming is channeling the power of the duck.
 
@MonadNewb go look it up. I can guarantee a SO answer for this
 
dude!
 
You're not allowed to be joyful today.
 
let's all be miserable together, so cat can feel better :D
 
@Borgleader I see you got the joke.
 
@MonadNewb §8.5/7: "if T is an array type, each element is default-initialized;"
 
@EiyrioüvonKauyf a quick google search didn't immediately answer my Q. Guess I'll go read some more until some kind soul answers here...
 
8:28 PM
Does this syntax make sense to you guys: x = new sf::Color ** [depth];?
 
got 39deg fever -.-
 
jesus christ guys,
 
@Borgleader it really looked like a duck!
 
/smack
 
@DeadMG I was just asking if that makes sense. Not really needed.
 
8:29 PM
@JohannesSchaub-litb Youch -- what are you doing chatting when you're that sick?
 
@JohannesSchaub-litb goto doctor;
on the other hand
in my experience doctors are incredibly unhelpful
so feel free not to go to doctor
 
@DeadMG Would you please calm the fuck down?
12
If you don't want to help, then don't help.
It's not like we never saw the guy before.
 
@JerryCoffin heh that was a hour ago (actually, it also was 39,3 today). now it's 38,3.
 
<- Newb...no one ever saw me before
 
@JerryCoffin i guess it's not that bad
 
8:31 PM
2 messages moved from bin
haha, I can do that?
 
@Jeffrey is this some weird reversed array access pointer arithmetic thingy again?
 
@JohannesSchaub-litb That's still pretty high. Are you at least taking some drugs to keep it under control (Paracetamol?)
 
all the cool kidz that have their name /this style like/ can do it
 
@MonadNewb go away. I just found a SO answer to this. go learn to google
 
@Rapptz You're an owner in the bin?
 
8:32 PM
Yep
 
@JerryCoffin ibu :)
 
@melak47 It's Pawnguy, not me that wrote that code. I'm struggling to understand it.
 
Didn't know if you could re-move though.
 
@EiyrioüvonKauyf Are you new here? Because apparently you don't know me as a regular in the Lounge...
 
@Jeffrey @Pawnguy7 explain yourself :D
 
8:33 PM
@Rapptz with great power comes great bin-abilities
 
@Jeffrey it seemed to work great
 
@MonadNewb probably should spend less time here and more on Google then
 
@JohannesSchaub-litb It is working great. I don't know what it does though.
 
@EiyrioüvonKauyf What's that sound? ...plonk
 
@Jeffrey how do you know it's working great then :D
 
8:34 PM
@Jeffrey Yeah, a two dimensional array?
 
@melak47 He says it compiles and run correctly.
 
Compiles therefore works
2
 
I have video proof :D
 
@Rapptz Actually 3D
 
What?
 
8:36 PM
in Dat effing bug, 7 mins ago, by Pawnguy7
3D array.
 
I just realized, it has a memory leak.
 
@Jeffrey ` x = new sf::Color ** [depth];` allocates a pointer to the first element of an array with depth elements each of which is a pointer. Said pointers point to pointers to sf::Color objects.
 
@DeadMG: I was curious why I never heard anything from this question. I checked it and saw that you accepted the other answer. Clearly I misunderstood the question. Can you clarify your question and how that post answers it?
 
@MonadNewb Now, that's better :)
 
hmm, my teriyaki chicken has no teriyaki on it.
 
8:39 PM
well, you might start with the fact that I probably never, ever saw the answer, since it was posted a month after I was done and dusted with that question
 
@DeadMG I just noticed the dates >.< sorry. Nevermind. For some reason I thought that question was recent.
ah, someone edited the tags :( Way to go Duck.
@DeadMG "a month"? It was like 3 years!
 
@MooingDuck umm...then it's just chicken =p
 
@MonadNewb still good, but not worth what I paid
 
@MooingDuck talking about which...I need to get some dinner soon...
 
8:43 PM
The first most common being, "I didn't turn on optimizations".
 
@MooingDuck Yeah, and the 3 years too.
 
@MonadNewb Don't said pointers point to a beginning of an array of sf::Color objects? Like this?
@melak47 I'm going to checkout the latest version from their SVN repo and see if it compiles nicely.
 
@Tuntuni the patch for 1.54 didn't work?
 
@Tuntuni Not from the information posted here. You have to call new for each of the pointers in the array. (unless I missed the code that does that.)
 
@melak47 the gnuwin32 patch doesn't work on win7
@MonadNewb Yes. Then it's a multidimensional array. A 2d array, if you will.
 
8:54 PM
@Tuntuni just apply the changes manually
:p
 
@melak47 cba :p too much work :D
 
@Tuntuni It could even be a 3D array since each of the x[i][j]s are pointers as well.
 
@MonadNewb Ah, yes, you're right. It's a 3d array. sf::Color**.
 
@Tuntuni @MonadNewb either of you want to help find the actual bug? :D
 
@Pawnguy7 where? (only while boost's repo is downloading and if the code isn't shit :D)
 
8:57 PM
@Pawnguy7 That's what a source-level debugger is for =p
 

Dat effing bug

Let's fix it.
I cannot guarantee the latter.
 
So, Seal is pretty good.
 
user142019
Perfect.
 
@EtiennedeMartel Seal?
 
9:09 PM
@Insilico Hiiii. :D
 
@ThePhD Hi!
 
How's life going?
 
Boring.
 
Boring? D:
 
Yeah, but it's a weird kind of boring where you still have tons of things to take care of and yet you just seem like you're going through the motions.
 
9:12 PM
@Insilico Sounds like you need some... spice in youre life~
 
At least while I was at school interesting things would happen. lol
 
@ThePhD YEEEAAAHHHHHHHHHHH!!!!!!!111one
 
o.0
u b crzy.
 
I actually have some fun things planned later on so fortunately it's only temporary for now.
 
@Insilico Aww... but but but, I was gonna ask for halpz. ;~;
 
9:13 PM
@ThePhD Glad you noticed. :D
 
@ThePhD with what?
 
@Insilico The door unlocker project thing is picking up.
 
@ThePhD Oh you're still working on that?
 
My original idea got thrown out by the mechanical engineer because it was "too hard mechanically" to accomplish some of the pieces.
@Insilico Yeah, juggling job and a few other things plus this is a lot of work. =[
 
@ThePhD Can't help you much with the mechanical parts then.
 
9:16 PM
Well, now I'm moving into teh programming part.
Well, programming / electric part.
He wants to use a PIC 8-bit microcontroller
And attach that to a pre-made RFID Reader IC, rather than get a microcontroller and a rfid reader and hook it up ourselves.
 
So what's the problem?
 
Which apparently saves us some work, but it doesn't give me much experience or help me with figuring out how to program the thing when it's already been pre on-boarded.
 
Have you looked into sites like these: sparkfun.com/search/results?term=RFID
Or any other "hobbyist/maker" sites?
RFID is fairly popular among them.
 
Yes, that's where I got the original idea to get a single RFID reader and then pick up somthing like the STMF32Discovery board. I was going to follow a tutorial and look at some youtube videos of people who had previously assembled RFIDs with that specific board, and then just RTFM to program it to the specs I wanted.
 
Thunderstorm 'round here.
 
9:22 PM
Plus, a lot of the pre-built RFIDs have excessively short range -- nothing that can get through a door (on teh order of at least 19 to 33 mm thick doors -- most of these would broadcast like 16 mm).
Which is another reason why I wanted to get my own reader, maybe wrap my own coil.
 
@ThePhD RF is black magic to me, so you're going to have to ask others. lol
I did see some appnotes from Texas Instruments that had instructions for making longer-ranged RFID antennas for those applications that require it.
 
@Insilico Okay, I'll take a look there.
 
fucking gallstones
 
Gallstones fucking!
 
feels like that is exactly what they are doing.
 
Yay. Arguing.
 
@Rapptz ?
 
On SO proper.
 
@Rapptz Where is this Internet Argument taking place?
 
I said that a bool is one byte and everyone is arguing with me about it.
I should have thrown in that it's typically one byte but whatever I guess
 
9:31 PM
I usually try to leave a bit of leeway when I say things because there are so many exceptions to everything.
 
@Insilico Got it. Thanks.
 
I usually say things along the lines of "typically a bool is one byte"
Because no sane compiler writer is going to make a bool 4 bytes or whatever. I stand corrected.
 
@Rapptz For what it's worth: stackoverflow.com/a/5067749/179910
 
@Rapptz On the system I work on sizeof(bool) == 4. — Brian Neal 3 mins ago
@Insilico ^
 
9:34 PM
@Rapptz Ah, see that's why I use weasel words like "typically". :-P (where "typically" means "typically for the kind of systems I've worked with").
 
Yeah I forgot the word "typically" and now all pendants must come loose.
 
looks like I had some messy fun with an overload resolution puzzle.
5
Q: C++11 constructor overload resolution and initialiser_lists: clang++ and g++ disagree

Phil ArmstrongI have a small piece of C++11 code which g++ (4.7 or 4.8) refuses to compile claiming that the call to constructor for B2 b2a(x, {P(y)}) is ambiguous. Clang++ is happy with that code, but refuses to compile B2 b2b(x, {{P(y)}}) which g++ is perfectly happy to compile! Both compilers are perfectly...

 
@Rapptz Pendants?
 
Finished 2 more badges on steam... running out of games to download from which I can get card drops =/
 
@EtiennedeMartel Damn typo.
 
9:40 PM
I didn't know this was possible.
 
I didn't notice it until you said it lol :(
 
@Rapptz That's ironic.
 
You see nothing!
 
@chris someone deleted your answer?
 
@Borgleader No, I edited someone's question after they deleted it.
 
9:41 PM
 
Oh oh oh yeaaaaah
 
. i just checked now. what happened
 
hmmm
is there a default way on Unix/Linux to access the stdlib include paths?
 
user406009
One possible solution would be to have gcc print out the current include paths.
 
9:47 PM
@EtiennedeMartel that's pretty cool
@Lalaland +1
          -print-file-name=library  -print-libgcc-file-name
           -print-multi-directory  -print-multi-lib  -print-multi-os-directory
           -print-prog-name=program  -print-search-dirs  -Q -print-sysroot
           -print-sysroot-headers-suffix -save-temps -save-temps=cwd
           -save-temps=obj -time[=file]
Those funky things, likely, and -v of course
@Rapptz Only because you returned the favour... And then the fish could take the next bait. It never ends with the pedants
 
@Rapptz So, essentially, ReSharper features, now built in?
 
Same w/ Sublime Text and Productivity Power Tools
 
@DeadMG /cc @MooingDuck And it had nothing to do with it starting with the phrase "I think you're looking at this the wrong way" :/ <jk/>
 
@sehe ^^
 
user142019
9:59 PM
@DeadMG Since about every Linux distribution comes with GCC, this may work: gcc -v -x c -E /dev/null 2>&1 | sed '/> search/,/End of/!d' | sed '1d;$d' | sed 's/^ *//' | sed 's/ *$//'.
 

« first day (1005 days earlier)      last day (3960 days later) »