« first day (1397 days earlier)      last day (3776 days later) » 

00:04
@JerryCoffin Can't resist scratching the itch?
green & red on black look good
@AlexM. I'm tempted to wonder if you may have a color vision deficiency. How do you score on this test: xrite.com/online-color-test-challenge
still better than the meta chat, the first time I was there after they split meta, I was like 'omg horror!' - they use ... you know the tint of blue that are usually put in horror movies
@chmod711telkitty I'll have to take your word for that (I'm not much of a fan of horror movies).
00:22
Best photo of the ape :P
@JerryCoffin I've gotten a perfect score on this every time.
@Rapptz Once in a while I get a score of 2 or 3 (always on the bottom row). I'm pretty sure it's a matter of just getting bored and hurrying too much at the end though.
I always considered that test to be a test of quality of your monitors, not your eyes.
@JerryCoffin I got 3
00:43
@Borgleader Okay, so you're not color-blind after all. You have no real excuse left--you obviously lack taste in colors. :-)
@Rapptz A good (calibrated) monitor certainly helps, but some people (especially quite a few men) just don't perceive fine gradations in color very well.
setOfWalls[i] = store_tiles(indexX, indexY, walls);
does this not work?
who knows?
I guess I do.
@cyberspace009 That would probably depend on how you've defined setOfWalls, store_tiles, etc.
@JerryCoffin just a for loop like so: for(int i = 0; i < total_tiles; i++){ setOfWalls[i] = store_tiles(indexX, indexY, walls);
user457812
00:48
I sure do get a lot of recruiters contacting me ever since I actually got a job
@nil lucky you. Congratz
@cyberspace009 That's telling about how you're trying to use them, not how you defined them.
user457812
Even had Woot contacting me for some reason. Probably because I half-filled-out an application then went "there's not a chance in hell" and dropped it.
@JerryCoffin the problem is that I get a crash/exception if I use it this way.
user457812
I should take off my pants.
00:51
@cyberspace009 Most obvious possibility would be that you've defined setOfWalls as an array smaller than total_tiles. Or perhaps you've defined it as an uninitialized pointer.
Without seeing code, it's impossible to make a more informed guess though (and this really isn't the place for debugging defective code in any case).
good form of perspective, though. I will try those suggestions now.
@JerryCoffin 16
oh wow.
problem solved.
@Jefffrey Congratulations, you're clearly male! :-)
hehe
After a while the colors kinda mixed together so I had to take a 10 seconds pause.
00:57
@Jefffrey Women's eyes have a much higher percentage of cone-type receptors (which are the ones that sense color).
@cyberspace009 you're still stuck on that?
werent you here on sunday about this?
@Borgleader I got it fixed
it was dumb: "std::array<SDL_Rect, total_tiles> setOfWalls;" was causing an exception because the for loop : "for(int i = 0; i <= total_tiles; i++)" was using the total_tiles variable.
> i <= total_tiles
bwahahaha fuck yes
@cyberspace009 <= theres your problem
Also std::begin/std::end or GTFO
01:03
[0, n[ not [0, n] and ^ this
or for(auto& tile : ze_tiles)
@cyberspace009 What are you doing in the body of the loop?
@Jefffrey just filling in the tiles for setOfWalls and drawing the tiles on the map
Take a look at std::fill and std::transform
@Jefffrey Good call (or std::fill_n, depending).
I recommend looking at SFML
since it's in C++ instead of C like SDL
it's better for someone who is new
01:18
I never understood SDL.
Good morning.
01:45
I may have to move out of state in order for me to use this degree.
02:08
@Rapptz SDL is in C++ as well.
@Rapptz im sorry. You are correct sir. On their website is says "SDL is written in C, works natively with C++"
no it isn't
You are correct sir. On their website is says "SDL is written in C, works natively with C++"
SDL is pretty bad IMO
I was wrapping it and it was pretty miserable
@Rapptz Damn. I was working on this project for five months. I learned a lot through the experience.
@Rapptz so SFML is better in your experience?
You can stick to SDL, it doesn't really matter
It's not C++ though.
It's C.
SFML is C++ (or well, the 'OOP' side of C++).
 
2 hours later…
04:07
user457812
Woo, power's back.
04:35
Microsoft, take all my money just keep making those stuff!
Xeo
Xeo
05:02
Yay, time for the gamescom
@Xeo hopefully better than the game-scam (aka DNF).
05:29
> please help debug, here is my code. Thanks.
these new OPs have no shame
I looked at this class I had written - nearly 4000 lines of spaghetti code, I nearly cried, then I vowed that I would NEVER make it open source!
@chmod711telkitty Let me guess. For that class you only have some 3-5 functions. :P
I had about 30-50 functions inside
0
A: Are there any workflow engines in existence that don't use BPMN and BPEL?

Amit KothariWe are building a product that has a migration path for BPMN 2.0 but does not - internally, use BPMN. We believe checklists are much easier to use in real-time workflows than flowcharts. Is still however, has rules/triggers/conditionals and more - so it's a tool that effectively models processes ...

You guys think this is spam?
@Rapptz By looking at the guy's history, no.
05:41
That's not what spam means
:v
Though it could be better rephrased and put some "Shameless promotion" sticker at the top, just like others who link their products/libraries.
@Rapptz I mean, he doesn't have an apparent history of spamming. Just happens that he's coincidentally working on such a product.
-2
A: Javascript and PHP scan for nudity

Sebastian LeonFor better results, check out this new cloud-service for nudity detection: http://mirador.im Just send a URL or file via a RESTful API, you'll get results in under a second (250ms RTT average), and over 99% accuracy in many cases. For PHP documentation, see: https://github.com/mirador-cv/mirad...

This guy has two answers (both promoting his product).
@Rapptz Well it's obvious right? :P
Thanks for the free flag score. :)
I wanted to make a joke about a cloud service for testing password strength but I think I’ve seen one of those.
@LucDanton Maybe this one can detect if your password is nude...
06:07
damn I accidentally accepted an edit.
rollback
:v
It annoys me that things that are copied from google are on tag wikis, e.g.: stackoverflow.com/review/suggested-edits/5528151 and people are accepting it
06:38
Not sure this is the right room, but stackoverflow.com/questions/25279402/… ?
Thanks to whoever vtc'd, though the author deleted the post, it seems
Also, @Rapptz, seems they're trying again: stackoverflow.com/review/suggested-edits/5528672
Yeah I rejected almost all of his edits like that.
06:53
There's more, it seems. They just keep coming in; I left him a message on one of his questions.
There are a lot of users who seem to do that
The problem is it looks good so people blindly accept without doing a basic search first
I just rejected a bunch of them.
If I find another user I might post a meta question about it
@Bartek you haven't truly hated type systems until you've tried swift :D
07:06
I may just do the meta question
This user, even after being warned, doesn't appear to be stopping, and some of the copied content got through(and I can't simply delete it)
doing
How do you guys flag users?
Do you just flag an answer?
yeah
Goddamn... Everything in the low quality queue is delete, delete, delete, um, delete, wait... nope, delete
Oh wait... I forgot that they bias the results for 20k users.
07:14
doesn't it use your delete vote?
IOW, they intentionally give me stuff that has recommend delete votes since I can actually delete it.
*vote to delete it
not really
I get a lot of 'delete' stuff too
with the occasional close
5
Q: Are the review items prioritized by the reviewer's reputation?

MysticialI've been playing with the new review system for a few days now and I've noticed something about the "Low Quality Posts" section. It seems that >95% of the posts that I get already have comments left by other reviewers. So nearly everything that I see has already been reviewed (multiple times) b...

I experience the same exact situation but I don't have 20k.
It makes me feel like a roboreviewer
I just checked my review history
it took me 3 minutes to finish my 20 reviews in the low quality queue.
I guess it takes 6 to delete
6 recommend delete, or 3 delete, which ever is first
07:26
Swift logic : Type inference - compiler crash, specialize the generic yourself: "Cannot explicitly specialize a generic function" oh how much I hate you :D
Don't use Swift. :)
why use Swift at all?
Because I'm making an iPhone app
That's a given, nothing I can do about it, also it sounded like a good idea to learn it.
@JerryCoffin scored 3
I just made one of Rapptz's close votes binding without verifying it.
07:28
huh
You were the lone dupe vote on a question.
Which?
0
Q: What std::vector in C++ really is?

vortexxx192Not so far I discovered, that I completely have no clue about nature of std::vector. Let me explain: Vector is growable, right? That means, inside it must somehow allocate/reallocate memory dynamically. Something like this: class vector { private: int *data; }; Okay. But such definition ...

The first vote wasn't for dupe.
the accepted answer is an answer to the dupe lol
07:32
stackoverflow.com/review/suggested-edits/5528972 and again; already raised a flag on them, so not much else to do save wait, and reject.
You're not the only person who I tend to auto-bind dupe votes for. There's a number of other users in smaller tags which I would consider an expert, but they don't have dupe hammers.
> A tribute to Robin Williams will be added to World of Warcraft, following a fan petition.
huh
still surprised the reopen vote is binding too if it was closed through regular means
I always thought the reopen binding vote would only work if closed through a binding vote
Is there some literature about how to write C++ code w/o using shared_ptr all over?
just don't use std::shared_ptr unless you need it
07:35
@Nils try the brothers grimm
When I had 9k rep, I had 110ish flags accepted but since I've gotten 10k (which was like 3 days ago) I have 220 accepted flags :v
mod tools are pretty helpful for free flags
@Rapptz They were even easier before they removed the flag queue.
yeah :(
You could just pile-on flag the posts that already had flags.
It was really dumb.
But I did it anyway because, at the time, I was probably the only 10k user without a single gold badge.
types should support value semantics
07:48
> The fairy tale [i.e. hansel & gretel] may have originated in the medieval period of the Great Famine (1315–1321), which caused people to do some desperate deeds like abandoning young children to fend for themselves, or even resorting to cannibalism.
I think fairy tales are the best kind of literature we've ever produced; before being written, most are built up in time by legends coming from normal people
with its constant and naive good vs evil approach with good winning all the time, they look like a collective effort to escape what's not likeable in the world
lol my late answer to a question with a bounty actually got upvotes
08:06
made two functions that I can't believe aren't part of the standard library coliru.stacked-crooked.com/a/f4d4334e9cd4c59e
random_sample selects k random elements from a given sequence, and random_choice returns an iterator pointing to a random element from a given sequence
actually, there was one mistake, this should be bug-free: coliru.stacked-crooked.com/a/4855dedef2e4cf0c
Morning.
True.
@nightcracker would be more fun if you showed it working
hi zeta
and the rest of you sissies
@LightnessRacesinOrbit me?
08:21
@nightcracker you
hold on
@nightcracker You're sure about that? if (std::uniform_int_distribution<diff_t>(0, i)(g) == 0) result = first; seems biased towards first elements. Unless, of course, this is what you want to do. Either way, your input shouldn't be a input iterator, but forward iterator.
@Zeta good point about the forward iterator, but the distribution is correct
@Zeta the first element gets selected automatically, the second element has a 1/2 chance of replacing, the third a 1/3rd, fourth 1/4th, this gives every element a 1/n chance to be chosen
08:27
@nightcracker Yeah, just had a second thought and proved it myself. I shouldn't trust my non-coffee logic, but induction.
@AlexM. Lightness is hotter - she's Venus in person i swear
@LightnessRacesinOrbit ok, changed to forward iterator tag and added example usage: coliru.stacked-crooked.com/a/b75bd7ae46b1df8c
if anyone has suggestions, let me know :)
@AlexM. yeah we know. I'm not actually a fan but as Gamora she was tip top
08:38
it's a bit frustrating that they got her painted in guardians and avatar
should have just let her be like yummy chocolate <3
@Arcoth at least the actress uses her beauty to earn honest money
lightness uses beauty to drain money from people fool enough to "donate"
3
@AlexM. NO! Lightness is a trustworthy and honest person :(
@AlexM. :D
@Arcoth :D
I'm a bit tanned at the minute too. That's gotta be worth another £50 each, right guys? Guys?
@LightnessRacesinOrbit I'll give you a pound if you send us a video where you slap yourself - in the face
@Arcoth So you'll give me a pound to pound myself #nothx
I don't do videos anyway. too many creepy perverts
@LightnessRacesinOrbit Yeah, videos are 2006 - use GIFs
08:45
GIFs are 2004. Use webm.
no, GIFs are back
0
Q: What's done in this line of code?

prajeeshI am new to C++. Could someone please tell me what is done in this line of code? const Doub RADIX = numeric_limits<Doub>::radix;

webm is so yesterday
write your own webgl surfaces on which to display images
Still don't know if I should use webgl or canvas for 2d
08:48
I meant 2d
Canvas
It's really not that hard
I know both but I'm sure what to write a serious 2D game on...
Canvas is for 2D, WebGL is for 3D
Yeah, but Canvas tears like a motherfucker on my 2d animation
on the FF
w/e
going to go cry
peace
09:08
I'm getting a lot of timeouts/retries on main site this morning - it is just me?
@Rapptz hm... now I also wanna find a unit-test library which is smaller than Catch
I didn't find one that was as nice as Catch
or a simple replacement
when you want to make a function inline for a header-only library in C++ should you put inline at the declaration, definition or both?
declaration
but you can put it in both
dat ninja edit
09:11
ikr
but if it's only inline at the definition shit's bout to blow up?
(as in, multiple definition errors)
why bother separating them if it's header only?
so you can easily open the header file and read declarations for docs
you're really expecting your users to open your header files for documentation?
seeing "my users" and "me" are rather overlapping sets I can conclusively answer yes :D
09:14
smh
Write proper docs instead of forcing people to source dive urgh
@nightcracker I think so yeah
this is what the start of the header looks like: gist.github.com/nightcracker/481c4a2d33be71464793
Function signatures are not very useful on their own anyway
if I was source diving I'd already dislike your signature
You're doing class Iter but you should make it specify the concept requirement
like typename ForwardIt
09:16
@nightcracker At least make the comments non-monospace font, then.
typename dammit
Your declaration comments are fairly pitiful
@PolymorphicPotato what the fuck?
Good luck autogenning useful documentation out of that
@PolymorphicPotato eh
Good luck autogenning useful documentation at all
09:17
I don't use autogen docs
I have autogen docs
I don't like the entire idea of it
Why not?
API reference > *
I've yet to see auto-generated docs that are worth anything
because manual docs are so much better
and C++ is already hard enough to read without random chunks of docs mixed in everywhere
IMO API reference is useful when looking up functions that are used.
I can get a dump of functions by doing Ctrl+F in the goddamn file
We also use autogenned docs here for a third-party API that has like 20,000 pseudo-registers. I couldn't work without that doc.
My docs aren't so bad.
09:19
:<
In conclusion, your way works in 90% of your use cases and 0.000005% of everyone else's
And they should contain SSCCEs. SSCCEs are the best documentation.
@nightcracker Why not use properly formatted comments at the point of declaration, then your headers are fully documented for those who enjoy muff source diving and you can generate that friendly stuff without any effort at all?
09:21
@PolymorphicPotato Yeah I agree.
@LightnessRacesinOrbit because proper docs have more information in it than a simple comment I'm willing to put in my source
@Rapptz nice
@CatPlusPlus Oh jesus not this PHP-style tutorial manual shit
@LightnessRacesinOrbit and I've yet to see a tool that can generate friendly stuff nicely
@nightcracker Why not put both in the same fucking place
@LightnessRacesinOrbit Yup, this is the usual shitty Doxygen documentation
09:22
3 mins ago, by nightcracker
and C++ is already hard enough to read without random chunks of docs mixed in everywhere
The single paragraphs annotating your functions in that page you linked us to will easily fit in a Doxygen-style comment
oh please
Comments break up the code anyway. They are NICE!
@LightnessRacesinOrbit exactly
I hate being hit with a wall of white
one fucking paragraph for every fucking function in my header file?
Just a raw dump of signatures with a single sentence for half of them
09:22
@nightcracker OH NOES ONE PARAGRAPH
This is not documentation
I header dive, typically, and when that paragraph is not there for a function I want to use, naming pre- and post-conditions, I want to mutilate the author
Baffles me how supposéd experts in this room can be so derpy
Also shitload of useless noise
@CatPlusPlus To be fair, some things only need a single sentence.
Like for example string::length
if there was an "automated" tool that would pull out declarations from my C++ files and allows me to annotate them IN SEPERATE DOCUMENTATION FILES I might consider using it
09:24
Or something that you can figure out through the name alone
ahahah
This form validation library uses globals to store the input.
@nightcracker I was actually thinking about this today.
I even looked it up.
I think you could probably do something with Clang's AST generation.
Doxygen can generate its shitty output as consumable XML
I'm working on a documentation tool, but it's nowhere near functional, and I'm not spending too much time on it
Yeah, that too.
09:25
There are plugins for Sphinx to use that
@CatPlusPlus relevant song title: youtube.com/watch?v=CJQU22Ttpwc
@nightcracker lol automatically pulling out declarations from C++ files.
GLHF
Ell
Ell
@nightcracker this is what I was argueing for the other day
and puppy was all "documentation tools are 100% entirely useless"
all of the ones I've seen are
09:30
Doxygen isn't terrible.
It's not perfect though
It's p terrible
Ell
Ell
I went to write something but my clang doesn't work proper
Nah.
Old Doxygen was pretty bad i.e. ~1-2 years ago.
But this Doxygen isn't really bad.
all I want from a documentation tool is automagically cross-linkifying and structuring MANUALLY WRITTEN DOCS IN SEPERATE DOC FILES in a way that turns it into usable HTML docs
09:31
sphinx comes closest to that
That JsonCpp documentation is so terrible I'm going to be using it as an example of the usual quality of shitty Doxygen docs from now on
it's a bit bloated though (especially the syntax), and last time I checked it's fairly unusable for languages other than Python
It has little Python-specific
still is
autodoc (i.e. signature/doc extraction) is Python-specific, but that's meh
09:33
there's a tool that lets you use Doxygen's XML output for Sphinx but meh
if you remove the bloat, simplify the syntax and add a bit of sugar to structure methods/classes/namespaces/modules/whatever for various languages it's pretty much perfect
~bloat~
I really don't know what you want to simplify in reST, it's sometimes way too simple
last time I used it crosslinking was a bit of a pain
but I might give it another try
@CatPlusPlus if you like sphinx, do you know readthedocs.org?
09:38
reStructuredText is great.
Clang's AST seems nice
if I ever made a documentation tool for C++ I'd use that
clang really needs to get its shit together on windows though
What if the tool doesn't have to do anything with a C, C++ or Objective-C AST?
like every half year I try it and run into issues within 10 minutes
@nightcracker It works fine
As long as you do anything other than compiling
09:39
:lol:
@Rapptz such as
@nightcracker clang format, ast dump, clang static analyser.
libclang too I guess
does the static analyser resolve includes?
in that case it's fucked
because clang doesn't come with includes, they suggest you to use GCCs, but MinGWs aren't compatible with clang
works fine for me
so I'd wager it doesn't
09:42
I get bullshit like this
In file included from C:\Program Files\mingw64\x86_64-w64-mingw32\include\c++\iosfwd:38:
C:\Program Files\mingw64\x86_64-w64-mingw32\include\c++\bits/stringfwd.h:73:33: error: use of undeclared identifier 'char16_t'
template<> struct char_traits<char16_t>;
clang version 3.4 (198054)
Target: i686-pc-mingw32
Thread model: posix
clang version 3.4.1 (207424)
Target: i686-pc-mingw32
Thread model: posix
I actually think I installed this from their site
but yeah I don't use clang to compile
I mainly use it for clang format and libclang
@nightcracker What MinGW version?
gcc (x86_64-win32-sjlj-rev1, Built by MinGW-W64 project) 4.9.0
09:47
Clang doesn't support MinGW >4.6
they changed their ABI in 4.7 and Clang hasn't changed theirs to match yet.
I'm not going back to the stone age
and additionally
char16_t is a C++11 feature that Clang has had forever
it's probably just not turned on by default because you used the wrong target triple or something.
09:51
but what if boring is kill?
use inline functions if they are short, place them into cpp file if functions are long. — codekiddy 4 mins ago
so
inline short f() {} and long f() {}?
@nightcracker wat
or
inline short your_penis_size(); long my_penis_size() noexcept;
09:59
@LightnessRacesinOrbit ah yes, irony

« first day (1397 days earlier)      last day (3776 days later) »