« first day (279 days earlier)      last day (4661 days later) » 

Als
4:00 PM
@sbi: grrr..grr encoder error!
@sbi: I saw you posting in the same thread as me in a long long time.
 
sbi
@Als Well, if I post answers nowadays, I usually only answer to questions which I can answer right away and which don't have answers yet. That makes little overlap with any of the commons in the C++ tag, but probably provides at least 30% of the rep I got when I answered ten questions a day.
Also, I often answer at queer times, like right before I go to bed. You might still be at breakfast then. :)
 
Als
@sbi: You sure earn a lot of rep, even if you answer a few Questions, because Your answers are so good :)
 
0
Q: How can I define operator< for bidirectional iterator?

Márton KőrösiHow can I define operator< for bidirectional iterator? ( list::iterator ) (I would like to use list and not vector.)

 
sbi
@Als Actually, all my high-voted answers are quite old.
 
@sbi like you? ;)
 
sbi
4:05 PM
@0A0D Of course I like myself! Don't you like me, too?
 
@sbi nice comeback
 
Als
@sbi: You don't answer a lot nowadays because you don't get the time, or you don't feel like answering?
 
I'm out. Won't be back untill 2nd of August. Have a great week!
 
Als
@0A0D: knocked out
 
sbi
@ÓlafurWaage Have a nice holiday!
 
Als
4:06 PM
@ÓlafurWaage: You too have anice week!
@sbi: I remembered when that happened...
 
sbi
@0A0D I've never been away, so there's no need for me to come back. :)
 
@sbi roll eyes
 
I've been looking a lot at functional programming recently, and it's looking like all along I was doing functional in C++ with TMP...
Would you say template meta programming is somewhat a functional language itself?
 
sbi
@0A0D Why should I roll my eyes?
@Josh Not only somewhat.
@Als Actually, this isn't something that happened once. It's going on all the time. (meta.stackoverflow.com/questions/99300/…)
 
this code compiles...
struct N { int N; }; std::function<N*()> x; int main() { auto(x)()->N; }. What does it do??
 
Als
4:13 PM
@sbi: Sigh...I am not so active on meta, but seems So going down the hill
 
is it well-formed and well-defined?
 
12
Q: Solve the eight queens problem at compile-time

Martinho FernandesCan you solve the eight queens puzzle at compile-time? Pick any suitable output format. I'm particularly interested in a C++ template metaprogramming solution, but you can use languages that have similar constructs, like, for example, Haskell's type system. Ideally your metaprogram would outpu...

 
on gcc it compiles
 
sbi
Wow. Due to @Als pestering^Wasking about me answering on SO today, I just looked after my rep and I learned that I earned >100 today from answering two questions. Not bad for the little effort I put into these. :)
 
man
I hate depending on other people
 
sbi
4:17 PM
@Josh Yeah, @Fred already had my vote for that.
 
told my mother we had plenty of yoghurt and we don't, and now she'll have to change her shopping
 
sbi
@DeadMG Well, that's what man was invented for: read and help yourself.
 
@sbi Yeah - that answer is pretty sick :)
 
sbi
@Josh Why is it sick if I upvote @Fred?
Oh, never mind.
 
Als
@sbi: Yes you steal all the rep!
 
4:18 PM
@sbi Sorry, I should probably leave my 90's US slang at the door and stop dating myself :)
 
Als
@sbi: You should confine yourself to the chat :P
let the kids earn a few rep :D
 
sbi
@Josh You know, if anything then 90's US slang is the one I know the best. I spend a while in the US in the 90's. :)
 
@sbi Wicked.
 
sbi
@Als Well, it's not like I earned a significant percentage of SO's rep of the last half a year.
 
@DeadMG You live with you mom?
 
4:22 PM
I'm visiting, it's the summer and university is over
my parents want me to stay for like, the whole summer but I think I'm ready to leave soon
 
@DeadMG Just to clarify, this comment was about the mom you are staying with?
 
yes
 
Ok.
 
it's nice to be home with the puppy
 
sbi
@DeadMG Now @Josh will believe your mom's a puppy.
 
4:24 PM
but I think that things like, not being able to use the internets for gaming, and my diet requirements are really bringing things down
my family are all sitting eating cream cakes in the living room, and I can't have one
 
@sbi No no no - you've got it all wrong - I only confused the puppy for an Erlenmeyer flask the other day, not a mom.
 
lol
 
OMG.... Oslo..... pics are coming in. :(
 
sbi
@Josh <looks_at_the_puppy's_avatar> I can kinda see how that could have happened, you know...
@Xaade Youtube must be bustling with it. Indeed: youtube.com/…
 
What does the "views" number in my profile refer to?
(Just under the "reputation" and above the "flag weight".)
 
sbi
4:28 PM
@KerrekSB The number of users who have viewed your profile?
 
@KerrekSB Your behavior is the model, your thoughts are your input, and that's the amount of views you have ( of course )
 
@sbi Yeah, there's pics of people being carried out.... it's gruesome.
 
maybe I should just introduce a function keyword
 
sbi
@Xaade The news in the radio just spoke of at least two dead ones.
 
I hope they find out who did it.
 
4:41 PM
@Josh Who's the controller? My wife doesn't have a profile as far as I'm aware.
 
Als
We too had 3 bombs going out here a week ago
that left 20+ dead :(
 
@KerrekSB Nice.
 
@KerrekSB A wife wouldn't be a controller -- she'd have to be the dreaded "goddess class".
@Xaade Makes me wonder if the Romans might not have had it right, and we should bring back crucifixion.
 
@JerryCoffin crucifixion is lightweight in my book, because the punished ones die in that process.
We can't let them think they'll die at some point and it'd be over.
I was thinking more along the lines of being more culturally sensitive to what they wouldn't like.
sex change maybe?
 
@Xaade While I sympathize (somewhat) with your line of thinking, I'm rather in favor of the idea of there never being a repeat offender.
 
4:48 PM
There won't be repeat offenders if they think we'll just alter their lifestyle to that of subhuman.
I say, let them eat bacon.
It's easy to be a martyr. That's why they suicide bomb.
Now, living through a suicide bomb..... that sucks.
 
sbi
@Als Ah, so you're indeed Indian. Yeah, I heard about that. And IIRC, it was already the second time this happened, right?
 
It appears that when it comes to terrorism, no one's exempt.
Easy to be a pacifist if nothing happens to you.
 
sbi
Anyway, bombs or not, I really oughta feed the kids now. See you later.
 
Als
@sbi: Yes, the city I am in is always on the hit list :(
 
Ironically, the small town of sulphur in Louisiana is on the projected target list.... because of all the oil refineries.
 
sbi
4:53 PM
@Als Mumbai, was it?
 
@DeadMG Visual basic?
 
Als
@sbi: Yes...And oh I updated my profile
Als, Mumbai, India
13.8k 2 15 45
@sbi: now you know where I am
 
@Xaade: What about visual basic?
 
@DeadMG function ... end function.
 
sod end function
it'd look pretty much like it does now, just with "function" prepended to the front
 
4:56 PM
Hmm.... I don't know if that's a good thing
People would be scratching their head..... "Why I have to write this, can I haz less keywords"
 
the language being parsable is probably a good thing
 
class A { void function A(); };
 
and I already cut things like new, delete, const, volatile, the casts, register, etc
I was more going for function A() (-> return_type)?
 
ZOMG.... no const????? How will I tell people not to change things.
 
it's a member function on the type "type" now
instead of const int, you just have int.const(), effectively
same with the casts, they're member functions on objects of type "int" now
1.static_cast(float);
 
4:58 PM
int.setconst(true);
 
no
that would imply that you set the entire int type to const, which is not true.
 
oh
 
const() returns a new type, which is const int, effectively
 
ACONSTINT int.const() { return const version }
 
@DeadMG Along the lines of what I was talking about earlier (wrt/ examples) here is an example solution to the Zebra Puzzle in Haskell pastebin.com/fVdrm1xC
 
5:00 PM
firstly, I completely can't read Haskell, and secondly, I have no idea with the Zebra Puzzle is
 
int.const() n = 45;

n.gettype().ToString() = ???
 
@Xaade: What?
 
I guess my point is - if you tried how to describe the solution, I don't know of a more eloquent way. Sometimes examples are the most efficient way to communicate an answer.
 
sure, but they are not and never will be mandatory and asking for one is not a real question
 
5:03 PM
um... zebra puzzle shouldn't be that hard.
 
Personally, I learn best by example. I find when a I come across a difficult problem the first thing I do is search for an example solution.
 
It's just a giant word problem...
 
@Xaade Sure. Write a solution.
Keep in mind my point had nothing to do with the difficulty of the problem; my point was about giving an explanation in the most elegant way possible.
Because several people had said that examples are not answers earlier.
 
0
Q: Will web development in c++ cgi really a huge performance gain ?

user310291I'm asking the question after reading this article http://stevehanov.ca/blog/index.php?id=95 Also isn't it a penalty to use cgi instead of fastcgi ?

Web development in C++ again...
 
That is definitely a poor question.
 
5:09 PM
Yeeeeep.
 
examples can be answers
but answers are not examples
 
@DeadMG I agree; but this is separate argument.
 
examples are perfectly good answers, but you can never just ask for examples as a valid question
 
I should clarify - not all answers are examples, but some examples are answers it precisely what I'm saying.
@DeadMG So, if he had asked for an answer and was provided and example (As an answer, of course) that would be ok, but since he asked for an answer specifically in the form of an example, it's not ok?
I see a minor, arguably pedantic difference in the form.
 
it's not ok because answers which don't include examples are valid answers
and answers which are just examples are usually downvoted, especially for something that's not very trivial
and all valid answers should have an equal chance of being upvoted and accepted
what about all those people who might search and find his question later? they might prefer a textual explanation
 
5:16 PM
@DeadMG Perhaps, perhaps. I think, however, those answers will then be upvoted by virtue of their quality.
 
@EtiennedeMartel There are web frameworks for C++.
And you probably could use C++/CLI in ASP.NET.
 
answers compete equally in their quality
not by the personal preferences of the question-asker
 
I see what you are saying, @DeadMG. I'm just not convinced that closing a question just because the asker wasn't aware they had to ask for an answer instead of an example makes sense; when the differences are minor.
Further, I think that's what editing is for if it's that big of an issue - that way the root question can still be answered.
 
@Josh it's actually easy, I've already backed out of one problem I had and know who drinks water.
 
rofl\
 
5:20 PM
the difference is fundamental- answers which don't contain examples are quite common
 
@Xaade Once again the difficulty of the problem is still not the point. Compare the example to the very verbose answer given in wikipedia.
 
Als
@TonyTheTiger: Hello..
 
hi
how goes it?
 
Als
@TonyTheTiger: It goes lousy...:P
I left you an Q yesterday, No answers...
 
@Als what Q?
I got distracted by reddit, most likely :P
 
Als
5:22 PM
@TonyTheTiger: About SO careers 2.0
 
@DeadMG That's not my point; but, I guess I'm not explaing myself clearly, and I don't know how else to phrase my point - so sure, ok.
 
@Als I missed it, can you ask again?
 
Als
@TonyTheTiger: I learned from @sbi, that you were the one to invite him to SO careers 2.0, I received an invite to join it yesterday, and so wanted to ask, when does one get such an invite? & Is joining it any good?
 
@Als I got mine from SO itself, randomly. It is worth joining, esp if you're out for a new job. Yes, I did get an invite for @sbi. :)
 
What is SO careers? Job classifieds within the SO community?
 
5:25 PM
lol
 
Als
@TonyTheTiger: I see, Me too, got it from SO itself, so the Q is, when does one get an invite?
 
@Als I don't know
I think they just pick someone, at random
 
Als
@TonyTheTiger: What did the invite mail say?
They didn't pick me up for a long long time though then :P
As if i never existed :D
Boooo...All alone :)
 
You are never alone!
 
Als
@Collecter: Oh hello
 
5:41 PM
How are you doing?
 
Als
Well, thank you, hope you too are..
 
sbi
Posted by Joel Spolsky on February 23rd, 2011

One day, you’ll be telling your grandchildren about getting a programming job, version 1.0. You would send a “resume” to a “recruiter.” It included all kinds of silly information required by the esoteric resume ritual (foreign languages spoken, whether or not you play ultimate Frisbee, Microsoft-veteran status). This so-called “information” was utterly useless at determining whether you could program or not, but if you spelled everything right and used suitable fonts, you could come in for a day of interviews at which you would be asked to perform mundane programming tasks on a whiteboard. …

I told you the other day there's a blog entry about that. Why didn't go and look for it?
 
Als
@sbi: I did, it answers none of my Qs
It doesn't really say if invites are random
 
sbi
> Invitations come from your peers. We’ll give members a few invites to distribute to programmers they know and trust. Or, contribute to Stack Overflow (and our other sites), get voted up by a lot of smart people, and you may get an automatic invite.
 
@Josh Finished it.... checked answers
 
sbi
5:43 PM
What's unclear about that?
 
Als
it says something cheeky like, Get upvoted from smart people
@sbi: Who are the smart people?
 
zebra puzzle isn't that hard at all.
 
Als
with magical votes..
 
As far as coding it, the only problem you'll have is the chesterfield smoker next to fox.
 
sbi
@Als Well, at SO, wouldn't high rep be supposed to correlate to smartness?
 
5:44 PM
Not once did I have to guess and back out.
Which means it's not a hard problem.
No ambiguity, so you shouldn't need a recursive algorithm even.
 
Als
@sbi: I thought so initially, but then there was a user here yesterday, who did'nt had high rep !more than 10k and had received an invite
 
sbi
@Xaade Actually, backtracking is considered to be a feature of high-level languages.
@Als "...you may get..."
 
@sbi How did I conflict with that?
I'm saying the problem isn't hard because you don't have to backtrack.
You only have to eliminate.
 
sbi
@Als Obviously, I don't know their algorithm. Ask on meta, if you want. But look first, it's likely someone already did.
 
Als
@sbi: yes there is a may, so what is the criteria is what i(& a couple of others) were confused about since yesterday
 
5:47 PM
This can't go here because data procludes it.
You could simplify the problem into Tetris pieces that stack together and fit it like a puzzle.
 
sbi
@Xaade Not at all. 'twas a brainfart of mine.
Anywy, gotta bully the kids to bed...
 
eat and to bed within an hour.....
 
Als
@sbi: Good day!
 
@Xaade I'm glad you enjoyed the problem. You should post your code somewhere.
 
@Josh My brain was the code.
 
5:52 PM
@Xaade Ah - ok.
 
more importantly I found the problem to be modeled as a 2d puzzle with growing pieces.... which should help a computational algorithm come along.
You simply add to the pieces as data precludes them fitting elsewhere, then you put the puzzle together.
 
@Xaade Quite simple when you put it that way, for sure.
 
The important point is that there was no ambiguity (like you find often in Sudoku).
cowboy : cow rangler :: sharkpup : shark rangler
 

« first day (279 days earlier)      last day (4661 days later) »