« first day (649 days earlier)      last day (4317 days later) » 

9:21 AM
Happy walking in the rain.
 
I think I should get to grips with lambda
 
o_0
 
Can't help but laugh..
It's an out-of-context picture though.
 
Humm
I have an std::map<int, std::string> and want to put just the int keys into a std::set
 
9:32 AM
does map not have a 'get keys' function?
 
std::set takes iterators in the ctor as argument, but how to tell it to just put the keys values in
ah..
 
rubber duck
 
in 03?
 
did you not just work it out your self?
 
Sure I could just iterate and insert, but there might be a more elegant one-liner.
 
9:35 AM
Write a function and use that function in your one-liner :p
 
¬_¬ who the hell pronounces 'char' as 'care'
 
with std::transform and lambdas
humm but I have no C++11 here
 
Perhaps with algorithms, something like std::accumulate(map.begin(), map.end(), [](pair<K, V> p) { ... });
 
yeah but I don't have that here
 
Maybe not accumulate.
Hand written loop wrapped in a function is a fine solution imo.
 
9:40 AM
@thecoshman People don't don't know that char is short for character
And/or people who are trolling
@thecoshman People don't don't know that char is short for character
 
I can sort of see how you normally say 'Kah-rack-ter' thus might be tempted to say 'kar'
 
Just spent an hour in the car with the head of marketing
That was awkward
What do you say to an intimidating old man who you've only talked to formally?
 
10:02 AM
In whiskey
@Neil As in martial arts: you see what his move will be :)
 
Ell
morning all
 
it worked. only sleep got in the way.
har har
 
Ell
what worked? o.O
 
@Ell follow the ... ah well, you'll figure it out
 
Ell
okay :P
I think I might write a sliding puzzle solver today
 
10:08 AM
100,001, how nice and symmetric
 
Here's a problem for you
 
Ell
-al
 
@jalf congratulations!
 
If you're like me, you'll write a program to do it for you
 
room topic changed to Lounge<C++>: You're all invited to my 100k rep party! [c++] [c++11] [c++-faq] [fun]
3
 
10:09 AM
What number when once you've moved the one's digit to the left-most side is the double of the original number?
So like 36 becomes 63, but 63 isn't the double of 36
 
Ell
hmm
 
@jalf 100k? Nice job!
 
@jalf Congrats. Whatever that means.
 
ohhhh party!
 
There are so many c++ stds, I feel kind of confused. — Alcott 6 mins ago
 
10:15 AM
Will there be free food?
 
Will there be recent compilers available?
 
10^n*x + y = 2(10y + x); x < 10; y < 10^n
(10^n - 2)x = 19y
19 | 10^n - 2
n = 17
y/x = 5263157894736842
x = k, y = 5263157894736842*k, k <- [2, 3, ..., 9]
answers: 105263157894736842, 157894736842105263, ... 473684210526315789
easy but fun, thx.
with repeating answers for n = 17, 35, 53, etc.
 
-21
Q: Why is the establishment allowed to stifle my ability to campaign?

Evan CarrollIn this question, the following verbiage was repeatedly removed -- this inhibited my ability to answer the question. We all know Evan Carroll isn't yet a moderator on English.StackOverflow, but he ought to be and he'll win the election if enough people vote for Evan Carroll next week! I'd l...

 
the first n=35 solution being 105263157894736842105263157894736842
the first n=53 solution being 105263157894736842105263157894736842105263157894736842
...aaand so on.
 
@R.MartinhoFernandes lol
 
10:29 AM
oh look, I made a pattern. I guess you could just read this straight off from the decimal expansion of 1/19.
 
@R.MartinhoFernandes oh my
 
@MetaEd Where does it say that if the content is relevant and if it answers the question the act is off-topic if it involves a moderator election? I think if I can help someone twice, first by answering their question and then by getting myself elected then it's a win-win-win. — Evan Carroll 14 hours ago
I hope he's not serious.
 
@jalf Congratz
 
@ecatmur nicely done :)
 
10:39 AM
2
A: How can I call a destructor of a templated class?

R. Martinho Fernandes @Griwes because I need to reinitialize the same sparse matrix several times in a loop. I hope that destructing the matrix every time by its destructor will lead to minimal memory leakage. The clear, obvious, safest, and probably most efficient solution is to just use the normal C++ semantic...

Seriously, WTF is wrong with the posters?
 
Everything.
 
It annoys to see a question titled "How can I call a destructor (...)" and everyone jumps at the idea of calling the destructor.
 
meh
I don't know how you even get the idea that you'd explicitly call a dtor
 
Last night's upvoting was reversed.
But I still have the badgers :P
 
10:55 AM
// As far as I'm concerned, if it is not in database, it shouldn't be there.
// If directory for change already exists, delete it in order to avoid
// confusion/panic/mass hysteria.
Actual comment I just wrote
Internet, anything you would like to add?
 
A rickroll link.
 
@R.MartinhoFernandes Excellent contribution
// For critical and vital information, see this link youtube.com/watch?v=oHg5SJYRHA0
 
@R.MartinhoFernandes what you doing with badgers?
 
@R.MartinhoFernandes You, sir, are an asset to the worlds fauna keepers
 
Oh no, you don't.
It's starting again.
Fuck this.
I don't want a crazy upvoting stalker.
 
@jalf Will there be board games at your party? I want to play that one you said was fun last time, I cannot remember the name though... Space something maybe?
 
Galaxy trucker?
 
That is it
 
11:31 AM
Deep Purple's favorite game?
 
11:45 AM
@KeithLayne ?
 
"Space Truckin'" is a song by British hard rock band Deep Purple. It is the seventh and final track on the Machine Head album. Its lyrics talk of space travel and it showcases the vocal abilities of singer Ian Gillan and powerful drumming of Ian Paice. According to Ritchie Blackmore, the main riff is based on the Batman Theme. Live performances When it was first performed live, the band appended an instrumental that was originally part of the song "Mandrake Root" on their first album but gradually evolved into a showcase for Jon Lord's Hammond organ and Ritchie Blackmore's guitar solos. ...
 
static void (wxImagePanel::* const dispatch[])(wxUint32, wxUint32, wxUint32, wxUint32, const wxUint32 *) = {
    &wxImagePanel::draw_texture, &wxImagePanel::draw_texture_90, &wxImagePanel::draw_texture_180, &wxImagePanel::draw_texture_270
};
Ah, the beauty of C declarator syntax...
 
How many languages even let you do that? Use a typedef or std::function to obtain readability.
 
2 days ago, by R. Martinho Fernandes
template <typename Class, typename Signature>
using member = Signature Class::*;
 
Do you have your headers annotated with URLs to the first time you posted each snippet to chat?
It would be so awesome to just snap back with "Posted 2 years ago" all the time… (in a couple years)
 
11:54 AM
@R.MartinhoFernandes This is a question for you
0
Q: rvalue delegation, or the rvalue equivalent of a const member function

i_photonstruct that { that &frob() { return *this; } that frob() const { return that(*this); } //that &&frob() && //<-called only if *this is an rvalue //{ // return move(*this); //} that() { // make thing...

 
@R.MartinhoFernandes oooh, badges are a very different thing to badgers
 
Ell
hi guys
anyone know a programme to generate diagrams of graphs? as in the mathematical graphs like nodes and edges and whatnot?
 
graphviz
yfiles
gephi
 
Ell
right thank you :)
I just found graphviz as you said it :L
 
yEd from yworks is in java, but it's a free editor and is really featureful
 
Ell
12:15 PM
thanks :)
 
wth? this guy is using final keyword everywhere
Am I not understanding this or is he just a lunatic?
 
final is not a keyword :p
 
In Java it is
Didn't even know you could modify a method parameter with final.. that should technically mean it cannot be changed once it has been assigned
 
#ifndef _WX_DEFS_H_
#define _WX_DEFS_H_
^ This is undefined behavior, right?
 
Which I suppose would be the first time it's called? That sounds wrong
@FredOverflow Why would that be undefined exactly?
 
12:28 PM
Underscore followed by uppercase letter?
 
Oh bad pun.
 
@Neil final in Java just means "constant variable". Or are you talking about a different kind of final?
 
java's final is lame
 
@FredOverflow No probably that. I figured it meant something more like static
 
it's only the reference that is constant, not what is refereed to
 
12:31 PM
0
Q: C++ how to check cin input is A-Z pattern

Baoky chenC++ how to check cin input is A-Z pattern How do i check if the following cin >> input; and input is A-Z , means not number , and is A to Z;

who on earth voted "too localized on that?"
 
@Flexo EBCDIC or DIE
 
@thecoshman It couldn't mean "constant referee", because Java has no notion of const methods.
 
@FredOverflow Yup
 
@FredOverflow, It's reserved for the implementation.
So, whatever that's officially called. Leads to UB maybe.
 
final on a class means it can't be inherited while final on a method means it can't be overridden
and final on a variable apparently means it is const
 
12:38 PM
hi
I have an off topic question
i launch a new product>software great success>competitors know it>release their version to compete with me
what if they know about the software and release their own version to compete before my software can succed?
 
Then you're fucked.
 
will it be a possibility?
 
It's all possible.
 
@techno Software patents :)
 
if a company which does not develop software's in this niche field know about it
will they take interest in developing a product from the bottom?
it will take time right?
 
12:44 PM
@techno That's very unlikely
 
you mean?
 
Are you afraid that somebody will run away with your idea? You should rather worry on getting the implementation done instead.
 
"Grown-up" companies are not interested in developing products out of their range of activity
 
@StackedCrooked yes
 
Good Implementation > Good Idea
 
12:46 PM
If you have a great idea, chances are many other people also had it. Only they don't have the time or necessary resources to implement it.
 
eg:company developing video editing tool
will they be interested in specific niche in the video field itself
 
If a company sees your product and is interested in it, they will make you an offer before developing their own
 
It depends entirely on the relative risk, potential reward for investment, etc, etc.
 
ok
 
You got the benefit that you know it now, competitors will likely only know when you release -> you got a head start.
 
12:49 PM
Yet, I believe you're being paranoid. Getting the job done is the first step, you should focus on that.
 
i have released it
 
In the ocean?
 
no
 
Oh. Commercially? Beta?
 
in the web
 
12:49 PM
Free?
 
commercilly
 
Oh, kewl.
 
Commercially
 
Patent something if you can. You got a grace period of 1 year since disclosing.
 
Dammit, I don't feel like working today.
It's too summery.
 
12:51 PM
Patenting is good for many things. One is that you will avoid many other people even thinking about doing it from the ground.
 
i think if a product is public then there will be competitors anyway right?
 
@StackedCrooked The same. I think i'm gonna take a day off tomorrow
 
I want to do that too. But I have only 3 days left for this year :(
 
@techno Well, if it's good there might. You got a big market?
@techno Thought about licensing?
 
all done
 
12:53 PM
@StackedCrooked When do you get them ?
 
You got a proper startup or what?
 
@kbok I like to save them for emergency situations.
I can take 32 days off in a year. I've been wasting them..
 
@StackedCrooked I mean, at which time of the year are they reset ? Or maybe it doesn't work that way.
 
They reset on January 1st.
 
bye
 
12:55 PM
Huh.
 
Also I reserved 15 days for my trip to Japan in October.
 
Nice !
Heh, our vacancy system is an old MS-DOS app. Good stuff.
 
Hey does anyone have any advice about how/where to study templates?
 
@jozefg, Look in the book list.
There's one or two specifically about them.
1362
Q: The Definitive C++ Book Guide and List

grepsedawkThis question attempts to collect the few pearls among the dozens of bad C++ books that are released every year. Unlike many other programming languages, which are often picked up on the go from tutorials found on the Internet, few are able to quickly pick up C++ without studying a good C++ book...

 
There is I know, but sadly I'm flat assed broke currently. I was wondering if there is any halfway decent free/online resources?
 
1:02 PM
bruce eckel's book is free online legally
It's pretty good and I guess he covers templates
 
@jozefg There's also good material about templates on the boost site.
 
not enough boost.MPL
 
@Flexo yeah im a little beyond that but not by much...
 
I love vacation!
 
@StackedCrooked whered you go?
 
1:03 PM
@jozefg I'd say give it a go and link to ideone when you get stuck :)
 
@Flexo alright Ill give it a go
 
@jozefg I just like to take a day off now and then.
 
@StackedCrooked nice haha Something I was did quite a bit through highschool haha
 
This is your boss. Back to the coal mines.
 
whip crack
 
1:06 PM
@jozefg if you have clang its errors are often much easier to comprehend
 
@Flexo sadly im stuck with gcc, I actually decided to learn more after I typed make_shared<State>(new SubClassOfShape()) and got a 5 page error message. that was...fun
 
The only thing I have against long errors now is that they take extra time to write before I can fix them.
 
@jozefg there's a knack to reading them
 
Its a bit frustrating since Im compiling commandline in windows, so scrolling all the way back up to the original initial message is flipping annoying
 
1:22 PM
@jozefg pipe the output to a file then?
 
thats what I do now, just took me a while to figure that out
 
@R.MartinhoFernandes for badges that can be awarded multiple times I think you keep the badge "borrowing" against future badges you get awarded of the same type.
 
@jozefg -Wfatal-errors.
@Flexo Hmm, seems not.
I already got one more Nice Answer+Enlightened badge pair today.
 
1:39 PM
@R.MartinhoFernandes in that case the last few paragraphs of meta.stackoverflow.com/a/17854/153020 is wrong :)
 
Hmm, strange.
The reversals are listed on my rep listing, and I lost 2 rep from it, but the answers are still at 10 votes.
 
Need some chat helps:
-1
Q: Vector is out of range

AndresA good day to all stackers. I am running my program in Quincy2005 and I have this following error. "Terminate called after throwing an instance of 'std::out_of_range" "what(): vector::_M_range_check" The below is my bunch of codes int ptextLoc,ctextLoc; //location of the plain/cipher txt ...

And on another note: Good morning.
 
@Drise You're still subtracting 1 from an unsigned value that could be 0.
@Flexo trying to comprehend gcc errors is good exercise ;)
 
Yeah, I'd stick with the >=
 
1:48 PM
ohai
I'm hiding from the hot weather today
 
Corrected for it, good point @ecatmur.
 
perfect time to spend on this chat
in the shade, and the coolness of my room
 
I don't like !keyvector.size() for testing if the size is zero.
Why don't you just write what you mean?
 
@R.MartinhoFernandes I don't know what you're talking about :p
 
@EtiennedeMartel Where's that from ? I keep seeing it
 
1:52 PM
is there a good faq on cross platform code?
 
Anchorman: The Legend of Ron Burgundy, or simply Anchorman, is a 2004 comedy film, directed by Adam McKay and starring Will Ferrell. The film, which was also written by Ferrell and McKay, is a tongue-in-cheek take on the culture of the 1970s, particularly the then-new Action News format. It portrays a San Diego TV station where Ferrell's title character clashes with his new female counterpart. This film is number 100 on Bravo's 100 funniest movies, and 113 on Empire's 500 Greatest Movies of All Time. The film made $28.4 million in its opening weekend, and $90.6 million worldwide in its to...
 
in particular, having platform specific implementation, but to the outside world, it looks like the same class
 
@EtiennedeMartel Is this actually a good movie or just knowing the title will be enough ?
 
@kbok It is if you like nonsensical humor.
 
1:55 PM
Gotta see it then.
 
anyone here seen abe Lincoln vampire hunter?
 
@jozefg yes. It's a pretty good film. It's not really a serious horror film, but very entertaining non the less
 
You can watch ASCII Star Wars by telnetting to towel.blinkenlights.nl.
5
 
@thecoshman Ok ill have to go see it sometime soonish
 
indeed
 
2:00 PM
That along with ironsky, heard of that one?
 
sudo reboot, my favourite OSX tool.
 
@R.MartinhoFernandes Erm, depending on how your mind works, this might be exactly what you mean if(!keyvector.size()) -> if the size of the keyvector does not have a non-zero value
Although, with a vector that has the .empty() method the need for this 'reasoning' pretty much evaporates
 
@sehe Fix your mind :P
 
@R.MartinhoFernandes I'm on it
 
@R.MartinhoFernandes Are you being serious, or am I missing a joke?
 
2:13 PM
@KianMayne Serious.
Try it.
 
OK Installed PuTTY
Oh
God
My
 
Obj-C is PHP.
 
Colour support with IPv6?!
 
Kind of.
Well, the IPv6 version is exactly the same as the IPv4 one.

The difference is in the visitors...


Je bent een Stoere Bikkel, aka You Rock.
 
Ahahaha, I fixed the damn app.
 
2:17 PM
@KianMayne 2kddp to fix the order (or :$-2m $-1)
 
What?
 
Obj-C === PHP
FTFY
 
@sehe Oh right yeah I had a "You can perform the action again in 1 second" or whatever
 
muhahaha
@R.MartinhoFernandes Incidentally, that's a funny pleonasm. 'Stoere bink' is idiomatic, a 'Bikkel' is already a 'Stoere bink'
 
I've briefly seen Obj-C, and it looked weird
How much is it like actual C?
 
2:21 PM
Not very much. It's lost it's soul
 
It's as similar to C as C++.
It is weird, and terrible, and never use it.
 
It uses [obj methodname] syntax instead of obj.methodname() for calling methods.
 
Well I wasn't planning on developing stuff for Apple devices
 
People always tell me how I could get rich if I just invented an iPhone app. They don't seem to understand Obj-C. I'm only willing to sell so much of my soul, you see.
 
Oooh, soul. Can I buy some?
 
2:26 PM
@StackedCrooked o.O Wow. Are there any other languages that have that?
 
@KianMayne Tcl
 
Smalltalk.
 
@R.MartinhoFernandes You've already got something better, it's called the consumerist spirt (:
 
0
Q: implicitly declared special member functions

WhoamiThere are four special functions fundamentally implicitly declared. Default constructor Default destructor Default assignment operator Default member-wise copy operator Question: If any one of them is defined by user, [eg: Destructor ] rest of the three functions will not get declared. Is th...

 
However, there's an upgrade for a small payment of £1.50 then 15 £20.33 installments over the next month for 12 months
 
2:28 PM
Isn't it 2, 3 and 4? The one that has 3 up votes has stated 1, 2 and 3
Now he actually did change
 
@KianMayne consumerist squirt?
 
Haha *spirit
> [SmallTalk] was designed and created in part for educational use
Why does it have such odd syntax then?
 
To teach pain.
 
I just know how to can boost spirit
The sad thing is, they way SO works, it doesn't really matter to us when you are in a hurry. Next time, you will want to make it a SSCCE and explain a bit why/what you are trying to achieve (instead of just how you think you will achieve it). This removes two turn-offs for prospective answerers. (I diligently answer most Spirit questions, but even I don't always have to time to find out which 6 header files you forgot to list for me, and what namespaces you used etc.) — sehe 18 hours ago
 
I liked this comment:
...
> @random: no. But we must aim high. – Yar Sep 20 '09 at 17:51
> If you aim too high you'll miss the goal. – Ólafur Waage Sep 20 '09 at 18:14
> @Olafur: Or, if your aim's good enough, you'll hit that cute girl in section 3B and you can grab her number after the game. But hey, maybe I'm the only guy whose pickup line is a soccer ball in the face. – Eric Sep 20 '09 at 18:38
Yeah; fuck you markdown.
 
2:40 PM
@R.MartinhoFernandes Can't let the bots get any soul! That would lead to skynet.
 
@sehe the dear (?) @Abyx once insisted that i make a perfectly clear question an "SSCCE". of course he didn't even link to the explanation. in a way it was hilarious, the newbie telling the old dog how to do things, but it's also i think what can easily happen when one gets too heavily into acronyms and "secret language" and the feeling of a club of superiors, so i would recommend to to tone down such language, e.g. not use silly acronyms
 
@KianMayne You can just past links to the comments.
 
@random: no. But we must aim high. — Yar Sep 20 '09 at 17:51
If you aim too high you'll miss the goal. — Ólafur Waage Sep 20 '09 at 18:14
@Olafur: Or, if your aim's good enough, you'll hit that cute girl in section 3B and you can grab her number after the game. But hey, maybe I'm the only guy whose pickup line is a soccer ball in the face. — Eric Sep 20 '09 at 18:38
@KianMayne learn to use oneboxes ;)
 
I'll try to remember that next time
I didn't now that it would onebox a comment
 
It'll onebox anything that isn't a TVTropes link.
 
2:43 PM
:)
 
Thank god ;D
 
who called me?
 
std::move and std::forward should be in scope in all TUs. I always forget #include <utility>.
 
> The greater danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it. Michelangelo
@R.MartinhoFernandes a bit like the silliness with <initializer_list> then?
 
if u aim for the heart and aim to high you hit the brain, but aim too low and you hit the gonads
 
2:45 PM
:0
 
@Cheersandhth.-Alf If you aim right, you hit the boobs.
 
@R.MartinhoFernandes booooobs!
 
:This article is about the human breast. For other animals, see Udder and Mammary gland. :"Boobs" redirects here. For other uses, see Boob (disambiguation). :For other uses, see Breast (disambiguation) The breast is the upper ventral region of the torso of a primate, in left and right sides, which in a female contains the mammary gland that secretes milk used to feed infants. Both men and women develop breasts from the same embryological tissues. However, at puberty, female sex hormones, mainly estrogen, promote breast development, which does not occur in men, due to the higher amount o...
^ repost just beause it think the picture is pretty nice.
oh i think it's dinner about now
 
Ell
dafuq?
 
2:49 PM
It's 15:50.
Dinner?
 
¬_¬ @Cheersandhth.-Alf
does it make sense to have template lambdas?
I don't think so...
 
Almost falling over reminded me that I haven't eaten today. Bacon time.
 
@thecoshman Yes.
 
@R.MartinhoFernandes If you're hungry, yes.
 
@thecoshman That's one of the big things for the next revision, actually.
 
2:54 PM
@R.MartinhoFernandes oh the excitement :D
 
(Except it's under the name "polymorphic lambdas".)
 
@R.MartinhoFernandes ah, does 11 not support them?
 
@thecoshman They weren't included in this revision because they weren't playing nice with concepts.
Since they don't want to make concepts impossible forever, they took the conservative approach.
 
[x](int y){return y+x} <-- am I right in think that this 'lambda' can be used to make an increment function, that you can bind what the x is, so you can make a 'plus ten' function...
 
Yes.
(missing a semicolon, though).
 
2:58 PM
ah, the wiki page on Anonymous functions actually does a good of explaining the concepts
and such a trick is closure?
 
and arguably an example of currying
 

« first day (649 days earlier)      last day (4317 days later) »