« first day (722 days earlier)      last day (4226 days later) » 

8:00 PM
@DeadMG Is it really a navbar and not "table of contents"?
 
well
it's just a list of the other topics
like the index page, but more compressed
 
^pretty standard site layout
 
Xeo
> Calling 'delete [] ' on dynamic array of objects doesn't allocate the memory
lol
OP corrected it within a minute though
 
@Xeo GEE GEE
 
Ads?
 
8:03 PM
It wouldn't be a website without ads
 
Uhm, why does everyone want to have that copyright message on their page?
 
Xeo
0
Q: Calling 'delete [] ' on dynamic array of objects doesn't deallocate the memory

Miro RodozovAssume the following code: int main(int argc,char * argv[]){ int * ptr; ptr = 0; // tried also with NULL , nothing changes ptr = new int[10]; // allocating 10 integers ptr[2] = 5; ptr[15] = 15; // this should cause error (seg fault) - but it doesn't cout << ptr[2] << en...

sigh
Don't we have a "delete[], then access" dupe?
Also, "out-of-bounds" something.
 
@NikiC Same reason unregistered trademarks exist (™), so you can sue people.
 
@DeadMG What colours do you want?
 
Is @GamErix drunk?
 
8:06 PM
He's like 16.
 
Xeo
@FredOverflow That, or he was being a retard.
 
That's interesting.
I didn't think young'uns breezed through these parts.
 
A lot of people here are in their 20s.
 
Ell
@FredOverflow it appears so
 
@Xeo Practically all control structures are higher-level gotos, so what? :)
 
Xeo
8:08 PM
@FredOverflow :)
 
Ell
@ThePhD are you a young'un?
 
@Ell Nope. I would've been a bit ago, but I'm officially 20.
 
Even C++'s goto is a higher-level goto in the sense that it won't let you arbitrarily jump anywhere like low-level gotos do.
 
I can now apply for my old'un Application.
 
Ell
20 is pretty young
 
8:09 PM
TWENTY IS SO OLD
I just hope I don't get grey hairs. =[
 
You will probably become bald before that happens
 
And honestly, I'd much rather see the occasional function with an unnecessary goto than deeply nested class hierarchies or Design Patterns thrown in just for the fun of it. Design Patterns can easily make your code way more obscure than a simple goto.
 
At least, with goto, the damage is localized.
 
@Pubby Actually, my hair grows quite violently. It's actually a little scary.
I can never shave enough. ;~;
 
@ThePhD It's aliiiiive!
 
8:12 PM
0
Q: visual undeclared identifiers?

pick4ponynvm !nvm !nvm !nvm !nvm !nvm !nvm !nvm !nvm !nvm !nvm !nvm !nvm !

lol
@EtiennedeMartel exactly
 
I don't think I've ever used a goto in C++ yet.
 
goto is nice for error handling in C.
goto is also nice for breaking out of nested loops if your language does not have labeled breaks (like Java has).
 
if (shitisfucked)
goto FUNCERROR;

....

FUNCERROR:
printf("Abort mission, shit be fucked, yo");
 
I got pissed at Java when I realized it didn't have goto
 
Aww, the chat eats leading whitespace on a newline.
 
8:15 PM
this was a few years ago when I was too lazy to remember the syntax for while
 
o_O
I never thought I'd meet someone who'd use goto over while
 
acquire_resource_a();
if (acquisition_failed) goto a_failed;
acquire_resource_b();
if (acquisition_failed) goto b_failed;
/* ... */
release_resource_b();
b_failed:
release_resource_a();
a_failed:
 
@Pubby Sure. But you automatically have the copyright on your work. The copyright notice doesn't actually do anything for you.
 
Does goto have any performance implications? Like, jumping can screw things up?
 
pain in the ass to reply to it.
 
8:16 PM
@ThePhD Poor use of goto can complicate the compiler mid-end.
 
.... Er.
 
I won't go into that. It's very messy.
 
@ThePhD Jumping can damage your ankles if you jump too high.
 
@Mysticial Alright.
 
@NikiC Probably not in all countries. And it's also nice to know who wrote the page so you can contact them.
 
8:17 PM
@FredOverflow Ha ha, true. :P
 
@FredOverflow We got throw in C++, though.
 
@Rapptz Dunno.
I don't really know anything about that stuff
 
@ThePhD The term for it is called "Irreducible Control Flow Graph".
 
5 mins ago, by FredOverflow
goto is nice for error handling in C.
 
But the literature about it is pretty impenetrable without a strong compiler background.
 
8:18 PM
@FredOverflow I know.
 
@Mysticial Sounds like shit I don't want to get my head into.
 
@EtiennedeMartel Also, not all platforms support exceptions, it seems :)
 
@FredOverflow If you're doing C++ instead of C on embedded platforms, you deserve the pain.
 
....
@DeadMG does std::function exist for C++0x
 
@ThePhD It's in C++11- and TR1, and Boost.
 
8:21 PM
@DeadMG Oh. I must be missing a header somwhere.
 
<functional>
 
#include <functional>
 
@EtiennedeMartel I'm doing C++ on embedded - why should I have pain?
 
I think my next project is making my own Ideone-like server.
 
@MartinJames Well, it appears you were lucky enough to find a standard compliant compiler for that platform. Congratulations!
 
8:23 PM
If you're doing embedded, you deserve the pain.
 
@DeadMG Ah, thanks.
 
@EtiennedeMartel It's GCC, copiling for ARM7. No exceptions, but I 've never felt the need for any goto stuff either.
 
@StackedCrooked Good luck with that!
 
I don't need luck, but thanks :P
 
8:30 PM
What is that?
 
A website mockup, I think.
 
it's ideone for websites
 
I would help but I'm not really motivated today
I have a nice idea though
 
Being?
 
Colour.
 
8:32 PM
man
why does the contents of the "ad div" be on a new line, but not the "content div"?
y u inconsistently put new div on a new line?
 
I really like the colour scheme I did in this subreddit reddit.com/r/wiiustylebox
Which is just grey/blue but it looks nice.
 
@Rapptz That white text on light grey background is wonderful.
 
Where?
 
top right
 
Top bar, user bar.
 
8:34 PM
the links list goes off the blue bit and you can't see them all for shit
 
Oh, I don't see that. I just assume people are logged on.
 
I am logged on.
 
Really? I don't see it.
 
Maybe because it's white on light grey.
 
qox
You not seeing it is the problem.
 
8:36 PM
 
qox
 
@Rapptz Only happens on a small screen
 
No, he's got RES.
 
That's actually easy to fix anyway. I only spent an hour on the CSS.
 
qox
Happens on large screens too.
 
8:37 PM
I just meant the basic colour scheme :(
 
Granted.
 
Granted, again. I just made this for myself not really for people to use.
 
qox
What browser do you use? IE?
 
8:39 PM
Chrome.
 
qox
Then why is the result different.
 
I'm using RES.
 
qox
ohh :p
 
The reason why the thing is stretched out is because of the way I did the page. It's set at 93% so it varies by screen resolution. Which again is only because I did this for myself, not really for everyone to use or see.
 
You suck.
 
8:41 PM
Maybe.
 
qox
If you made it for yourself and not for anyone to see, why did you post it here?
 
To show the colour scheme. Scroll up.
I liked the grey/blue but everyone commented on the white on grey
 
0
Q: "cannot be used as a function" error

SepalaPlease have a look at the following code #include <iostream> #include <iomanip> #include <vector> using namespace std; bool multiple(int,int); void isMul(vector); vector <int> numbers; int enterNumber = 0; int main() { cout << "Enter numbers (-1 to stop e...

 
Downvotes? OKAY
 
Did he choose the other answer, not my with higher count of votes, just because I told him to get book?
 
8:43 PM
because he doesn't like you.
 
No, I am not new to programming. In Java we don't put as "Vector<int>" etc. Since it can handle anything, we put "Vector v ". You can see the conclusion — Sepala 13 mins ago
Tell him that he doesn't know Java either.
 
...because I told him to get a book, @Rapptz? :D
 
No because he doesn't like you.
 
@CatPlusPlus, I don't know it either, so I would fail to give arguments for such claim.
 
I UserCSS'd add answer/add comment things away to not be tempted.
 
8:45 PM
Why is it getting downvoted?
 
@Griwes You don't "put 'Vector v'" in Java.
Generics are there for compile-time checking, and if you're not using them, as primitive as they are, you're bad at Java.
 
@Rapptz As for subreddit designs, I like r/anime for it's simplicity and pretty girl.
 
I think that will be enough
 
@StackedCrooked Yeah that's simple CSS. It's pretty nice.
 
@Rapptz Because it was linked here!
 
8:47 PM
:D
 
I made it personal mission to downvote everything posted here.
3
The rest might or might not be voting lemmings.
 
You could write a custom iterator that consumes the double array, but would that be useful? It'd be a lot more code for sure. — Kerrek SB 18 mins ago
@KerrekSB Did you miss something there:
0
A: Convert 2D array to std::map?

seheThe following works fine for me: template <typename T, int N> map<T, T> array_to_map(T(& a)[N][2]) { map<T, T> result; std::transform( a, a+N, std::inserter(result, result.begin()), [] (T const(&p)[2]) { return std::make_pair(p[0], p[1]); } ...

 
To be or not to be evil.
 
That is a given
 
I upvoted just in case.
 
8:50 PM
I suck
 
Use Bootstrap.
 
You do, but let me help you: twitter.github.com/bootstrap
Seems it is general agreement to use it nowadays ;D
 
Number of Bootstrap Recommendations Today: 3
 
Also end your career if you ever use position: absolute as anything else than a workaroundohack for graphic designer's stupidity.
 
@DeadMG An unfinished project that doesn't yet work naturally sucks :p
 
8:54 PM
BootStrap actually looks pretty nice.
 
Bootstrap is a framework.
The default theme is almost not important.
 
Doesn't mean it can't look nice.
 
I always use it because I'm lazy, but still.
 
The default theme looks good too. Looks common though.
 
qox
I only use Bootstrap (and Placehold.it) for wireframing.
 
8:57 PM
I don't want to write any HTML or CSS beyond what's really really really necessary, so I stick with defaults.
 
@DeadMG Hey, that's css, just what I've been toying with the last two day.
@DeadMG Getting the positionings right always turns out the be a lovely puzzle.
 
qox
I have generic stylesheets I use as a starting point.
They contain placeholders for colors, fonts, line heights, paddings and margins, list styles and stuff.
 
finding it hard to work with bootstrap in jsfiddle though
 
qox
Default is black and white, Palatino, 1.4em line height, 0 padding, 1rem 0 margin for p, td, li, blockquote, address etc.
 
@DeadMG Why don't you just use a text editor?
 
9:03 PM
@Rapptz Because I like pushing the button and seeing live results
 
You suck.
Also, hi.
 
You can do that in a competent text editor. At least I can in Sublime Text 2.
 
qox
Ctrl+S, Alt+Tab, Ctrl+R takes less time than moving your mouse to the button and clicking it.
 
hi
hmm
if I put the primary bit in my ASP.NET master page, then I'll save me efforts
 
Are you a wizard? The third option was exactly what I needed, I had no idea you could do something like that (it works superbly with Eigen's matrices). Wish there was an option to upvote you multiple times. Thanks a lot. — Ynau 2 mins ago
^ Aw. That's too nice :)
 
9:08 PM
C++fu.
 
hmm
 
@Rapptz you make it look like an expletive :)
 
Is there a short acronym for 'OK, it's probably a trivial problem but I can't be bothered debugging it. I'll post it on SO and some gullible fool will debug it for me. With a bit of luck, more than one developer will waste their time so I don't have to waste any of mine'?
 
Where's the question so I can downvote.
 
9:11 PM
Wow.
That me some strange meaning of the word 'stable' that I was previously unaware of.
 
-1
Q: C++ reading from file into linked list giving EXC_BAD_ACCESS

SunHypnotichi guys im trying to transfer an older code from C to C++ for an assignment.... i have to implement a linked list by hand so I cannot use STL containers otherwise i'd already be done with this.... here's my linked list: #include <iostream> #include <string> #include <fstream>...

 
@MartinJames Oh I have been ignoring that poor sod for about an hour now. Never even clicked the entry from the main page. EXC_BAD_ACCESS tells me enough. If they know what that even means, they'd choose a different title.
 
@sehe There ought to be a recognised acronym. 'GBBTD' maybe 'Cant Be Bothered To Debug'
 
@MartinJames Gantt?
 
9:14 PM
@sehe Isn't that a progress chart with bars?
 
Xeo
@R.MartinhoFernandes Absolutely not, I deny any charges!
 
@sehe I can imagine myself verbing that for a title.
 
And just in case you'd be interested - your version sped up the code 2.6x! — Ynau 1 min ago
@MartinJames "Gantt Be Bothered To Debug'?
 
I can't imagine why I'd need to post a question related to that, but I can see myself using it on the title ("reading from file is EXC_BAD_ACCESSing").
 
@R.MartinhoFernandes Picking up the Gantt-let
 
9:16 PM
Oh guck!
 
it occurs to me that I really need a different TLD
 
@R.MartinhoFernandes Really? Of course not. You'd say: "Where does this code invoke UB (possible memory corruption)" - or similar. Showing that you've deciphered the message and looked for probable causes first
 
puppy.com?
 
it seems silly to have wide-language.com be C++ tutorials, I mean.
lol
 
@R.MartinhoFernandes TLD: wide-language.tv
 
9:17 PM
puppy.com/wide, puppy.com/cpp
 
wide.puppy.com, cpp.puppy.com
 
@R.MartinhoFernandes The TLD is just the .com part (or .net, etc.)
 
@JerryCoffin Not the TLD the puppy meant.
 
slush.puppy.com
 
man, there's already a puppy.com
and it's shit, too
 
9:18 PM
@DeadMG Duh.
 
@R.MartinhoFernandes hehe
@DeadMG shit.com is filled with puppies
 
I mean, I can't go around with"deadsshit.com"
 
@R.MartinhoFernandes What he really meant was "domain", not "TLD".
 
@JerryCoffin He meant "the le domain".
I'm sure.
cough
 
9:19 PM
deadmg.com
 
@DeadMG deadmg.com - seems available
 
@R.MartinhoFernandes Conceded.
 
Grab it while you can!
 
hmm
do I really want deadmg.com?
 
Similar Domains
stillborn-mg.info
deadmgmanagement.com
dead-mg.us
expired-mg.org
asleepmg.org
 
9:20 PM
stillborn-mg, lol
 
lol
 
Ell
You want wide-language
 
oh
how about puppyprogramming.com
 
Ell
And deadmg for personal
 
misleading. What if I want to program puppies
 
9:21 PM
@Ell Nah, because it's also hosting C++ tutorials.
so unless I want to own two domains
 
@DeadMG Taken.
 
which I could do, I guess
@R.MartinhoFernandes Fuckers
 
Ell
Well when wide becomes uber popular
 
Why can't you keep it? I don't think it matters that much.
 
Ell
You want it to have its own domain
 
9:22 PM
@Rapptz I dunno, it just seems odd to have a website for a language, and then have a bunch of content about some other language on there.
 
Premium Domains
petfuneralplanning.com
available for $350
petprogramming.com
available for $1595
WTF.
 
lol
 
You don't have to make it visible. You could keep it "hidden" and just redirect to it, I guess
 
@R.MartinhoFernandes wide-puppy-porn.com is available. You could make heaps of money from that
 
rofl
 
9:24 PM
@Rapptz From where, exactly? Don't say from sites.google.com/~some-classy-thing
 
@sehe I meant you don't have directly link to the C++ tutorial on the main site.
 
@Rapptz Ok. But that would make the tutorial no easier to find.
 
That's true. You could redirect it from somewhere else though.
Or do what this guy does inventwithpython.com
 
maybe I should charge for C++ lessons :P
 
Ell
Become a programming tutor
 
9:27 PM
"Helped 2,800 miserable fuckers so far!"
 
I like that format. Free book but you could pay to have a hard copy or just to donate.
 
damn
why do I find it so tempting to rip my passport to shreds
well
I guess I should just register deadmg.com then
 
@DeadMG Wut.
 
any domain with porn in it will get lots of traffic :P
 
lol
 
9:34 PM
@DeadMG Hmmm. Talk to Ell about anger management? Or maybe, don't.
 
nothing angry about it
it just looks like it should be ripped to shreds
like how you should pull a door with a handle, or you should push a button
 
Right.
@DeadMG Perhaps stop looking at the picture in it then. And don't sweat it. It's only an application. Informal, perhaps. Nothing but the rest of your life really, and, let's face it: you had that already.
 
lol
 
@DeadMG You mean, in UX terms "my passport affords shredding"
 
something like that
well
I'mma keep my current domain
but I'll reorganize it
 
9:39 PM
I should really, really, really learn to proffread my tweets *before* I hit return, rather than afterwards.
@sbi I see what you did there
 
hmm
how about something like deadcoding.com
 
Also, blame SO chat. It accustomes you to 'up-arrow = edit'
@DeadMG Looks cool. In between dead serious and decoding
 
win
I'm smarter than I thought
2
 
Ell
Yeah
 
@DeadMG Doesn't sound good.
 
9:41 PM
@DeadMG Unlikely there
 
@R.MartinhoFernandes You don't like it?
 
It sounds silly.
 
I'm asking this one domain to do too many jobs
 
Ell
Deadpuppy.com
 
@R.MartinhoFernandes What about puppycoding.com?
 
9:43 PM
Looks better.
 
then I have an excuse to put puppy pictures all over everywhere
 
codepuppy, cuppypode
 
Ell
Abstractsingletonpuppyfactorybean.com
 
lol
 
Ell
Codepuppy is good, has a ring to it
 
9:44 PM
you know, you could use something like xxxpuppyxxx.com
 
codepuppy is a good one
what you fink, robot
 
btw... IIRC .xxx is now a valid address ending.
you could use that. :P
 
codepuppy.xxx? hardcore ... pictures of my cute puppy!
 
@DeadMG I like it.
 
winner
codepuppy.com/cpp, codepuppy.com/wide, codepuppy.com/paymemoney
 
Ell
9:47 PM
Codepuppy.com/puppyporn
 
damn
codepuppy.com is already registered, according to DreamHost/
 
tonysporn.xxx
 
but that other site said it was free :(
but I could have code-puppy.com
 
Ell
123reg
 
@Mysticial It's been valid for a long time.
 
Ell
9:48 PM
I use 123reg
 
Not as long as the other ones though.
 
@Rapptz I vaguely remember it from when the announcement of .xxx made front page of Yahoo. I have no idea how long ago that was though.
 
I remember seeing it a long time ago but Wikipedia tells me it was unofficial until 2011.
 
you guys think code-puppy is just as good?
 
Ell
.co.UK is available
Www.codepuppy.co.UK is cheaper too
 
9:50 PM
@TonyTheLion cough
 
why do you capitalise UK
 
I prefer .com to .co.uk
 
Ell
Mobile autocorrect
 
but I'd also rather skip the hyphen
 
I like .co.uk more. It sounds more legitimate.
 
9:51 PM
Hyphens in domains are ugly.
 
wide-language.com just got dissed.
 
lol at the argument going on under this PHP question:
32
Q: Reference - What does this error mean in PHP?

hakreWhat is this? This is a number of answers about warnings, errors and notices you might encounter while programming PHP and have no clue how to fix. This is also a Community Wiki, so everyone is invited to participate in adding to and maintaining this list. Why is this? Questions like "Headers...

 
Wow he censored himself for saying crap. Is SO that butthurt by words?
 
right
 
@R.MartinhoFernandes but sometimes necessary. :(
 
9:52 PM
What. The. Fuck.
 
@Mysticial It's like a ?
 
@R.MartinhoFernandes yeah
 
@DarshanThanki , no, no and NO ! The articles you linked are filled with bad, pointless, obsolete and/or harmful practices. Please to not propagate this cr*p. Those two articles combines have like 3 good practices in them .. guess which. — tereško 1 hour ago
Referring to that.
 
There are some idiotic things in those two articles, but what the fuck.
 
The only word I censor is brainfuck.
I'm pretty sure the i in brainfuck isn't what most people replace with a symbol. — Peter Olson Oct 4 at 17:12
 
9:54 PM
+1 for bra*nfuck alone. That particular i always offended me. — Dennis Oct 4 at 3:04
 
Yeah, we wouldn't want to get banned because of *rainfuck.
 
what's wrong with b*ainfuck?
 
@Rapptz That guy got a lot of flak for it in the past, so I guess he's traumatized.
 
php === brainyuck
 
Ell
Chocolate *rainfuck
 
9:55 PM
Wut.
 
I'm siiiinging in the *raaaaiiinfuck
 
More importantly, why are you posting PHP questions here .
I can downvote only once and it isn't even visible.
 
Seems pretty silly to be honest. I don't get what there is to be offended about.
 
Hmm, as expected, minecarts in DF are terribly complicated.
 
I will soon be the proud owner of codepuppy.co.uk
 
Ell
9:57 PM
Woo
 
codebunny.xxx ?
 
Ell
What is it ? Like £7 for 2 years?
 
cokepuppy.co.ud
 
@Mysticial What, "Solve the syntax problems to remove clothes from model?"
 
Fuck yeah. My kind of game.
 
9:58 PM
Sounds like a bad business model.
 
@R.MartinhoFernandes Yeah, if it was C++, nobody would ever see the model.
 
@Ell Whatever it is, it's negligible. I have two domains on my account and they're each $.01 a month.
The hosting is $5 a month.
 
> When set to "Guide", minecarts seem to ignore all laws of physics.
Fun.
 
Ell
Cokepuppy.co.od
Od, get it?
 

« first day (722 days earlier)      last day (4226 days later) »