« first day (1018 days earlier)      last day (4156 days later) » 

11:01
@R.MartinhoFernandes well, obviously I want the parser to ensure that if the type in my class says 'name' should be a string, that the JSON has it as such, but I don't think the parsing form JSON to object should include 'business logic'... well, it's nice that I can, but by default I would rather it just dumps the JSON into a native object... I think...
though I do sort of think I might actually be preferring the JSON string -> hashMap
user142019
@thecoshman Or array!
A brilliant illustration of the typical workflow of a programmer when fixing bugs: http://d3j5vwomefv46c.cloudfront.net/photos/large/795272903.gif?1375176386
@rightfold huh? array of what? JSON is ~basically~ just key:value pairs
user142019
@thecoshman [1, 2, 3]
@rightfold ... that is just a value, where is it's key?
user142019
11:04
@thecoshman It's valid JSON.
@rightfold no it's not. it's valid part of JSON
user142019
The "root" value of JSON must be either an object (dictionary) or an array.
What's a good example use case for unique_ptr<T[]> besides incidental usage in generic code?
@rightfold is that so?
Actually, scratch that, it's not usable in generic code.
user142019
11:05
@thecoshman json.org
Question: I have a string (str1 = "abc def ghi jkl"). I want to get everything up to the space, then remove that part and the space from the string. (str1="def ghi jkl"; str2="abc") Is there a function that does this?
user142019
JSON is built on two structures:

A collection of name/value pairs. In various languages, this is realized as an object, record, struct, dictionary, hash table, keyed list, or associative array.
An ordered list of values. In most languages, this is realized as an array, vector, list, or sequence.
@fat_flying_pigs std::find.
@rightfold where does that say the root 'thing' can be just a list?
it is built on two values, not it is one of two value.
user142019
user142019
11:06
> A JSON text is a serialized object or array. JSON-text = object / array
@R.MartinhoFernandes Thanks
@rightfold ah, fair enough.
user142019
funfair enough
not sure I like the idea of the root being just an array...
11:14
@thecoshman impossible. You have no idea how low my expectations of you are :/
@ddacot noone.
Ah. You mean that random_shuffle might call r(n) with n!=256. This hadn't occurred to me. As far as the specification is concerned, I'm going to agree then. I think it's sad that C++11 with all the safety it's added has been introducing such tricky pitfalls back into the standard library. Thanks for your continued explanations. — sehe 3 mins ago
@rightfold Hah. That means my implementation is bugged, because I parse lone null, true, numbers or strings as JSON too (arguably, this is useful, in spite of the definition of "JSON Text")
who's Noone?
@ddacot -1: You are so fucking lazy.
@LightnessRacesinOrbit noone is clearly Javanese for noon. Who said it's a proper name?
11:29
What prevented you from simply following the link provided in the error message? This is laziness in the extreme. — Lightness Races in Orbit 8 mins ago
craziness :|
It's mad
"what did I do wrong" fucking read it
@ddacot I voted to close as OT with verbatim reason: "shows no research effort bordering on a contempt for community members"
@LightnessRacesinOrbit Uhoh. His apikey appears to be 1BFIJRSTa665f0cfd41ff6...
I misjudged that. Still, this should have been clarified in the question text
yeah it's sad, funny and bad all at the same time
user142019
@sehe Many APIs have a flag with which you can enable that behavior.
user142019
11:36
@LightnessRacesinOrbit noone is a keyword in Game Maker.
@rightfold ah. I'll just default that flag to true in mine :/
user142019
Meh. Non-standard behavior should be disabled by default. :x
@ddacot <!-- let me undo my downvote in compensation --> however, I almost redownvoted since you didn't even add . What's up with that
@ddacot Should I re-downvote? You know - I've got every reason to. I'm going out of my way to undo my downvote, and you give me foul language? — sehe 11 secs ago
FFS
> If you don't have a solution, pass by!
Sigh.
Whoosh
11:40
ugh another fuckup in poland
i should really send my CV to thalmic
James McNellis Superstar (including a stackoverflow T-shirt)
4
@BartekBanachewicz you know, that google search is unwieldy. be more specific?
@sehe meh, not that scale, really. It's one of another small issues popping up time to time.
@BartekBanachewicz I feel like I should let myself get insulted by that guy after reading your comment
@FlorisVelleman what?
11:46
What kind of expression would fail to compile for pointers but work for arrays?
T(&p)[N] = expr;.
@sehe why did it need 3 plinks? :F
@NipunGogia hello hello
oh, wait, wrong way around.
@DeadMG Not an expression!
11:47
11
Q: Reliably determine the number of elements in an array

FredOverflowEvery C programmer can determine the number of elements in an array with this well-known macro: #define NUM_ELEMS(a) (sizeof(a)/sizeof 0[a]) Here is a typical use case: int numbers[] = {2, 3, 5, 7, 11, 13, 17, 19}; printf("%lu\n", NUM_ELEMS(numbers)); // 8, as expected However, not...

@R.MartinhoFernandes Eh, just have f(expr), where f takes an argument of that type.
@FredOverflow Ah, thanks.
@DeadMG How does that prevent decay?
@R.MartinhoFernandes Beware of recursive void pointers, though ;)
@R.MartinhoFernandes Pretty sure that a reference to an array can only ever be initialized with an array.
simple example: using std::begin; begin(expr);. Success for arrays, fail for pointers since they have no appropriate overload.
Your misuse of ADL has betrayed you! coliru.stacked-crooked.com/…
11:53
lol
problem solved
which was my original suggestion
user142019
Awesome! I'll grant you half of the virgins, if that's okay with you. — FredOverflow Oct 8 '12 at 16:57
You could have simply changed to begin to std::begin.
user142019
ಠ_ಠ
eh.
it really doesn't matter, my point is demonstrated.
Or even the awkwardly shaped (begin)
11:56
@rightfold Let's hope it's an even number of virgins :)
user142019
@FredOverflow Otherwise you just devirginize one.
Pretend I didn't say that.
Oh, I didn't actually say it.
That makes it easy for you to pretend it.
@rightfold I'll just deflower them all, then he gets none! ha
Ell
Ell
I still dont understand adl
user142019
Nobody does.
11:58
@Ell what's not to understand?
user142019
@FredOverflow :D
@rightfold Andrew Koenig does.
user142019
Joshua Andrew Koenig (; (August 17, 1968 — February, 2010), also known as Josh Andrew Koenig or Andrew Koenig, was an American character actor, film director, editor, writer, and human rights activist. Early life Andrew Koenig was born August 17, 1968, the son of actor Walter Koenig and Judy Levitt. Andrew's sister Danielle Koenig is a stand-up comedian and writes for the program The Fashion Police. She is also married to a stand-up comedian, Jimmy Pardo. Writer Harlan Ellison spoke of the young Andrew – by his given first name of Josh – as being the inspiration for his story Jeffty I...
user142019
Are you sure?
Ell
Ell
@bartek well I mean, I still don't understand as In I still havent put in the time to try and research
11:59
@Ell there's really no research
user142019
try { } research { }
Walter Koenig's character in Babylon 5 was awesome.
@rightfold When it comes to C++, I'm not sure of anything anymore.
2
Ell
Ell
Well I can't just know it without research :P
Pity he was never part of the main cast.
11:59
@Ell I've answered a question explaining what ADL is, got 18 upvotes and I didn't really reasearch anything
time to read Ambient Occlusion Fields
> We present a novel real-time technique for computing inter-object ambient occlusion. For each occluding object, we precompute a field in the surrounding space that encodes an approximation of the occlusion caused by the object. This volumetric information is then used at run-time in a fragment program for quickly determining the shadow cast on the receiving objects
@DeadMG I sent you an email
hm, I already have volumetric representation
Ell
Ell
Well I don't know what it is xD
I'm on the Wikipedia page and I don't understand how the first example is anything special
Ohh yes I do
@BartekBanachewicz oh aha. the proxy server is having trouble again. I ended up restarting my browser. I didn't know it actually went through, because my end wasn't loading anymore
@sehe indeed I don't
12:05
[Rotten proxy fix]
@sehe amazing
don't ask what 76 was
@sehe "stop being stupid" is an advice, not an insult. — ddacot 22 mins ago
Hahahaha
@BartekBanachewicz the two first digits of your password/pin
meh
okey actually they are meaningless numbers
i was trying to set up a proper story, but i am calculating irradiance by hand now and i need to concentrate :F
i think I just discovered a new optimization opportunity
involing bisecting the view cone, which in theory would allow me to significantly reduce number of rays cast
shoo shoo, concentrate
@BartekBanachewicz Just like passwords are meant to be!
So, Bartek's password is clearly "hunter76"
12:18
@R.MartinhoFernandes Who? What?
hunter76 my hunter76-ing hunter76
Speaking of random numbers, that's how my notes from the last couple of days look
@wilx Alfred Bester.
Xeo
Xeo
> 23 - (-5) = 30
wait what
12:19
-6
Q: I have some problems with button.Click event C++

AnDr3yyI have the same problem like in this question: I have some problems with button.Click event That question was for C#, but in C++ doesn't work: schimbare->Click += (s,e)=> { //your code };

@BartekBanachewicz Not a tablet. Disappoint.
@Xeo lol
haha, so much fail.
@R.MartinhoFernandes actually my iPad's charging cable broke and I am forced to use paper like a fucking savage
I should really go and buy the goddamn table
@Xeo but the table is green
@LightnessRacesinOrbit "Not allowed to browse Adult themes category" :(
12:20
o.O
bash.org is in the "Adult themes" category?
@R.MartinhoFernandes Corporate firewall/proxy filtering.
@Xeo I write 5 in a weird way (it's 25)
Xeo
Xeo
@BartekBanachewicz Sorry, but no.
hahahahahahahahahaha
Weasel
12:21
So that -5 is actually -3?
no, it's 25 - (-5) = 30
Xeo
Xeo
Your 5 is fine everywhere else
You fucked up, accept it!
@BartekBanachewicz I'm sure that's what you meant
@Xeo actually it's not. It was supposed to be 25.
12:22
Which 5s are 5 and which 5s are 3 and which 3s are 5 and which 3s are 3 THIS IS CONFUSING NOTATION
Are those 24 on the right 25s too?
2
@CatPlusPlus yes
It's clearly just rounding to nearest multiples of 5.
So basically everything that's not 2 is actually 5
I can read it :P
12:24
Bartek's law of written numbers: if it looks a 3, walks like a 3, quacks like a 3; or looks a 4, walks like a 4, quacks like a 4; or looks a 5, walks like a 5, quacks like 5; it's a 5.
1. Paste something in Lounge
2. Get it bashed to nothing.
3. ????
4. Feel terrible
meh, I don't feel terrible
user142019
You are terrible and you should feel terrible.
user142019
You should feel terrible you you don't feel terrible.
12:25
@R.MartinhoFernandes And if it looks like a colon, it's actually "j".
@CatPlusPlus ";eśli" is perfectly readable :)
this is the definitely the place to post something if you want it deconstructed to its very core
@Bartek I didn't know you could write arabic, btw :P
user142019
@R.MartinhoFernandes "looks a 3"?
16 hours ago, by Bartek Banachewicz
hm, my notes from last two days look like evil genius ramblings
@R.MartinhoFernandes which part would that be?
12:27
The textual parts!
that's just mixed polish and english :F
@BartekBanachewicz No, they don't.
@BartekBanachewicz But with arabic letters!
I've seen more readable prescriptions than this.
Xeo
Xeo
That doesn't seem particularly hard.
Doctors spend a lifetime studying how to create unreadable handwriting.
Xeo
Xeo
12:29
mh
It's hard to beat that.
@BartekBanachewicz For instance: complete absence of lasers.
@R.MartinhoFernandes raycasts kinda look like lazor beams
...no?
Hmm, I still don't have an umbrella, and there's a frigging storm out there.
I think my handwriting is worse than Bartek's.
ITT let's convince robot to buy one
@TonyTheLion that's hardly possible. I use handwriting no more than 1-2 times a month
12:34
lol
what would be more useful to bioinformatics, a course in compiler design or computer graphics?
@jsky neither
@BartekBanachewicz I think it gets worse the more one uses it.
well they're my only options lol
@jsky then pick one that interests you more.
FYI Graphics is a lot of linear algebra.
12:36
is graphics just for games and glass?
What's glass?
google glass lol
sorry dumb question
user142019
@jsky Then why did you ask it?
sorry @rightfold
user142019
12:38
yes im a student (embaressing)
@jsky i think more embarrassing is the photo
Why would you feel embarrassed for being a student?
12:39
i feel like im in high school again
and what's wrong with it?
nothing
Lots of people are in high school. Specially women.
I pity you
is that just guessing by the fact that there are more women in the world?
being a student is nothing but a pit of despair, misery, and utterly pointless lectures written and delivered by incompetent lecturers
@DeadMG if you go to lectures you lost already
Oh gawd.
@jsky Nah, it's just a stupid joke that most people won't get.
May 16 at 14:48, by R. Martinho Fernandes
@EtiennedeMartel The original goes like "And who can say they never had a scrotum mycosis? Many people, especially women."
ahk. i get it now lol
whats a scrotum mycosis?
12:43
A funny name for a horrible disease.
Some infection only men can have.
i see
difficult for women to have a scrotum mycosis, you might agree
thanks @bartek re:applications
@jsky you can reply to message directly by using the little arrow far on the right side
12:45
@BartekBanachewicz cheers
well done.
there should be a system for chat badges really.
ya learn something new everyday
lol, chat badges.
Mozilla Badges thingy!
so, so old.
inb4 "wall of text" yeah you know what I don't care
@LightnessRacesinOrbit you're so rebelious today
acting like you were 21yo and shit.
12:48
Me neither.
Heh. I think I have seen that Bash.org quote before.
fucking crap
i think im gonna do graphics but fear my continuous math is too rusty eek regretting not doing revision in break.
I don't find crap sexually attractive personally but I'm glad to know that you find it irresistible
user142019
12:51
@DeadMG I'm sure some people do. Cue 2girls1cup.
> Newell needed a moderately simple mathematical model of a familiar object for his work. His wife Sandra Newell suggested modelling their tea service since they were sitting down to tea at the time. He got some graph paper and a pencil, and sketched the entire teapot by eye.[citation needed] Then he went back to the lab and edited bézier control points on a Tektronix storage tube, again by hand.
Irradiance is the power of electromagnetic radiation per unit area (radiative flux) incident on a surface. Radiant emittance or radiant exitance is the power per unit area radiated by a surface. The SI units for all of these quantities are watts per square meter (W/m2), while the cgs units are ergs per square centimeter per second (erg·cm−2·s−1, often used in astronomy). These quantities are sometimes called intensity, but this usage leads to confusion with radiant intensity, which has different units. All of these quantities characterize the total amount of radiation present, at all frequ...
this fucking crap ^
Irritating.
@rightfold ooooh, that's why cat++ is so grumpy
Grumpy Cat be grumpy
hm
could I use undersampled vector field for irradiance?
I think the research papers said something about light downsampling when baking furiously turns pages?
12:56
WTF is that?
He's trying to sound smart.
when the light hits a surface, it reflects in all directions
however, the amount of light reflected in various directions can be (and usually is) different
TC++PL4 is now available in softcover, hardcover, and kindle:... http://fb.me/1XmmhOAwz
For anyone who is interested.
Hmmm
another book to my collection
not sure
ITT Bartek reads research papers
@R.MartinhoFernandes Has it been peer reviewed yet?
12:59
found it!
> 2. Filtering pass: Down-sample radiance in the octree

« first day (1018 days earlier)      last day (4156 days later) »