« first day (1279 days earlier)      last day (3669 days later) » 

9:04 PM
11
Q: Is it undefined behaviour to allocate overlarge stack structures?

nneonneoThis is a C specification question. We all know this is legal C and should work fine on any platform: /* Stupid way to count the length of a number */ int count_len(int val) { char buf[256]; return sprintf(buf, "%d", val); } But this is almost guaranteed to crash: /* Stupid way to co...

 
drugs! puppy loves drugs.
 
do you bin when you feel like this?
 
of course
 
Can I ask a question in this lounge without getting negged into oblivion?
 
no.
 
9:16 PM
It's easy I promise
 
then definitely no.
if it was hard it might interest me for an entire second
 
if it's easy it should be on google
 
user1804599
> ImageMagick is like a cockroach; it will never die.
 
user1804599
lol
 
Your negativity spurred me onto the second page of Google where I found an old post explaining why the error was thrown, thanks for the help :)
3
 
9:27 PM
Cheers!
 
and they say telling people to piss off isn't helpful
 
It wasn't. Now you've set a precedent. People will come flocking into this room looking for the negativity they need in order to actually google their questions...
 
aw shit.
 
It's all your fault.
 
On the bright side, there's plenty to go around
 
9:31 PM
maybe we can create another room where I shout at people trying to get answers?
5
 
xD
Go right ahead!
 
naw
I'm too busy getting drugged up
 
@DeadMG THE ANSWER OF THE UNIVERSE, LIFE AND EVERYTHING
@DeadMG TELL ME
 
tell yourself
 
@nightcracker So cliché.
 
9:34 PM
In other news. I'm pretty well-pleased with the fact that my - largely unoptimized - JSON parser written in C++11 with Boost Spirit is almost exactly as fast as the "best choice" jsoncpp from this recent benchmark
 
move semantics probably gives you the free advantage there.
huh, or maybe not- checking the benchmark it was G++ 4.8
 
What depresses me, OTOH, is the fact simply parsing 25MiB of unformatted JSON 10x needs to take ~10s with both. I'm completely dissatisfied with that myself.
@DeadMG I obviously compiled both with identical flags on my own system
 
why would you use boost spirit, or any parsing library for something as simple as json?
 
@nightcracker Because I like it.
 
@nightcracker Because I have better things to do than to reinvent the wheel.
 
9:37 PM
@BenjaminGruenbaum Yea, I watched it too. Wasn't bad at all, and a tad funny.
 
beca
use
I took some drugs and I liked it
 
@EtiennedeMartel err
 
@DeadMG dat attention span :P
 
well, you know
 
@EtiennedeMartel if you're writing a JSON parsing library, you already are reimplementing the wheel, so that's a void argument
 
9:38 PM
other people say "hard", I say "I formulated a consistent theory of quantum gravity before you even defined the problem".
 
@nightcracker How so? I didn't know of a JSON parsing library that I could adapt to automatically serialize my domain classes (which is what I'm doing).
 
and the puppy isn't being pompous at all
 
@sehe what are domain classes?
 
Jul 28 '11 at 12:02, by DeadMG
@TonyTheTiger I am pompous and I enjoy a good pomping
 
Also, my JSON parses into a c++11 AST tree with recursive boost::variant so it's exceedingly easy to visit the trees
 
user1804599
9:39 PM
Pompeii.
 
@nightcracker ... Never mind
 
@EtiennedeMartel Jee-whizz you remembered that.
 
PTSD trigger
 
rofl
 
user1804599
You JSON of a bitch!
 
9:40 PM
Jul 28 '11 at 12:00, by DeadMG
@Potatoswatter I am most assuredly a genius, and I expect to be addressed as Mr Genius Sir
 
@TonyTheLion I just searched for the word "pompous".
 
@EtiennedeMartel oh I see
 
user1804599
Jij zoon van een teef.
Fred Teeven.
 
lol
I should watch a movie tonight
 
sorry, my autobiography isn't ready yet.
 
9:43 PM
hahahah
DeadMG's biography: My stomach hurts
 
@nightcracker just a sample: I like my code to be expressive and powerful like this:
5
A: replace only some value from json to json

seheBecause you hadn't specified the language tag, I went ahead and implemented it in c++. Here's the main program: int main() { auto jsonA = JSON::parse("{ \"a\":\"1\", \"b\":\"2\", \"c\":{\"a\":\"1\", \"b\":\"2\"} }"); auto jsonB = JSON::parse("{ \"b\":42, \"c\":{\"a\":\"1new\"}, \"q\":[3...

 
@TonyTheLion It unhurts now.
 
And if it happens to match the performance of libjsoncpp - well, that's nice to know
 
I shivered.
 
You should have farted while you were at it.
@DeadMG You don't like it? :)
 
9:51 PM
it made me feel cold.
well, I felt cold beforehand, therefore I shivered.
 
Jul 10 '13 at 14:49, by Aboutblank
Your all pompus rectum pirates
Fucking found it.
Was hard to find because of the typo on "pompous".
 
> "pompus"
annoyin'
 
@Xeo I agree.
 
right
time to uninstall my games.
spending too much time playing games.
 
@ehijon just pass it through emscripten then, job done! — je4d Jul 18 '13 at 0:11
lol, awesome.
 
10:06 PM
Yeah. It's funny because it turned out to be a question, after I posted my answer for the fun of exercising my then-new toy parser
 
It's a good troll, but honestly after today's trolls it's just good
ParentingSE has the best trolls
I mean, it's hard to compete with 12 year old pants too tight problem
Of course, this guy does it:
2
A: Just found out my 13 year old girl is Bi and dating a 17 year old girl in an "open" relationship. Huh? Now what?

Matt Moran17 is way too old for a 13 year old to be dating, and 13 is far to young for a 17 year old - the rule of thumb is: min_age = (your_age / 2) + 7 where your_age > min_age so for a 17yo that's 8.5 + 7 = 15.5. Reversing the formula for a 13yo gives a smaller result (<13), so max_age for 13 is 13....

 
lol
 
Xeo
> Oh, the pain of first heartbreak! Bless you for being there for your daughter through all of this
... and for being a major reason for the heartbreak!
 
perhaps having to come to parenting.se for help is a clear indicator you're not really a good parent
or at least not ready yet to take your child through childhood
 
then again, how are you supposed to anticipate your 13 year old daughter messing around with 17 year old girls (and vice versa)?
I don't read anything the parent did "wrong" in the question
 
Xeo
10:17 PM
@nightcracker Except basically crashing her daily life, from what I can see
 
4
Q: How to handle 10 year old boy who has fallen in love?

gowriMy Nephew is doing 5th standard schooling and is a 10 year old boy. He is normally doesn't do too much, mostly playing video games and watching movies. He's education progress is also good. Yesterday, I heard about his embarrassing behavior from my sister and she really worried about it. When I...

what the hell
> How to explain this is not love!?
 
Xeo
> and let them know you have their back." You're doing all these things. (So give yourself a bit of a hug.)
wat
taking her out of acting lessons is 'having their back'?
 
@Xeo what do you mean with crashing her daily life?
 
@Xeo kinda marks the site for me
 
10:18 PM
@sehe Ahhahaha
 
Xeo
> Well, I met with the 17yo, (who insisted they were friends) explained they were not allowed to see each other anymore, and thank goodness the 17yo obliged. I don't think she realized the level of the relationship my daughter was thinking. We also told her we were pulling her out of the class she is teaching for Performing Arts that our daughter just started.
well
 
Could have just called it
 
IN THIS HOUSE WE OBEY THE LAWS OF THERMODYNAMICS DO NOT FALL IN LOVE
 
@Xeo yes?
 
@Xeo Wait. She was the teacher? That's a bit not-done right there, then
 
10:21 PM
@Xeo you can't possibly expect a responsible parent to forbid a relationship and at the same time allow you to follow classes where you're constantly around, even friggin' kissing with the one you shouldn't be seeing
 
7
Q: My 13 year old is sexting need advice

Dori Colosimo NadeauToday I went through my daughters kik account just to make sure she wasn’t getting creepers and from what I have seen in the past she is very behaved on there i.e. shutting down offers for sexting . until today I found a very long and graphic convo between herself and a girl. Now I know if this w...

> until today I found a very long and graphic convo between herself and a girl. Now I know if this were with a guy she would be in huge trouble right now, but I am confused as to how to handle this in the event that if she is gay I don’t want her to be ashamed or embarrassed about it and maybe she just isn’t ready to talk about it . eekkkk I’m so confused as to how to handle this one.
 
Xeo
> Now I know if this were with a guy she would be in huge trouble right now
Whoo!
 
I don't want to have kids
 
Xeo
Some parents' way of doing things scares me
 
I don't even want to give myself the chance to be the kind of idiot that asks these questions
 
10:26 PM
I don't want kids because I'd not like to throw away 16 years of my life while I'm in my prime-time and basically throw away any disposable income
 
What a childish way of looking at it.
In fact, what a horrible way of looking at it.
 
@Rapptz how?
 
You're "throwing away" your life to have a kid?
 
@Xeo apparently gay kids are priviliged
 
@Rapptz well, yes, having kids takes a lot of time, no?
 
10:28 PM
you can give them away for adoption
 
Is your life's purpose automatically gone to shit because you have kids? Is suddenly life a drag and thrown away simply because you have a kid?
 
not if you give them to your wife to raise them 24/24!
toddlers are a pain to take care of
 
@Rapptz lol, no? but a kid means for 16+ years your entire life is determined by the kid, and reduces your free time to a minimal amount
 
Hm, my brother and sister both have kids. I wouldn't want to trade my life with theirs. (Not saying they are "throwing away" their lives though.)
 
maybe "throwing away" isn't the best term for it
 
10:30 PM
they're a huge responsibility
 
but it's just a time and money investment I'm not willing to make just for the sake of having a kid
 
for someone who doesn't necessarily WANT kids, having one kills a lot of the time they could have used for other enjoyable activities
 
hmm PAM is written in c++ right? anyone know anything about pam_exec.so
 
Xeo
Having had a really young brother (18 years younger), I kinda know what it feels like to have a kid. And damn it can be exhausting. But it can be a lot of fun as well.
 
I feel no need to reproduce, not from a religious stance or a logical stance (there's plenty of people around already)
and if I want something to love I'll get a fucking cat
@CatPlusPlus you'll always remain my one true love, baby
 
10:31 PM
or a cactus, like I do
my pet cactus survives with very little care
we're bffs <3
 
@AlexM. had to look up that acronym :)
 
@StackedCrooked big fat fappers
 
Xeo
@nightcracker That reminds me, I want a cat
 
@AlexM. btw
> my pet cactus
 
10:33 PM
@Xeo so do I :( but it's not allowed in my current appartment
 
Xeo
I need to finish up my flat first
 
cactus is not a pet lol
 
Cactus is life
3
 
it is to me, as long as something is alive it can become my pet
 
i have many unwanted pets then
 
10:34 PM
hehe
 
Hail cactus!
 
but yeah nobody wants to acknowledge my cactus as a pet :(
 
but just wait and see, it will soon evolve into a cactuar
 
10:35 PM
ACKNOWLEDGE OUR LORD!
@AlexM. do you pet your cactus?
 
2
Q: Impose a re-entry delay on users kicked out of a chat room

Robert HarveyCurrently, moderators can kick users out of a room. I've done this to two users now, and they just come right back into the room. I conclude that it's not effective for its presumed purpose (slowing down trolls or other troublemakers, on a room-specific basis). I propose that a delay be impose...

 
@Rooster pretty sure it'll be C. Anyways, pkg=$(dpkg --search pam_exec.so|cut -d: -f1); sudo apt-get build-dep $pkg && apt-get source --compile $pkg
 
@RobertHarvey It's a chat feature request. We stopped wasting our time with those a long time ago.
 
ahh, @sehe thanks
 
Maybe I have a little more credibility. :P
 
10:39 PM
@RobertHarvey In JS we just deal with that with mute. The lounge is so mean to new users no one trolls here long enough.
inb4 "we're nice"
 
heheh
 
Wtf is going on in here!!? Popular tech culture suggests that no one writes anything in this frikkin' language!...
 
@nightcracker nah see that's the best part, it doesn't even require petting
it just sits there
 
confused with javascript?
or PHP?
 
@Charlie Stop language war shitposting
It's against God's will.
 
10:50 PM
Stop religion shitposting. It's not Turing Complete.
 
Xeo
damn copy fail
 
Hehe. Replacing std::string with boost::fly_weight<std::string> in my JSON parser JustWorked(TM) at a perf overhead of 10% but a memory savings of about 30MiB in string allocations. (The perf overhead is probably due to locking which can be avoided).
 
Anyone mind me asking a serious question?...
 

« first day (1279 days earlier)      last day (3669 days later) »