« first day (1353 days earlier)      last day (3585 days later) » 

5:00 PM
I'm getting sick of world cup doodles on google's pages
 
use bing then. MS don't know how to make doodles.
 
@LightnessRacesinOrbit how i imagine @ThePhD trying to be street
 
haha spot on
that could also be @rightfold
 
user1804599
I hope Nigeria wins.
 
5:01 PM
@LightnessRacesinOrbit they don't know how to give proper results like Google does either
 
true
right see you later kids
stay safe out there
 
user1804599
oh god I’m dying youtu.be/Xw2bTpyHGCE?t=1m45s
 
@rightfold get treatment quick
 
user1804599
@LightnessRacesinOrbit France isn’t a race.
 
user1804599
But if it were, I would totally be a racist.
 
user1804599
5:18 PM
> Cosa Nostra smuggled Mexican drugs into U
 
@LightnessRacesinOrbit Meh, non-USB sandals.
Amateurs.
Man, the awesome cake shop is surrounded by police :(
 
Fuck the police.
 
cthulhu is like an invariant for horror games that deal with water
 
They invariantly suck
 
5:21 PM
Fuck Cthulhu too. Cthulhu is such a wimp.
"Oh, I got pierced by a boat, OMG I'm going back to the depths"
 
It wasn't on a boat
 
Yes, it was.
 
Joke got lost in translation
 
user1804599
cathulhu
 
Hmm, great. Now there are people protesting against the police. Fuck the protesters too.
I just want cake.
And a haircut.
 
5:25 PM
Cake was drugs
 
maybe the protesters also just want cake?
 
Oh well. I'll have a burrito instead.
And for that I'll have to walk around the damn block. Sigh.
 
I gotta go out and grab food too
but I'm feeling lazy :(
 
user1804599
Eat a crab.
 
@AlexM. I hope your favourite food places are surrounded by police.
 
5:28 PM
nah nobody protests about anything here
 
user1804599
 
is there anything wrong with using external libraries in school? Like, could I get in trouble?
 
ask your profs?
how should we know?
 
they take forever to respond
 
user1804599
@Crow ask the guy who’s in charge.
 
5:37 PM
@Crow a correct answer that takes long to get is better than an immediate answer that's most likely wrong
 
user1804599
1–0 merde.
 
user3010322
Lol.
 
user3010322
I want to try to implement std::bind
 
Xeo
have fun
 
user1804599
Let’s see.
 
user1804599
5:51 PM
What shall I write.
 
Xeo
Suddenly Steam friendrequest from Tony. denies
 
aight, I'm off to grab food
I'll eaterate over it
haha, get it?
no? okay.
I'll show myself out.
 
...
 
user1804599
@AlexM. dat pun
 
@Crow When the prof comes to compile your code, and he doesn't have the dependency, he'll probably fail you without thinking.
 
5:54 PM
@Xeo oh you
 
Xeo
3
Q: How to overload a template function depending on argument's call operator args or existence?

KlaimNote: I am working with VS2013 so the C++11 features available are limited. I am having trouble with overloading a template function depending on if the argument type is callable or not and, ideally, if the arguments match a specific pattern. Here is a very simplified example of the code I have...

meh
so easy
 
not for some of us
 
user1804599
@Xeo inb4 function traits.
 
Xeo
nah
 
> Note: I am working with VS2013
makes life more interesting
 
Xeo
5:57 PM
still easy
 
Yeah, sure.
Go sell your snake oil elsewhere.
 
Xeo
lol
 
user1804599
ICE
 
ICE
BABY
 
I think I'm drunk.
 
5:58 PM
Huh?
 
My boss is slowly nudging me into porting this large TMP stuff I wrote some months ago to MSVC.
 
Xeo
hehehehehe
 
Just something you might want to consider in the next 6 hours.
 
It won't work.
I'll do it if I get a 100% raise and get half the year as unpaid leave
That'd be totally worth the pain.
Can you imagine how far I could travel in a month?
 
so, my tl;dr for news recently. FUCK UGANDAN LAW
 
6:04 PM
In half a year I could get to India.
 
user1804599
Meh, inferior countries.
 
/sigh i wish i could sell those steam rebate coupons
or trade them for cards
 
Let's start making bets on when Godwin's Law will be invoked on this:
-8
Q: C++ or Java or JS Library for creating browser add ons

user3723670Can anyone tell me if there is a presence of library in languages such as C++, Java, JS or even Python where I can create add-ons for popular browsers like Mozilla, Opera or Chrome?

 
Mad OP is mad
 
user1804599
6:13 PM
Nazilla Firefox
 
@Xeo comma operator trips me up everytime, easy to forget that you can use it
 
Xeo
:)
The comma isn't the central part of my take on it, though. The priority is.
 
you should post it as an answer
 
user1804599
Komma
 
user1804599
Kom maar
 
user1804599
6:16 PM
Klaarkomen
 
Kom ma
 
Xeo
Komm ma' klar auf dein Komma.
 
user1804599
> The given email address has reached it's usage limit of 1 user.
 
user1804599
lol NickServ you suck at English
 
Xeo
@TemplateRex nevaaa
 
6:20 PM
lol they think CC licenses mean you have to let people do whatever they want on your website.
 
@thecoshman Jesus Christ.
 
Aww... deleted without invoking Godwin's Law.
 
@Xeo why not?
 
Xeo
Too lazy to flesh it out
whoever wants can pick it up
 
I'm stupid btw.
11
 
6:22 PM
@R.MartinhoFernandes Sure, and I'm the Pope.
 
pulling rank on Scott and Andrei, real convincing... — TemplateRex 19 secs ago
Alf is at it again
 
I thought it would be a good idea to leave my backpack in the office, go around the police blockade to have dinner, then go back around the police again to the office to get my backpack and then go around the police again to go home.
 
@TemplateRex o.O he changed his avatar for the first time since ive been on SO
 
Visual Studio's C compiler does not deserve to be called a C compiler. — Mysticial 9 secs ago
 
And neither does the C++ one deserve to be called a C++ compiler :P
 
6:26 PM
@Mysticial Neither does its C++ compiler ;) har har harBorgleader 10 secs ago
 
@TemplateRex You're the failbucket here, not him.
 
It's not really an appeal to authority.
 
@Mysticial: What are you, some sort of Godwin's Law Nazi? — unit 3524344 46 secs ago
^^ Oh the irony.
 
hey, how can I return a pointer which is local to one function to the calling function?
 
user1804599
return p;
 
6:30 PM
@DiptanshuKakwani What do you mean by "local"?
 
but wont that violate the rule that local variables cant be accessed outside the scope
?
 
user1804599
No.
 
user1804599
You cannot dereference a reference or a pointer to an object of which the lifetime has ended.
 
Xeo
@Xeo it's close to what I initially tried but more complete and seem to work with not-callable too! I'll have to check if VS2013 can work with that but otherwise you whould post an answer based on that? — Klaim 4 mins ago
 
I want to return a pointer.But the problem is that the variable is initialised in the function (and it is not global)
 
Xeo
6:31 PM
Bwahahaah, fools, believing that I would answer trivial questions!
 
@rightfold I suspect, as you surely do, that poster means 'pointer to an object that remains valid after the return' :)
 
user1804599
But returning a local pointer is perfectly fine, just as with all local variables.
 
user1804599
Except arrays, but arrays suck.
 
Being unhelpfully misleading through excessive pedantry 101.
Well done.
 
well I went outside
 
Xeo
6:32 PM
All CC licenses have a clause that state that you are required to get your question answered if the question is published under a CC license. The only one that does not have that clause is the CC-BY-NA, i.e. Creative Commons Attribution No-Answers. — R. Martinho Fernandes 4 mins ago
hahaha
 
huge clouds and strong winds
 
@R.MartinhoFernandes To be fair, 'return p;' was just about what I was going to post too:)
 
there's a storm coming
 
what if i have allocated space for it.When will it get deallocated?
 
better order at home
 
user1804599
6:33 PM
Returning a pointer returns a copy of it.
 
user1804599
So you don’t have to worry about that.
 
@DiptanshuKakwani There are 10^80 posts on this subject on SO already.
 
the sum of human stupidity is more on the order of 10^200 so that's really not enough.
 
Just don't listen to @rightfold.
 
@Puppy correct, I withdraw my motion
 
user1804599
6:34 PM
@DiptanshuKakwani can you give a concrete example of what you are trying to do?
 
user1804599
I suspect you don’t know what you’re talking about.
 
i m trying to return a pointer of a file content ...
 
user1804599
plank
 
Oh dear..
 
user3010322
@Xeo The thing you wrote before differentiates between Member Pointers vs. Member Functions, right?
 
6:37 PM
inb4 'printf(%s..) segfaults'
 
user1804599
fagsalts
 
Xeo
@ThePhD no
 
user3010322
Does it work the same way? I've never used a pointer-to-member-variable before.
 
fogsmurfs
 
Xeo
I told you that yesterday
 
user3010322
6:37 PM
You did?
 
user3010322
I must've spaced out. Sorry. :c
 
user3010322
I wonder what the syntax for pointers-to-member-variables is specifically...
 
Is there one?
 
It's the same as ptmfs.
 
Xeo
T C::*
 
user3010322
6:39 PM
But the usage syntax is different, it seems
 
Xeo
yesterday, by Xeo
@ThePhD And two other things about my "magic": You can currently pass (member) data pointers, like int i = 42; set<int>(&i);. Dunno if you want to support that in any way (would need INVOKE semantics), but it works.
 
Well, it's probably not a good idea to call it.
 
Xeo
^
 
user3010322
I don't think I can (my_class.*my_member)( 2 )
 
Xeo
which is why I mentioned INVOKE semantics
 
user3010322
6:40 PM
So I'd have to use std::is_member_pointer
 
Xeo
@ThePhD precedence: (my_class.*memptr)
 
user3010322
Oh, right.
 
hi
 
user3010322
@Rapptz PULLL REQUESSTUUU.
 
user3010322
Also konnichiha
 
6:40 PM
no
 
Jesus
I hope he never makes a PR on my stuff.
 
user1804599
konnichibaka
 
Can't you just pass the class instance and then read the member from it?
 
What an annoying whiny brat.
 
user3010322
;~;
 
Xeo
6:41 PM
Robot seems irritated today. Prolly due to missing out on cake.
 
There was cake? Nobody told me!
 
I believe the point is that there was not, in fact, cake.
 
He's been harrassing Rapptz about the damn PR for days.
 
In general how are you supposed to return a pointer from the function?
 
I guess I'll have to order pizza instead.
 
user3010322
6:42 PM
@R.MartinhoFernandes Just one. ;~;
 
It's been 3 days
 
user3010322
It's totes been one day.
 
user3010322
I made the PR 3 days ago, BUT I only added teh really cool stuff like
 
user3010322
Yesterday afternoon
 
user3010322
I think...
 
user3010322
6:44 PM
Unless I just don't remember all of saturday
 
user3010322
In, uh. Which case, whatever happened is not my fault.
 
And since yesterday afternoon you already badgered Rapptz how many times about it?
 
Xeo
What PR anyways? The one with set<sig>?
 
@DiptanshuKakwani Look, if you do manage to return a pointer to some file buffer that remains valid after the return, (eg. by dynamically allocating it), it still won't be much use 'cos you won't know how much data is in it. Read some SO questions/answers.
 
I have no idea what the PR is.
 
user3010322
6:45 PM
@R.MartinhoFernandes Probably an even 6 or 7 times.
 
And you don't think that's a bit too much? Chill a bit.
 
user3010322
:c Yessir.
 
user3010322
But I'm so exciiiteeed. ;~;
 
user3010322
The whole thing is stateless now. The whole thing!
 
user3010322
You could use sol in a block and then throw it out and nothing bad would happen and the rest of lua would keep working and the changes would persist inside lua!
 
6:48 PM
Tempted to have a mudslide but drinking alone is no fun.
It's also probably not a good idea to drink and solder.
 
Hm I need a model for release branches
 
Adriana Lima?
 
user1804599
% git checkout -b release
% git checkout -
% git branch -D release
 
Bah, no, they need to live forever
I want a branch for every release line
So I can freeze projects at minor releases, but still deliver bugfixes
 
¬_¬ hate markdown though
 
6:53 PM
you mean how ninja does it?
 
user1804599
@CatPlusPlus % git checkout -b release-v1.0
 
For fuck's sake
 
@CatPlusPlus This doesn't sound like something for branches..
Why not use a tag?
 
@Rapptz Sure it does
Tags are releases within a branch
 
@R.MartinhoFernandes You still soldering that PCB after a week? How big is it, exactly?
 
6:55 PM
ninja does tags + release branch
 
Got the missing parts today, I think.
 
@CatPlusPlus well, you want to tag the main track at each release, then you can make a branch at any of those tags if/when you need it.
 
releases/0.1 -> 0.1.0, 0.1.1, 0.1.2, ...
releases/0.2 -> 0.2.0, 0.2.1, 0.2.2, ...
master -> newest stable release
dev -> newest code
But I dunno if I should merge shit around, or cherrypick
 
@R.MartinhoFernandes Ah.
 
@R.MartinhoFernandes or in your case, drink or solder
 
6:56 PM
@thecoshman There's no "when you need it", because I want to have something to freeze projects at
 
I.e. I'm putting branch X into requirements file of the project and that's that
 
@CatPlusPlus yeah, your master branch will be tagged at each release. When you want to go back to that, you make a support branch starting on that tag/
 
I don't think you understand what I'm saying
 
tbh I don't see the benefit compared to a lightweight tag
 
6:57 PM
I put -r git+ssh://repo/release/0.1#egg=project into the requirements file
 
I hate soldering now 'cos the silver solder is crap. The old poisonous stuff was much easier to use and actually, well, wet the surfaces.
 
This project is now frozen at 0.1.* line
 
well you could make a branch right away, but you would need to commit something for the branch to exist
 
But if I make a bugfix and release 0.1.whatever, it'll still get updated on next deploy
Yes I'm starting a release branch when release is ready, my main issue is maintaining it
 
you mean from 0.1.n to 0.1.n+1 right? which makes sense for a bug fix
 
6:58 PM
Ooops.
 
n+whatever
 
Friend just called me inviting me to have a drink at the bar... just across the street. No soldering today.
 

« first day (1353 days earlier)      last day (3585 days later) »