« first day (615 days earlier)      last day (4351 days later) » 

sbi
11:00 PM
You get on me nerves with saying such hollow stuff.
 
@sbi I sometimes put haikus I find in comments. They usually have no relation to the code whatsoever.
 
sbi
@MooingDuck I am confused. Where do you put those haikus that you find in comments?
 
0
Q: Segmentation fault with array

adityaarun1I am writing a fairly simple code to enter integers stored in a file into an array of moderate size, but on compiling and running the code, it gives Segmentation fault error, can anyone please correct me where I am making a mistake, the code is #include <iostream> #include <fstream> ...

 
@melak47 I can show you, if you like.
 
FAQ dupe closing?
 
11:01 PM
@sbi hm, communication fail. When I find haikus on the internet, I put them in comments in my code.
 
@Drise sure
 
In comments he puts haikus he finds.
 
And I'm the one that fails at sarcasm.
 
I sometimes put (haikus I find) in comments.
 
sbi
@MooingDuck Do you write LISP?
 
Haikus are so short
Long enough for some words, though
Nah, still way too short
 
@ScottW Death
 
@ScottW bacon.
 
Haikus are easy.
But sometimes they don't make sense.
Refrigerator.
 
@ScottW Taxes are not certain. Not if you're smart and have no scruples.
@MooingDuck Profound.
 
Ell
11:04 PM
Or if you don't work
 
@ScottW Bacon, Lice, and Tomatoes?
 
sbi
@ScottW "BLT"? Like the BLT on a sandwich?
 
@MooingDuck poetry ever makes sense??! It's more difficult to decrypt than AES-256!
 
@melak47 Might take me a minute to parse 330MB of data, hold on
 
@ScottW apes…
 
11:05 PM
@Drise haha, ok....does it make pretty pictures?
 
sbi
@ScottW No. BLT is the stuff that goes onto a sandwich.
 
@MooingDuck I did worse. I made a file 130MB big, and the output is 330MB D:
 
WTF is BLT?
 
@melak47 define pretty. But to me, yes.
 
sbi
11:06 PM
@RMartinhoFernandes Bacon, Lettuce, Tomato.
 
Bacon, Letuce und Tomato!
Only the B matters though.
 
There's got to be a better way to triangulate and color. Has to be.
 
How can you eat that? Tomatoes are disgusting.
 
Dislike!
 
@Drise what are you triangulating? point cloud?
 
sbi
11:07 PM
7 mins ago, by sbi
@ScottW All Merkins are stupid, uninformed idiots.
 
Ell
I like tomato jam, but not really tomatoes. Apart from in sauce and the like
 
@RMartinhoFernandes that's just you. You, as a robot, dislike tomatoes because they contain lots of water.
 
also, BLT == B'Elanna Torres, obviously
 
@RadekSlupik Nope. I dislike tomatoes because they're disgusting. I like tomato paste for example.
 
BLT is an acronym for Bacon Bacon Bacon.
 
Ell
11:08 PM
Tomato paste? That sounds disgusting.
 
Ketchup
 
@ScottW phew, I was worried nobody knows star trek anymore...
 
sbi
@RMartinhoFernandes None of my sons eats tomatoes. All of my daughters eat tomatoes. Since I couldn't eat them if my life depended on it, I suppose it's something on the Y chromosome.
 
Agh! what just happened! chat made a noise...a different noise...I don't know what it means
 
@melak47 plinkettyplinkcakes
 
sbi
11:09 PM
@ScottW I think there's two words too many in that statement. (And "are" is not one of them.)
@ScottW I hadn't known I am your father.
 
@Ell That thing you put on pizza.
 
Ell
Scott, I am your father. And you will finish your tomatoes.
Oh. I would just call that tomato sauce
 
Wait, that's tomato sauce.
My bad.
 
sbi
@ScottW And where do you think my sons got their Y chromosome from??
 
@melak47 Plane of points.
 
11:11 PM
@DeadMG it was more like a "boing"
 
@ScottW He was speaking genetically, not generically.
 
 
sbi
@melak47 It announces that your laptop's battery is about to be exhausted.
 
@sbi I'm on a desktop ;)
 
@melak47 That's a plane.
 
sbi
11:13 PM
@melak47 That's fatal then, because your machine doesn't have a battery.
 
@Drise taking forever and nothing is loading :/
@sbi D:
 
People are appalled looking to the right, but laugh to the left.
 
@RMartinhoFernandes ...?
 
@melak47 Loads for me.
I could onebox it, but it may cause broswers to vomit.
 
sbi
@Drise Didn't for me.
 
11:15 PM
It's HUGE.
Be patient.
 
@Drise can you give me a direct link to the image instead, so I can download it? maybe my browser's refusing to display what part of it is already loaded
ninja'd :/
that link loaded instantly
 
I'd say that qualifies as pretty
 
Wait, all this trouble for that?
 
sbi
@Drise Loads instantly.
 
11:16 PM
what am I looking at though
 
I was expecting boobs.
 
sbi
@melak47 An image.
 
Also PNG man.
 
@RMartinhoFernandes It is, or was.
 
sbi
@RMartinhoFernandes "PNG man" sounds like someone to scare my kids with.
2
 
11:18 PM
Poor things. I don't want to take part in that.
 
sbi
@RMartinhoFernandes "points on a plane" Shakes head.
 
@melak47 That's the electromagnetic field of a horn antenna at VERY high resolution
 
@sbi Eat your vegetables, and do your homework, or the PNG man will come and convert all your images to .PNG!
 
sbi
11 mins ago, by melak47
@Drise what are you triangulating? point cloud?
8 mins ago, by Drise
@melak47 Plane of points.
 
11:19 PM
I'd rather face the PNG man than eat vegetables.
 
@Drise ah, microwaves?
 
Ell
Haha .PNG is the best though
 
@sbi But they said it was pretty!
 
@melak47 Uhhh 1 ghz.
 
Ell
I would say .PNG man is more like the easter bunny
 
11:20 PM
@Drise ah, oh well. I was hoping this would help me figure out where to put food in the microwave for optimal "reception"
 
@melak47 Inside.
 
sbi
What do you know about "pretty"?
 
@sbi What? There's boobs in there.
Boobs = pretty.
I shouldn't have said that.
Now you're going to post those pictures from the other day just to prove me wrong.
 
Ell
Not all boobs are pretty
 
People are going to wtf that star for a while.
 
sbi
11:21 PM
@RMartinhoFernandes No need to. They already proved you wrong the other day, after all.
 
Ell
Like those grotesquely large ones
 
@Ell Yeah, that's what I realized just after I wrote it.
 
sbi
@Drise Just look at the starboard. "Bang it before it finds someone else then." "Congratulations on entirely missing my sarcasm there" I'd say "Inside" is in good company of decontextified messages there.
 
You make a good point.
 
sbi
What did you expect? I write code for a living.
 
11:24 PM
C#.
 
That sounds like an xkcd punchline
 
sbi
@RMartinhoFernandes I just had a short flirtation with C#, which turned out not being romantic enough for me, so I am currently negotiating my way back to my long-term love C++.
 
Ell
Somebody write some things, I need entertaining reading materials
 
sbi
@Ell I never understood haikus.
 
@sbi So you admit to cheating on that harsh mistress that is C++!
 
Ell
11:27 PM
All I remember is that they are japanese
Ooh you gonna get punished for that. In a kinky way
 
Stupid chat.
 
sbi
Look, now it's stammering! Wow, I didn't know robots could do that!?
 
Ell
Gosh I am hungry. I swear my stomach is like an endless void which cannot be filled
 
Ok, I finally got an app for reading books on the tablet. Hurray. Let's see if I can adapt to treeless reading.
 
sbi
@Drise, aren't you slacking quite badly with your homework? How do you suppose you will make it through your exam?
 
Ell
11:30 PM
Void* stomach = 0; assume true Turing machine (infinite memory, right?)
 
@sbi Students often can't make that logical connection.
 
Ell
Truedat
 
sbi
@RMartinhoFernandes It isn't cheating when you're doing it in public. Also, you know quite well that I was tricked into this relationship.
@RMartinhoFernandes "Students often can't make logical connections." FTFY.
 
Ell
It isn't cheating when you're doing it In public? :L
 
Sure.
I'll be sure to remember that one if I ever get into a situation like that.
 
Ell
11:32 PM
Haha
 
"I saw you with that bitch yesterday!"
"But honey, it was in public!"
"Oh, in that case, I love you, dear"
 
I think there's a flaw in step 3.
 
sbi
I dunno. The translations I get for "cheat" imply that you deceive the other party.
 
@RMartinhoFernandes I bet to robots that makes perfect sense.
 
sbi
Cheating is when you pretend to be in love with your partner, but fuck someone else. When you announce you're leaving your partner for someone else, that might be bitter for that partner, but it's not automatically cheating in my book.
 
11:35 PM
somewhere, I am copying a std::ostream
 
@sbi I think it's still deceitful if they still believe you are only with them. I readily admit I'm far from an expert, though.
 
@sbi I uhh... I... Uh...
@MooingDuck That's no good.
 
@sbi Oh, there was an announcement involved. Ok.
 
Ell
Everybody lies
 
sbi
@RMartinhoFernandes Well, I quit one job, started another. It does tend to make somewhat of a splash in my circles if you switch your job. It's not like my former employer was wondering if I was sick in bed when I suddenly didn't appear at work anymore.
@MooingDuck No, you are not.
 
11:38 PM
@sbi my code is attempting to anyway
 
sbi
@MooingDuck If so, the compiler would spit the location into your face.
 
@sbi MSVC9 doesn't
 
sbi
@Drise That's a bit meager, you know.
@MooingDuck What's it say?
 
sbi
@MooingDuck Ugh.
 
11:41 PM
@sbi srsly
 
sbi
Do you have a stream as a class member somewhere?
 
I'm going home to play some DayZ. Night folks. See ya on monday.
 
@sbi yes, but I thought I'd disabled the copy constructor/assignment operator. Will toy with that. Thanks for that idea though
found it!
 
sbi
@MooingDuck Just comment it out and try if it then compiles.
 
    friend std::ostream& operator<<(std::ostream, const symbol& s) {
        return std::cout << s.text;
    }
 
sbi
11:43 PM
@MooingDuck Oh.
@MooingDuck OMG. That's so wrong.
 
@sbi I was appalled with myself
 
lolwot
 
sbi
And you show that code to the user who has posted the How To Pass Objects To Functions? and the Operator Overloading FAQ.
 
So I found out that Notepad++ can't handle UTF-16 files correctly. -___-
 
11:48 PM
@sbi it's on the internet. I've showed it to the world.
my grandchildren's grandchildren will point and laugh.
 
sbi
@MooingDuck What's the world compared to me?
 
@Insilico got an utf-16 file to test?
 
@Insilico huh?
 
@melak47 If the UTF-16 file has surrogate pairs, Notepad++ give me nonsensical characters
 
@Insilico is that Notepad++ or Windows?
 
11:49 PM
@MooingDuck I'm pretty sure it's Notepad++. Even fricken Notepad handles UTF-16 correctly (apparently).
 
@sbi I think that the object passing FAQ needs a C++11 upgrade.
 
"You've earned the "Copy Editor" badge. See your profile." Yay! Wasn't expecting that.
 
@Insilico The typical UTF-16 = UCS-2 myth.
 
sbi
@DeadMG Go ahead!
 
@DeadMG Let's all downvote it to oblivion until then!
 
11:51 PM
@sbi he he :-)
 
@sbi Should I like, edit your answer or post my own or smth?
 
@RMartinhoFernandes That has to be the case.
 
sbi
@DeadMG Yeah.
 
Ah, apparently Notepad++ has no option for UTF-16
 
cause it seems to me that a new answer would never get equivalent visibility
 
11:51 PM
only "UCS-2 Big Endian" and "UCS-2 Little Endian"
So at least it's honest.
 
I posted a new answer to update the POD FAQ and it did get visibility.
 
ok
 
notepad2 has utf16 support, or so it says
 
Wordpad and Notepad handles UTF-16 okay
 
sbi
I have made my answer CW. Feel free to change it, but please make sure it stays as a set of simple rules of thumb.
 
11:52 PM
But Wordpad doesn't understand big-endian UTF-16
 
There doesn't seem to be a FAQ about overload resolution. Is there no interest for that?
 
And there has to be a BOM or they both fuck up the encoding.
 
@StackedCrooked The rules are too complex, I'd say.
 
But Notepad fucks up UTF-8 without the pointless UTF-8 "BOM"
 
C++ Templates has an entire appendix just for a simplified version of them.
 
11:54 PM
Yeah, I have it in front of me.
 
Hello, How can i let a function run only for 5 minutes?
 
sbi
@StackedCrooked I can attest that there is, but the best description of overload resolution I have ever seen is 20 pages. It's hard to press this into SO's simple format without creating a sea of lead to drown any newbie in.
 
@georgemano By not using a slow-ass function?
 
@georgemano have the function check the time every few seconds, and then give up
 
Put it on a separate thread, std::this_thread::sleep_for(5_m) and then axe the thread. Don't blame me if shit goes wrong.
 
sbi
11:55 PM
@georgemano I remember a question regarding this on SO two or three years ago. Have you searched?
 
@MooingDuck how can i do that ? with what function can i check that?
 
@georgemano <chrono>
 
sbi
Anyway, it's 2am here, and I gotta go to bed. Good night, folks!
 
@sbi the link?
 
sbi
@georgemano "Have you searched?"
 
11:56 PM
Ah, cool, C++11 has no way to axe threads.
 
@RMartinhoFernandes À la TerminateThread()?
 
Does the function have to be doing anything? Otherwise, you could just use a timer and a spin-loop.
 
@RMartinhoFernandes axing threads is a bad idea, pretty much always
 
@Insilico Right.
@MooingDuck Yeah, that's why it's cool.
 
Otherwise, you'll need to setup a separate thread and kill it when time is up.
 
11:58 PM
return / exit seems to work fine for closing threads :p
 
@melak47 Yeah. That's the preferred method.
 
@melak47 The former only works from inside the thread, i.e., cooperatively.
 
TerminateThread() is what you use if your multithreaded code design is shit.
 
@Insilico But it should be something you use only if you really know what you're doing (hint: you don't).
 

« first day (615 days earlier)      last day (4351 days later) »