« first day (1525 days earlier)      last day (3406 days later) » 

3:00 PM
Nah. My palms are still tangible.
 
It's one of the things I do often to detect when I am dreaming.
 
I try to pierce my left palm with my right index finger.
 
@R.MartinhoFernandes How would I know about Hannah?
 
3:01 PM
If it works, it's a dream.
 
have a lot of lucid dreams do you
 
I'm your subconscious.
 
@Jefffrey lol, I have never met anyone by that name.
 
universe is an egg anyway
 
3:01 PM
shit
anyone in here? ^
 
less nice try
 
don't tell me "Sophie" would have worked?
 
I do know a Sophie.
 
fuck
 
One of my flatmates's daughter is Emma.
 
3:03 PM
daughters*
 
That's it.
@LightnessRacesinOrbit :P
 
that was a helpful hint to a foreigner btw not a criticism
the construction is awkward
or, at least, it can be
 
I was tempted to go with Sophie, but then I remembered that I named myself sophie once and you didn't exactly react or anything, so I guess you didn't know anyone with that name.
 
> One of my flatmate's daughters is Emma.
 
@LightnessRacesinOrbit It would have changed the meaning, though. Not that I'm happy with it as is.
 
3:04 PM
What's the meaning then
oh, the daughter of one of your flat mates (who only has one)
 
I have many flatmates. One of them has one daughter.
 
yeah you can't do that in that construction
 
ITT basic logic & reading comprehension
 
@Jefffrey Actually, I think she's Sophia, but everyone calls her Sophie.
 
Is there a way in Markdown to toggle on/off the display of some paragraphs ?
 
3:08 PM
no
you simply don't parse markdown for those paragraphs
or you escape markdown characters
 
@Rerito Like... comments?
 
@Rerito Like on mouseover? >! text
 
like `
\>
 
wow you didn't underspecify this question at all
 
please, can you be more vague
this isn't funny enough, too easy to understand
 
3:09 PM
Okay, wall of text coming
Say I have a quite large block of text. I want the readers to be able to hide/show this block of text at will to make reading my answer less painful
 
@R.MartinhoFernandes "One of may flatmates has a daughter named Emma."
Oh, and hi everybody.
 
stackoverflow.com/questions/27564254/… It's this particular answer, where I'ld like to make the first part (the basic recursion stuff) a whole spoiler
 
Btw, do you know what's more annoying than people that say "one dice"?
I've met some Germans that say "so, you dice one dice" to mean "so, you roll one die".
 
don't roll death
 
@R.MartinhoFernandes "Die, n. The singular of 'dice.' We seldom hear the word because there is a prohibitory proverb, 'Never say die.'" (Ambrose Bierce).
 
3:17 PM
@LightnessRacesinOrbit You weren't, you were drunk, right? :)
 
@VáclavZeman right :(
 
In German "würfeln" is the verb for rolling dice, and "Würfeln" the noun for dice. So they think "dice" is also the verb in English. Confusingly, "würfeln" can also mean "to dice", as in, to cut into small cubes.
 
Xeo
@R.MartinhoFernandes "Würfel" only
 
@Xeo What's the plural?
 
Xeo
Würfel
 
3:20 PM
Oh.
 
user1804599
Waffle
 
Xeo
der Würfel, die Würfel
 
so this project I spent all this time on, broke after MS decided to change their API and stop supporting one function and replace it with a completely different one :(
 
user1804599
> API interface
 
Xeo
@TonyTheLion Great, you only have to change one function!
 
3:23 PM
I wish
 
user1804599
Replace the original function.
 
that function is used in another library I use
 
user1804599
And apply some linker magic.
 
Its a COM function used in a .NET library :(
 
user1804599
So make a wrapping DLL that supplies the function.
 
3:24 PM
hmmm
 
@TonyTheLion You used .net -> it's your own fault.
 
oh man
I use C# because C++ is too painful
 
well
in my current project, I spin up two VMs, run the tools in each VM, and get two different outputs.
even though there's no Internet connection or anything involved.
 
kill one VM, have one output - problem solved :P
 
@Puppy headaches incoming
 
user1804599
3:28 PM
@TonyTheLion Or if you have control over the .NET library just change the library.
 
@TonyTheLion You're frightening me here
 
well it seems that restoring the VM from snapshot, running, then restoring and running again do in fact produce the same output.
 
@TonyTheLion But as you're finding, C# and .NET don't actually reduce the pain--they just change its form.
 
@Puppy Hehe, magic!
 
third time's the charm but this time I am also nuking the CPU from another VM.
 
3:34 PM
@JerryCoffin I suppose. You may have a good point.
@rightføld Its this function here, which looks like they've replaced with a JavaScript one? I'm not actually sure I get it?
 
user1804599
That's DOM, not COM. :p
 
user1804599
Yay Treasure Hunter hat!
 
@rightføld Woah
 
Is it appropriate to discuss C++/CLi in this chat room?
Or is that beast too different
 
user1804599
 
user1804599
It will answer all your questions about Lounge<C++>!
 
user1804599
I love my new hat.
 
I need to sleep
 
user1804599
Go sleep.
 
Can't
 
user1804599
3:46 PM
Go not sleep.
 
Places where I need to be, stuff needs doing
I'm feeling a little bit depressed too
 
I think I found a bad link.. When I go to "Newbie Hints" (loungecpp.net/the-law/newbie-hints.html) - and click the common acronyms link (loungecpp.net/the-law/Commonly%20used%20acronyms) the page it brings me too has all its links broken. I found a work-around.. Just thought I'd make this public
 
user1804599
@Jefffrey Go to an expert on the subject.
 
Costs too much
 
user1804599
@mdw7326 that's because @CatPlusPlus is a lazy butt
 
3:48 PM
'murica
 
@rightføld *butte
 
Just this person's butt is lazy? Or is the lazy evenly distributed to the entire body?
9
@rightføld
 
I think I like him.
I vote to keep him
 
who me?
 
as long as he can fetch
 
user1804599
3:50 PM
@mdw7326 Same thing.
 
Unfortunately I need to take a shower. BRB.
 
user1804599
Before showering: unfortunately I need to take a shower.
While showering: unfortunately I need to leave the shower.
4
 
@rightføld they should get that checked out
 
user1804599
You could always ask, Are you a good driver? Yes/No -- then you can infer the gender from there — DaveAlger 3 hours ago
 
Xeo
aaaaa I wanna go home
 
user1804599
 
@rightføld deleted
 
4:24 PM
@mdw7326 Distributed throughout the entire body, but somewhat unevenly--the "get drunk" parts aren't as lazy as the rest.
2
Oh wait. We were talking about Cat, not me. Oh well, still works I guess.
 
People need to stop obsessing over this stuff. The only person who's assuming that "Male" being furthest to the left means "Male" is somehow "preferred" is you! Might want to have a think about your privilege ;) — Lightness Races in Orbit 5 secs ago
 
@LightnessRacesinOrbit For once I agree with you here.
 
Hmpf.
Has anybody tried to get this working?
 
no
 
OK, the GUI installer works better. The console one refuses to accept option (2), evaluation without registration/serial number.
 
4:47 PM
@JerryCoffin its ambiguous enough to be used for any of us
 
@rightføld lol
 
OKses, I shoppses and got 8 cans of Directors for £10. Beer stocks now nominal.
 
@MartinJames Acknowledged.
@MartinJames Has the alcohol level in sector B (rain) increased?
 
@orlp Rising intoxication levels can be expected everywhere, with heavy concentrations in the Lounge.
 
@MartinJames I read you, code M-J-008. What's the current state of intel on the moment of peak intoxication in this "Lounge"?
 
4:55 PM
@Xeo lol, suckers at work :P
 
I'm leaving work in 35 minutes
 
Is there anything better than Pizza on a Friday night?
 
fish and chips
 
hmm, unlike std::vector in stuff like push_back I have to move elements into initialized memory
 
Indian curry
 
4:56 PM
hmmm
 
should I just require the appropriate Concept for move assignment, or should I do destruct -> move to uninitialized memory?
 
@TonyTheLion Boobs.
 
Hard to beat.
 
5:12 PM
@orlp Use move assignment.
the user can implement it in terms of the move constructor anyway if they want to.
 
@Puppy Ok, I guess I'll add in the docs that push_back now also requires move assignment in addition to what std::vector requires
(std::vector doesn't require move assignment for push_back, because it only ever moves to uninitialized memory)
 
why do you also want move assignment?
 
@Puppy because I might be moving overlapping ranges
 
how can that ever occur
 
@Puppy for example when you use devector like a FIFO
all free space at one end gets consumed, and ends up at the other end
 
5:14 PM
right, but so what?
 
at some point you'll have to move the entire array within your allocated space
 
just go the circular buffer route.
and then when full, reallocate into a bigger buffer.
 
that's NOT what devector is
devector is contiguous
 
then reallocate into a bigger buffer when one end is full.
 
why reallocate if I already have the needed memory?
 
5:15 PM
you're paying O(N) moves anyway
 
> then reallocate into a bigger buffer when one end is full.
 
and if you don't reallocate, you're just going to have to reallocate shortly anyway- exponential reallocation is used for a reason.
 
that would be infinite memory with FIFO usage
 
yep.
anyone using such a construct like a FIFO should get a ring buffer or deque instead.
it's not the container author's problem to protect his user from using the container in a tremendously stupid way
 
my system has a bound of 5n/3 memory usage in the FIFO case
 
5:17 PM
(also, the previous buffer would be freed, so it's not infinite memory)
@orlp It's irrelevant, because you're talking about a use case which already has existing superior solutions.
nobody expects to treat a contiguous buffer like a FIFO and if they do, they deserve the consequences.
 
@rightføld No, that's because you are all lazy butts
 
@Puppy basically, whenever one end runs out of memory the allocation strategy takes half of the free space of the other end, giving you finite memory usage in relation to size() no matter what usage pattern
 
that's not really useful when I needed that space at the other end because I frequently insert at both ends.
which is the only reason to use this container.
 
@Puppy inserting at an end is way different than having to reallocate at an end
reallocating happens an amortized constant amount of times
 
only by the amount of free space you have.
 
5:22 PM
 
even if you'd perfectly switch between the two sides, 2*O(1) == O(1)
 
if you're taking half my free space then you're forcing reallocation in half as many inserts.
that is irrelevant.
 
2*O(1) is still way better than forcing reallocation for every insert at the beginning, which is O(n)
 
but way worse than just leaving me the original free space I kept and moving the whole thing around just to avoid giving me the capacity I clearly need to support a use case that nobody will want.
 
@Puppy if you are really worried about this you can always reserve(front, back) with whatever your expected usage is
 
5:24 PM
no, I can't, since you're going to take some of the memory I reserve since you're taking half the free space off one side.
 
@Puppy only if you run out of space at one end
@Puppy which means your initial reservation was bad
I only take memory if one end runs out, if your reservation was correct it never runs out
 
5:40 PM
take me to church
I'll worship like a dog
 
@Puppy We've just had cod, chips & mushy peas:)
 
at the shrine of your lies
 
@VáclavZeman once. long ago
 
good god let me give you my life
 
@Jefffrey I'll meet that and raise you two intermittent, network system protocol bugs.
 
5:44 PM
@LightnessRacesinOrbit puhahahaha
 
@MartinJames probably #define true (rand() % 2 == 0) shenanigans
 
@Jefffrey Now you come to mention it, I'll grep that :)
 
;)
 
anybody here have any experience with using boost::bind on templated function signatures with varying numbers of parameters?
 
'Firefox cannot establish a connection to the server at www.anythingYouLikeIt'sFucked'
My webs are total shit tonite.
 
5:55 PM
> Iowa Wants Smartphone App to Replace Driver's Licenses spectrum.ieee.org/tech-talk/computing/software/…
this can go wrong in plenty of ways
 
@AlexM. Dublin Wants Smartphone App to Replace Cars
Homework dump of the year, (10K+ only):
http://stackoverflow.com/questions/27570189/how-i-solve-c-program-homework-with-delivering-postal-package
 
pic anyone?
I'm curious :(
 
Noooes! The lounge is no longer a Zoo. :(
 
6:10 PM
@Nican It's been downgraded to a petting farm.
 
user1804599
Yes, OP got Markdown bullets wrong.
 
lol
 
user1804599
I.e. copied from Word.
 
6:31 PM
I forgot the fucking coke
AGAIN
I went to the damn fridge and said "I'll get a beer and coke"
I got the beer
BUT NO COKE
MY BRAIN IS STUPID
now I need to go out again
 
Oh shit.
This cut was really deep.
And this is why I hate cooking.
 
Bartosz Milewski looks a lot like Weird Al.
 
@R.MartinhoFernandes Just for the record: blood soup doesn't have to contain your blood.
@StackedCrooked I've noticed that too.
 
6:53 PM
That guy looks like Bartosz Milewski
 
I got coke
coke is like pizza
good
 
-5
Q: write java program by use method

عآآصفة الذكريآآت(Creating a simple calculator) By using method write java program to perform add, subtract, multiply, divide and power operation for two numbers. Your main program must show menu as below, when the user select any operation (+, -, *, /, p, e) your program has to call value returning method to per...

Well.
 
all these *deep guys
should really be renamed to *shallow
Prashallow
Sanshallow
we had a Sanshallow dump code in the lounge today
 
user1804599
@AlexM. coke pizza
 
that sounds quite unpleasant lol
time to play CS, drink lots of coke and beer
and celebrate
starting today it's two weeks of silence
and sitting around with my family
 
7:17 PM
-5
Q: Dummies java web development

CutenCan someone please tell me free website to learn java web development with videos. Thank you stack overflow for allowing me to post the query.

dat title
 
> Thank you stack overflow for allowing me to post the query.
lol
 
@R.MartinhoFernandes Protip: hold the knife where the grip is, not where the blade is
 
Don't thank us just yet. — Alex M. 6 secs ago
 
Don't thank US ever
 
Electronicians at work making stuff ... with Dark Side of the Moon out loud
 
7:24 PM
I'm getting an error when I try to do a loop with an auto type:
for (auto&& s : v)
{
Error 5 error C3531: 's': a symbol whose type contains 'auto' must have an initializer
 
<3
@Flethuseo Compiler version? Compilation flags?
 
what's this fucked up for loop
 
@Rerito ranged-for
 
never seen one of these
googling right away
 
7:26 PM
They were at the great gig in the sky when I passed by
 
@Flethuseo: VS only supports that construct since VS2012; in earlier versions it is likely parsing the auto&& s as the start of an independent declaration and complaining about the missing initialiser before spotting that the rest of the line makes no sense anyway.
 
@milleniumbug lol
premature thank you
 
God Im still laughing at the IT crowd video @R.MartinhoFernandes linked this morning
 
using VS2010
I guess that makes sense what should I replace the auto with std::string?
 
7:34 PM
oh duh.. forgot to mention that v is std::vector<std::string> v { "AmpliTime", "IsoTimeTime", "SometypeTimeAndThenTime", "test" };
Hmm that declaration doesn't work on VS2012 either..
 
@Flethuseo You can't use ranged-for in VS2010. At all.
I linked you to a table of support for C++11 features. Please read it.
 
VS2010 uses C++11 then
 
What
I linked you to a table of support for C++11 features. Please read it.
 
trying to find the link
gotcha
 
VS doesn't have C++03/C++11/C++14 switches - it just gives you a mashup of whatever it wants to support from each standard, basically.
So to say that VS2010 "is a C++11 compiler" would be a bit of a reach. Indeed, as you can see, even VS2013 only half-supports C++11
 
7:39 PM
ok so these C++11 and 14.. etc are standards.. the VS compiler just supports some of the features of those standards
 
that v declaration is indeed also broken in VS2012 as it relies on Initializer Lists which you get in VS2013
shit eh
 
yeah, it's a bit annoying
 
you'll have to push_back
in VS2012 with v fixed the code compiles and runs
#include <iostream>
#include <vector>
#include <string>

int main()
{
	std::vector<std::string> v;
	v.push_back("AmpliTime");
	v.push_back("IsoTimeTime");
	v.push_back("SometypeTimeAndThenTime");
	v.push_back("test");

	for (auto&& s : v)
		std::cout << s << ' ';
}
 
user1804599
@StackedCrooked it has no race condition.
 
Hmm thanks Lightness
using vs2010
I can fix it from here though
 
7:43 PM
@StackedCrooked No idea.
 
Xeo
Oh boy. Kickstarter just proved themselves to be massive hypocrites.
aw man
Why can't we just have nice things...
 
@xecaps12: Could you tell me where you find season 5 of Battlestar Galactica? I'd love to watch it, and I know plenty of other people who would love to too! — Lightness Races in Orbit just now
 
@rightføld At work this triggered a Valgrind complaint. (Not exactly the same code, but equivalent.)
 
user1804599
The code you showed is totally fine.
 
Xeo
7:46 PM
@LightnessRacesinOrbit check his profile and the recent tweets after that one
 
After an hour of investigation I decided it was probably a false positive.
 
yawn
@StackedCrooked That code's obviously fine mate
 
It has a race.
And crashes have occurred.
 
consequences will never be the same?
 
user1804599
Then there is either a bug in your standard library implementation or the bug is not in the code you showed me.
 
7:50 PM
According to Jonathan Wakely this code is UB.
Due to incorrect usage.
 
Xeo
wat
 
Of what
 
> You are calling the promise destructor before the call to set_value() completes. You are assuming that as soon as the shared state becomes ready the promise is no longer in use, but that's not true. After the shared state is made ready the rest of the set_value() function runs, which accesses members of the shared state. If you destroy the promise (and it has the only reference to the shared state) then it will destroy its members while they are still being used.
 
user1804599
I am offended by my parrot doing a Hitler salute.
 
user1804599
7:52 PM
I am going to file a complaint on Meta Stack Exchange.
 
user1804599
@StackedCrooked bs
 
user1804599
The promise is destroyed after .get() returned, and .get() won't return until the promise value has been set.
 
0
Q: Inconsistency in capitalisation of markdown option button tooltips

Lightness Races in OrbitThe tooltip for the relatively new code snippets feature reads "Code snippets", which is inconsistent in terms of capitalisation by comparison with "Code Sample", "Numbered List", "Bulleted List" and "Horizontal Rule".

^ Really critical bug report
 
@rightføld and unblocks in the middle of set_value
The promise goes out of scope while set_value is still running.
 
user1804599
lol C++
 
7:54 PM
That's really shitty implementation
 
user1804599
need more GC
 
He kind of fixed it by postponing the notify and incrementing a ref during set_value.
 
Future shouldn't be signalled until set_value returns
 
@StackedCrooked interesting
> Whereas here the compiler cannot do that and must call a move constructor: auto future = std::move(cancel_connection(c));
is that even true
 
@StackedCrooked Not in a correct implementation. The precise wording is: "the completion of the function f is sequenced before (1.10) the shared state is made ready." (§30.6.8/5).
 
user1804599
7:56 PM
@StackedCrooked Then std::promise is extremely dangerous.
 
The promise object should be moved into the task object.
 
user1804599
@StackedCrooked Does this code suffer that problem too? The callback passed to chan->receive can be called on a different thread at any time.
 
@rightføld get_future must be called before launching the task.
 
@orlp wtf is that abomination
 
7:59 PM
The rest is fine IIRC.
 
user1804599
@StackedCrooked Why?
 
C++11 onwards is really horrid
 

« first day (1525 days earlier)      last day (3406 days later) »