« first day (1442 days earlier)      last day (3498 days later) » 

sbi
11:10 AM
@Sofffia I couldn't take it any longer when he said "A really experienced programmer might smell something fishy." (Even though I realize he got that right.)
Damn, 5 precious minutes of my life wasted fast forwarding through this bullshit.
 
Only 5?
 
sbi
Look again.
@StackedCrooked Actually there's just one explanation for this: I read your message, meant to reply to it, but then got caught up reading further, and finally gave the wrong answer to the wrong message. Sorry for that.
@Mysticial Why do you think I have so many kids? All UB, I tellya!
 
freddy, you are really in love with hating java ~_~
 
@sbi I rest my case. That video is very fun. I recommend watching at least half of it.
 
sbi
11:17 AM
@Sofffia I meant you should look again at my message! I wrote "...wasted fast forwarding through this bullshit".
 
@chmod711telkitty Garbage Collectors at work
 
perfect beak for it too! ... heaven made ...
always makes me wonder - why seagulls are always so clean, and ibises are always so dirty ...
you have graceful crane, you have joyful stork, then you have the dirty dirty ibis ...
 
sbi
The Internet of things! [source of pic unknown] http://t.co/eF1HEHdmWZ
 
sbi
11:24 AM
@chmod711telkitty Is this really dirt, though? Or are they of that color?
 
does it look like they are naturally that colour?
 
sbi
I dunno, really. That's why I asked.
 
my friend hates ibises, there were always a huge bunch of them in a large dumpster near her station ...
They are dirty, like the pigeons, except they have white feathers, so it shows ...
 
lol I wish cockroaches could be on social media too, so instead of "father of 3", it would be "father of 300"
p.s. I need to shut up, so people would stop getting hurt from the truth ...
but seriously though, if animals could spend only like 6 hours a day looking for food & have 7-8 children in their life time on average, why should human work 10 hours a day while only raise like ... 1-3 children in their life time? Are we dumb?
 
user1646075
11:40 AM
 
user1646075
@chmod711telkitty yes
 
user1804599
Why is Telkitty not on my plonk list?
 
sbi
@chmod711telkitty Basically, there's two strategies animals produce offspring: Either create myriads of little ones and hope some will survive while you're busy making even more of them or care a lot for them at the cost of not being able to produce that many. There's shades of gray in between, but basically cockroaches multiply at one end of the spectrum and we fuck at the other.
 
user1646075
@rightfold you have a secret crush?
 
` 53 gl::Shader *pDefaultShader = nullptr;
54 try {
55 gl::Shader defaultShader(shaderVSource, shaderFSource);
56 pDefaultShader = &defaultShader;
57 }catch( const std::exception &e) {
58 std::cerr << e.what() << std::endl;
59 return -1;
60 }`
 
user1646075
11:48 AM
@Bilal no no no no no.
 
user1804599
@aclarke On morons like Telkitty? Definitely not.
 
why the destructor is called on defaultShader after try catch block ?
 
sbi
@rightfold Sister in spirit?
@Bilal Because C++.
 
i want to initialize the object inside try{}catch{} block because it throws in exception in the constructor, is there a better way to do it?
and still need to use it after try catch.
 
Don't use it after try catch because that means it failed??????????????
idk why I'm replying must be sleepy still
 
user1804599
11:54 AM
If I answer "Yes" will you update the title to "Should anything happen?" — rightfold 3 mins ago
 
@CatPlusPlus i'm declaring the object inside the block , means it'll be destroyed when execution reaches the end of the block.
 
It won’t be destroyed because construction failed. There was never an object to begin with.
You can’t rescue a failed construction.
3
 
@LucDanton the point is that i want to instantiate the object inside try catch block to catch the exception (in case it fails) and keep using it after that block if there is no exception. but since i'm declaring the variable inside a block, it won't exist after in all cases.
 
That was perfectly clear the first time around.
 
12:02 PM
@Bilal no shit, perhaps you shouldn't try to catch the exception because clearly you CANNOT handle it
 
Did you know that things inside try don't get interrupted when there's no exception???
 
The question ‘can I use an object that throws an exception from one of its constructors?’ is wrong, because there is no object to speak of.
 
user1646075
 
sbi
@Bilal I looked at your profile on SO. You seem to have made most of your rep in the tag, but none in C++. IME this, in conjunction with your question, indicates that you might have a few misconceptions about C++. What book are you learning C++ from?
 
it works exactly the same way in java
 
12:06 PM
a game actually did this
toilet tycoon apparently
it shows up every time you click on something if you uncheck "Enjoyment" when you start the game
 
a++
not recommended
 
hahahaha
 
sbi
@CatPlusPlus Objects and references are muddle in Java. The assignment would have kept the object alive.
 
no (also this about scope)
 
got rid of the try catch block: github.com/Jermim/3D/blob/master/main.cpp#L53
 
12:18 PM
There's seriously a guy in the forum who reckons it's better to serialize the length of a string in binary, just like the string itself.
 
depends on the situation but it doesn't seem unreasonable to me.
 
What is 'serialise in binary'
 
user1804599
unenglish
 
unglish
 
sbi
Hey @puppy, and you have a job now?
 
12:31 PM
explains a tutorial and says "i don't know what that symbol is" youtube.com/watch?v=B6cjvf_z0QE&t=4m42s , just basically a straight line, lol.
 
@Bilal line 28 has a problem, is_open is notoriously unreliable, just try a getline on it... if it succeeds your file was open, if it fails it wasn't
 
Oh look, Excel got released on Steam store.steampowered.com/app/321410
 
lol
@CatPlusPlus why the hell is it so expensive though
they knew only several people will buy at and still tried to make profits?
 
@Mgetz i see.
 
@CatPlusPlus WOTYAY?
 
12:39 PM
A what now
 
@ScottW hai
 
> Craft The World is a unique sandbox strategy game, the mix of Dungeon Keeper, Terraria and Dwarf Fortress.
unique
 
Bourbon looks great. /cc @rightfold
 
user1804599
@Sofffia Eww, linear-gradient emits background-color.
 
Yes, it's a fallback.
 
12:42 PM
I always thought lightweight refers more to the software's footprint
 
It's just Scott being silly.
Yes.
 
@ScottW what's been going down?
 
:D
 
You know it took till yesterday to realize that Sofffia was Jefffrey
I thought it was Cicada in yet another disguise
 
@ScottW Tell him you're gonna put ketchup on pizza, works every time
@TonyTheLion No, Cicada went back to Cicada
 
12:44 PM
no, that's my secret weapon
 
I know Scott wouldn't do such a thing.
 
don't use it
otherwise it wouldn't be mine anymore
 
@CatPlusPlus Yea I noticed, also yesterday
 
@rightfold Also this book seems what every CSS cool kid talks about.
 
yea same here
 
12:45 PM
> WindForge is a side-scrolling block-building game where you explore hostile skies in an ever-changing Steampunk world
 
@sbi yep
 
sbi
@Puppy Congrats! How did that happen? Watcha doing?
 
watching TV
 
Hola pocahontases
oi you twats I said hi
 
did someone say something
 
12:56 PM
@ScottW no luck
:)
 
sbi
@Puppy Nah, you're writing code.
(What's so bad about that job that you don't want to talk about it?)
 
you assume that talking about it is the default here
 
sbi
Shrug.
I said what I'm doing.
 
that is your loss
 
sbi
Actually not. It got me one colleague here.
 
1:01 PM
then that's a double loss
 
sbi
Shrug.
Fine, keep it to you. I was surprised and think it would do you good to have a job.
But, of course, I won't beat you until you tell.
In fact, I won't even search the archives for it.
 
I don't believe it's in the archives.
 
sbi
So? I'll just shrug it off and go along.
 
chop chop
 
sbi
There's enough people here who are talkative enough to enjoy having around. A few of them I'll see on Tuesday.
 
1:04 PM
1.Why tagged c++. 2. Why are you writing stupid code — Ed Heal 4 mins ago
 
sbi
Bye!
 
This a reason for closing as offtopic. :D
 
Can you completely read a file that is larger than 4GiB on a system where std::streamsize has 32 bits?
 
wtf, my college's site accepted <real password here>\ as a valid password
and logged me in
 
1
A: C printf. Is this valid code?

Lightness Races in OrbitThere are two problems here. First is that your expression (int*)2+3 results in undefined behaviour, because [almost certainly] there is no valid array at 0x2 that expands out to 0x14: [C++11: 5.7/5]: When an expression that has integral type is added to or subtracted from a pointer, the res...

 
1:18 PM
-1
A: C printf. Is this valid code?

Le Dong ThucI think it's invalid code, because we pass a integer pointer (int *) to 2nd param of printf and define an integer format (%d) in 1st param. I don't have more knowledment in c but it's what i'm thinking.

> I don't have more knowledment in c but it's what i'm thinking.
 
> Hehehehehehehehehehehe Hahahahahahahahahahaha
dat bio
 
Oh good and now the OP's accepted this wrong and misleading answer. You've succeeded in spreading more misinformation and dangerous anti-knowledge to yet another programmer. I hope you're please with yourself, @haccks.Lightness Races in Orbit 21 secs ago
pleased*
 
snack overflow
 
I hear the sound of a butthurt fly.
 
Sure if you call giving a flying fuck about the spreading of misinformation "butthurt"
I'm not sure why you would
But I get that you're manically obsessed with butts, so..
 
1:25 PM
no that's me
 
Why is this stupid code? Stop standardizing everything and sucking the spirit of hacking out of everything. — Naximus 13 secs ago
 
DEALING WITH BUGS IS SO MUCH FUN
 
> stop standardizing everything
wat
 
I LOVE DOING THAT
 
oh shit it's a C question
 
1:31 PM
get rekt
 
@LightnessRacesinOrbit it wasn't originally, someone removed the C++ tag
 
@Mgetz oh
well the OP did say "c code" and "gcc" so
 
Please use good and easy to understand statements as a close reason if you vote so that there's little chance for misunderstanding. "Yes there is an algorithm to do this - that is the point of homework" is not such a thing, as it's three corners around of what you wanted to say. "This question is a homework question that asks for the entire solution" is a better statement. — Johannes Schaub - litb 5 mins ago
please +1 if you feel the same
 
make all close reasons different pictures of cats
 
-1
Q: Thread exits, or isn't called? Exit code 0 (0x0)

user1591117I have an issue with a thread ending? It's apparently a normal exit: The thread 0x160 has exited with code 0 (0x0). '*.exe' (Win32): Unloaded 'E:\Backups\*\*\Debug\Client.dll' '*.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\msvcp120d.dll' '*.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\msvcr12...

you'd think by now people would learn that DLLmain is not a place to put anything...
 
1:40 PM
@CatPlusPlus that's totally racist! dogs are no lessers to the cats!
 
can dogs take over the world??? no, check mate, qed
 
inb4 puppy being animalisexist
 
specist?
 
I am late to the party however where in the OPs code does the pointer ever get evaluated? I see a cast and array arithmetic but the pointer itself is never evaluated. — Michael Petch 7 mins ago
Why is this upvoted?! What is wrong with people.
 
1:50 PM
I love seeing you butthurt.
 
lol
it's my upvote
 
Yes, I just posted that.
@JohannesSchaub-litb Why??
 
ok
was worried you'd gone full retard
 
@LightnessRacesinOrbit look at the red upvote arrow
 
1:52 PM
I again completely understand that, however I have made a similar DllMain creating one thread before. I did this again in order to test memory addresses which provves although dangerous and stupid which I completely understand and already knew. It is possible, for a program thats just for testing purposes. Anyhow... forget it I'll just test the memory one by one in the DLL Main itself -.- — user1591117 50 secs ago
 
lol he plonked me
 
@LightnessRacesinOrbit have you ignored @Sofffia?
 
no don't
oh
 
just wondering lol
 
1:54 PM
why did you think that?
and why would I plonk Sofffia fffffs?
 
lol
 
Sofffia is the light of my lifffe
 
he did
 
@Sofffia did what?
 
you did it
you were successful
 
1:54 PM
@Sofffia what
 
i meant that
 
this has become uncomfortable for me
 
It's uncomfortable only if you make it uncomfortable.
I sound like a rapist.
 
Amazing level of derp and/or troll from our good friend Sofffia
 
2:07 PM
Former.
@Sofffia; Because I do not want to link someone's my answer who really do not have manners how to talk. — haccks 12 secs ago
lol
 
No, but I could.
 
user1804599
Yay, my generic FSM works! ideone.com/UtECc9
 
@ScottW i think that's a quote from a movie, but I can't search so...
it probably was just a dejavu
holy christ i love potatoes
you brown some onions, you put potatoes in it and voilà...
 
2:23 PM
@JohannesSchaub-litb /agree with the close reason statement
 
2:37 PM
@Sofffia no, courier new
 
2:47 PM
I don't know what to do today... and it's almost 4pm.
 
@LightnessRacesinOrbit make something random yet awesome.
I got bored, so I'm remaking minesweeper, because why not
 
I'd like to be not on my own at home, if possible
 
Invite someone over then, play games and be awesome
alone time is good for focussing IMO
 
Yeah but I'm alone most of the week (WFH weds->fri)
 
Fair enough. Throw a party!
Much pizza will be consumed.
 
2:50 PM
don't like people at my place!
 
Annoy someone else until they throw a party xD
(not me)
 
or they stop talking to you
 
Or that
 
and then call the police
 
That too
They could also get a shotgun and chase you around the world trying to kill you.
 
2:52 PM
lightness races in jail
3
 
we're in eu not us
 
Less rednecks.
I'm sure they'd travel if they were really pissed off though.
 
@OMGtechy You might be a redneck if: you use "less" when you meant "fewer".
 
What's wrong with less?
 
@OMGtechy Nothing really wrong with "less", just the wrong word for the situation.
 
3:01 PM
It doesn't have a watch functionality, for starter.
Also just use SASS.
 
The meaning conveyed remains the same, meh.
 
its like the various flavours of "its"
they all sound the same so going with different spellings in various situations seems pointless
 
@Puppy It may seem pointless, but can change the meaning of what's written.
 
Na, its and it's have considerably different meanings.
 
@OMGtechy I hope you learned your lesson.
 
3:04 PM
I have yet to encounter any situation in which any vaguely competent English speaker could not automatically infer the correct meaning.
 
Also I left a bag of soil indoors and now I have loads of house flies
 
True.
 
principally because speaking the language requires that you have that ability.
 
hopefully putting the soil in the shed like i should have done in the first place will fix the problem
 
3:05 PM
Bug fixed.
 
user1804599
@OMGtechy It thinks classes are mixins.
 
@Puppy By 18 months (or so) children can usually make themselves understood with a combination of gestures and grunts, but that hardly qualifies gestures and grunts as correct English (by any definition of "correct").
 
yes, but what makes that system inferior to English has nothing to do with it not being correct English.
 
3:23 PM
Problem solved.
 
By 18 years, (or so), West Ham fans can usually make themselves understood with a combination of gestures and grunts.
 
welp
Daisy doin the Hungry Dance
 
@thecoshman I see you are upping the ante.
She's from Hungary.
 
3:41 PM
Why do you keep going on about dereferences? This has nothing to do with dereferences. Nothing. I don't care how much you "do pointer arithmetic" - look at the quote from the standard. Just look at it. Your. Pointer. Arithmetic. Has. Undefined. Behaviour. I don't know how to make this any clearer for you. — Lightness Races in Orbit 27 secs ago
 
Xeo
Great success. New Nvidia driver killed the HDMI port on my graphics card :o
Wouldn't detect my TV anymore.
 
@LightnessRacesinOrbit that question still going on?
 
@AlexM. oh yes
because some numpties can't read
 
@Xeo No display -> "enhanced security."
 
coliru y u slow
 
3:50 PM
> If both the pointer operand and the result point to elements of the same array object, or one past the last element of the array object, the evaluation shall not produce an overflow; otherwise, the behavior is undefined.
What does it means "evaluation"? Dereference? Read on the pointer value?
That's what confuses people.
Understand that and go tell them.
 
no u
i can't take his derp any more
 
It means evaluation
 
Thanks Cat.
Also nothing.
 
user1804599
4:13 PM
 
@rightfold Ah, 'tis cursed I am. Cursed I tell ye! Let me tell you the sad tale of my life as a Singleton. I was a Phoenix, regenerating every time I died, then the whole world turned against me, having found the pact I made with the devil to obtain my immortality. When they started to call me "Voldemort", I knew I would have to go into hiding, so here I am...
 
"Singletons are always the wrong choice." - Jack Singleton
8
 
Low quality starboard today
4
 
lol, people are arguing with LRiO about dereferences again. They don't learn.
 
@milleniumbug Nor does he.
 
4:35 PM
@JerryCoffin He appears to have leanred to type.
 
@AlexM. lol
 
user1804599
4:56 PM
PartialFunction is really nice.
 
user1804599
I got an email from "The Phantom Derpstorm."
 
user1804599
ITT Spotify is extremely bad at URLs.
 
user1804599
The URL does not tell me what the page is about, other than that it is about some track.
 
5:06 PM
URLs are not supposed to tell you what a page is about.
URLs uniquely locate a resource. At that, this URL does a pretty fantastic job.
 
user1804599
By that logic, code does not have to give any clues to humans either, as long as the computer can execute it.
 
What the fuck man?
That's the most staggeringly obvious strawman argument I've seen in this room for quite some time.
 
TIL: If you plug a UPS into Win7, it uses the laptop charge icon to indicate how much power is left in the UPS.
That's pretty cool.
 
I've never used a message queue in past. Now I need one. which mq would give me best C++ support ?
 
Xeo
Man, Sabagebu is a great anime.
 
5:21 PM
@Mysticial Nice
 
user1804599
@NeelBasu ØMQ is quite advanced and has a fairly decent C++ API. I don't know your exact needs. Maybe tbb::concurrent_bounded_queue is what you need.
 
I could do with a UPS. Then again, I never get power cuts and I don't run any servers here. Hmm.
But I want one! ;p
 
@rightfold well I've a distributed app that should be scaled dynamically under a PaaS environment. The job is to apply some statistical operation on splitted parts of documents. Now I planned to use a task queue posting tasks along with reference to splitted document parts. Is that a good case for using an MQ ?
 
@NeelBasu I have also heard good things about ØMQ, although I have never used it myself. Once again it depends on your use case.
 
@OMGtechy Yes I've stated my case. and I don't know whether thats a good case for using an MQ or not
 
user1804599
5:26 PM
@NeelBasu ØMQ supports fans and funnels.
 
user1804599
So you can split the document, process the parts in a load balanced manner and then aggregate them again, like this:
 
user1804599
 
user1804599
Is that what you want?
 
so task-based but with a dumb name?
 
user1804599
I have no idea how they call them. Apparently ventilators and sinks.
 
5:28 PM
@rightfold yes similar to the diagram I was thinking abaout
@Puppy dumb name means ?
 
user1804599
@NeelBasu Message queues are fine for that.
 
"fans and funnels" instead
 
user1804599
Those were the first words I could come up with.
 
what is zeromq license ?
 
5:31 PM
@rightfold did you make that?
 
user1804599
With ØMQ you can add more workers at runtime and have them connect to the ventilator and to the sink and it would automatically adapt the load balancing. The code looks like this, this and this.
 
user1804599
@StackedCrooked No, I took it from here: zguide.zeromq.org/page:all
 
I wonder if the person was dutch because of the word "ventilator".
 
user1804599
The author is Belgian IIRC.
 
Aha.
That explains
He probably meant "fan".
 
user1804599
5:33 PM
Als je vroeg naar de bioscoop gaat, ben je eerder dan de vent die later komt.
 
Does ZeroMQ have an web interface like RabbitMQ ?
 
user1804599
No, it doesn't use a broker.
 
@rightfold hoho
 
user1804599
@StackedCrooked I'm a huge metal fan.
 
5:48 PM
@rightfold You're telling me that you've never heard of task-based parallelism before?
 
user1804599
I probably have, but not of that exact name for it.
 
it's future<T>::then() style.
 
user1804599
Yes, I have used that and I know how it works.
 
well, that's the same thing as the thing above.
 
@Puppy he's pretty knowledgeable on stuff like this
 
user1804599
5:55 PM
In a distributed environment you probably want to implement this with message queues.
 
user1804599
But with enough levels of abstraction, you can take over the world indeed use futures for this.
 
I'm so broke
 
Should get that fixed soon, right?
 
yeah, it's living in the meantime that bothers me
 

« first day (1442 days earlier)      last day (3498 days later) »