« first day (1072 days earlier)      last day (3877 days later) » 

9:00 PM
They used the S_ISREG/S_ISDIR style macros and assumed the two were mutually exclusive
 
@DeadMG In harvest (which was created in one weekend) I create one config variable. It's passed via dependency incjection to every game object.
it's a simple solution for a small game prototype
 
ok, well, let's take a small step back here.
 
I've never said it's perfect, but it's certainly not as bad as you're painting it
 
user1804599
@sehe Guess I'm gonna file a bug report.
 
are you trying to defend your choice on the basis of, essentially, not bothering to evaluate it because you had no time?
 
user1804599
9:01 PM
The documentation doesn't mention this behaviour.
 
@BartekBanachewicz I expected perfection from a smart fella. I'm disappointed.
 
@LewsTherin that wasn't a particularly smart expectation, I'd say.
 
user1804599
Or, well, I'm going to fix it myself.
 
user1804599
:E
 
@BartekBanachewicz So in the future, you could easily get one object trying to use a name for one thing, and another object trying to use it for another- i.e, that every property is in effect a totally unscoped global variable?
 
9:03 PM
@DeadMG no, I've just said that I am aware of possible problems with it. At the same time, I disagree with particular points you've made.
 
@BartekBanachewicz Pfft, I've seen your answers to questions, I wish DeadMg was more sarcastic in his reply to you.... Asshole.
 
@LewsTherin what's wrong with my answers?
 
Not your answers. Your attitude in answering them.
 
@LewsTherin Excuse me?
 
-3
A: How to create a cross platform timer

Bartek BanachewiczAppropriate functions and classes are availabe in standard <chrono> header. In particular, system_clock, steady_clock and high_resolution_clock timers are available, and you can build your functionality on top of them. If you want the events to be fired asynchronously, threading facilities from <...

 
9:04 PM
@LewsTherin Pardon me? If this is somehow meant in humor, please (a) clarify (b) consider yourself informed that it doesn't come across very clearly
 
@DeadMG that's one simplification which a) can be easily improved b) is not really relevant to what you said earlier about stringly typed stuff
 
@BartekBanachewicz The comments.. You should be a bit nicer. I know it is a hard thing for C++ programmers, but try huh?
 
@LewsTherin yeah I was particularly angry at that time, but I've decided to keep it up despite the negative score.
 
@BartekBanachewicz Well, the exact problem is that it's stringly typed. If you decided to, I dunno, key it by the address of some unique type or constant, it would be impossible for anyone to get a clash (which, incidentally, is exactly what the Lua manual recommends doing in the Lua registry).
 
@sehe No humour here..
@BartekBanachewicz Ok
 
9:05 PM
@LewsTherin Who's calling the shots? There's votes and flags...
@LewsTherin I noticed in the mean time
 
@sehe Ha, regardless.
 
Ell
@BartekBanachewicz I don't understand why that is downvoted o.O
 
I dunno either.
 
@LewsTherin I haven't insulted anyone. I've merely strongly stood with my point that C++11 is a current standard (which is true) and the community can benefit from C++11 insights (which is also true). I rather felt attacked by the OP for not providing a ready answer he demanded.
 
@LewsTherin Well. It's especially unfruitful to go sell opinions in chat rooms, methinks. There's always meta. Can't we just... separate concerns, leave Stack Overflow be the mainsite, and provide feedback there?
 
9:07 PM
@sehe Right, I'm sorry.
 
anyway, I saw the comments won't go anywhere so I've just abstained from further discussion.
 
@BartekBanachewicz Sorry. EoD?
 
Xeo
Holy shit, what's attracting all the idiots today?
 
@Xeo You mean at a rate that's higher than usual today?
 
@LewsTherin sure. I know I'm terrible :)
 
Xeo
9:09 PM
@Insilico Mh
 
@Xeo I see you want to play :/
 
@BartekBanachewicz Lol :P
 
@BartekBanachewicz :)
 
@DeadMG a string literal is a constant
 
Xeo
@sehe I thought the only winning move was not to play? :P
 
9:09 PM
Damn right. But you chose inflammatory wording :/
 
Indeed
 
@BartekBanachewicz Sure, but it's not the address of a constant.
at least, not in the same way.
it is, of course, the address of a constant value.
 
Now, see here for proper literal keys (* press tongue firmly in left cheek)
 
@sehe wooo
 
Good evening
 
JBL
9:11 PM
@TonyTheLion Hullo !
 
@TonyTheLion hiho
 
Ell
@sehe first link dead!
 
@TonyTheLion Hi!
 
Xeo
@R.MartinhoFernandes You don't happen to know where one could get an RPG play mat with an octagonal pattern?
 
9:11 PM
Is the puppy causing trouble again?
@BartekBanachewicz How's things with you?
 
@TonyTheLion Me? Cause trouble? Never.
3
 
hahah
 
Gut pup
 
@DeadMG FWIW I think that "cheating" a bit and going runtime with such cases can't really harm. Especially because you can easily trace all the access to the Config and find the offending one easily.
@TonyTheLion GF back in 6 days!
and my parents visited me today
 
@BartekBanachewicz Yay!
 
9:13 PM
and exam results on monday I'm scared.
 
ohhhh
 
I wrote damn 4 A4 pages on networking.
 
Lol
 
@BartekBanachewicz In my experience, run-time anything when you could compile-time it always manages to find a way to harm.
 
Well, hopefully most of it makes sense
 
9:14 PM
@BartekBanachewicz did you reinvent TCP/IP or something?
 
@BartekBanachewicz If you think it was bullshitting then that's a B at least. Trust me, I've done that a lot
 
@LewsTherin I just want to pass :S
 
Nothing to worry about then.
 
I thought I did terrible at my Math exam once, turns out I got an A* in the end
 
Xeo
You wrote a path-finding algorithm in your Math exam by accident?
 
9:15 PM
@Pawnguy7 It's a waste of time to show people a chunk of code out of context. If you're considering a particular design, show people the requirements first, not the code.
 
@Xeo No. He got an A* algorithm
 
@Xeo I wish. No its just a grade in the UK
 
Xeo
 
@willj Probably, but I assumed stringly typed was a pretty well-known thing. The internals don't matter as much.
 
@TonyTheLion Amazing "10 drawbacks of IPv4" question
 
9:17 PM
>
the aim is to "implicitly convert" - I'm done there
@BartekBanachewicz oh ok
 
Xeo
@BartekBanachewicz "... as opposed to ???"
 
@BartekBanachewicz You did of course mention the whole "we have no more usable IPv4 addresses on Earth", right?
 
@Xeo hm, no, just drawbacks
@Insilico that was a "free frag"
Well I've mentioned stuff like CRC and TOS fields being practically useless.
and that frame lenght artifact (limiting the network range)
 
What about the lack of security in IPv4? I think it is in 6 now
 
-1
Q: Closing the topmost window with C++

ScottAI'm using a program that does not have the ability to close the windows it opens. The company says this is because it's cross platform software. I'm only using it on Windows. So I'm trying to learn how to close the topmost window for the Windows OS. I'm new to HWND stuff. But I've found lots of ...

> I'm using a program that does not have the ability to close the windows it opens. The company says this is because it's cross platform software.
What the fuck.
 
user1804599
9:20 PM
static int bin_erlang_read(port,buf,count)
long port;
char *buf;
int count;
 
user1804599
Oh God…
 
user1804599
C99 B.C.
 
@LewsTherin that too
Well I managed to get 10
 
9:21 PM
@Insilico What does that even mean?
 
if all are ok that's 10/30 points, and I need 15 to pass
 
@TonyTheLion I think the person the OP talked to is being full of shit.
 
yea
People are bad at computers and computers are bad at people.
Really, its a match made in heaven
 
@not-rightfold Very old C.
 
@Ell Complain to @StackedCrooked... :(
 
user1804599
9:23 PM
Also, mixed spaces and tabs.
 
user1804599
lol this code is so bad.
 
Ell
You know what is crazy?
 
crazy things?
 
@Xeo lol
 
Ell
My Spanish friend got a job within 12 hours of being in the UK
and I mean that literally
He came to the UK and was working within 12 hours. Isn't that just amazing?
 
9:25 PM
What does he do?
If he's a porn star, then I can believe it.
 
Ell
He is only dishwashing :P
 
Ell
but still. I couldn't get a dishwashing job :L
 
lol, I could get a dishwashing job
 
Ell
I went to one job interview of like 13 applications
 
9:26 PM
@Ell Do you want to get a dishwashing job?
 
@Pawnguy7 but what do you want to use it for, and why do you need it?
 
@TonyTheLion meh. it's quite localized. Someone wants to have meta programming with a lot of syntactic sugar
 
Ell
for finding a job of anything
 
@BartekBanachewicz 33% isn't bad for one question. I think you'll be grand.
 
Ell
Not any more. But back then I would have done anything legal
 
9:26 PM
Going to watch 24. Laterz
 
tomorrow I am going to apply for incapacity benefit.
 
@DeadMG Aww
 
@DeadMG Good luck!
 
I hope that the recent news reports about the incompetence of its administration are exaggerated.
 
Ell
I swear you said that yesterday
 
9:27 PM
@DeadMG WGP
 
I probably mentioned that I was planning on it
 
@Ell is she very pretty?
 
You have mentioned it
 
Ell
@deadmg have you thought of getting a data entry job or something else you can do from home?
@sehe its a he :P
 
@TonyTheLion Ah, the WGP from before wouldn't take me on with how much time I claimed off for illness.
 
9:28 PM
data entry job, why didn't I think of something like that?
 
@Ell The core issue isn't just travel, it's reliability.
 
I mean, its mind numbing, but hell, my mind is pretty numb anyways.
 
Xeo
whee, terraria update seems to be coming soon
 
yesterday I ate two biscuits with a combined mass of less than half my palm
and spent the entire day kneeling on the toilet.
 
@Ell DeadMG's Internet connection is unreliable as shit apparently.
 
user1804599
9:29 PM
    if (stat(name, &statbuf) >= 0 && !ISREG(statbuf)) {
	/*
	 * For UNIX only, here is some ugly code to allow
	 * /dev/null to be opened as a file.
 
hell, even if I don't do that, I simply don't know if I'll be available for work tomorrow, or next week.
 
user1804599
@sehe, you were right. :)
 
@DeadMG I ate about the same today. I only just had a meal.
But for other reasons, not because I have a bad stomach
 
Ell
I guess. but there must be a zero hour contract for data entry somewhere
 
in the past it's even been like, a month of unforeseeable unworkable.
 
9:30 PM
0
Q: Can Github be used to backup my C: drive?

dhasaSo I recently discovered Github and learned about how it offers free code/file hosting. I just finished installing the Git command line client and am currently in the progress of configuring it. I want to use it to back up my entire C drive. The drive can hold 650 GB but right now only about 25...

 
user1804599
1> file:read_file("/dev/zero") =:= {error, eisdir}.
true
 
user1804599
Ugh. Wtf.
 
@Ell Maybe. I wouldn't even know where to begin.
 
@not-rightfold of course I was
@Ell link fixed
 
user1804599
I'm sure fixing this would break other shit.
 
user1804599
9:32 PM
Also, there's a race condition here.
 
@chris The OP is probably using one of their free services, which only has public repositories, no?
 
@not-rightfold I'm not sure. They just didn't reckon with non-regulars. Just check all the places where it's used, and double check that none of them actually requires regular files
 
Would be hilarious to see OP's entire pron data collection on the Interwebz.
 
@not-rightfold That's okay. Unless the code is documented to be thread safe and fs race free
 
@Insilico Yeah, I was thinking your whole drive would be public.
 
user1804599
9:33 PM
\
 
Man, "Closer" is such a great song.
 
> Would this work? My Internet is kinda slow so I want you guys to verify that everything's good before I wait 10+ hours for everything to upload.
I reckon Internet speed is the least of your worries if you plan to push 650 GB worth of changes to a repository!
 
user1804599
    if (stat(name, &statbuf) >= 0 && ISDIR(statbuf)) {
	errno = EISDIR;
	return check_error(-1, errInfo);
    }
 
user1804599
I hope this fixes it. :P
 
0
A: Can Github be used to backup my C: drive?

Caleb learned about how it offers free code/file hosting If everything on your machine is code, and if you don't mind sharing the contents of your computer with the world, then sure, go ahead.

Eh.
 
9:38 PM
lol
 
Technically everything on your machine is code (for something).
 
You're code.
 
erm. entropy
 
Macho code.
 
user1804599
Wait.
 
user1804599
9:41 PM
This shouldn't be checked at all.
 
user1804599
open already sets errno if the file is a directory.
 
9:53 PM
Why paleontologists shouldn't play computer games http://t.co/MwZHDIING3
@not-rightfold unless they need to check for funny stuff like UNIX domain sockets, fifo's, symlinks, hard links etc.
 
user1804599
I'm compiling it now and then I'll run the tests and see. :P
 
user1804599
git blame doesn't show anything interesting.
 
@EtiennedeMartel wow
 
> Could someone please help me recognize a difference between #fortran and javascript. First day in #js and see no difference /cc @JoinReturn Tweeted by Cynede on September 22, 2013 at 6:19 PM in reply to JoinReturn
 
-1 due to "your local .git folder will take as much space as the content of the drive". This is factually inaccurate, as it depends on a multitude of factors (compression, deduplication, ignored files etc.) — sehe 16 mins ago
Really? I'm being serious here but my .git folder is always larger than the sum of the contents of the directory.
 
9:59 PM
How often do you run git gc?
 
Is that an NTFS thing or something? It's the same with mercurial.
 
user1804599
Oh fuck.
 
user1804599
This function returns the file size.
 
Ell
@rapptz at repo creation time?
 
@Ell No, overtime obviously.
 
user1804599
10:00 PM
Unless stat fails, in which case it returns an uninitialised value. :lol:
 
Sorry, but I would rather have free people than free health care.
 
Ell
Then the sum of the deltas will add weight, right?
 
@Rapptz It's certainly possible to have a git repo that is smaller than the working dir. For example, one with lots and lots of files with the exact same content.
 
@Code-Guru it's automatic
 
@sehe why not both
2
 
10:01 PM
@sehe oh...that I didn't know
 
user1804599
Well, fuck.
 
@Rapptz it's always much smaller for me. What do you keep inside?
 
Inside the .git folder? I don't touch it.
 
user1804599
1> file:read_file("../foo").
% while this is waiting, I do `echo hello > foo`
{ok,<<>>}
 
@Borgleader ssssht. it's always nice to leverage false dichotomy to highlight the elephant in the room
 
user1804599
10:02 PM
This is so horribly broken.
 
@Rapptz arhem. You know what I meant
 
I keep code files inside? It's not like I keep track of .dlls or executables. I just checked right now. Directory contents without executable/.o files is about 4.5 MB and the .git folder is 5 MB on disk.
 
@sehe Whenever I see this word I can't help but think of:
 
blarghghfd, latex compiler seems stuck
how the hell did I produce an infinite loop with a table >:(
 
Why are you making tables manually?
 
Ell
10:06 PM
Dat shit is turing complete
 
@Rapptz because I'm not a tex wizard :D
 
Ell
Tex tables really suck balls
 
@melak47 What editor are you using? I think any decent one would automatically help you with one
TeXMaker and TeXStudio have a Table Wizard
 
Ell
They do? Aww man
 
yeah I have texmaker, I'll try the wizard
 
10:12 PM
They're not great but they help for basic tables.
 
user1804599
Vim.
 
LaTeX tables are a pain in the ass to deal with, wizards or not.
 
the wizard generated table is no better
 
What's your .tex like? I can't imagine it being horrible
 
Ell
My tables always overflow :(
 
10:15 PM
most of it is not mine, but it compiled fine before
and it didn't take minutes
 
Ell
God. Foreheads are just weird, man
 
:s
 
@Ell Most words starting with fore- are relatively weird
 
Ell
Not just the word. The whole concept
its like your face is full of features and then there's just a load of blank space
I think I got high by accident :/
 
10:19 PM
\begin{tabular}{l | l | l}}
\hline
A & B & C \\
\hline
\end{tabular}
even this fails
 
extra brace
 
how does an extra brace get into an auto generated table :q
 
@Ell it's a form feed so you know that a new face is coming
 
@melak47 I don't know, position in the cursor maybe
Try this?
\begin{tabular}{|l|l|l|}
\hline 1 & 2 & 3 \\
\hline 4 & 5 & 6 \\
\hline 7 & 8 & 9 \\
\hline
\end{tabular}
 
I'm gonna try something.
why not both
3
 
10:23 PM
that compiles...and breaks the index. ASDASD
 
Tables is the point where you give up on using LaTeX and just start up Word.
 
I accidentally uninstalled office.
 
Ew, Word. :(
 
See? Easy stars!
 
I find Pinkie annoying from time to time, but dear god do I want to put my dick in that pink party pony
 
10:26 PM
@CatPlusPlus Yeah.
 
why not both?
why bother
 
Nice to know Brony is now a race just like African Americans and Females
This one is great.
 
Females are a lost race.
 
> "Brony" redirects here. For the village in Poland, see Brony, Łódź Voivodeship.
This is extremely funny but that might be because I'm slightly drunk
 
Ell
ITT cat lives in brony
 
10:34 PM
Oh, I had an idea earlier.
 
Quick, smother it before anyone notices
 
Get to cover!
 
I probably should have recollected the idea before I said that.
It is kind of... vague.
I was thinking about world events. Wars and such things.
 
awww VC++2013RC still have bugs in raw-string-literals in macro arguments =\
 
What if a game could be made, where the players decide what happens?
 
10:47 PM
well, at least they fixed simple cases like M(R"(
)");
 
Governments, wars, and what have you.
 
@Pawnguy7 I think paradox interactive made a game like that
 
@Pawnguy7 The complexity of programming such a game would be pretty immense.
not to mention the artificial intelligence required to produce an accurate simulation.
 
@DeadMG I agree.
Other problem is... people.
From my gaming experience, albeit limited, people are not very good at working together.
 
I agree.
you have to push them into the pit of success
 
10:51 PM
I feel I heard that in reference to C#.
 
you did.
 
@DeadMG wat
 
How do you propose to push them into the pit of success?
 
Ell
Imagine an entire simulation world with no NPC s
It would suck until you got billions of players
 
@Pawnguy7 You design game mechanics that essentially enforce co-operation. L4D has this down.
 
10:56 PM
@Ell I am not sure how any MMO's get started, now that you say that.
 
Peeps, this question deserves some attention:
1
Q: Error in instantiation of exception specification for vector and string compiling simple code

monamimaniI get errors when compiling this simple code: #include<vector> #include<string> struct Bar { Bar(Bar&&) noexcept = default; Bar& operator=(Bar&&) noexcept = default; std::string name; }; class Foo { public: protected: Foo(Foo&&) noexcept = default; Foo& operator=(Foo&&) noexcep...

 
Ell
But imagine a world where NPC equivalent s form naturally
but are played by people
would be cool. Then people could be succeptible to corruption and stuff
But then Its just real life with magic n stuff
 
@DeadMG I feel this greatly varies depending on setting. Not to mention, it depends who you co-operate with - I don't know how it would tell.
 
@Ell No, because nobody would play that game.
nobody would play as a food vendor.
 
@CatPlusPlus that's a part of the internet I try to avoid
thanks for bringing that here
 
11:03 PM
there's a reason why every single player in the World of Warcraft is the hero who saved umpteen lives and killed all those demons and personally defeated the Scourge.
 
Assuming that is true... I would find the backstory more annoying than useful.
 
I love DeadMG reasoning.
 
@DeadMG not food vendors but traders and haulers
 
@BartekBanachewicz You're welcome
 
for example in eve online
 
11:04 PM
ALSO I LOST INTERNET FOR TEN MINUTES
 
@DeadMG Speaking of which, I personally slayed The Lich King ;)
 
@CatPlusPlus MY GOD! ARE YOU OK ?!
 
lol ^
 
@Borgleader It's "slew".
 
Slewed
 
11:06 PM
@DeadMG I'll take your word for it. English is not my native language.
 
eh
 
I'm watching LP of Lollipop Chainsaw
 
"slay" is one of those really old-timey words anyway
 
With slain the uber-cool participle
 
I don't know what the etymology is, but it definitely doesn't follow normal English conventions.
not that English is renowned for strict linguistic consistency.
 
11:08 PM
slaan is Dutch for 'to hit' or 'to strike' (like schlagen in German, IIRC)
 
Ell
Could a Dutchman communicate with a German with both only knowing their native language?
 
I think that depends on the complexity of what they were attempting to communicate.
 
This reads like a comment + a highly suggestive FUD at the end. In particular "So i is a local variable" is a questionable claim, for largely the same reasons. — sehe 7 secs ago
@Ell Yes, as long as they don't talk :) Honestly, yes there's some overlap. Same goes for English to a lesser extent, then
 
11:29 PM
Maybe you should read your own answer once after (or, better: before) posting. — sehe 4 secs ago
 
11:47 PM
 

« first day (1072 days earlier)      last day (3877 days later) »