« first day (704 days earlier)      last day (4245 days later) » 

10:01 AM
^ Kinda puny, compared to today's XKCD...
 
@Xeo Better: auto A<T>::f() -> decltype(std::declval<A<T>>().f()).
 
@DeadMG Waaaaaaay better. Obviously
 
> overloading, operator overloading and overriding is what we called polymorphism.
operator overloading doesn't come under polymophism, now does it?
-1
Q: is compile time polymorphism runtime polymorphism like this

user1628256I made the example easy to understand if you correct me please also use simple examples IS THIS RIGHT? overloading, operator overloading and overriding is what we called polymorphism. polymorphism means same entity behaving different at times. ex. PARAMETRIC<br/> add(<int> 12, <...

 
@TonyTheLion depends. it's a kind of static polyorphism. but polymorphic class in C++ standardese means one with virtual functions.
 
right
that question I linked is where that quote came from
but it seems to be a crap question
 
10:10 AM
without fertilizer there would not be many plants
 
^ How Microsoft manages to make a command interpreter where it's difficult to execute a program.
Freaking idiots.
IMHO.
Did I mention that by default Powershell refuses to run scripts, due to "security"?
No?
It's just unbelievable, that it's at all possible to create something so crappy.
 
@RegisteredUser why are you posting that link here?
 
@Cheersandhth.-Alf well, it's to avoid malicious individuals being able to easily execute arbitrary stuff on a remote machine with the use of Powershell. I guess if they allowed that without requiring the correct permissions or whatever, it would cause serious security concerns
 
10:16 AM
@Cheersandhth.-Alf Close votes.
 
i think questions are closed quickly enough without having to draw people from chat to do it
 
@TonyTheLion u know it's idiot when you consider that it still allows batch files. it's just ... moronic
ah
 
@Cheersandhth.-Alf oh, it doesn't here
 
10:18 AM
I tried that yesterday, I couldn't execute any batch file through Powershell
 
well a command interpreter without scripting, that's not useful. so, still, completely retarded
 
i can't understand how people can be so be dumb
 
@Cheersandhth.-Alf welcome to Earth. Where dumb people abound.
 
10:20 AM
;)
grrrrr
checked out the wrong branch
I'm a moron
 
This is not about C++, but is memset (aa, 0, size) correct?
shouldn't that be '\0' ?
 
@warl0ck it should be T aa = {};
that's how to zero things in c++
 
@warl0ck \0 is the null terminator, with a value of zero.
So it's technically the same thing, but you only see \0 used with strings
 
okay, thanks
@Cheersandhth.-Alf ah, I never know this syntax, that's good
 
> C++ is a widely-used, statically-typed, free-form, compiled, multi-paradigm, intermediate-level, imperative, general-purpose, object-oriented programming language.
how many adjectives can you describe something with?
 
10:37 AM
they forgot generic
 
You know, I just realized something.
If you wear a gas mask, you look like a fly.
 
sbi
@DeadMG "multi-paradigm"
 
@TonyTheLion crappy, misimplemented
 
sbi
So, has anyone meanwhile found a full-scale image of that pic Randal posted?
 
I haven't.
but neither have I looked
some people have work to do :P
 
10:44 AM
Small enough that Chrome can display it.
 
sbi
@R.MartinhoFernandes What about "full-scale" did you fail to catch? :)
 
probably the "full" part :)
 
Ginormous: i.imgur.com/o42WQ.png DO NOT OPEN. I HAVE WARNED YOU.
 
there we go.
the robot has performed his task again.
 
10:50 AM
@sbi (You know those ~three minutes between me posting the scaled down image and the big one? I was me waiting for the Windows image viewer to close because I opened the picture accidentally...)
 
@R.MartinhoFernandes That PNG will screw over explorer.exe as it tries to create the thumbnail lol.
 
I think I gave ample warning.
Now I gotta go.
 
Thanks for the warning
I'm not clicking it
 
Apparently it also caused some of the memory to be paged out to disk since switching to some minimized applications took a long time.
 
0
Q: Nesting Boost.Assignment `map_list_of`

rubenvbIs it possible to change this C++11 initialization: const std::map<int, std::map<int, std::string>> test = {{1, {{1, "bla"}, {2, "blie"} } }, {3, {{1, "ha"}, {2, "hie"} } } }; To some form with Boost.Assignment without using temporaries? It do...

look who's asked a question
@rubenvb
 
10:53 AM
That would be a very large image to download
 
who hasn't been in this room in what seems forever
@Neil how large is it actually?
 
@TonyTheLion It's ~400 kilobytes.
The bit depth is only 1, and apparently it compresses well.
So it's a 400 kilobyte 828.112896 megapixel image.
 
Well I don't pretend to have a freakin' calculator in my brain
The fact that it's monocolored helps, but it is a huge image with its resolution in tact
 
so 200k pixels per byte? That's a pretty decent compression ratio ;)
 
It must surely weigh more than 400 k
 
10:57 AM
@Neil Nope. 400 kilobytes.
 
@Insilico Then I assume you have it
Link to it?
 
10 mins ago, by R. Martinho Fernandes
Ginormous: http://i.imgur.com/o42WQ.png DO NOT OPEN. I HAVE WARNED YOU.
That PNG froze explorer.exe when it tried to make a thumbnail of it.
 
@Insilico hmm, mine created the thumbnail easily
 
@Insilico That's a thumbnail
 
chrome refused to display it though. Haven't tried firefox, and not going to because I cbf crashing my main browser :9
 
10:59 AM
@Neil A 41472 x 19968 pixel thumbnail?
That's a big-ass thumbnail if it's actually the thumbnail.
 
@Insilico No, according to chrome it is 5184 x 2496px
And that might compress to 400k, yes
I was asking for the full version, not the thumbnail
 
@Neil Explorer.exe disagrees with you. And when I open it up in Photoshop such that it fills the screen the zoom is set to 3%.
 
user784668
Dang.
 
@Insilico Then chrome is automatically thumbnailing it? That seems odd that it would do that, let me try with firefox
 
user784668
I tried to open it, but I gave up when I realized that it made the OS start swapping.
 
11:03 AM
Also according to firefox it is 5184 x 2496
 
@Insilico Ah right
 
@Insilico it's the full image. I don't know why you guys have so much trouble with it though, I was able to just doubleclick on it in explorer.exe, and yes, I could zoom in all the way in the default image preview thingy
it took a few seconds to process the image when I loaded it, but after that, it worked remarkably well
 
One could do this. :P
for i in `seq 1 100`; do
    for j in `seq 1 100`; do
        curl -f imgs.xkcd.com/clickdrag$i%73$j%77.png > $i\ $j.png
        if [ $? -ne '0' ]; then
            rm $i\ $j.png
        fi
    done
done
 
11:06 AM
I'm pretty much sure the image is the full 829 megapixel image.
 
that's one large image
 
holy shit- Rain 2:0 Taeja
 
@Insilico I'm pretty sure it's not. I downloaded the image and it was already smaller
 
ah, it swallows up 4GB RAM when I load it in Windows' built in image viewer
 
11:08 AM
Getting 16GB in my work PC has finally paid off!
 
@Neil That's your word vs. Windows Explorer and Photoshop.
 
Though apparently there's something that isn't right otherwise it wouldn't be that way for you guys
 
@jalf seems so
 
@Insilico Didn't say I was using Word
 
I couldn't load it with my 8GB RAM machine, cause I'm already using 2/3 of my RAM
 
11:08 AM
@Neil so how come I was able to download the image, and, once again, zoom all the way in? It's the real image, deal with it.
 
@TonyTheLion It loads fine on my 4 GB machine (one of my older computers), but only after it swapped out all the other application's memory. :-/
 
Stop doubting the helpful robot.
 
user784668
@Insilico I wouldn't believe Photoshop. It's made by Adobe, and everyone knows Adobe is evil.
 
@Neil I don't know what's up on your end. It's definitely the full image.
 
11:10 AM
@sbi Erm, sorry about that. Though I'm tempted to say it's your fault for leaving e-mail beeps on during the night.
 
huh
for some reason, mine is really low quality
even when I zoom in all the way, the text is invisibly small
 
@Insilico yea, well I don't want to do that here, I'm busy doing a load of other things
the image has built in UB
behaves differently on every different machine.
 
@DeadMG Same here. Even though the image is 829 megapixels.
 
it's a virus, run!!!
 
@Insilico 829 megapixel image, but apparently it's only 400kb?
I suspect some fail
 
11:12 AM
Here's that same image on zoom.it zoom.it/e6Ve
 
compression?
 
@DeadMG It's monochrome.
 
@DeadMG PNG uses lossless compression. And this one has a bit depth on 1.
 
and that
 
Man. Epic XKCD fail.
 
11:13 AM
@Insilico oh yea, I seem to recall that
 
@daknøk woah, a flaw
 
the one on zoom.it has unreadable text too
 
unreal how one image can keep so many people intrigued
we either have sad lives
or we're just normal C++ programmers :P
 
11:15 AM
Imma download the first 100 images that go east.
 
shouldn't you be paying attention in class?
 
@DeadMG Hmm, you're right.
 
@TonyTheLion Wednesday is free from school.
 
oh yea that
 
Hmm it doesn’t seem to go further than 48 images to the east.
 
11:16 AM
lol
 
@DeadMG large blobs of uniform white compress extremely well. So do large blobs of uniform black. :)
Once you've dealth with those, there's not that much data left to deal with, and even that is still 1bpp
 
sbi
@R.MartinhoFernandes Well, You noticed my absence for the last 15mins? It was because there was no way to shut down my image viewer, and I had to turn off the machine for good...
 
sbi
@jalf What did you open it with?
 
11:19 AM
@sbi You asked for it.
 
^ The last one I could find.
Now going west.
 
sbi
@R.MartinhoFernandes Yeah, of course, it was my fault to leave it on at night. Usually I turn it off when I go to bed.
 
Ah, whoever said the image is 828.1 megapixels was wrong.
The image I posted is 828.1 megapixels.
 
@sbi Windows Photo Viewer
The built-in thingy
 
@R.MartinhoFernandes The actual "image" used on XKCD is definitely bigger than 828.1 megapixels.
 
11:21 AM
I just doubleclicked on the file
 
The image Randall used is 13249.6 megapixels.
 
who dafuq is Randall?
 
@DeadMG xkcd's author.
 
okk
 
sbi
@jalf Well, now that I have restarted my machine, and only FF is open, it loaded in <5secs.
 
11:22 AM
har har
 
@sbi according to taskmgr, it makes dllhost.exe immedaitely eat an additional 4gb ram, so it probably depends on having plenty of free ram :)
 
man, I had to run windows updates on my machine at home yesterday, and do them 1 by 1 and after each update it required reboot. Ugh. Just cause doing them all at once would consistently fail all updates.
fuckin Windows
 
user784668
So now the system is using 489 MB of physical RAM.
 
@TonyTheLion works_on_my_machine.png
 
Ok, I have a folder with 225 2048x2048 images. I think I might be missing some.
 
11:24 AM
@Insilico lol
 
Maybe the comic reuses some of the full white ones.
 
room topic changed to Lounge<C++>: Madly trying to reconstruct XKCD image. [c++] [c++11] [c++-faq] [i-removed-your-tag]
 
user784668
That image has a purpose: causing huge swapouts.
 
@Fanael no. Entertaining C++ programmers that can't be arsed to get any actual work done. :)
 
I’m going to let this script run overnight.
 
11:26 AM
There's a torrent if anyone's interested: forums.xkcd.com/download/file.php?id=33895
 
Oh lol.
 
oh god why
codebases that you aren't familiar with are really like a maze
 
user784668
@R.MartinhoFernandes That's huge. 6.3 MB.
 
especially when they are fairly large
 
11:28 AM
@TonyTheLion Not always. I find the Git source code to be very easy to understand, for example. Even though it is C.
 
user784668
@TonyTheLion Convert them into an XKCD image.
 
@Fanael Well, there's no cross-image polinisation compression.
 
@Fanael lol
@daknøk lol
 
@TonyTheLion It was not a joke.
 
I'm still laughing
 
11:30 AM
lol
 
So which part of the image is the origin?
 
Who the fuck cares? Honestly.
 
user784668
@daknøk lol
 
@Insilico left-hand side of 1n1e.png.
My script is at 1n39e.png now. :P
 
11:31 AM
Skipping 404s and sleeping 2 seconds every time.
 
Time to write a PNG concatenation program. :-P
 
room topic changed to Lounge<C++>: Madly trying to reconstruct the world [c++] [c++11] [c++-faq] [i-removed-your-tag]
 
user784668
@daknøk Why sleep? DoS the server!
 
sbi
room topic changed to Lounge<C++>: Madly trying to reconstruct the world [c++] [c++11] [c++-faq] [xkcd]
 
@Fanael That’s exactly what I put in the comments. :P
 
11:33 AM
I should try renaming the files so that they show up in the "right" order when displayed in Windows Explorer.
 
@Insilico Write a script that does that.
 
@daknøk I'm going to have to figure out the correct order first.
 
Oh, and for those that didn't get the reference on the easternmost panel...
:)
 
@Insilico x[ns]y[ew].png n is north, s is south, etc.
 
@daknøk Oh I know that. Let me make a backup of the files in case the script completely screws up the images
Are the images contiguous across the coordinate space?
 
11:38 AM
No.
 
@R.MartinhoFernandes Damn that complicates things
 
Large swaths of white are... nonexistent.
 
user784668
@Insilico Not at all. White.
 
I might sort the images in different folders first then
1n, 2n, 3n, etc.
Just so I can see what the hell is going on
 
Can somebody borrow me a supercomputer?
My script is at 3nXe now.
 
11:41 AM
@sbi odd. Mine is at 4.3gb atm. Goes down to ~50k immediately when I close the image
 
@daknøk A supercomputer is going to be I/O bound to hell for this. :-)
 
2.4MB.
Distributed PNG concatenation! I need a server farm.
 
@daknøk you could rent some of Amazon's cloud for it :P
 
sbi
@jalf That might have something to do with mine not offering full resolution. If I zoom into anything, I see pixels.
 
I don’t know if making the images monochrome would decrease their sizes much.
 
11:43 AM
@sbi Yes, it's not full-res. :(
 
@sbi seeing an image is made of pixels, that doesn't really surprise me.
 
@sbi ooh man, same here. Looked pretty good when I zoomed in on some other part, but the text is just a bunch of pixels
ah well
at least it uses a lot of ram. That's what matters :D
2
 
sbi
@R.MartinhoFernandes Damn, you were cheating us!
 
@jalf Same problem I had earlier- the text is unseeable.
 
@sbi All I said was it was "ginormous"!
And it's the (wrongly) claimed 828.1 megapixels.
 
sbi
11:45 AM
 
Hmm. I wonder why my RAM usage is so low. Usually it’s almost full, no matter what I’m doing.
 
@sbi Woo :) .BMP
 
@sbi Minecraft?
 
Android room is flagging again, lol
 
@TonyTheLion What the hell is going on over in that room?
 
11:47 AM
@Insilico bunch of idiots together, their behaviour is undefined.
 
What's the maximum extent of the N-S and W-E coordinates?
 
@Insilico all I know is that 1n48e is the last one to the east.
And 3n31e.
 
For N-S it apparently goes from 19 south to 3 north
No wait, 8 north
 
Script isn’t done yet, but I get this output:
% echo *
1n10e.png 1n11e.png 1n12e.png 1n13e.png 1n14e.png 1n15e.png 1n16e.png 1n17e.png 1n18e.png 1n19e.png 1n1e.png 1n20e.png 1n21e.png 1n22e.png 1n23e.png 1n24e.png 1n25e.png 1n26e.png 1n27e.png 1n28e.png 1n29e.png 1n2e.png 1n30e.png 1n31e.png 1n32e.png 1n33e.png 1n34e.png 1n35e.png 1n36e.png 1n37e.png 1n38e.png 1n39e.png 1n3e.png 1n40e.png 1n41e.png 1n42e.png 1n43e.png 1n44e.png 1n45e.png 1n46e.png 1n47e.png 1n48e.png 1n4e.png 1n5e.png 1n6e.png 1n7e.png 1n8e.png 1n9e.png 2n16e.png 2n17e.png 2n22e.png 2n23e.png 2n24e.png 2n25e.png 2n26e.png 2n27e.png 2n28e.png 2n29e.png 2n30e.png 2n31e.p
My script is going to make forty thousand requests and take at least 22 hours.
 
@daknøk There are only 225 images.
 
11:51 AM
XKCD Y U NO CDN
@R.MartinhoFernandes oh lol. :P
I need to tweak my script in that case. :/
*Ctrl+C*
 
> I'm not saying our Bitcoin-only island nation was a bad idea, but we really should've secured Internet access before we left.
 
where's that from?
 
The internet.
 
@TonyTheLion The click and drag thingy.
 
11:59 AM
Oooh, I found Icarus.
 
-2
Q: Linux create a popup in a cpp file

user539484I have a challenge, create a pop up in cpp file, to compile on terminal of linux, i've tried many libs but with no sucess. can someone help me with that? thanks.

 
WTF is the dev tag?
 
fail
@R.MartinhoFernandes he looks like a troll. He's already posted a similar question before
 
> Short for development or developer
 
which got closed and downvoted to shit
 
12:03 PM
In other words, questions tagged belong on Programmers anyway.
 
yea but that question didn't even make sense
 
user784668
-1
Q: Does buffer[index] take the same amount of cycles as *buffer?

ruibmchar buffer[424242] = {0}; Is buffer[index] as fast as *buffer?

 
0
Q: Can one still use old C++ books to learn programming?

Magnus DaleI found Ivor Horton's Beginning C++ from 1999 in a book shelf, and I was wondering if it's to outdated to be usefull. I allready know some C++, but I'd like to have book as reference. Should I invest in a newer book or was the language pretty similar in 1999? Thanks!

 
0
Q: Request for tag burnination: [dev]

R. Martinho FernandesThis tags sounds pretty worthless to me, and it's tag wiki description ("Short for development or developer") doesn't really help making the case for it. It looks like it's applicable to the vast majority of questions on the site. Can we call Trogdor on it?

 
@R.MartinhoFernandes And a double fail-whale :)
@R.MartinhoFernandes lol
> Shall we call Trogdor on it?
 
12:08 PM
> TROGDOR the BURNINATOR
ah, makes sense
 
Twitter API y u return empty responses.
 
cause you suck :P
 
@TonyTheLion Apparently I do. T_T
> HTTP/1.1 400 Bad Request
 
haha :)
 
@daknøk Good news: the API isn't returning the result. The HTTP server thingie is
 
12:11 PM
Nooo fuck. That API call required authentication. That doesn’t even make sense.
 
This would be true for languages like Java, Python, Javascript, etc... but shouldn't really happen with a C++ book (but of course it depends on the exact contents). — Let_Me_Be 2 mins ago
is my answer really that wrong?
 
eh, it depends on the book and what it tries to teach
 
yea, it's a bit of a subjective question really.
 
@TonyTheLion Depends on how old and what book we're talking about here. Scott Meyer's Effective C++ book has been in print for several years now, for example.
 
user784668
Oh, I can close vote on my own questions? Cool!
 
12:16 PM
Is 205 questions really too much for some combined elbow grease and overall cleanup? — Bart 2 mins ago
Another laziness excuse.
 
answering questions I feel really stupid, because there's so little I actually give an answer to.
also, there's so many nitpickers in the C++ tag that garantueed I'll be corrected or downvoted over some nitpicky detail.
ugh
 
user784668
@TonyTheLion More like, people don't know C++11 exists. Quite likely, given the amount of shitty C with classes code in the wild.
 
@Fanael right
 
Request for opinion before deletion: Is my asnwer that bad that it deserves only downvotes ?!
 
user784668
12:28 PM
@ereOn No. It's a comment posted as an answer, not an answer.
 
Is that really a comment ?
I agree I hesitated.
 
@Neil I read that in the prof's voice...
 
@LuchianGrigore I think everyone who's seen Futurama does
 
sbi
@daknøk Isn't it that all Twitter API calls are now requiring authentication?
 
Well I guess I shouldn't have tried to put sense in a question that doesn't make any.
 
12:30 PM
@Fanael no, I don't think it's a comment. The question is about a rather silly optimization, if one at all, and @ereOn said so. If OP doesn't ask what he wants to know, he cannot expect an answer
 
@TonyTheLion: Thanks.
 
right
second oracle chat went well, I think
 
sbi
Sigh. I really wish we had a close reason "Pointless optimization question." — sbi 25 secs ago
3
 
The first draft of the question was definitely incomplete and this is when the -4 were done. Once I made it more complete I only started really getting out of scope answers - I'm taking by this that not many people have ever looked into this in the Assembly level so they just start drifting towards a different topic that they know about. — ruibm 1 min ago
 
he's an idiot
 
12:35 PM
What a tool.
 
@DeadMG oh cool :)
 
People are no match to him.
 
Hey, I finally learned about what LEA's for today. I never bothered until now.
 
He speaks at an assembly level on a daily basis.
 
8
Q: LEAL Assembler instruction

Tony The LionI have the following instruction and I'd like to know what the function is of the 0x10 in regards to this LEAL instruction? Is it a multiply or addition or is something else? leal 0x10(%ebx), %eax Can someone please clarify? This is x86 assembler on a Linux box.

assuming that's what you meant :p
 
user784668
12:38 PM
lea is also nice because it's done in AGU, not in ALU.
 
@ereOn woah, explains a lot
 
God, I hate the GNU syntax.
 
user784668
Don't use it, then.
 
@Fanael It's in Tony's Q
 
sorry
was doing Linux at the time
 
12:45 PM
Well, it's not your fault if the GNU guys have terrible taste.
 
true
anyways, I could use an upvote :P
 
Here you go :)
 
Were the interview and interview-questions tags removed? :|
 
Footedness, similar to handedness, is the natural preference of one's left or right foot for various purposes. While purposes vary, such as applying the greatest force in a kick or stomp, footedness is most commonly associated with the preference of a particular foot in the leading position while engaging in surfing or other boardsports. Footedness in board sports When one must stand erect on a single, lightweight object that slides along the ground or on water, the need for balance causes one to position the body perpendicular to the direction of motion, with one foot leading the other....
@kbok oh thank you :)
@LuchianGrigore not sure.
TIL about Footedness
 
posted on September 19, 2012 by Scott Meyers

The final part of each C++ and Beyond is always the wide-open "Ask Us Anything!" Q&A session. Charles Torre from Microsoft's Channel 9 was there with video equipment in hand (okay, most was on the floor, and the camera itself was on a tripod, but you know what I mean), and his recording is now available.  Andrei, Herb, and I hope you enjoy it. Scott

 
12:49 PM
@TonyTheLion I have that!
I didn't think there was a name for such a thing
 
well there is
 
I figured preference for one foot over the other was always the same side as your hand preference
But I suppose there are always exceptions
 
It usually is, but not always. Some people develop a hand preference due to education, thus have a different foot preference, for instance.
 
And some people just don't make sense at all.
 
user784668
@Neil I'm left-footed, but right-handed.
 
12:55 PM
Really, Scott Meyers has the EXACT same haircut as Heman
 
@ManofOneWay He has a very strange haircut, reminds me of the Beattles or something.
 
@StackedCrooked Whether or not you make sense depends on the length of your tongue.
 
@Fanael Freak
 

« first day (704 days earlier)      last day (4245 days later) »