« first day (560 days earlier)      last day (4388 days later) » 

11:00 PM
@sbi Makes sense, in a way
 
@thecoshman callback = [&] { return foo.giveMeOneInt(); };?
 
@StackedCrooked What are range based algorithms? Like range-based for loops? (Those are implemented on top of the begin()/end() iterators though, right?)
 
sbi
@thecoshman It turned out that the venue, "Prater Garten" was way too big. There must have been hundreds, if not a thousand sitting and drinking there, and I would have had no chance to find the guys, if it wasn't for @BjörnPollex, who was already found by someone who remembered him from last time. So I ended up at a table with six guys, but I have no idea whether there were more tables like that.
 
@NikiC Range-based for is an abomination.
 
@NikiC Dunno really. I believe there's a boost range library.
 
11:01 PM
@classdaknokt there you go:
0
A: How can I improve this implementation of hangman?

seheHere's my inline edits. The most conspicuous result is less manual work 20%-25% shorter (in lines, words, and characters). Less code means less bugs and less maintenance burden (if not obfuscating) Notes removed some not very valuable error handling don't pass filename as std::string for n...

@StackedCrooked Absolutely. It rocks
 
sbi
@NikiC A range is basically a begin and an end iterator bundled. So you can pass around a single object.
 
@DeadMG Why? I found that they are the only way to make the iterators bearable
@sbi Ah, that's pretty much what I'd like :)
 
`std::function<R(int)> callBack = std::bind(&Foo::giveMeOneInt, &foo);`
is that right? the `R(int)` bit looks funny to me
 
will look at that lib
 
@NikiC Because it only applies to one algorithm.
 
11:03 PM
@NikiC See Alexandrescu's talk titled Iterators must go if you want to learn more about ranges. However, that's a little controversial and experimental. Iterators are currently the preferred method for iteration.
 
and the underlying mechanism, ADL, is awful as well- plus it involves language and library coupling.
 
we need more c++ bashing here
 
a proper solution would have introduced range-based algorithms in general in the library, not a language feature that happens to be for one algorithm
 
oh! std::function< /* return type / ( / list of paramaters */ >
 
@thecoshman Function signature denotes the function's type. And a signature can be passed as a template argument. e.gl: std::function<int(bool, char)>
 
11:06 PM
@DeadMG that discussion again. Herb must have explained a dozen times: can't be done unless you'd want to break a tonne of existing code and kill developers by overload overload :)
 
You can use boost function_traits to decompose the type if you feel like doing advanced stuff.
 
@DeadMG ah, okay, makes sense
 
Besides, there is boost range, have your cake and eat it
 
@sehe I've never seen any comments by Herb on the matter. I see no reason why it would produce either of those results.
 
sbi
@StackedCrooked Calling anything Alexandrescu uttered "a little controversial and experimental" is one of the most hilarious understatements I have read in this room.
 
11:07 PM
@StackedCrooked nah, just want to be able to do fairly basic callbacks
 
@sehe Overloading is a crucial feature!
 
thanks :D
 
I think I've seen it in a blog and I'm sure I've seen some heated debat on channel 9
@StackedCrooked Of course. Let's overload our devs
 
@sbi I thought so too, but when I actually watched the video I found that the atmosphere was quite open and constructive.
 
sbi
@StackedCrooked Of course, it was. Those don't exclude each other, though.
 
user868935
11:10 PM
@anyone know any video tutorials for boost and video tutorials openCV?
 
A quick Google search should reveal that. There is a video section in the wiki I think.
 
@ChocoMan oh man, openCV! painful stuff
 
I got stuck in the weird part of youtube again.
 
user868935
google searches have been unreliable just as the the creators of SO mentioned
 
user868935
@thecoshman lol yup
 
11:12 PM
I recently discovered a youtube channel where a obese man shows off his big belly while petting it. All his movies are like that. He seems to have a small number of devout followers.
 
Ended up watching a 10 minute video of a python eating a small crocodile
@StackedCrooked Hahaha
 
@ChocoMan I've not touched for a while, but what sort of thing are stuck with?
 
user868935
@thecoshman just getting started lol
 
8 marks left to go on this midterm
and only two more submits
 
@ChocoMan IIRC getting the basic openCV wasn't too bad. just a heads up though, it doesn't work with all cameras :P
 
11:16 PM
@ChocoMan ironically, google search works way way better than SO search for SO
 
user868935
@thecoshman ok I will check that out
 
sbi
@KianMayne Been there, too. There's also one of a python that has eaten an alligator which was too big, and actually burst. (You don't see either act, just the result. Still impressive.)
 
Oh god
 
sbi
@KianMayne ...of hangover?
 
@sehe WAY better
 
11:18 PM
@sbi If that's an analogy than what language is "an alligator" :) ?
 
Google seems to magically know what you mean.
 
I saw one where it had eaten a huge deer, and it was bringing it back up, partially digested and completely black
 
@sehe I doubt many sites take the effort to consider more then 2 things when ranking results :P
 
sbi
@ScarletAmaranth No analogy. The real thing.
 
@sbi It would still make (possibly) a great analogy :P
 
11:19 PM
If I type my search query in Google as if speaking to another human then I often get better results than when I only type in a few keywords.
 
The very best search engine is duckduckgo.com
 
@ScarletAmaranth For it to make a good analogy, the Python would have to eat an Elephant :) Luckily it can't do that :P
 
@ChocoMan whatever happened to your previous persona (チョコレート人)? You remigrated? You finally found out what it meant :)
 
@sehe You may already know this, but chokoreto-hito literally means chocolate-person.
 
@thecoshman Really? Lucene/Lucene.NET anyone?
That is wildly popular. I can't imagine it because nobody uses it.
@StackedCrooked Yup I do.
@ScarletAmaranth Starting to like it, indeed
 
11:23 PM
How did you know that?
 
@sehe I like the way it shows the results, very convenient.
 
@StackedCrooked Google translate was my friend here:
Feb 14 at 2:51, by チョコレート人
Anyway, the problem was making unwarranted snide remarks
Valentine's day, no less! @sbi will recall the proceedings of that particular session :)
 
Ah, I see.
Valentine is very big in Japan.
 
By the way, I think there is some (SQL?) injection vulnerability going on in SO (chat) search: try searching for the word 'and' in the chat history
3
 
ooh, that’s bad!
 
11:28 PM
@sehe I strongly doubt that. It this is really the case then that's truly an epic fail.
 
Honestly, I don't know whether it is just reduced functionality (violating the principle of least surprise) or really a potential vulnerability.
@StackedCrooked +1 for fail. If this is an injection attack vector, the would make it Epic Legendary
 
sbi
@sehe No, I don't. Why should I?
 
@sehe or also fails. not succeeds.
 
sbi
Hey, @Konrad, we missed you at the Berlin meetup.
 
@sbi I dunno. I remembered it. And the most likely 'snide remark' was attributed to you (it wasn't snide, and it was polite, but he made a fuss and flagged everyone etc.)
 
11:32 PM
@sbi Yup, I’m sorry I couldn’t be there
@sehe Did you report it yet on meta?
 
sbi
@sehe Shrug. It might have been one of the many moments where someone got mad at me when I pointed into the direction of the book list.
@KonradRudolph Yeah, we did understand that. :)
 
@KonradRudolph No, I didn't. Why should I? (not stealing anyone's line at all...)
 
night all
 
you've
just
come dude :)
 
11:35 PM
o_0
 
You can search for "and" in the chat transcript by Googling for: site:chat.stackoverflow.com inurl:transcript/10 "and"
 
Y U NO stay longarrrr ?
 
@StackedCrooked I was aware of that. I actually don't need to search for and. I like to search a common word to see posts by any user. Words like 'a', 'in', 'so' etc. work fine
@ScarletAmaranth out of context horrors
 
Does anyone know what "iota" means? (As in std::iota)
 
Noo! I'm stuck looking at memes during an exam!
 
11:38 PM
@NikiC Ever heard of this thing called google :) ?
 
@NikiC Yup it calls a function for a range of integer values. Actually, it is documented
 
Misunderstanding ^^ I know what it does, but I don't understand its name
 
@NikiC It's kind of a reference to some Maths 'unit function' thingie
Iota (uppercase Ι, lowercase ι; ) is the ninth letter of the Greek alphabet. In the system of Greek numerals it has a value of 10. It was derived from the Phoenician letter Yodh (). Letters that arose from this letter include the Roman I and J and the Cyrillic І (І, і), Yi (Ї, ї), Je (Ј, ј), and iotified letters (e.g. Yu (Ю, ю)). Iota represents . In ancient Greek it occurred in both long and short versions, but this distinction has been lost in Modern Greek. Iota participated as the second element in falling diphthongs, with both long and short vowels as the first element. Where ...
If I'm not wrong ^
> In logic, the lowercase iota denotes the definite descriptor
 
@NikiC I was pretty sure that it’s not part of the standard … – but it is.
 
@KonradRudolph It is today. But it wasn't always. Boost Range supports it under boost/range/algorithms/extended.hpp or something like that
 
11:42 PM
Actually using Google to search the chat transcript in combination with the quick preview feature is quite nice.
 
ah, that explains why
 
Anyways, I usually use boost::irange (with projections if necessary)
 
the C++11 standard really could use a “what changed” section
 
@KonradRudolph +1. Perhaps we could build such a thing from/using git://github.com/cplusplus/draft.git
 
Any idea whether std::array is passed by value by default ? (No compiler handy at this very moment.)
 
11:46 PM
Depends on the signature of the function that you're passing it to.
 
The name is still strange ^^ I can't really find a clear answer what the iota function is in math. According to proofwiki.org/wiki/Definition:Identity_Arithmetic_Function it's just the delta function with 1, but that doesn't really make sense in this context (at least not to me).
 
If it takes by reference then it's ref.
 
Yeah, makes sense, was wondering whether there's some magic going on to preserve this "T* similarity".
 
You mean array decay into pointer?
That's considered one of the worst flaws in C. I don't think we want to preserve this behavior.
 
usnews.msnbc.msn.com/_news/2012/04/28/… @StackedCrooked reminded me of Pukkel Pop 2011, briefly. Did you go there recently?
 
11:48 PM
Well, i don't quite mean the decaying part :)
I just mean the behavior that the decaying implies that it just happens to come sneakily by ref :)
 
@sehe I went to Pukkelpop in 2008 and 2009.
It's indeed a similar thing.
 
Quite disturbing, things like those.
 
In Pukkelpop the equipment that hung in the top of the tents fell down on the people below. That killed a few people. Must have been really scary.
 
Not unlike the train crash near Amsterdam last week. I was on a concert trip that very weekend and had decided to travel by train because it feels so much safer than the touringcar (and it is quieter)
Obviously, or at least fortunately, I wasn't in that particular pair of trains, but I could, ironically, have been.
 
"#include <mellow>" It's kinda funny as i come to think about it, how fragile our life is ...
 
11:55 PM
It's a worrying thought that at any day your life can end or drastically change by a minor coincidence, i.e. a stroke of bad luck. Best not to think about it too much.
 
Mallow or Mallows may refer to: ;Nature: * Malvaceae, family of plants; in particular the following genera: ** Abelmoschus ** Althaea (genus) – Marsh mallow ** Callirhoe – Poppy mallow ** Corchorus – Jews Mallow, Molokia, Mlukhia ** Hibiscus – Rosemallow ** Kosteletzkya – Seashore mallow ** Lavatera – Tree mallow or rose mallow ** Malacothamnus – Bush-mallow ** Malva – Mallow ** Malvaviscus – Turk's cap mallow, wax mallow ** Sidalcea – Greek mallow, Chequer-mallow ** Sphaeralcea – Globemallow *insects: ** Larentia clavaria – mallow, species of moth ** Mallow Skipper, butterfly ;Places:...
@ScarletAmaranth Please disambiguate ^
 
> a herbaceous plant with hairy stems, pink or purple flowers, and disk-shaped fruit. Several kinds are grown as ornamentals, and some are edible.
Merriam websters
 
Ah. That explains.

Not
 
I actually meant mellow :)
 
Well, it's a dictionary. It's supposed to define, not explain.
 
11:57 PM
@ScarletAmaranth Ah. A bit more sane
 
^^
Did you #exclude your <explication> module :) @sehe ?
 
@ScarletAmaranth That would be #export <explication> since modules are imported, not included. Now, obviously, I don't export explications, I sell explanations. (common sense)
 

« first day (560 days earlier)      last day (4388 days later) »