« first day (1367 days earlier)      last day (3592 days later) » 

12:01 AM
 
12:13 AM
hi. knobs. <3
WITH LOVE
okbaiu
 
my biggest disappointment in life is that I am not a cat.
 
that's... really sad
 
1:00 AM
@Chad I tend to do that when the question is a dupe of several others, but too inane to even be worth the bother of finding the others to close it properly.
 
Good morning.
@JerryCoffin I started reading that crap you gave me. You're right, it was a whole new level of crap.
Thanks.
 
@MarkGarcia Sorry, I give some many people crap, I have no recollection of the specific crap I gave you. But I guess you're welcome anyway. :-)
 
2 days ago, by Jerry Coffin
That said, if you're into that sort of crap, I used to find Robert Cringely's (sp?) column rather more entertaining (and about equally informative, which is to pretty close to "not at all").
:)
 
moar undelete votes plz i need muh passive rep ;)
 
@MarkGarcia Oh, that crap. Glad you enjoyed it.
 
1:13 AM
oh damn. I have an actual project. That I have to actually program
it's going to fail miserably! :D
 
thanks guys :)
 
@Borgleader lol. Last time I saw it that was, like, 25 votes.
Apparently, many guys have problems with defining 2 main()s.
 
1:45 AM
@MarkGarcia Yeah its surprising to me too =/
at this rate about 3 yrs from now ill have the +100 badge xD
 
2:35 AM
By just opening Eclipse, my CPU graph wrote "Simple Mail Transfer Protocol". — lolesque 2 days ago
3
Also, it would be much much more awesome if someone could do those at compile time.
 
user3010322
3:02 AM
Must.
 
user3010322
Make.
 
user3010322
Thing.
 
user3010322
Woooork.
 
print statements. Tis all you need
 
@Crow s/Tis/'tis/
 
3:36 AM
New website of Adobe source libraries. It seems that they have moved to Github.
Looks like Adam and Eve are missing though.
 
4:05 AM
 
Loki's ScopeGuard will change your life. Seriously. You'll be stronger, faster, and more attractive to the opposite sex. — j_random_hacker Apr 22 '09 at 16:26
WTF
 
user3010322
Can you have a file as a string in C# code?
 
user3010322
Like, have the contents of the file available as a static string or some kind of resource you can get in code...
 
user3010322
... Probably not, I'm guessing. Better just stick it in a raw string.
 
user406009
4:22 AM
@ThePhD IIRC, in Java, you would package the file into the resulting jar executable and read it from there. You might be able to do something similar with C#.
 
user3010322
Nah, I'm just gonna stick the thing in a raw string literal.
 
user3010322
4:49 AM
I think I'm going to drop the outline capabilities from NymphBatch
 
user3010322
they're just not really that worth it, I don't think.
 
user3010322
5:18 AM
I don't think OpenGL really has *ResourceViews of any kind like D3D...
 
user3010322
Is there an IString interface in C#?
 
user3010322
Because there's StringBuilder and TextBuilder and neither implement a common interface.
 
user3010322
What the hell.
 
user3010322
StringBuilder doesn't implement IEnumerable<char> ??
 
user1804599
@ThePhD No, of course not.
 
user3010322
5:24 AM
Talk about a fucking oversight. <_>
 
user1804599
@ThePhD IEnumerable<char>
 
user3010322
@rightfold But that doesn't apply to StringBuilder
 
user3010322
So it's not very helpful...
 
user1804599
Builders shouldn’t implement such interfaces.
 
user1804599
If you want to do that, just use List<char>.
 
user3010322
5:27 AM
StringBuilder is the only thing that has the back-buffering I need for something like a dynamic text box.
 
user3010322
So I'd like to be able to pass the string builder as it is to the underlying rendering system in C#
 
user3010322
Without having to call .ToString() every time.
 
user3010322
Oh man, CodeMap is ruining my day.
 
user3010322
The slowness right now.
 
@ThePhD Why are you using Code Map anyway?
 
user3010322
5:35 AM
No, it's just the implicit "1 refernece" thing above functions.
 
user3010322
That's part of the CodeMap functionality.
 
user3010322
Really biting me right now in some places.
 
I thought those was of Code Lens.
 
user3010322
Whatever it's called, it sucks.
 
user3010322
Holy fuckin' shit still "processing"
 
5:36 AM
I'm pretty sure there's some disable feature for that.
 
5:49 AM
3
A: Best way to store game-wide variables

Scott ChamberlainThe Enums are like classes themselves, they are not variables. Here is a better way to set up the layout. namespace V1.test.RPG { public class GameOptions { public GameOptions() { FullScreen = false; DifficultyLevel = Difficulty.Normal; ...

this is actually pretty good
it's something I've kinda always wondered and I like this solution :v
obvious in hindsight though
 
2
Q: Best way to store game-wide variables

R-noldI have an options Screen for things like Difficulty, Resolution, Full Screen, etc but I'm struggling to find the best way to store/obtain these variables at game time. The way I've currently decided to do it is to create a 'Constants' class which contains all the GameOption enums. But how do I c...

 
yes
it's in the body of the question
that's how I got there.
 
user3010322
Wait...
 
user3010322
What are novel about these solutions again...?
 
nothing
I went into it expecting to see singletons and service locators
but I got that instead
2 mins ago, by Rapptz
obvious in hindsight though
 
5:52 AM
It's pretty common in stateful APIs too, like Boost.Asio's where you pass io_service.
 
sounds like service locator without a null service from the name though
 
user1804599
io_service is just a queue and event loop.
 
I didn't say it wasn't :v
just that what's that the name reminded me of
 
user1804599
It should’ve been called event_queue and run should’ve been a free function.
 
yeah seems poorly named
 
5:56 AM
io_service actually does more of storing platform-specific states.
> 2. The I/O object forwards the request to the io_service.
> 3. The io_service calls on the operating system to perform the connect operation.
 
sounds like an event queue to me
 
user3010322
6:24 AM
What is a "connect operation" ?
 
6:39 AM
Who wants to bet my psychic debugger has spotted this one blindly :)
@rightfold By that logic, ostream should have been named ostream_buffer? The io_service abstract asynchronous services, and has-a event-queue. So it could be EventManager or EventQueueController in a wicked world
 
user3010322
6:53 AM
Ugh.
 
user3010322
I hate this.
 
user3010322
List<T> doesn't allow you to get a reference to the underlying array.
 
user3010322
You have to dump the whole thing into a T[]
 
user3010322
Copies everywhere. ;~;
 
user3010322
How do you apply constraints in C# again?
 
6:57 AM
where T : InterCafe
 
user3010322
public class Arf<I> : where I : [stuff] ?
 
user3010322
Hm. Not really compiling...
 
remove the colon before where
 
user3010322
Ooh.
 
also class constraint first (only one), then interfaces, then class|struct|new
I think it is that order
 
user1804599
7:08 AM
@sehe ostream shouldn't exist.
 
user3010322
Mmm. SharpDX uses Rectangle and it has ints. There's no RectF.
 
user3010322
Blah.
 
user1804599
It violates SRP by doing both serialization and writing to a streambuf.
 
user3010322
Need dat Region class...
 
user1804599
#region class
 
7:18 AM
Good morning internet!
 
user3010322
You;re up early. o_o
 
user1804599
> This code is about as portable as the Great Pyramid of Cheops.
 
@rightfold that doesn't mean it should be called std_vector_of_charT because it could be implemented like that.
@ThePhD there are member functions that do the right thing in JIT, AFAIR
 
user3010322
the ToArray() member function?
 
user1804599
@sehe ok
 
7:36 AM
 
user1804599
You're a cat, not a dog.
 
user1804599
You indeed have no idea what you are doing.
 
lol
I haven't the foggiest indeed
 
user1804599
@ThePhD on which class?
 
user3010322
List<T>
 
user1804599
7:44 AM
Yes.
 
user1804599
It's O(Count), not O(1).
 
user3010322
:(
 
user1804599
@TonyTheLion lel
 
user1804599
oorlel
 
7:48 AM
that pun
 
can you just delete system32?
 
whyyyy!!!! WHY did I make another one of these foul work coffees!
 
Xeo
unenthusiastic whoo world champion unenthusiastic whoo
 
user1804599
Ugh, coffee.
 
@thecoshman because you are addicted :P
 
user1804599
7:52 AM
 
Xeo
Fun fact: night busses from <the place we play D&D at> to <my place> only run on Fr->Sa and Sa->Su nights, not Su->Mo nights anymore.
They used to, a few weeks ago
 
user1804599
Too many drunkards.
 
so you can't get home on Sunday night?
 
Xeo
So when I wanted to get home at 0:30, I was stuck
 
user1804599
Just walk.
 
Xeo
7:57 AM
yeah right
 
user1804599
Crouch.
 
Xeo
it takes me over an hour by train
 
taxi?
 
Xeo
50 bucks
decided to just sleep at <the place we play D&D at> and leave this morning at 7:30
 
better than walking or sleeping outside
oh lol
 
user1804599
7:58 AM
Sleep in a tree.
 
Xeo
worked out fine in the end
I'm at work now, and wasn't even late
only 5h of sleep, though
 
its Monday morning, they're terrible anyway
so doesn't matter if you're not awake
OTOH, I hate not having slept enough
my brain don't function when that happens
 
Our house has all the doors and windows open. The only source of internal heat is this box I'm typing on and the fridge. Nevertheless, the house is 4C hotter inside than outside? I may hire an ionising radiation detector.
 
@StackedCrooked :S
 
Last place I worked, when I left, I told them the coffee was terrible and needs improving
as one of the improvement suggestions
 
8:02 AM
heh
 
@MartinJames It's called "insulation". You know, walls and stuff
 
oh yea walls, they're a thing apparently
 
@Puppy Given some time, I would expect the temps to equalize - there is a nice breeze blowing through.
 
user1804599
In a software house it's called "isolation."
 
@TonyTheLion when I did my placement year for uni, I had to do an exit interview for that, even though it was only a year contract. Nearly every question was answered by saying a biscuit budget would really help. After all, happy workers are productive workers :D
 
8:05 AM
heheh
 
I don't drink coffee
 
you suck :P
 
user1804599
Coffee sucks.
 
user1804599
Drink Coca-Cola.
 
too sweet
 
8:07 AM
My beer fridge now has more diet-coke cans than actual beer.
 
yuk diet coke
 
user1804599
diet beer
 
@MartinJames I don't like you anymore.
 
personally I drink the super-duper cheap stuff.
£0.085/litre.
 
Xeo
@MartinJames Ew to both
 
8:08 AM
@StackedCrooked lol - I can't drink beer all day to keep cool and hydrated. I've tried, but it doesn't work out well.
 
@MartinJames sure, given some time it will equalize, if you stop generating additional heat
 
user1804599
Drink water.
 
@rightfold Eww!
@jalf Thre's like ~200W from box and mebbe 130W from fridge, plus some power from myself, I guess. With all the doors and windows open and a breeze, I would have expected the temps to equalize quickly.
Ohwait. Sun on walls/roof :(
 
@Puppy ew, rolla-colla
 
Supermarket 'value cola' tastes like.. value cola, ie. disgusting.
 
8:13 AM
@MartinJames You seem to be excited that it could be ionizing radiation. (well, who isn't? :) )
 
user1804599
Coca-Cola.
 
user1804599
Pepsi is fine as well.
 
user1804599
Rest is pretty much shit.
 
user1804599
$id = \ut\mapNullable($request->attributes->get('id'), 'int_val'); best function ever.
 
@MarkGarcia TBH, I'm pretty sure it is not. Having had a couple more coffees, the sun on walls/roof is a more likely explanation, (besides, if there was enough radioactivity to raise the temp by 4C, I would not be here now).
Anyway, I'm keeping the doors/windows open till temp does equalize, then closing them and turning on aircon.
 
Xeo
8:23 AM
oh come on, wtf. This class has a method for serialisation, but not deserialisation
 
user1804599
It's designed for write-only memory.
2
 
Monday again. Must keep my eyes open.
So hard.
 
8:46 AM
If your application orders 99kb as a larger size than 50Tb you suck and should be fired!
 
wonder how many 32bit integer overflows are in 50T
 
o_0
I was getting more at the way it stupidly just looks at the numerical value "99 > 50"
 
(E.g. I still haven't figured out what library type you refer to when you keep talking about "Boost Message Queue"...) — sehe 13 secs ago
Does anyone know the obvious thing he's talking about? o.O
 
io_service?
not obvious, just a wild guess
 
9:02 AM
wow, Visual Studio locks up for around 8 seconds when I click on a breakpoint
 
how does it know you are trying to click?
 
hah, still within 2 minutes
 
it amazes me how much VS hangs and locks up in normal usage.
 
Update2 solved many issues for me
 
Hey, hey, hey, what are you doing bashing VS?
That's my job.
 
9:09 AM
There's enough to go around
 
there's more then enough bashing to share around
¬_¬ damn my slow typing
 
@StackedCrooked buzzzzz
 
As long as you vote up my bugs.
 
@StackedCrooked who "clicks on a breakpoint". What would that do
@R.MartinhoFernandes I do
 
@R.MartinhoFernandes sllooowly... it loads so sloooowly..
 
9:12 AM
@sehe removes the breakpoint? :p
 
F9
 
Formula-9?
 
> We are no longer living in the 90s.
MS probably still living in the 90s
 
@sehe oh, you mean I should click on the corresponding line of text, and then hit F9? :p
 
@TonyTheLion You're forgetting about time machines having been invented in 2078
 
9:13 AM
lol
 
In 2090 I'll probably be dead.
 
typedef std::true_type False;
Almost.
 
Hey. At least it's not #define
 
@R.MartinhoFernandes I can't believe this really happened.
 
9:18 AM
@StackedCrooked I fixed it right after typing.
 
Oh, you did it.
That explains.
 
user1804599
@StackedCrooked Word dan ook niet de dag ervoor om negenen 's avonds wakker, mongool.
 
> mongool
not disruptive in any way
 
@MartinJames You have experience with HD47780?
    template <typename Sequence, int N>
    struct at_c
        : at<Sequence, mpl::int_<N> >
    {}; // error C3520: 'I' : parameter pack must be expanded in this context
Kids, for the love of all that is beautiful, don't use variadic templates with MSVC. (that's Boost code, btw)
It's like drugs for the compiler. It gets high.
 
@rightfold but
 
user1804599
9:28 AM
@thecoshman You can in Scala, by the way. :P
 
@Bathsheba and what would you suggest to avoid the sleep, then? — sehe 11 secs ago
The answering crowd do seem to get more "dismissive" than the asking crowd is "entitled" these days
 
@sehe coffee obviously
 
Zing
 
user1804599
Dans
 
@sehe He didn't seem particularly dismissive.
 
9:31 AM
> git pull
First, rewinding head to replay your work on top of it...
^ it should be "your hard work".
 
It could be just an attempt to pass the word that std::thread exists. (Hence it being a comment)
 
@R.MartinhoFernandes Well, the downvotes are part of the pattern. Also, the comment is quite vacuous, vapid, uninterested, (indeed ... dismissive of the question)
 
I think you're reading too much into it.
 
@R.MartinhoFernandes That, however, seems to be very unrelated to the question
 
Hence it being a comment.
 
9:33 AM
@R.MartinhoFernandes Yeah, well, I'm indeed assuming that the downvote might be from the same person (I believe it had -2 when I responded)
 
That C3520 shows three times, but no mention of my code in it.
Now I have to grep for I parameter packs in my code to see where it got the coke.
 
one thing I found in VS2013 is that it would report correct errors but at totally the wrong locations.
 
I'm pretty sure this is a wrong error because the code compiles in real compilers.
 
don't think that Wide can compile variadic parameter packs
 
@Puppy you mean like showing the error in the stl code when called with bad type?
 
9:38 AM
no
 
11 mins ago, by R. Martinho Fernandes
    template <typename Sequence, int N>
    struct at_c
        : at<Sequence, mpl::int_<N> >
    {}; // error C3520: 'I' : parameter pack must be expanded in this context
Like this.
 
I mean like, issuing an error at a line of my code that's somewhat tangentially related to the error where it really occurs.
 
Whatever it wants to complain about, it's not there.
 
I have to zoom in on pages at 1080p on a 24" screen too
what the hell do I need, better eyes or a 30" screen, for 1080p
I only sit like, 1m or so away from the screen
 
better eyes
 
9:41 AM
@AlexM. 1m seems like a long distance
But I tend to sit very close to the screen.
I like lcd crystals.
 
1m is comfy for me
I can read unzoomed text
but it strains my eyes so much I feel like closing them and looking away
if I zoom in it's fine
 
> At about age 40, natural changes in the eye’s focal length means most people can’t see closely as well. That’s when you start holding the restaurant menu at an arm’s length to read.
I'm 34. That's scary.
 
Use an extension tube.
 
I took another test before I changed jobs and this time there were letters I was unable to read with my right eye
so my vision is definitely getting worse
 
Xeo
@AlexM. Glasses?
They're magical!
 
9:46 AM
before I'd still be able to recognize stuff with small fonts
now it was a blurry mess
@Xeo ew :(
glasses are sexy tho
 
Eyesight trouble is one of the things I don't avoid going to the doctor for.
 
Xeo
I should've gotten my glasses literally years ago
-2.5 and -3. So glad I have them now
You really only notice just how bad it is after you get them
 
user1804599
Renaming public broadcasting organisation cost 100k.
 
user1804599
They're even more retarded than I thought.
 
@R.MartinhoFernandes I still need to update my glasses. I tend to just never go shopping so it's never on my route. And last weekend I bought new clothes, so it will probably be in 2015
judgemental spoilt little fool
There. I said it
 
user1804599
9:53 AM
Not that not privatising this is a good idea anyway.
 
Remember when NOS -> NPS was renamed? Imagine running the campaign with 10k. You'll quickly see that 100k is a fair budget.
 
Giving unique names to all parameter packs named I so that I can pinpoint this bullshit.
 
@Xeo I had the same
I used to sit really close to my screen
 
user1804599
@sehe How about not renaming it at all?
 
then one day I got glasses, and suddenly I didn't need to be this close to the screen anymore
 
9:54 AM
And not running the campaign (because that's what you will come up with, obviously) will ruin audience identification with the brand. Don't underestimate the trust that has been built-up with a brand like "NOS". When you rename without warning/explanation, people will simply not trust the renamed broadcaster even though it's the same.
 
I could see
 
user1804599
I didn't come up with not running the campaign while still renaming.
 
@rightfold That's a good point. How about realizing that paying 10 rightfolds for 10 days would be about 100k as well.
 
user1804599
I came up with not renaming in the first place.
 
@rightfold kudos!
@rightfold I noticed. Thanks for reverberating in your echo chamber some more!
 
user1804599
9:55 AM
Everyone knows what "Nederland 1" is.
 
I bet renaming was the idea of those EU people and not the Netherlands.
 
user1804599
No need to rename it to "NPO 1."
 
Yeah. Well. I don't know what the goal is, so I can't comment.
@R.MartinhoFernandes That's what my instinct tells me too. Still, no clue what the goal would be
 
> error C3520: 'I9' : parameter pack must be expanded in this context
Much better.
 
user1804599
> De Nederlandse Publieke Omroep (NPO) neemt op 19 augustus definitief afscheid van deze bekende merknamen om zo 'herkenbaarder' en 'beter vindbaar' te zijn in 'een nieuwe digitale wereld'.
 
10:03 AM
@sehe Right, like when they renamed Coco Pops and had to reverse it a few years later
 
@AlexM. did you get your length messed up?
1m is really far away for a 24" screen
 
I don't think so
whenever I read something I like to lay back on the chair as far as possible from the screen
 
I'm 99% sure it isn't 1 metre away.
 
10:06 AM
Needs more jpeg, too.
 
it's a bit too insane
not even great eyesight will help you there
 
I'll measure it once I get home
 
I can read just fine from 1m away at 96 dpi.
 
on a 24" screen?
 
I'm usually closer, but if I back off to 1m, I can still read Consolas 10 fine.
 
10:09 AM
I have a 96 dpi screen too
sec
 
@Rapptz is it?
 
Only basing it from the fact that 55" screen has a recommended viewing distance of 1.7m
 
that doesn't sound good for your eyes
in fact that is fucking terrible for your eyes
 
Well. I'm not the one recommending it.
Anyway I did some measurements and I can stop reading this chat at around 1.6m
So I guess I'm being silly
 
@Rapptz That's a 45 degree fov across the diagonal.
 
Xeo
10:14 AM
@Rapptz I can still see fine over 2m, I think
 
my screen's kinda tiny
16.5" with 96dpi
 
Xeo
that is pretty small
are you on a laptop?
 
yup
 
For a 24" display, 45 degree fov is at ~73cm.
 
Xeo
ah, okay
 
10:18 AM
@LightnessRacesinOrbit never heard of, but yeah, probably
 
(I did hear about Google, though. Probably before they renamed it to DuckDuckGo)
 
Oh you.
 
user1804599
function method($name) {
    return function($object) use($name) {
        return call_user_func_array([$object, $name], array_slice(func_get_args(), 1));
    };
}
 
user1804599
This is nice. Like std::mem_fn.
 
Is this your language?
Or just JS?
 
Perl or PHP
 
user1804599
PHP.
 
10:43 AM
DeadMG the winner
I got a worthless hound sleepin on mah lappages
 
user1804599
In JS it would be function method(name) { return function(object) { return object[name].apply(object, [].slice.call(arguments, 1)); }; }.
 
@rightfold The use keyword is for capturing state in the lambda?
 
user1804599
@StackedCrooked Yes. :[
 
user1804599
Except $this. $this is always captured.
 
@rightfold What's the point of [].slice?
 
10:49 AM
aww Cheryl got married. dammit.
 
who's cheryl?
 
@rightfold terrible
 
Not sure if terrible.
But hey, it's php.
 
@AlexM. Some nobody singer
 
@StackedCrooked Sometimes you want to capture all local variables (like [&] in C++)... well fuck you. PHP won't let you.
 
10:54 AM
welp
 
You are going to list them all, you little bitch (joking #noflag)
 
spent an hour on the phone to WGP explaining about the other WGP's decisions
 
@LightnessRacesinOrbit You can be her mistress.
 
@LightnessRacesinOrbit with @Crow?
@Puppy what is WGP?
 
worthless government people
telling him stuff I told the govt like five times already, etc.
 

« first day (1367 days earlier)      last day (3592 days later) »