« first day (1348 days earlier)      last day (3605 days later) » 

3:01 PM
@EtiennedeMartel Do you really need to have it in a C array?
If you just need a C pointer to the data, you can use a managed array and a pin_ptr.
 
@R.MartinhoFernandes Oooooh. Didn't think of that.
 
If you really need the array unmanaged you'll need the additional std::copy/memmove/whatever from that pointer.
 
5
Q: "mv" command-- file vanished into non-directory

Austin YargerI was attempting to utilize the mv command to move a file onto a remote server. I ended up executing the command... mv sqlreport.php myuser@mywebsite.org Unfortunately, this did not work. Worse, my file seems to have disappeared. A new file, myuser@mywebsite.org, has appeared, but it is not a ...

 
> Vote Down requires 125 reputation
Dammit.
 
3:05 PM
Seriously, +5?
"A new file [...] has appeared, but it is not a directory" is genius.
 
Keeping the comma in the quote is weird.
 
Because it doesn't fit without the part I omitted.
 
sure it does
oh, not pre-edit. that was just flat-out wrong. :)
 
3:11 PM
"has appeared" is not an appositive.
 
@dragosb: I gave you a link to the page in my answer. My screenshot of that page has the search box circled in red. I'm not sure how I can make this any clearer for you? — Martijn Pieters May 6 at 12:56
there are some real dumbfucks out there
@TonyTheLion heh
 
random guy invites me to room
probability of him being help vampire, 100% or merely 99.99%?
 
could be after your ... man bits
fancies dogs, perhaps
 
3:17 PM
I'd estimate 99.992
 
"couldnt help to msg u cos u r so beauty"
 
Daisy's a bitch
she doesn't have man bits
 
fuck you she's not a bitch she's awesome
you do though (presumably)
 
lol
if Puppy were a real man, he'd have a job by now.
ouch.
 
@TonyTheLion Boarding kennels management software?
 
3:20 PM
lol
 
inb4 Bailey has been fed.
 
why doesn't github have comments for projects?
 
cause terriblehub
 
Good news - I found the source for the Jurassic app I have been asked to support. Bad news - I've looked at it.
 
@Crow Because file an issue.
 
3:25 PM
hahahah
 
just randomly came across this mess
it's Go Fuck guy!
 
> Cows have best friends.
 
There is text-file parsing with a pageful of lib string-handling calls with magic numbers:(
 
@MartinJames Quaternary best period.
 
2
A: Initilize an array in C++ whose size is not fixed

ikegamiIf it wasn't static, bool myArray[MyEnumCount]; for (int i=MyEnumCount; i--; ) myArray[i] = false;

 
3:28 PM
@R.MartinhoFernandes I'm pretty sure I've got the code for the apps from that period in a zip archive.
 
129k user
doesn't know how to initialise without loops
granted, C isn't exactly his highest tag and I can't even see C++ on the front page of his tags at all
 
#if __cpluplus > 201103L
Dammit.
 
@LightnessRacesinOrbit Oh wait, does that q have a decent enough answer from Vlad?
I am shocked.
 
I'm once again looking at the cum_moving_average code.
 
morning
 
3:38 PM
@StackedCrooked Coliru is in "Internal Server Error" mode.
 
Does anyone else get "Internal Server Error" when trying to use Coliru?
 
> Only Dev at Company - Send Help
 
@BaummitAugen Are you like... for real?
 
3:45 PM
7 mins ago, by Jefffrey
@StackedCrooked Coliru is in "Internal Server Error" mode.
3 messages up the one you have posted
 
@Jefffrey Oh, sorry.
 
guys, this is a nice and promising game store.steampowered.com/app/249630
 
I feel stupid now.
 
Don't apologize.
 
@TonyTheLion I have no problem with offing some of my customers. The trick is getting to them to pay me after they're dead.
 
3:46 PM
I gave it a try, and had lots of fun
with more content it may well become my favorite indie dungeon crawler
it's very pretty too
 
@MartinJames hahah
 
Guise, please tell me this is illegal
 
@Jefffrey You are looking for explicit. :D
@LightnessRacesinOrbit lol
 
@Griwes No no. I'm begging you to tell me that that is illegal even without explicit.
 
3:51 PM
@Jefffrey why is it illegal?
 
He's horrified and refuses to believe it.
 
@Jefffrey Why would it?
 
I'm the robot.
 
@LightnessRacesinOrbit Because via that pointer I can modify the temporary object. And a temporary object should not be modified?
 
he's thinking that because you can't take the address of a temporary directly you shouldn't be able to ever find one
@Jefffrey nonsense. you can modify a temporary object just fine
 
3:52 PM
sigh
 
@Jefffrey Move semantics mutates temporaries all the time.
 
10
Q: If temporaries are implicitly non-modifiable, how does this work?

Lightness Races in OrbitI'm told that, in C++03, temporaries are implicitly non-modifiable. However, the following compiles for me on GCC 4.3.4 (in C++03 mode): cout << static_cast<stringstream&>(stringstream() << 3).str(); How is this compiling? (I am not talking about the rules regarding temporaries binding to re...

 
user1804599
@Jefffrey Yup. You go to jail.
 
^ not proud of this
 
temporaries are not inherently immutable at all.
they simply cannot bind to mutable lvalue references, as doing so is demonstrably unsafe.
 
3:54 PM
in fact my answer gives basically the same example that you just did, @Jefffrey
 
@rightfold lol
 
user1804599
Is there something like a plane segment akin to a line segment?
 
You mean polygons?
 
user1804599
I guess so.
 
Therefore:
A* fn(A&& a) {
    return std::addressof(a);
}
is perfectly valid?
and will return the address of the temporary passed to fn?
 
user1804599
4:03 PM
T* operator&() {
    return this;
}
 
user1804599
:)
 
@Jefffrey I don't see why it would be invalid
 
My new worst nightmare: there's a std::_Bind on the stack trace.
 
> Given a stream of integers build an algorithm that returns a uniform random sample of size k using O(k) memory. (google interview)
I don't even
 
Xeo
WHOO
DIS SHIT WORKS
time to go home
 
4:08 PM
what's another word for co-habitate? like when two races live next to each other in peace, or two processes don't conflict on choice of listen port?
 
user1804599
@AlexM. You can do that.
 
Reservoir sampling is a family of randomized algorithms for randomly choosing a sample of k items from a list S containing n items, where n is either a very large or unknown number. Typically n is large enough that the list doesn't fit into main memory. The most common example was labelled Algorithm R by Jeffrey Vitter in his paper on the subject. This simple O(n) algorithm as described in the Dictionary of Algorithms and Data Structures consists of the following steps (assuming that the arrays are one-based, and that the number of items to select, k, is smaller than the size of the sour...
apparently this is the solution
 
user1804599
You first generate random integers between 0 and k and put them into an array. Then you read from the stream into the same array with the indices that were in the array originally.
 
Could you guys review this:
3
A: How to use uniform initialization for a pointer?

JefffreyYou can't take an address of a temporary "directly"... You can't take an address of a temporary with &: g(&({1, 3.14})); as per: §5.3.1/3 The result of the unary & operator is a pointer to its operand. The operand shall be an lvalue or a qualified-id. (emphasis mine) ... but you ...

 
4:11 PM
I'm definitely not certain it is a good answer.
 
looks factually accurate to me
you almost blur the line between temporariness and value category, and you certainly don't explain it properly, but then again I don't think you need to here
your answer seems to be at the right level
 
here's the page with more probability problems infoarena.ro/blog/probability-shortlist
 
@LightnessRacesinOrbit Thanks for the review. :)
 
ah, "co-exist"
yay
@Jefffrey yw np etc
 
@LightnessRacesinOrbit Tbh for a moment I considered that a in fn could have been an lvalue object that had a specific address, different from the one of the referenced object (I know this is not the case for "simple" references because references can also have 0 bytes).
 
4:19 PM
Yay Vlad!
-1
A: Using << operator to write to both a file and cout

Vlad from MoscowFirst of all define the operator as std::ostream & operator<<(std::ostream& os, const string& str) { std::cout << str; return os << str; } I think that the problem is that line std::cout << str; in the function simply places data in the internal buffer. You need to append std::cout <

Listened to Britney Spears' "Oops I did it again" (at least) once too often.
 
Okay. I understand, but it seems to me like answering "Implementing a class which does this is not a problem" with "It's even less of a problem when you use shared_ptr to implement it" :) Or, that your answer to "It feels like a generic problem" is "Yes: it's the problem of resource management and the solution is known as RAII". — sehe 7 secs ago
Am I missing the deeper reasoning/meaning in that answer?
 
@Jefffrey seems to be fine now..
 
@sehe looks like he just wanted to write code for upboats
 
trying to install latest version of boost and compile all of the libraries that need to be compiled. I'm using Linux Mint 16.

I see this from the site: http://stackoverflow.com/questions/5759434/boost-installation

Will sehe's answer install and compile the boost parts that rely on libraries?

Or is this some easier way to do this?
 
4:35 PM
@Chimera is this an actual question
you want use to teach you how to build and link libraries....?
 
@EiyrioüvonKauyf I'm asking for help doing something with something this group clearly uses and has experience with. You have a problem with that?
 
uh oh
 
@jalf this sounds wonderful. back to the fields i go munches on grass
 
Or are you just trying to be an asshole?
 
@Chimera you have a charming way to ask for help
 
4:37 PM
@jalf I asked for help in a nice manner and got a rather rude response from @EiyrioüvonKauyf
 
so heroku is back up that's nice :3
 
And yes I'm looking at the boost documentation, but it doesn't jive with sehes answer to the same question.
 
@Chimera There is nothing rude about expressing surprise that people come here to learn the fundamentals of how to build a C++ program
 
@jalf I'm asking for help on install boost.. not compiling a C++ program..
 
he didn't ask if you were trying to be an asshole, for example :)
@Chimera ... and presumably you want to install boost because it is part of the build process for your C++ program
which leads us back to what I said: linking to a library in a C++ program is not rocket science. Which is why it is somewhat surprising when people come here, of all places, to ask how to do it
 
4:41 PM
Forget it.. apparently some of you can't read today. Or are being unusually difficult... fine. It was a simple question.. What is the correct way to install the boost headers and libraries on a Linux system that doesn't involve putting boost in non-standard places and then needing to specify -I and -L when compiling and linking.
 
@Chimera No. There's nothing unusual about us being difficult
 
We're usually difficult. :)
 
@jalf Ok fine. It's not unreasonable to ask how some of you installed boost when clearly you've done it to use boost. But go ahead and be difficult. :-)
 
4:44 PM
@jalf do you ever go and look at people's questions and answers to see what they know / do
 
I'll let you in on a secret
we follow the instructions
 
and i guess their habits as well. e.g. best answering the worst post because it tells them what they want to hear
 
@jalf Do you not know how to read? I already said, the boost instructions are not the same as what I've read on stackoverflow.
 
@Chimera How exactly does that invalidate what I just said?
 
@EiyrioüvonKauyf Fine you bastard. I feel like being rude and you are an asshole and I will leave for now.
 
4:46 PM
now that's unusual
 
@EiyrioüvonKauyf You are a smug fucker aren't you?
 
i'm surprised sehe or the puppy wasn't around
 
@Chimera this room is full of smug fuckers. You shouldn't be surprised. :)
 
Xeo
@Mysticial Hey, hey you. Yes you! Guess what! :D
 
4:47 PM
if you come here, expect to encounter smug fuckers
2
 
@Xeo Hey fuck you. :)
 
@Xeo did you win the lottery?
 
Xeo
@jalf In a sense, yes. Last episode of NGNL is out :)
 
Next Generation Netherlands?
 
Xeo
No Game No Life
 
4:48 PM
i can't watch shows unless they finish :/ or suspense
 
How about this? I'm already in a bad mood and I should have known not to enter this lounge. So fuck you all ( for now of course .. not always ). :-)
 
We've just been temp-fucked. :p
 
@jalf think he'll call back? or is it just a one time thing
 
@jalf Yes, temp fucked... which means when I come back in a better mood I won't think you as fuckers. :-)
 
:)
 
4:52 PM
@Xeo oh no! it's already the last episode?
 
for what it's worth btw, try either set of instructions. Both will probably work, and if one fails, at least then you know. :) Most of us don't go around memorising how we built boost. It's something you do pretty rarely, so we just figure it out when we need to
 
hopefully there's gonna be a sequel
 
@jalf Better that than fang suckers.
 
@MartinJames clang muckers
 
@StackedCrooked Thanks.
 
4:55 PM
@jalf I'm going to follow the instruction provided by boost. But that means I will have to specify -I and -L when building boost based stuff.. which I really don't want to do... but I can live with it.
 
@Chimera Telling the linker stuff is not against the law, after all, if it cannot find something, it always tells me plenty.
 
Xeo
@StackedCrooked Yes :(
 
@MartinJames I know.. I just want to be able to act like boost is a standard put of C++ and not specify where it is.... but it's ok... maybe I'm being unrealistic.
 
@Chimera Meh - tell it where boost is, then you can easily try different versions so as to select only the bugs you can live with.
 
@MartinJames That's an interesting thought.
Ok I'm in a better mood. Sorry for my rudeness. You are all un-temp fucked. :-)
 
5:03 PM
\o/
@Chimera I much prefer being explicit and adding -I and -L flags, rather than relying on special "magic" paths
 
Boost has a boostrap method that allows you to easily build the libraries AND install headers and libraries where you specify.. so I think I easily do what I want.
 
makes it easier to get an overview of what my dependencies are, and it lets me control exactly which version is used, like @MartinJames says
 
@jalf Maybe when I start using boost a lot I will do the same. I can see your reasoning though.
 
> age 81
I think this is the oldest user I've seen here
 
user1804599
Pubby.
 
user1804599
5:07 PM
He’s 94.
 
dang
 
user1804599
0
A: Is it possible to use using for functions?

SnpsThe answer would be: yes, it is possible.

 
user1804599
wat
 
@rightfold how would that even begin to work. is this not why we have namespaces precisely for this
 
user1804599
Namespaces are irrelevant.
 
user1804599
5:10 PM
That’s irrelevant.
 
user1804599
There is no collision.
 
hmmm, KSP on sale
 
user1804599
Read the question maybe.
 
now if only C++14 was supported
 
@Puppy Oh. You still haven't bought KSP?
 
@R.MartinhoFernandes I did a long time ago. Just figured I'd mention it again.
 
user image
7
 
user1804599
@rightfold I think there is a good question hiding there if it were asked better. To be clear: without the information in the comment, this clearly "does not show any research effort" — Tim Seguine 6 mins ago
 
user1804599
I don’t like this.
 
user1804599
It may still be helpful to future visitors.
 
user1804599
5:28 PM
This isn’t a DEBUG MY CODE FOR ME question.
 
user1804599
Awesome.
 
@rightfold What the hell.
 
user1804599
Time to poop.
 
> I think it's gonna be a long long time
 
5:39 PM
@R.MartinhoFernandes Is that the song Howard (BBT) likes?
 
Yeah. It's a cover of an Elton John song.
 
Rocket man is Bowie I think nope
I need to embed a vnc client in a wpf app, do you know of something nice?
 
@Griwes In other words, "get wrecked".
 
That's a disturbing thumbnail.
 
@R.MartinhoFernandes I didn't know vampires were real!
 
5:44 PM
Ok, boost question.. why do I need to include -lboost_system when using -lboost_filesystem? In other words, do I need to include -lboost_system when using any boost non-header libraries?
 
@Chimera Because the linking scheme we are using is broken.
 
Many of them do depend on boost_system, yes.
 
@R.MartinhoFernandes Ok thanks.
 
Filesystem, Asio, and Chrono are three that come to mind.
 
@R.MartinhoFernandes That's good to know... I plan on using Asio
@R.MartinhoFernandes Even though Boost.Asio is header only?
 
5:48 PM
For some reason this cover youtube.com/watch?v=icB6yOkphz8 has its own section on the wikipedia article for the song.
@Chimera Maybe it depends on what you use from it.
 
@R.MartinhoFernandes ok
 
Why the fuck doesn't the Mac OS TextEdit have an option to disable word-wrapping?
Piece of shit.
Even Windows Notepad has it.
 
Xeo
Dat NGNL episode. slow clap
Damn, dat NGNL episode.
 
@Xeo Yeah, fuck you. :)
 
Created a branch named sharing_is_not_caring.
 
5:54 PM
@jalf i guess he didn't leave
 
@Mysticial Wow, missing a feature that Notepad has. That's quite the achievement.
 
user3010322
@Mysticial I thought it did.... I used TextEdit for a while.
 
lol the latest naruto chapter
only an author that realized how low he's gotten and has nothing to lose can pull something like that out of the blue
 
I use text editors to save commonly used console commands. And it converted all the quotes into fucking smart quotes.
 
@Chimera HA! Took me a while, but I knew I knew you. You used to be J-something, right?
 
5:55 PM
I didn't notice it until I tried to run them.
 
@Xeo it was good
I want to see what happens next!
 
@Mysticial Impressive.
 
user3010322
@Mysticial Hot damn, you're right. No way to disable word wrap.
 
@Mysticial "It just works"
 
@R.MartinhoFernandes Yes, Jim No??ton
 
5:57 PM
@Mysticial which editor? (MS Word?)
 
Xeo
@StackedCrooked Well, you'll have to wait a while :D
or read the LN
 
user3010322
@StackedCrooked Apple's TextEdit for crying out loud.
 
@Chimera Oh I remembered that, but I didn't want to write it out.
 
@StackedCrooked Fucking Apple TextEdit.
 
@R.MartinhoFernandes Understood
 
5:58 PM
@Mysticial I actually like TextEdit.
 
@StackedCrooked NotePad++ FTW
 
TextEdit is best rtf editor.
 
Notepad FTW
 
user3010322
Yeah, I think TextEdit is good for RTF. Not so much... plaintext. :D
 
Linux Gedit is pretty good. It even does basic syntax highlighting even though isn't a code editor.
 
5:59 PM
ed FTW
 
@Mysticial GEdit is OK, but no RTF :(
 
user3010322
Just like Wordpad is good for RTF... IF MINE WASN'T BROKEN ;~;
 
user3010322
Have to use Microsoft Word for that nonsense.
 

« first day (1348 days earlier)      last day (3605 days later) »