« first day (990 days earlier)      last day (3967 days later) » 

5:00 AM
Change your screen?
 
can I specifically make the icons bigger?, I mean I have a 1080p laptop screen and thise icons are tiny
 
change display settings
 
@AaronKyleKilleen Not that I know.
Hey Google Reader is still online.
 
I mean I can zoom in, but I don't want everything to be much bigger, I just want these icons that are like a quarter of an inch across to be bigger
 
@Borgleader Silver star for trying.
How did he miss that big "New here?" banner though.
 
5:11 AM
Also, if he was really looking for help he would have found the "Help" link at the top too, yknow the one next to the search bar
 
he should have started his post with "Hay Guise"
 
What would happen to this world if all of Google's servers got destroyed and as a result, there was no longer Google's online services? Or if Facebook's servers got destroyed and there was no longer Facebook.com?
 
Yeah, a big HAY GUSY LOL im a newb to SO help pl0x kthx
 
I'm vaguely curious whether he'll actually post an on topic question/actually read the help section
my hopes aren't high
 
http://stackoverflow.com/questions/17417789/c-converting-a-a-char-array-of-a-float-into-its-ieee32-representation-advice
Must convert to a float, can't use float... what?
 
5:13 AM
> Close as too localised
Oh what's that? It doesn't exist?
Well I'll be damned.
 
Close as: this is homework
 
Well, it does show an attempt at solving the problem.
So it isn't so bad.
 
True
But would it help anyone other than him?
(which I think was the definition of too localized when it existed)
 
So I have a databases class in the fall, how difficult is php compared to c++?
 
@AaronKyleKilleen Easier. But more broken.
Much more broken
 
5:20 AM
you mean less predictable as to what the program is going to do, or like the code is just less orderly?
 
That the language makes no fucking sense :P
 
When I found out == wasn't transitive the mathematician inside me laid down and cried for a while.
 
How is it not transitive? (hay guise im new 2 pph lolz)
 
There's an entire blog post about how PHP sucks!
It's pretty big.
 
5:27 AM
@icedwater The type system is so f-ing broken that "foo" == TRUE, and "foo" == 0 but TRUE != 0
Weak typing ftw
 
"PHP is built to keep chugging along at all costs. When faced with either doing something nonsensical or aborting with an error, it will do something nonsensical. Anything is better than nothing." that sounds horrible
 
That statement reminds me of Perl
 
0
Q: c-string functions

The Mysterious GuyMy goal is to complete my own versions of these four most commonly used standard string functions. My version: int mystrlen( const char *s) int mystrcmp( const char *s1, const char *s2) char *mystrcpy( char *s1, const char *s2) char *mystrcat( char *s1, const char *s2) C standard string libr...

http://stackoverflow.com/questions/17415825/c-creating-my-own-version-of-c-string-library-functions
Silver pentacle of not even trying
 
Closed it.
What the hell man
 
That guy is dense
 
5:32 AM
Did I mention how useless these [on hold] closings are in practice?
Has something ever gone not on hold yet?
It sounded a lot nicer on paper.
@ScottW So ugly. ;_;
PHP must be really bad if you're googling a basic question!
Oh I meant the code in the page is ugly.
I don't like $ in my code.
though I guess I was fine with it in Haskell.
You know what I wanna write in C++?
Something like String.Format in C#.
That'd be cool.
 
Am I being retarded or this makes no sense whatsoever: stackoverflow.com/questions/17418057/…
 
@Rapptz: Do it!
 
I don't know how to :(
Well I tried thinking about it but yeah I don't know.
 
C# style string formatting is nice for I18N.
@Rapptz: C++11 variadic template? :)
 
Well, I meant the implementation. I'm not sure how to go about doing it. printf is a lot easier :S
 
5:39 AM
Guys.
 
What do you mean "the implementation"?
 
I need to make a fairly big custom sticker.
 
You just start with some basic types and keep on adding.
 
@ThePhD For your date with STL?
 
@Borgleader Yes. We're going to play "cover me up with stickers, ah~"
 
5:40 AM
:D
 
@ThePhD I thought you were going to show up naked with only a sticker to cover your manhood
 
@Borgleader That's no fun, silly.
In any case.
I need to make custom stickers.
But I have no idea how. =[
 
@ThePhD: It is funny!
 
@Rapptz I've done it.
 
there are companies that do stuff like that
 
5:41 AM
@ThePhD Is it the naive implementation?
 
@Rapptz ?
 
How'd you do it?
 
No I actually want the base class to be virtual, but I don't want derived class to be virtual. — banarun 2 mins ago
I think he doesn't understand what virtual means
 
Interesting
I have no idea what this does.
 
5:47 AM
Gets to {. If it's not immediately followed by numbers and then }, it continues and just keeps appending the char values to the output string.
if it finds {, then a number, and then a string }, it keeps the number (index), and then begins a recursive search.
 
You gave me an idea
but it isn't what you're doing at all
 
Yeah, there's probably a better way to do it.
 
does the format in C# have to start at 0?
 
Yes.
 
lol good
in Python it doesn't, but Python's is OP.
 
5:49 AM
I still need to learn templates and stuff, back to the book.
 
But you can reference elements with {1} and just have 2 arguments,a nd only the second one will be used.
 
String.Format returns a string though.
Is that what StringBase is?
 
Yes. String == StringBase<MyEncoding, MyCodeUnit>
 
I thought of your FBX raging days, then cried at how bad the question is (if you can even call it that)
 
5:57 AM
I can't help him.
Nobody can.
 
Oh I don't expect you to, this is going to get nuked from orbit. Maybe you can get a laugh out of it?
 
Closing as Too Broad.
 
I think it's funny to answer questions like that with really ellaborate code.
 
At least that question was rather specific
The FBX one is just...
 
yeah
that question was a lot better than the one you posted
 
6:02 AM
ugh.
That formatting :(
 
Sometimes I read questions on SO and I'm like: O.o I wish I was that smart. Then I read other questions and I feel thousands of brain cells crying out in terror before being silenced.
 
yeah, I think there are errors in there too
 
6:15 AM
Damnit
Robot isn't here. :c
 
cpx
@Rapptz: Which version of GCC did you use to compile the program?
 
4.8.0
 
cpx
4.7.1
 
I use this guys distro nuwen.net
4.8.1
 
Yeah, STL's distro is cool.
It lacks std::thread though.
I wonder if you could send him an email about it.
 
6:25 AM
maybe I will
when I learn about threads
 
The you there was general :P
 
I never understood why Microsoft's Visual studio needs to pretty much take up an entire gigabyte of storage
but that's nothing compared to SAS, which takes up an insane amount of storage considering it's just statistics software
 
@AaronKyleKilleen Back when I was programming on a Control Data mainframe, they had IMSL installed. I'm not sure how much memory/disk space it occupied, but the manuals for it were (literally) around two and a half or three feet thick.
 
@sbi lol, I had forgot about that link, was clicking it most timidly.
there we go :P
 
Hm.
Need push_back_inserter
maybe it's defiend in <iterator>
 
6:40 AM
@ThePhD std::back_inserter?
lmao
 
Oooh.
Derpaderp. ._.
 
Welcome to C++98.
We missed you.
 
Ha ha. <.<
 
@ThePhD what are you messing with? reinventing the wheel stick?
 
Just creating a robust interface for my encodings.
Previously, it was a little on the sloppy side.
Compile-time, but sloppy.
I'm fixing a lot of that.
 
6:45 AM
@JerryCoffin that's insane, earlier this year I spent two months working through a 1400 or so page actuarial study manual, I thought that was bad, the content is probably way more exciting than a mainframe manual. Think of the people who write that stuff!
 
@AaronKyleKilleen Oh, the humanity! (or something philosophical and impressive sounding).
 
@ThePhD sounds a lot like you are reinventing the std lib
 
@JerryCoffin I'm pretty sure SAS has industry specific statistical tools do they not? For some reason they can't just have general statistical tools and have the users sort it out.
 
@thecoshman I wish I was. =/
 
@ThePhD o_0
 
6:51 AM
@AaronKyleKilleen I'm not sure. My sister would know, but I have little knowledge of SAS past a general awareness of their existence.
 
encoded_string would be a wet dream right about now...
 
@JerryCoffin Although I remember an Econometrics course I took where know one knew what they were doing, it was just plug certain values in and take values off of a table. Basically having a human perform an algorithm. Presumably because they couldn't be bothered to actually learn statistics properly
 
@AaronKyleKilleen Unfortunately, all too much of statistics teaching seems to be done extremely poorly. Which prompts the shameless plug for my sister's book. :-)
 
Xeo
Mornin
 
Hi.
 
6:58 AM
@Xeo Well, it will be in three minutes anyway...
 
Xeo
Meh, it's 9am here
 
@Xeo You're at +1, I'm at -8 (which means I'm back in the California, in case anybody cares).
 
Xeo
@JerryCoffin But then it won't be "Morning" but just "Midnight" for you, no?
 
@Xeo Anything past midnight is (really early) morning...
 
3AM time to go, night all
 
7:06 AM
@ScottW the first line contains the answer: anything beyond <?php is, by definition, at most a non normative comment that the interpreter may, or may not, interpret any-which way you could imagine.
 
@Borgleader G'night.
 
@Borgleader Based on what @JerryCoffin has said, good morning. :)
 
Xeo
@JerryCoffin Morning is when I wake up :)
Whether that's at 8am, 1pm or 6pm
 
@Xeo Back when I was single, I usually tried to roll out of bed at the crack of noon.
 
-2
Q: Difference between these two declarations

james rayganHi Just sharing this explanation it may help other newbies/users in the future. What is the difference between these two declarations .? int *f() and int (*f)()

 
7:09 AM
@Xeo Remember: when you're convince the whole world revolves around you...you're probably spending too much time watching the GPS as you drive.
 
^ LOL!
 
Xeo
@JerryCoffin And how often did you actually manage to do that?
 
I wake up a little after 5pm and work the night shift
 
@Xeo When I was single? Nearly every weekend. Now? hahahahaha!
 
Xeo
I mean, there's a big canyon between "trying" to get up, and actually getting up. :)
 
7:09 AM
It is always morning somewhere
 
I.. think that's.. a form of blogspam.. I don't know.
 
I have a friend who used to have too much social life she used to have to get up at 6am constantly on the weekends because she had too much stuff going on
 
@Rapptz ... hu?
 
I moderate a lot of forums and when someone says.. nonsense and has a link that goes to a blog it's usually called blogspam.
 
Ah ok.
Of course this was to a c++ blog ...
 
7:14 AM
I don't know if it was, it was just a precaution thing I'm used to doing.
 
@JerryCoffin either that or you choose the point of reference to be yourself
 
@Telkitty猫咪咪 I wish I could get away with posting things like that, but as soon as people saw me saying "I have a friend...", they'd think "god you're so full of shit!'", and probably wouldn't even read the rest.
 
so is there much of a freelance c++ programming market? not that my skills are at that level yet or anything.
 
@AaronKyleKilleen If you're good enough, there's always a market -- but it does tend to depend pretty heavily on quality, at least from what I've seen.
 
@JerryCoffin that friend also thinks I don't have a lot of friends
which is true
friends take time to maintain
 
7:16 AM
@AaronKyleKilleen If you consider open-source as freelance, then there's a huge opportunity out there.
 
yeah, I'll probably look into that, I'm going to grad school for computer science in the fall
 
@Rapptz huh?
void hobgoblin::interact_with_chainsaw()
{
    // imagine horrible, gory things here such as
    // having to deal with a singleton
}
 
@not-sehe Just something I'm used to doing from moderating a lot of forums and subreddits.
 
@not-sehe He has a way of binning things.
 
7:18 AM
Like in the healthcare subreddits you'd have someone say something interesting.. seemingly anyway but it links to some blog completely unrelated to what they were saying.
 
@Telkitty猫咪咪 Hehe. Reminds me of those feeding/farm casual games.
 
@Rapptz yeah. well. maybe check the link some day :]
 
@not-sehe I did!
 
speaking of which having too many friends when you are young is not necessarily a good thing - because you tend to lose contact with your old friends, which it is kind of depressing
 
@Rapptz Wow.
 
7:19 AM
I know, I'm awful.
 
You do know you can unbin, right
 
@MartinBa For what it's worth it was just a precaution habit of mine, no harm intended. I promise.
 
Not that it'd help much now since it would be past the scroll
 
@not-sehe I'll keep that in mind.
 
@Rapptz We got the message sir.
 
7:20 AM
@Telkitty猫咪咪 Depends on how you cope. But especially now that having constant contact with your old friends is pretty much easier than before (Facebook, e-mail, stuff...).
 
Yeah I see that now.
 
you guys think I should read Bjarne's "The C++ Programming Language" after I'm done with c++ primer? I'm trying to get books that are updated to c++ 11, I find a lot of the new features really handy.
 
@AaronKyleKilleen Better read in-depth books on specific topics.
 
@AaronKyleKilleen Not yet, no.
It's a paperback copy and it'll break easy.
You could wait for the hardcover though. There's no e-book version.
 
7:23 AM
@MarkGarcia I am old fashioned, I need to physically meet up with my friends once in a while. It can be once per 2-3 months. When you spend even 1-2 hours together, you could have exchanged so much more information than through facebook/emails
 
@AaronKyleKilleen I'd say you should write some code.
 
@Rapptz I'm not particularly concerned with the durability of the book, I've got a paperback c++ primer, so that certainly won't be a deciding factor. I mean as long as it doesn't fall apart like biodegradable toilet paper or anything.
 
@Telkitty猫咪咪 Yeah. You're that kind of person who likes the personal touch. I too often miss having personal contact with my friends.
 
@AaronKyleKilleen Dang. I commend you. Anything past 500 pages shouldn't be paperback IMO.
 
> biodegradable toilet paper
 
7:25 AM
I don't really care.
 
I don't like paperback books too much because I feel like they're pretty fragile.
 
@Rapptz There is the PDF /cc @AaronKyleKilleen
 
yeah I got that, it's for an older edition though
plus I just like to have the book
 
It's also there for 4th edition. Lemme find it
 
I can take it to work and read during my breaks
 
Cool
 
^ There that wasn't hard to find. It's the publisher's page. It's linked from stroustrup.com/4th.html directly
Also, it got twoten before, or I wouldn't have known it :/
 
@Rapptz although to your point, the paperback version of C++ primer I have actually folds the spine of the book when you open it which isn't good, but I don't expect it to break anytime soon.
 
I like paperbacks. Less weight: good.
Just treat them with respect. I never had a hardcover copy of a Stroustrup book
 
@not-sehe oh yeah, I'm fully aware that there are ebooks you can buy for these major titles. When I speak of pdf's I'm talking about a different distribution model :)
 
7:33 AM
boost::lambda::bind(&class::id, index) == 5
Whats wrong in this line ?
 
@AaronKyleKilleen hmmm? I was responding to this:
10 mins ago, by Rapptz
You could wait for the hardcover though. There's no e-book version.
 
Why does it complains saying no == operator overload ? class::id returns integer
 
@NeelBasu Missing parentheses
boost::lambda::bind(&class::id, index)() == 5
 
@NeelBasu Are you trying to execute the functor? You're comparing a function to a number.
 
Xeo
@not-sehe Boost.Lambda usually overloads all kinds of operators to compose them.
But Boost.Lambda is pretty old
 
7:35 AM
Also why is index an instance of a class? (I'm guessing the keyword class is supposed to be the name of something.)
 
list_type::const_iterator i =
        std::find_if(list.begin(), list.end(),
             boost::lambda::if_(boost::lambda::bind(&item::id, boost::lambda::_1) == id));
 
Xeo
use Boost.Phoenix' placeholders
 
This is the actual line, item::id() returns int and id is an int
 
_if?!
 
@Xeo But why this doesn't work ?
 
Xeo
7:36 AM
@NeelBasu No clue.
 
auto i = find_if(begin(list), end(list), id == phx::bind(&item.id, arg1)) //(boost::phoenix)
 
Ugh. That. What compiler are you trying to support here?
 
@Potatoswatter MSVC
 
Xeo
std::bind(std::equals<int>(), _1, id) :D
 
what is id
 
7:38 AM
@NeelBasu Version? The only reason to be using Boost Lambda is legacy support… for more portability, do what Xeo just said. (Er, not std::bind but using Boost with std::equals.)
 
Xeo
2 mins ago, by Neel Basu
This is the actual line, item::id() returns int and id is an int
Oh wait, the bind won't work
Meh, fuck composing in C++ :/
 
@Xeo which means that id as a bare expression is a syntax error outside non-static class members
 
@MarkGarcia I still see my long term friends every now and then, some may even be once a year, but since we have been friends for over 10 years, we still regard each other as friends >_< ... I like long term friends, they know me so well, I don't have to explain much when I do certain things because they know I am just being me :p
 
Xeo
@not-sehe I think there's two ids involved
One in the class, the other as the one he's looking for
std::bind(std::equals<int>(), std::bind(&item::id, _1), id)
Meeeeeeeh
 
ah you're right
 
7:39 AM
@Xeo yes but how can they conflict ?
 
@Xeo It's beauty distilled, no? I still prefer my phoenix variant
 
Xeo
std::find_if(list.begin(), list.end(), [](item const& i){ return i.id == id; });
Fuck std::bind. Fuck (member) function pointers.
 
Yeah. Lambdas are fucken ugly, but they contain slightly fewer surprises
 
Xeo
@not-sehe With a type name as short as this, I think it's fine.
 
@Xeo std::bind(&item::id, _1) -> mem_fn(&item::id) IIRC?
 
Xeo
7:41 AM
@not-sehe std::mem_fn actually
 
@Xeo It's not about verbosity (well not just that). It's just plain fucken ugly :(
 
Xeo
Or std::ref I think, since that also supports the INVOKE protocol
 
@Telkitty猫咪咪 You seem to imply that having no communication with a friend for a long time makes you two not friends anymore. Of course not. It's just the vitality of your friendship that decreases, but never to a point where there's no affection anymore.
 
@Xeo there, thanks, saving more keystrokes
@Xeo Oh! I hadn't imagined std::ref having special cased ptm/ptmf!
 
Xeo
@not-sehe Still dislike composing through any kind of bind :/
@not-sehe Nah, it just has an operator() that uses INVOKE
 
7:42 AM
@Xeo me too. It's just handy for Phoenix
 
Xeo
Nothing special about member pointers.
 
@Xeo Well, that's different, right? I reckon int i; std::ref(i)(); shouldn't try to compile INVOKE on the int?
(It might, but still, I hadn't dreamed of it)
 
@MarkGarcia I think friendship depends on a few things: length of your relationship, how often you spend time with the person, and how well you like the person
 
Xeo
@not-sehe I think it will.
 
Sweet. TIL. The lounge is irreplaceable for sheer gold nuggets of C++ experience
 
Xeo
7:44 AM
std::ref(&item::id)(obj); would be the same as std::mem_fn(&item::id)(obj), I think.
'cept std::reference_wrappers are treated very specially in a number of places.
 
Yeah, I got that around here. trying it as we speak
 
People change, or at least their circumstances change, so if you have not communicated with a person for a long time, you might find the person quite different to his/her old self
 
I renamed the id to something else, even that didn't work
 
Xeo
And of course, [].id(obj) is nearly equal to the two, but more efficient, since it doesn't use pointers of any kind. :>
 
I still don't understand what the problem is with lambda here ?
 
Xeo
7:46 AM
Nobody knows, but why don't you just ditch Boost.Lambda?
 
@Telkitty猫咪咪 But you're still his/her friend. :) BRB. Have some things to work on.
 
@Xeo how can I ditch her. I'vent fucked her yet
 
@Xeo oops. I can't compile ref(&class::data) or ref(&class::foo) at all, it seems
 
Xeo
@not-sehe hmm
 
even If I wrap it in boost::ref it doesn't work
 
Xeo
7:49 AM
@not-sehe Ahh, I remember, std::ref dislikes temporaries (for good reason) :s
 
Person is typing.. Person is typing.. Person is typing.. Person is typing.. Person is typing.. Person types: Hi.
 
@Xeo I see how disliking temps is sane, but how would that be a problem for a ptmf type...
@NeelBasu You can ditch it. It has fucked you over twice now
 
Xeo
And again, there's no special-casing for anything.
@not-sehe It would, as it internally stores a pointer only
 
@Xeo Darn. "ref" <-- it's kinda obvious in the naming, actually :/
Sometimes I'm so terribly slow.
Anyways, this kind-of makes mem_fn a lot more appealing...
 
Xeo
ya
And [].member :>
 
7:52 AM
@NeelBasu try wrapping it more. And wrap it in a std::function. And paper over it some more :)
@Xeo that a proposal, methinks? That would be neat with some kind of static reflection proposal. <mind wanders>
 
is there any boost::equals ?
 
std::equals, even (only really powerful in c++14, but I think MSVC2013 has it already)
 
I see std::equal
not equals
 
... ah well, then it isn't there. what are you looking for, anyways
16 mins ago, by Xeo
std::bind(std::equals<int>(), std::bind(&item::id, _1), id)
 
Xeo
Meh, std::equal_to
Also, I have reached the point of semantic satiation for "equal".
 
7:57 AM
man. those names are really devious
 
@R.MartinhoFernandes How can you do otherwise? I mean, with separate headers?
 
hi everyone
 
Xeo
@LightnessRacesinOrbit Attention whore.
 

« first day (990 days earlier)      last day (3967 days later) »