« first day (956 days earlier)      last day (4216 days later) » 

00:00
@FlorisVelleman so?
prereqs for being a room owner?
Ell
Ell
No idea
@Johann I really have no idea
should I just ask them
Ell
Ell
yeah
my place is a ghost town
Ell
Ell
00:04
:/
we basically just hate on phph
:}
my eyes hurt i'm off nn
posted on May 29, 2013 by Herb Sutter

const and mutable are powerful tools for writing safer code. Use them consistently. Problem Guru Question In the following code, add or remove const (including minor variants and related keywords) wherever appropriate. Note: Don’t comment on or change the structure of this program. It’s contrived and condensed for illustration only. For bonus points: In what […]

@Pubby that frikin kid...
00:29
posted on May 29, 2013 by Herb Sutter

NOTE: Last year, I posted three new GotWs numbered #103-105. I decided leaving a gap in the numbers wasn’t best after all, so I am renumbering them to #89-91 to continue the sequence. Here is the updated version of what was GotW #103.   There’s a lot to love about standard smart pointers in general, […]

01:17
@R.MartinhoFernandes Oh, that reminds me: in case you ever face it, that gen_type_die_with_usage is a quirk of my snapshot when you declare e.g. auto foo(); in C++11 mode. I think it dies while trying to report the error or something. (Previous snapshots didn't do that but previous snapshot didn't support that stuff for C++1y if you're wondering where that's coming from.)
yiz
yiz
You ... always here. Maybe you are a bot.
> internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in gen_typedef_die, at dwarf2out.c:19306
wtf again
Maybe that wasn't it then :s Oh it's not the same.
yiz
yiz
Wouldn't it be nice if my compiler was a bot and talk to me and other relevant people when it found some compilation errors
Failure to report error for a class template used with mismatched template arguments. Should be able to reproduce in isolation...
I actually can't. Oh well.
yiz
yiz
maybe it's time to give up C++ then
01:28
@yiz join the dark side. we have perl
link to dark side
yiz
yiz
But my backside is already on the dark side, you are looking from the front
php then?
yiz
yiz
Like I said I am Joan of all trades, I use whatever to do whatever needs to be done
anything
yiz
yiz
languages are tools, not goals, young rabbit
01:32
anything?
COBOL?
emacs?
brainf**k?
yiz
yiz
in fact I studied cobol for a couple of days - used to work with a bunch of cobol developers
mods are away post larry wall
hehe
yiz
yiz
now I need to be back to work
01:45
someone post larry walls
before the mods come
LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY LARRY
Ell
Ell
Have cold shower
Wait, that's a wall of larrys.
The larry invasion? I knew this was coming.
PERL
01:47
It's 10° here.
someone tweet this to him
ahaha
Probably colder than your fridge.
Oh, farenheit
err
yiz
yiz
It's winter, but it's 17° here @ moment, but we are in Sydney :D
I think 10°C is about 50°F
yiz
yiz
lol, it is nice here 4 sho ... not the whole Australia that is, only a couple of places such as Sydney
01:49
@yiz Hobart :D
yiz
yiz
@rvalue that's in the middle of nowhere :x
Sydney is fine if you don't mind being drugged and stabbed.
yiz
yiz
@ScottW good weather also, not as convenient as Sydney
@rvalue depends on the suburb
I am on North shore
quite safe
@yiz Which is kind of my point, I'm not afraid of my safety anywhere around here.
Plus, we're all getting FTTH here.
yiz
yiz
@rvalue you from hobart?
01:51
@yiz yep
@ScottW also yes
yiz
yiz
@rvalue will it start snowing soon? :p
speaking of hobart, how long is to hike the cradle mountains?
@yiz Hardly, we've got a milder climate than Sydney, just a bit cooler.
yiz
yiz
can it be done in 3 days?
@yiz Feasibly, yes.
Depends on your track. I wouldn't recommend it at that pace if you're not pretty avid.
yiz
yiz
My friends said it would take 5-7 days and a couple of thousand dollars to hire a guide.
have you done it before? - hiking cradle mountains?
01:56
Not Cradle Mountain, but I've done a few midlands walks
yiz
yiz
only 65km ...
why 5 days?
usual pace for a hiker is about 20-30km a day
I'd have gone for 20 when I was into it
these days I have a more typical programmer's physique
They say 5 because they set out the info for tourists
yiz
yiz
I once done 25km-35km (don't remember correctly) in a day, but that's without backpack
I had to cross two hills ~11km twice a week when I was in college
yiz
yiz
I ran half marathon 10 days ago - 21km in 159 mins :D
02:00
well done!
(no bus, no license)
yiz
yiz
I think I am quite fit - but I still look like a marshmellow woman :(
@yiz It matters suprisingly little, I know people my age, half my weight, who have trouble with three flights of stairs.
May that never be me.
Anyhow, I should get back to work.
yiz
yiz
On the upper side I am going to a 3 days hiking/camping trip next month, should I get lost, there would be whole lots of 'stored energy', lolz
hehe
My hiking advice is the same for everywhere, though.
* don't go alone
* get a stand-alone (non-phone) GPS *and* paper maps of the area
* have (hire/buy) an EPIRB
looks like they just call it a PLB for bushwalking
but the idea is the same. Better to have one and not need it...
02:19
I still don't get how returning by const reference works :\
@Pawnguy7 You shouldn't return references, if possible.
references or const references?
If references, I understand.
@Pawnguy7 All kinds of references.
Like... how can const reference be used on a local variable? Function local, that is.
@Pawnguy7 Return by value. It's more natural and you're less likely to regret using it.
02:29
Probably. Though, imagine that we have a rather large object that we created using some parameters. How can I avoid a copy?
guys I want to remove my brain
@Pawnguy7 First to consider: are you return a reference to a local variable? If so, you're damned. Second: are you using new inside the function? If yes, then return the pointer. Simple. For the first point, returning by value is the only option.
Oh.
Could move operations work somehow? Those still confuse me :\
@Pawnguy7 Unless you're doing something like operator[] in std::map where it returns a reference to a stored object. However, it is implied that clients must be careful in using the returned reference.
And when you require something from clients, the harder your class/function can be used.
Ah.
My game just randomly stopped working...
It used to open a console window and an actual window. Now, only the console...
02:37
@Pawnguy7 The console might have been jealous. :)
Could be. Kind of annoying, whatever it is. I was debugging something, and it kept throwing exceptions - and it had the window. Now, I have no window, and it doesn't run at all... sigh.
I cannot get it to work...
Window, where art thou?
RAS syndrome (short for "redundant acronym syndrome syndrome"), also known as PNS syndrome ("PIN number syndrome syndrome", which expands to "personal identification number number syndrome syndrome") or RAP phrases ("redundant acronym phrase phrases"), refers to the use of one or more of the words that make up an acronym or initialism in conjunction with the abbreviated form, thus in effect repeating one or more words. A person is humorously said to suffer from RAS syndrome when he or she redundantly uses one or more of the words that make up an acronym or initialism with the abbreviation ...
^ TIL
I don't know what do is. Is there a hotline to call when your window randomly dissapears? This worked earlier, and I didn't touch a thing, I am positive.
02:57
@MarkGarcia You meant to say "TIL I learned".
@LucDanton Y yes.
TMP programming.
today I learned I learned
technically makes sense
03:12
I didn't come for tautology.
If I'm not mistaken, all I've done in the last couple hours is comment 40 lines of code.
03:52
Damn, mood is alternating between hungry, tired, and frustrated with reinventing so much Boost stuff today. Doesn't feel great.
Maybe you just have to poo.
Damn, I really need me some as_const.
const_cast?
Whoah there, not at all.
const_cast is for stripping away cv-qualifiers.
You can add too though
04:00
But you shouldn't.
Why?
@Rapptz Doesn't need to explicitly use const_cast. :)
^
Maintenance time bomb. If you change some types such that the const_cast effectively ends up stripping cv-qualifiers, then you don't get warnings (because that's what const_cast is for, but it's not what you need).
If you just want to write a wrapper for it then why don't you?
AFAICS it doesn't sound complicated
04:18
@Mysticial You currently have 99,955 reps, and you still have much room until you rep cap! Might be good to wake up these guys for the celebration. :)
0
Q: SQL management select statement

user2330535How can I select latest row from by table without sorting it? It is because it follow by the ID AUTO INCREMENT... I'm using c# asp.net to select... I did try using LIMIT 5 but it give me an error page.. rSQL = "select COUNT(*) from chatLog_db where sessionid='" + grpID + "' LIMIT 5"; Is th...

> i'm sorry because i use stackoverflow for first time.
^^ I think not.
Woah... I like upvotes, but if it's all coming from the same person... They're not gonna stick. :(
@Mysticial :)
@Mysticial I only voted, ~4? I swear I've already read those when I'm new. Just forgot to up vote somehow.
I just got 7 upvotes in the last ~15 min. ?
@Mysticial From me?
04:30
@MarkGarcia I obviously can't tell. But if you cast 4, that's good since that means they didn't all come from the same person.
@Mysticial I can confirm. It's 4. You want me to undo? :P
Nah.......
:)
Just don't upvote me anymore today. :)
a couple came from me but they were actually answers that are significantly useful to what i've been working on
I don't go upvoting all willy-nilly and shit. if it ain't useful fuck it
Maybe I'll undo one in your questions. You have a surplus 5 votes.
ah. Glad they helped. :)
04:31
Can't do 100K with that.
@MarkGarcia If they aren't locked.
Although depending on when you cast it, it might have no effect since I might've been repcapped.
@Mysticial Not yet. Still have lots of room.
I've fav'd maybe 40-50 questions specifically because of your answers
@MarkGarcia The repcap applies to the day you cast the vote. So if you upvoted my question(s) on a day that I repcapped, then undoing it won't have an effect.
Locked. :(
04:34
@MarkGarcia meh...
According to my audit page, I have 99995. Something got out of sync and a recalc never happened.
Somebody please...
okay, nobody upvote me now. Lemme force a recalc.
99,990...
user image
18
Yw.
Or that worked too. :) Thanks!!!
04:36
Happy 100K to Mysticial Day!
bring in the stippers!
Trigraphs are easy upvotes.
:(
@Rapptz The link. It's in a different server. Hm...
@Rapptz Yup...I've not run into too many people that even a remote clue what they aer
You mean puu.sh?
04:37
@Rapptz Yup.
It's a screenshot application. What I based my pushur app on.
@Rapptz Oh. That project in your bitbucket repo. Nice.
best quote of the day "I'm not sure if they were African-American bees or not..."
I have a lot of private repos in Bitbucket.
ok so someone added a motorola 6809 code generator to GCC...thinking about writing something for my Ghosts 'n Goblins game
04:49
The number of newer questions I've seen on things like trigraphs and lambdas. I'm always like "Why didn't I just pretend I didn't know what they were?"
And @Mysticial, congratulations :D
@chris Same here.
Thanks everyone!
Might be good to know that I'm leaving for vacation tomorrow night so I'll be disappearing for 2 weeks unless the place happens to have easy internet access.
@Mysticial Too bad most of the regulars aren't in here. :(
@Mysticial Take your time. Don't waste your precious chance here in SO. :)
@Mysticial Congratulations... Good luck for your vacation...
@MarkGarcia I don't spend much time on SO much nowadays anyway. Life catches up. I still leave a chat window open and an auto-refresher on the front page. But I only post like 2 answers a month and maybe a few comments a day.
04:55
@Mysticial Seems like you've had enough with the 100K rep. :)
@MarkGarcia I actually burned out about a year ago...
@Mysticial It's not permanent. Even programming isn't (my dad was once a programmer).
In that sense, no, I'm not "leaving" SO any time soon (probably never). I still read a lot of questions - especially when I'm coming in from Google searches. But I don't have much activity anymore (at least when compared to when I first joined). So I'm mostly a lurker who upvotes interesting and useful posts while occasionally leaving an entertaining comment here and there.
@Mysticial That's my point. You still have the interest by you don't have enough vigor to do so. That's why we almost always need to cool down and detach from our daily routines (in short, a vacation).
05:11
@MarkGarcia I'm permanent.
@StackedCrooked Um, yeah. And with you is Coliru. Coliru would be permanent then. That would be a good thing. (I'm not implying that you're not something good :P)
My domain will expire in 15 days. I should remember to renew it.
Do it now before you forget.
Speaking of which, I should check with my Uncle to make sure his account is renewed. (since my website is a subdomain of his)
It's been a while since we renewed that account/domains.
05:27
No auto-renewal?
It's not my account, so I'm unaware of the details. I'm just free-loading off my Uncle's account.
But I get enough viewers that I should probably make sure. Since I don't want to lose my domain.
@Mysticial Congratulations!
@Xeo I just decided to define ElementType as an associated type of Nullable on a whim.
mr5
mr5
I wonder if this "strings" will suddenly appear in this chatbox? Hello? I'm new here...what's this?
@JerryCoffin thx :)
05:39
@Mysticial A pleasure, I assure you.
The joys of TMP and its lack of variables:
@Rapptz Yeah, but my prepaid account had run out. I put another $100 in it now. That should cover a few years.
template<
    typename Functor
    , typename Seed
    , Requires<
        concepts::Invokable<Functor&, void(Seed)>
        , concepts::Nullable<ResultOf<Functor&(Seed)>>
        , concepts::Tuple<concepts::ElementType<ResultOf<Functor&(Seed)>>>
        , Bool<(tuple_size<concepts::ElementType<ResultOf<Functor&(Seed)>>>() >= 1)>
    >...
>
@LucDanton :( still doing the comma thing eh?
template<
    typename Functor,
    typename Seed,
    Requires<
        concepts::Invokable<Functor&, void(Seed)>,
        concepts::Nullable<ResultOf<Functor&(Seed)>>,
        concepts::Tuple<concepts::ElementType<ResultOf<Functor&(Seed)>>>,
        Bool<(tuple_size<concepts::ElementType<ResultOf<Functor&(Seed)>>>() >= 1)>
    >...
>
Apr 26 at 7:32, by R. Martinho Fernandes
@LucDanton That was the original plan. I have been procrastinating it for a long time, though...
05:43
@Mysticial Is this your type of question?
No editor support, not gonna bother. (That does mean that yes, I'm not inclined to try and set up Vim for the task.)
Weird. Mine does it automagically and it isn't even vim.
It's not that, it's the move to Martinho's style.
@StackedCrooked I saw it when it was younger. But it seemed a bit too broad for me. The top answer was already there at the time and pretty much covered everything that was important.
Comma first is consistent with the rest of my style here. E.g. mem-initializer-lists.
> for(auto&& e: annex::range::ana([](int i) { return i < 15 ? annex::make_optional_tuple(i, i + 1) : annex::nothing; }, 0)) {
Damn is C++ verbose. Does that still count as a one-liner?
05:52
@LucDanton Did you just call C++ verbose? Clearly you haven't heard of Java. :P
No line with no lambdas is less verbose than one line with that lambda. QED.
@StackedCrooked A more specific question about "why is this code more cache-friendly than that code" or something on that order is likely to be a better question. As open as this is, there are really only a couple of good choices: either the extremely brief "strong locality of reference", or else going though (nearly) every cache architecture in use, and giving details about what works for each. There's almost no really good point in between those though.
@JerryCoffin Yeah. Open-ended questions like that one require me to actually think (extremely hard) about how to answer it. Since in this case, there are so many loose ends to consider that it's almost not worth answering. Just look at all the revisions on that top answer. It was mod-unwikied.
Shit man.
40+ edits.
Improving templates thanks to concept constraints:
    , concepts::Invokable<
        Functor&
        , ResultOf<Functor&(Seed)>(TupleElement<1, concepts::ElementType<ResultOf<Functor&(Seed)>>>)
    >
Guess I can remove the alias here.
05:59
Can you overload on constexpr/non-constexpr?
@Mysticial Yeah -- 44 revisions, and it still does little more than scratch the surface (though, in fairness, it also devotes a fair amount of time/space to things that are only marginally cache related, such as making branches more predictable).

« first day (956 days earlier)      last day (4216 days later) »