« first day (1587 days earlier)      last day (3363 days later) » 

2:00 AM
Being depressed is depressing, be happy instead.
 
yeah
 
@Jefffrey If you're fine with it, I'm just happy for you (but you left the doubts asking here)
 
Think about all the threesomes you'll never have
 
Shuddup cat
 
Ell
2:01 AM
Threesomes are overrated, probably.
 
Please don't ruin this for me. I want to live in ignorance right now.
 
@Jefffrey Maybe you're switching to homosex
 
Ell
If its MMF, one of you is going to finish first :L
 
@πάνταῥεῖ I left the doubts asking?
 
Ell
Its a 50% chance it'll be you
 
2:01 AM
@AMostMajestuousCapybara Possible, but I doubt that.
 
@Ell I'm not sure I would be able to actually share a sexual experience with another man, even if there's a girl in between.
 
This just in MSVC is terrible
 
@CatPlusPlus I never managed to get two of them gaining in together with me. Was just half an hour between meeting both of them (hurried tidying of the bedroom inbetween)
 
I don't count on nothin
 
Ell
2:03 AM
@Jefffrey how about if you don't know it's a man until he whips his dick out?
 
That's going to be a problem.
 
Reading so much sex stuff at 10 AM is disturbing
 
Where's Tony
 
Good morning.
 
5 mins ago, by A Most Majestuous Capybara
Where's our sexpert Tony
 
2:04 AM
@CatPlusPlus In the jungle, the mighty jungle.
 
@AMostMajestuousCapybara I'm at 00:03 AM that's even more disturbing
 
Ell
@AMostMajestuousCapybara who are you man
I'm so confused
 
@Ell cicada
 
Ell
This always happens when you change your name
Im the last to know
 
2:05 AM
@Ell s/man/man\/woman/
 
He has the best names though
 
@Ell Also rightfold.
 
Next up: Clit Pus Pus
5
 
just got a question from a student asking why a = std::move_if_noexcept (b); doesn't invoke the move-assignment operator even though it is declared noexcept... Another one bites the dust.
 
No that'll get banned
 
Ell
2:05 AM
I always know when rightfold does
 
@FilipRoséen-refp What student asks that anyway???
 
IDGI, how/why is Tony the sexpert?
 
@MarkGarcia apparently, my students
 
@FilipRoséen-refp VS?
@FilipRoséen-refp Are you also a teacher?
 
Ell
2:08 AM
@FilipRoséen-refp I don't get it. Why is this a bad question?
 
@Jefffrey it doesn't matter if the move-assignment is noexcept, std::move_if_noexcept checks if the move-constructor is noexcept and there's a valid copy-constructor (otherwise it will yield an rvalue-reference)
 
Ell
The move ctor won't be called
Oh right vOv
 
@Jefffrey yes
 
Ell
I've never used move if no except before
 
@FilipRoséen-refp thats a pretty good question for a student, imo
 
2:09 AM
@FilipRoséen-refp Like at a university?
 
i mean, compared to all the shit SO gets
 
@FilipRoséen-refp Oh, I read move constructor somehow.
 
@Borgleader it is a very good question, and I'm glad that it is being asked - but I'm sad that it is a question that has to be asked
 
Vi and Vim Stack Exchange is now open to the public. vi.stackexchange.com
 
Old news.
 
2:11 AM
what? i got the email 2 minutes ago
:|
 
@FilipRoséen-refp I like your friendly avatar pic. Really sympathic! <3
 
@Blob @Rapptz is secretly the doctor
 
@Blob 15 days
 
Woah woah woah wait... People check their emails regularly?
 
the "hospital" he works at is just a codeword for tardis
 
2:12 AM
@Nooble My phone flashes a blue LED.
 
maybe I should write it up as a SO-question
 
Ell
So why doesn't move if no except look for no except assign operator?
 
@FilipRoséen-refp Please do your best not to make him another Vlad.
 
Ell
@Nooble daily at least
 
@Blob I just noticed the 'public' part. My bad.
 
2:12 AM
@MarkGarcia hmm, I'm not familiar with the Vlad reference; care to elaborate?
 
@Blob Oh :P
 
@FilipRoséen-refp Vlad const&
 
@AMostMajestuousCapybara I still don't get it..
 
Vlad from Moscow.
A user here.
 
sure, but I can't recall what's so special about him
 
2:14 AM
Nothing he's just a normal guy.
 
@FilipRoséen-refp I'll give you an alternate. Don't make him that kind of a pedant.
 
@πάνταῥεῖ Dr. Who
 
Knock knock..
 
Pancakes.
 
2:15 AM
@FilipRoséen-refp He's unemployed
@FilipRoséen-refp C'm in
 
@πάνταῥεῖ that's not how it works
 
Who's there?
 
@FilipRoséen-refp How else then?
 
@πάνταῥεῖ And still isn't back. Seems like @Jefffrey might have been right
(not that i'll ever officially admit it :P)
 
of course :)
 
2:17 AM
@πάνταῥεῖ maybe he's from a rich family & doesn't have to work?
 
@Borgleader Right that what?
 
@Nooble I thought I'd be able to come up with a joke inbetween my "knock knock" and someone replying with "Who's there?".. but apparently I'm not as funny as I originally thought
 
@chmod711telkitty Russian mafia! Uhhhh ...
 
@Nooble Those 3 words don't make a sentence.
 
@Borgleader Has anyone ever decided as to go as far if even though like?
What was Jefffrey right about?
 
2:19 AM
Almost everything ever.
 
@Nooble Vlad not coming back
 
That Vlad would not come back
 
Ahh okay.
 
@FilipRoséen-refp Could have been saying "pull my finger" ;) A♠
 
Good night fellas. Time to get back to dreaming.
 
2:20 AM
@Jefffrey Good night.
 
@Jefffrey G'night.
 
@Jefffrey Sleep well.
 
@Jefffrey NN
 
if you are jailed in a prison, can you tell people that your occupation is 'law enforcement'?
 
2:23 AM
@Borgleader I'm having a look at his last seen state every 1-2 days recently he was unleashed from the penalty box.
Wow, that one worked just straight away :-D
 
@πάνταῥεῖ Oh I check up on him every day
 
Xeo
I should sleep
 
@Borgleader May be that's not really necessary. We certainly would notice him, getting active on the site again. But that guy still serves that awsome meme of being an Igor
 
@Xeo 4AM again? :P
 
@Borgleader 3:30
 
Xeo
2:31 AM
^
 
close enough
 
Xeo
But I finished what I wanted to
so yeah \o/
 
lovely sleep
 
@Xeo εὕρηκα Sweet dreams!
 
it's 4:33
I never woke up so early
this is normally when I go to sleep
I will see the sunrise
 
2:34 AM
@AlexM. Just enjoy that.
 
I used to either sell or buy a lot of wine in visby in patrician 2
 
Does any of you know of a tabular format that is human-readable?
 
tables?
 
Like CSV/TSV but those are unreadable
 
2:39 AM
CSV is pretty readable :A
 
Excel! :P
 
you're probably fighting formatting there
 
does dropbox.com/s/zgbxefnqho173xk/proof.pdf?dl=0 prove turing completeness?
plis yes
 
and formatting pertains to the parsers
like excel
 
@Blob cant access dbox
 
2:41 AM
@AMostMajestuousCapybara Special forms of XML schemes? (LOL I'm asking myself, if this is really human readable). And of course, .CSV formats are human readable as likely.
 
@AMostMajestuousCapybara Where should I upload it?
 
@πάνταῥεῖ he probably has issues with this
 
I don't know. I'm dealing with huge CSVs where all the fields are numbers and columns are not named. So I basically have no idea what each field represents.
 
a, b, c, d
a, asgahsdghashoghaosghoaohgshoahsgoihahgoai, c, sdafsafasfa
^ not readable
 
OTOH XML would be very verbose
 
2:42 AM
but that's because you're viewing them in fucking notepad
@AMostMajestuousCapybara there's this thing called csv header
I think parsers support it
 
fucking notepad
 
the first line says what the columns are
 
@AMostMajestuousCapybara Well, XML could at least have an attribute for naming the actual column.
 
@AMostMajestuousCapybara JSON
 
Well yes precisely there is no csv header
 
2:44 AM
9
A: Are web scrapers fooled by obscured emails anymore?

FlykYou've got multiple methods really, you should of course consider that such bots harvesting this content are essentially scraping whatever pages they come across and searching for patterns that look like email addresses. As you say, it's a bit of an arms race and there's nothing stopping the peop...

dat CSS trick
 
@AMostMajestuousCapybara add one
it's probably easier than coming up with a new format
WoW added a selfie camera in-game to let you take selfies
lol
 
3:08 AM
@AlexM. Of the game avatar or yourself?
 
I'm sure you're not going to confuse that :)
@AlexM. A puppy! <3
 
ooo, one of the old C++ concepts proposal is mentioned in an OCaml paper about implicit parameters
 
@πάνταῥεῖ it's actually a panda lol
 
@AlexM. Looks much puppy like though. That's a panda bear:
 
3:12 AM
@πάνταῥεῖ wowwiki.com/Pandaren
 
Ell
@AMostMajestuousCapybara how massive?
 
@AlexM. Anime and manga somehow seem to manage distorting our senses for reality :-P ...
 
Ell
Try importing into excel? :P
 
@AlexM. I was convinced about so, when I've been watching the 1st series of Heidi decades ago ...
Though we loved that when being kids, and even more interesting our kids loved that as well
(The japanese are tricky, subtle Nazis manipulating our perception of the world)
That's just racist I know ...
NN gals 'n guys. Bedtime for me now, seriously!
 
Ell
3:28 AM
Night
 
3:52 AM
> At FoundationDB, we're passionate about the power of full ACID transactions and the advantages they can deliver to your business.
Ooooh shut up already
> Key-Value Store is the storage substrate that combines scalability, fault-tolerance, and high performance with incredibly powerful multi-key ACID transactions.
Why am I reading this
 
user3010322
... I was gonna do something when I got here.
 
user3010322
... But I forgot. .-.
 
4:11 AM
you were going to bring me an offering of 10 pizzas
 
why powerline broke everything ._.
 
0
Q: `std::move_if_noexcept` calls copy-assignment even though move-assignment is `noexcept`; why?

Filip Roséen - refpIntroduction I'm trying to get as close to the Strong Exception Guarantee as possible, but when playing around with std::move_if_noexcept I ran into some seemingly weird behavior. Even though the move-assignment operator in the following class is marked noexcept, the copy-assignment operator is...

^ someone mind proof-reading that?
fixed the examples so that it explains a bit more
 
your title is borked
 
@AMostMajestuousCapybara oh yeah, maybe I should remove the ticks (fixed)
 
I'd argue this is a defect but oh well
 
4:25 AM
@AMostMajestuousCapybara std::move_if_noexcept? sure, it's naming is hella weird
 
0
A: Does std::string do a refcounting of the allocated memory? How does pass-by-value and pass-by-reference different std::string case?

BlindyMost string implementations do something called copy-on-write, which means that simply copying a string by value (through a copy constructor or operator= or whatnot) doesn't allocate new memory and doesn't copy the string contents. It's only if you write to this shared buffer that it does the cop...

 
Birdman is a great movie.
 
It's all about Condorman.
 
i hate regex
 
@Blob Regex hated you first.
 
4:38 AM
Somehow my powerline config was obsolete and it suddenly choked on it, even though I don’t remember either changing the config or the install. Thankfully that nightmare is over.
 
Beer is cold again.
 
Hello @Robert how would I go about merging this account into another? Sending a mail to support is enough?
 
Protip: don't drink half a bottle of 白酒.
 
@AMostMajestuousCapybara What's your plan to prove your identity?
 
A mix of CUDA answers and lousy jokes.
 
4:41 AM
how the fuck do i negate a regex? the (?! ) thing isn't working
 
@R.MartinhoFernandes I don’t know what it is, but it appears there’s a black version of it, too!
 
@AMostMajestuousCapybara Well I can vouch too. :)
 
@Blob ^ is "not" for character classes
 
@AMostMajestuousCapybara Did you use an SE account for snoflek?
 
@AMostMajestuousCapybara i have something a bit more complex: [_a-zA-Z][_a-zA-Z0-9]*:
 
ADG
4:42 AM
any mod here?
 
tried everything
 
no
 
@MarkGarcia No it was the same one
@Blob What are you trying to match
 
hi
Hello @LightnessRacesinOrbit, sorry if the question was abit vague. I have been following this tutorial: subinsb.com/html5-record-mic-voice . However, I was trying to modify it slightly, by sending the blob url of the recorded audio via email using php (the php part is done already). The problem is that I can't get the blob url, any suggestions? — dimsum204 9 hours ago
way to miss the point
 
@AMostMajestuousCapybara everything that's not [_a-zA-Z][_a-zA-Z0-9]*:
 
4:42 AM
since it's about blobs, perhaps @Blob can help
:D
 
Isn't it 4:42 AM there?
 
Go to bed grandpa.
 
@AMostMajestuousCapybara I know, with Bae Park Young something. For log-in, Google? SE?
 
ADG
@Rapptz was that no for me or for above discussion?
 
4:43 AM
@Rapptz roger that
 
lol
 
@ADG Yes.
 
Sleep well @LightnessRacesinOrbit.
 
ADG
k bye
 
4:43 AM
Night. Sleep well.
 
good night lightness !
 
@ADG I am in direct contact with a mod, I can forward him your questions.
2
 
terrible idea
 
@AMostMajestuousCapybara telkitty was once had constant contacts with mods.
 
14 hours ago, by chmod 711 telkitty
This is so sad, no mod or SE employee ever come & bother me any more. Did they all quit/change jobs or have they found some troll who is smarter, funnier & with more free time or something?
fyi
> There is a "real and present danger" of Russia trying to destabilise Latvia, Lithuania and Estonia, the UK defence secretary says.
Shut up, moron.
 
4:51 AM
@LightnessRacesinOrbit lol
 
The only personal destabilising anything with irresponsible comments like that, is you.
i'm now going to go and dream of a world in which the west isn't full of shite
oh yeh oops bye
 
I give up. Help? Best i got is (?![_a-zA-Z][_a-zA-Z0-9]*:)
i'll go cry myself to sleep in a bit
 
@Blob What's wrong with that?
Negative look-ahead.
 
@Rapptz it doesn't seem to work in the regex matchers online
 
It's Perl flavour.
 
ADG
4:56 AM
@AMostMajestuousCapybara how ? can you? whom?
 
oh. i'm using python's re module
 
Python uses PCRE. So it supports ?!
 
...
 
@Blob Um, it works. See here
 
ADG
@AMostMajestuousCapybara should i ask yu then?
 
4:59 AM
@ADG Yes I will diligently proxy any concerns you may have to the appropriate authorities.
 
@AMostMajestuousCapybara what's the "g" in the right box?
 
Global match.
 
> g modifier: global. All matches (don't return on first match)
oh
 
ADG
@AMostMajestuousCapybara OK the thing is when i was smal 3-4 years ago I messed with my acoount on SO asked bad questions and answered incorrectly due to my improper knowledge. Can i start afresh by creating a new acoount?
 
If you're using python why don't you just negate it in code?
if not re.match(...):
 
5:01 AM
@Rapptz it's being used to create a gigantic regex
 
@ADG The mod replied that it's better to just keep your current account as bad flags will fade over time and creating a new one will not help.
 
I see.
 
ADG
@AMostMajestuousCapybara OK but question ban never uplift (but I know they can be uplifted by answering correctly and helping but i have not much knowledge and people usually don't know why not upvote my answers :()
 
The mod says that question ban does uplift after time and positive contribution on the website and that you can't circumvent the question ban by creating a new account, it will actually have a negative effect.
 
ADG
@AMostMajestuousCapybara I could think as much as that OK so you mean - don't create a new one, it'll worsen up and - answer positively or -wait ??
 
5:06 AM
That's pretty much it, yes.
 
ADG
@AMostMajestuousCapybara are you sure about -waiting alon?
 
No, waiting alone won't help, you have to contribute positively.
 
-4
Q: Suggestions needed from head honchos of C & C++

Clean Coderits been an year I am working as an Engineer in a Software company on projects related to C (Network programming) & C++ (Qt and some C++11 concepts). But my conscience says I've not garnered any much experience (especially on Writing Programs from the scratch, applying the logic, using algorithms...

 
ADG
@AMostMajestuousCapybara OK i understand, that would mean few (4+) years till I learn properly and then answer or question?
 
Uh well if you still give terrible answers after 8 years of practice then I don't know maybe the solution would be to turn off your PC and get another job instead.
Just answer questions you're comfortable with, i.e in your area of knowledge.
 
ADG
5:10 AM
@AMostMajestuousCapybara also another thing, suspensions can be undone only after expiry of time only?(this is not for SO) e.g. if some people people whom i helped on that site upvote (on their own, not kinda serial upvoting) my answers?
 
I'm not sure I understand
 
ADG
timed suspensions- uplift after the time alloted ends
if i get positive contributions (in form of upvotes) can that make it early
 
Question suspension has unlimited time. You can only get out of it through positive contribution.
 
ADG
@AMostMajestuousCapybara i repeat , i'm asking for another thing "timed suspension"
now
i was for qb earlier
 
Then no. Timed suspension is time only.
 
ADG
5:14 AM
@AMostMajestuousCapybara OK bye. :D:D thanks
 
ey?
 
What's the legalese equivalent of "compiler knows the value at compile-time and can use it for e.g loop unrolling / constant propagation / etc"
constant expression?
 
@AMostMajestuousCapybara Yes, for the "compiler knows the value at compile-time" part.
The rest is on "as-is" IMO.
 
Yeah, the Standard says little about optimizations.
 
Or codegen.
 
5:41 AM
I'll go for "constant expression" then.
 
hi guys, i need a help in c#. sad, noone thr
 
ok i'm off
fuck regex
i worked around it in ugly ways i shall not mention
 
tell, how to create multi parameterized thread to this newb? :)
 
5:55 AM
@geek007 ?
 
@AMostMajestuousCapybara in c# room :)
 
MLM
What is the best way to create a "inline" function that has access to the local scope?
int myNum = 6;

struct local {
	float doThing(int t) {
		int x = myNum + t;
		return x;
	}
};

passDoThingIntoMe(&local::doThing);
I can't just pass myNum into doThing because I need that certain method signature
 
If you can’t move on to C++11 or C++14, you could give Boost.LocalFunction a go.
Oh hang on, you want to pass in a function pointer? That can’t work without compiler support (and I don’t know of any such support).
 
MLM
I can take a look into the source of that library but this is eventually going to run on a constrained device so a library-less solution would be great
@LucDanton It works just fine with a static struct method
 
The C-ism is to have something like void eat_callbacks(void(*callback)(void* userdata), void* userdata); for the registration. C++ can make it a little bit more type-safe, although not by much. It’s more popular to take in a function<Sig>.
 
MLM
6:09 AM
but trying to not make it static to access local scope
 
@MLM Irrelevant.
@MLM Not having it static would give you access to this. There are languages where you have access to the local scope regardless of static, but C or C++ don’t have that.
 
MLM
I want access to myNum in that snippet. How do I get to it with this?
 
Stop right here.
3 mins ago, by Luc Danton
The C-ism is to have something like void eat_callbacks(void(*callback)(void* userdata), void* userdata); for the registration. C++ can make it a little bit more type-safe, although not by much. It’s more popular to take in a function<Sig>.
It all depends on what passDoThingIntoMe accepts.
 
MLM
int passDoThingIntoMe(int (*doThing)(int))
 
If it’s too restrictive, there is nothing you can do.
@MLM You’re screwed.
 
MLM
6:14 AM
Well I believe I could make a struct with some state and have the method access that state. But I was hoping it could be cleaner than that
Untested but I believe this will work. I wish it could be cleaner (less boilerplate)
int myNum = 6;

struct local {
	int myNum;
	int doThing(int t) {
		int x = this->myNum + t;
		return x;
	}
};

local myLocalState = {};
myLocalState.myNum = myNum;

passDoThingIntoMe(&myLocalState::doThing);


// ------------

int passDoThingIntoMe(int (*doThing)(int))
 
You cannot pass a pointer to a non-static member function where a function pointer is expected. More to the point though, note that you cannot call a pointer to a non-static member function without an object! Try to call &myLocalState::doThing in your example even before you pass it to passDoThingIntoMe: how would you do it?
In other (non-C++) terms, pointers to non-static members are unbound, are not delegates etc.
 
just use global data everywhere
 
MLM
nah :P
@LucDanton So is this truely not possible? :(
 
I would
this is enough time wasted on a problem to make wasting more time unproductive
 
@MLM If you have no control over passDoThingIntoMe, nope. Modulo really dirty tricks to hide the state 'elsewhere' (globals, or inside an int).
 
MLM
6:22 AM
@LucDanton Wouldn't I do myLocalState.doThing(4) but not sure if I can pass(you said no)
I do have control over it but trying to separate it from what it needs to know and pass in
 
If you have auto p = &myLocalState::doThing;, it’s (p.*myLocalState)(0).
So if you pass in p, then passDoThingIntoMe is still missing myLocalState.
 
TIL about boost.localfunction tho
I could have some use for that
as in, I could easily refactor some code with that
once I get back to work
 
MLM
Boost.LocalFunction API doc for future reference
 
@MLM Since pointers to functions or pointers to member functions are stateless, it would make sense for it to accept at least another argument for the, well, state.
 
MLM
I could always wrap state directly in the "inline" struct, hmmm
struct local {
	static int doThing(int t) {
		int myNum = 6;
		int x = myNum + t;
		return x;
	}
};


passDoThingIntoMe(&local::doThing);


// ------------

int passDoThingIntoMe(int (*doThing)(int)) {
	// ...
}
But that only works in this case because I am defining it right there. Wouldn't work for dynamic data passed into that local scope
 
6:27 AM
Yup.
 
MLM
How do I make state a single variable in the method signature to pass along with the callback?
(if there were multiple things to pass in) - Could just use another struct for state :/
 
Welp, more complications arise.
 
MLM
Gotta boil down the problem. Easy for everyone although X/Y effect a bit
 
If you have int passDoThing(int (&local::*p)(int), local& l) { return (p.*l)(0); } obviously that 'works'. But only for a local! If you define a struct anotherLocal somewhere else, then it won’t be accepted!
(And we’ve been ignoring it since this is all pseudo-code, but you can’t refer to local outside of the scope where it’s defined anyway!)
So because passDoThing must accept things of differing types, you’ll need some form of polymorphism somewhere.
How you get there I leave to you since I don’t really know how familiar you are with polymorphism in C++.
 
MLM
Would Boost solve the whole issue?
 
6:33 AM
There’s Boost.Function’s boost::function<Sig> but I don’t know how portable it is.
Should be 'very' though.
 
MLM
There is arduino-boost. I'll end up running on a Arduino-like platform
 
It looks like it’s in here. As a heads-up, it (easily) involves memory allocation in case you’re starved for memory.
 
MLM
@LucDanton Can you link me to a C++ function<Sig> guide/explanation/examples?
Running on a Teensy 3.1. Relatively nice amount of memory
Is it just generics? (thinking from C# mechanics)
 
Note that when using C++03 using local classes in such a fashion requires the compiler to be lenient/support it as an extension. I cannot recommend C++11 or C++14 enough.
 
MLM
@LucDanton I totally would use C++11 or C++14 if it was an option. Maybe I can although I haven't done it and not sure of support because I am using the Teensy libraries
 
6:45 AM
If you’re building them yourself, you can always give it a try. There isn’t a lot of C++03 code that can’t be compiled as C++11, although it does happen.
 
MLM
hmmm That post was tested with Arduino 1.5.7, "Teensyduino 1.20 supports only Arduino version 1.0.5 and 1.0.6." "Support for Arduino 1.6.0 is coming soon"
 
> error: template argument for '[snip]' uses local type 'main()::local'
Interesting, using a local type interacts with SFINAE in C++03 mode. Even with the GNU dialect.
 
MLM
damn, I can't use C++11 atm. I have 1.0.x which the Teensyduino add-on requires. Source
> The Arduino development team has recently upgraded their IDE and tool chain to GCC version 4.8.1. This capability has only been built into the beta version 1.5.7, all earlier versions including the 1.0.x series do not support C++11.
 
@MLM In C++03 this sort of thing used to happen.
 

« first day (1587 days earlier)      last day (3363 days later) »