« first day (876 days earlier)      last day (4073 days later) » 

5:00 AM
We love you too
 
Etienne has a job, so yeah.
He should probably go to sleep sometime at night. :P
 
hes a programmer, he probably starts work at 10AM :P
 
Hm, true.
Question.
int arf = 4;
int* arfbarf = &arf;
arf = 500; // *arfbarf will yield 500 now, yes?
 
why u no try it?
 
Because I know that works.
 
5:09 AM
but yes it should
 
What concerns me is when I try an extremely complicated type.
for example,
 
Dude, are you learning C++?
 
Texture2D complicatedshit( SurfaceFormat::Rgba, /* ... */ );
Texture2D* pshit = &complicatedshit;
complicatedshit = Texture2D(SurfaceFormat::DDS3, /* ... */ ); // What happens to the original `complicatedshit` ?
Destructed and then replaced?
 
overwritten, that's copy construction
afaik anyway
 
Xeo
@ThePhD You just invoke the assignment op
 
5:11 AM
oh im an idiot, yes assignment op
 
Hm. If Texture2D has a move-only resource (std::unique_ptr), will the assignment only work if you do it with an r-value then?
 
Xeo
Move assignment op~
 
Oh, okay then.
I gotta write a bunch of those then...
Either that, or do some weird Texture2D*& / Texture2D** shit
Actually, regular pointers and regular references should be fine... I think.
Unless I keep to the condition that old resources may not be permanently destroyed unless explicitly by the user.
 
Xeo
Wtf are you trying to do?!
 
@ThePhD 2 star programmer? Really? Come on we taught you better than that...
 
5:14 AM
... Nyeh, that's a lame condition.
 
@Xeo Uh. I'm thinking about what would happen if I had classes that had Texture2D* on them, but I didn't want to change the actual Texture2D itself, but instead change the actual pointed-to value on the classes using Texture2D*.
 
Xeo
Juuust... assign the pointer?
 
@Xeo There's a lot of these references out in the wild, and I didn't want to explicitly reassign the pointer or overwrite the data, because the data in many cases may still be valid.
 
Xeo
What does "out in the wild" mean?
 
5:18 AM
So I got the strange idea of passing out Texture2D* from Texture2D**, and then changing the Texture2D** to point at a newly loaded Texture2D* (e.g., much like a 'Handle' rather than just a pointer).
Out in the wild means all over the code. In Entities, etc.
But even now, just thinking about it that way is... a silly restriction.
And probably not necessary.
It was made to basically allow runtime hot-swapping of two resources of the same type without copying or deleting the original resource.
The better way to do this is probably through a lookup through a cache.
cache.GetResource( myid ); <--- that way, you just update the cache, rather than store Texture2D** and update pointer/address values
As you all probably have figured out by now, I'm completely insane.
 
Xeo
Meh, make it a Textured2DProxy or something, don't fuck with multi-level pointers
In user-code, anyways.
@ThePhD Asking the user to query the cache every time is bad - do you really want every object with a texture to know about the cache?
If you really want to allow hot-swapping, either hide it inside the Texture2D, or make it a Texture2DProxy or something
 
-1
Q: Política asquerosa y retrógada

user1851816Este es un sitio racista y asqueroso , donde se condena y banea sin razón alguna , dond euna panda de moderadores de mierda se dedican a impartir su puta justicia y a joder a los demas Este es un sitio racista y asqueroso , donde se condena y banea sin razón alguna , dond euna panda de moderador...

 
Xeo
That's a lot of naughty words... — animuson 33 secs ago
 
^^ spam offsensive flag that shit. lol
 
Xeo
lawl
Sounds like some kind of complaint about moderators.
 
5:29 AM
WTF, he translated it.
 
Xeo
lol, he edited.
 
hahah Google Translate twisted some of the original meaning.
 
Xeo
The essence is the same though, I think
Wow, he's mad
 
> where a bunch of shit moderators are dedicated to justice
This was not in the original.
 
Xeo
5:31 AM
@Mysticial Not Google translate then, huh
Oh wait, it's just the last part that's not there
 
Well, it did look automated.
And the original did not claim the mods were dedicated to justice.
 
Xeo
And boom, gone
 
Xeo
I wonder what got him so mad.
His newest question (that I can see, anyways) is from Nov '12
 
5:32 AM
He probably had some deleted shit.
 
Xeo
@R.MartinhoFernandes SO
@Mysticial I guess
 
Probably question banned for lots of poorly phrased questions.
 
Xeo
Wait, his last login on SO was on Jan 18th
Dafuq
 
hmm...
 
Xeo
@R.MartinhoFernandes 6 questions, 1 with +2, one with -1, rest 0
Visible ones, anyways.
I wish you could see deleted ones from the profile
 
5:36 AM
@Xeo A while back, we were talking about building a crawler that would iterate all 15 million posts on SO.
All the deleted ones will then be passed over to a 10k account to fetch.
And then you'd get a searchable database of all deleted content on SO.
 
Xeo
I guess deleted questions don't show up in the data explorer?
 
@Xeo no they don't
 
It was called StackPrinter wasn't it
 
Xeo
@Mysticial Soft-deleted, anyways
 
@Rapptz It doesn't get all of them.
 
5:37 AM
Yeah was. It isn't maintained anymore from what I see
 
So you use a logged out account to probe all 15 million IDs and determine which ones are deleted.
 
Xeo
hm
 
And then crawl the rest with one or more 10k accounts.
Which is doable if you spread the traffic out enough.
 
Xeo
Shouldn't be too hard to do, just takes a lot of time.
 
@Mysticial You can find the deleted IDs through the DE.
 
Xeo
5:38 AM
@R.MartinhoFernandes That's what I was asking
 
@R.MartinhoFernandes good point. And the data dumps as well
 
Xeo
If you got the IDs, you don't need the great crawling through all 15 million posts
 
@Xeo You asked if they show up there. They don't.
 
There's about 2 million deleted posts as of today.
 
But that is enough information to get them.
 
5:39 AM
So if you had a 10k account probe them at 1/sec...
 
Xeo
@R.MartinhoFernandes I had the ID in mind, though
@Mysticial o_O
23 days, lol
 
Which isn't too bad actually.
 
How about 23 10k accounts
 
Ok, so who knows enough SQL to write a nice query?
 
@Pubby That's harder because you'd need a lot of help.
 
5:41 AM
select Id from Posts isn't terribly great.
 
I don't think anyone here would actually risk their main account to do this crawling.
It's not too hard to throw together a throw-away 10k account in a few months if you repwhore.
 
4
Q: SQL query to find Missing sequence numbers

GiriYahooI have column named "sequence" . I have data in this column like 1,2,3,4,5,7,9,10,15 . I need to find out missing sequence numbers from table . what is the sql query to find missing sequence numbers from table ? I am expecting results like 6,8,11,12,13,14 Thanks a lot EDIT I just need to ret...

SO helps!
 
Answered by Marc...
hmm...
does that count as endorsement?
 
haha
Woot, works.
I guess I should limit it to questions, though, right?
 
no, both questions and answers share the same numbering
if the answer is deleted, then it just goes to the top of the page.
I believe the #token doesn't exist, if you're not logged in as a 10k user.
 
5:47 AM
Right, but there's no point in crawling a question more than once.
 
So it just goes to the top of the page.
@R.MartinhoFernandes Well, to get deleted answers on not-deleted questions.
 
Xeo
I think we're mainly interested in whole deleted questions for now
 
@Xeo The idea being to get all deleted posts as well as the OPs so you can query for a user and get a list of deleted posts.
 
You can add where posttypeid=1 if you want to limit to questions.
 
5:49 AM
For example, moderators have a different view of Jon Skeet's profile because he has a deleted answer with some 700 votes.
 
It seems to also neatly coalesce ranges.
Thanks Marc!
 
I... thought you could always go from DerivedClass* to BaseClass* if BaseClass was inheritedly publically on DerviedClass ?
Or am I tripping out?
 
Xeo
Likely the latter
 
Hm.
Cast away!
 
Xeo
5:51 AM
STOP
 
;~;
 
Xeo
Take your hands of that cast right now
Slowly!
 
B-But...
 
Xeo
I DID NOT ALLOW YOU TO TALK BACK!
 
:c
 
Xeo
5:51 AM
Don't touch that code now
Show me, code, where did the bad guy try to insert a cast in you?
5
 
void DeferredCelGeometryShader::Diffuse0( Furrovine::Graphics::Texture2D* diffuse ) {
	Furrovine::Graphics::Texture* texture = diffuse; // :c
	diffuse0parameter->SetResourceValue( texture );
}
 
Xeo
Are you sure you inherit publicly?
 
class Texture2D : public Texture { /* ... */ };
 
Xeo
And you don't need that variable if SetResourceValue only takes a Texture*.
What's the exact error?
 
error C2440: 'initializing' : cannot convert from 'Furrovine::Graphics::Texture2D *' to 'Furrovine::Graphics::Texture *'
 
5:54 AM
Missing header.
 
Xeo
Likely cause.
 
Oh. That was it.
 
I knew that. "cannot convert from 'Derived *' to 'Base *'" is MSVC-speak for "missing header".
 
Xeo
haha
 
I have been using that shit for months now; I can understand it.
 
5:56 AM
Why don't they just say "undefined class" ?
Oh, wait.
I forward-declare everything. :c
 
You have a forward declaration.
 
q_q I'm so bad at this.
 
Xeo
Alright buddy, hands behind your back, you're coming with me to the Suckage Cell.
No more casting for you tonight, that's for sure.
 
Noooo, it wasn't my faaault.
 
@ThePhD Don't feel bad. Guess why I recognized that error the moment I saw it.
 
5:57 AM
I promise I'll be good. ;~;
 
Xeo
Yea yea, tell that to the judge.
Also, I just found this query.
1.2% :s
And roughly 50% accepted answers... mmm
 
I only have 7 unscored answers? Wow.
 
Xeo
6 for me
@R.MartinhoFernandes Unscored accepted answers.
 
6:06 AM
Dude, "deleted by on at" is on no page on SO.
 
Xeo
Oh, it doesn't do the *s
Insert those before and after "on"
 
Damned snow is back.
 
user1357851
Don't you just hate it when you have written this 500 lines app, and there is no error when you compile it, but crashes when you try to run it and there is no specific error message
 
Mmm, like FBX.
 
6:24 AM
0
Q: MODERATE MY EGGS

user1851816pUT NEGATIVES YOUR FUCKING MOTHER , BASURA DE SITIO DE MIERDA , QUE SOIS UNA PUTA PANDA DE HIJOS DE PUTA LOS QUE MODERAIS AQUI , SI QEUREIS QUE OS COMAN LA POLLA IR A TOMAR POR CULO PANDA DE CERDOS , HIJOS D EPUTA RACISTAS DE MIERDA , ANGLOSAJONES HIJOS DE PUTAAAAAAAA

 
Wow.
Lots of rage tonight.
Particularly Spanish rage.
 
Someone close this:
1
Q: C++ Windows alternative to lrint?

Carlos BarbosaWhat is the correct alternative to the C99 lrint function in windows? #define lrint(x) (floor(x+(x>0) ? 0.5 : -0.5)) is that correct?

@ThePhD lol it went from English rage to Spanish rage pretty fast.
Oh no the OP commented. In more Spanish rage.
 
@Insilico but lrint does other stuff or something
> Rounds the floating-point argument arg to an integer value in floating-point format, using the current rounding mode. If the result differs from arg (i.e., arg was not an integer value already), the floating-point exception FE_INEXACT is raised.
 
NAZISSSSSSSSSSSSSS — user1851816 30 secs ago
 
Wow. o_O
 
6:27 AM
@Pubby Right, but the OP looks like (s)he's more concerned with the rounding algorithm than the exact behavior of the function
I could be wrong, of course.
Every time I refresh the page linked by Mysticial the OP write more crazy shit
Ah it's been deleted
 
I'm surprised it wasn't deleted quicker
 
Just in time before it was deleted lol.
Let me Google translate those comments.
 
> This account is temporarily suspended to cool down. The suspension period ends in 7 days.
 
@Mysticial I lost it at "NAZISSSSSSSSSSSSSS"
@Mysticial Do you know if this user has an account on Stack Overflow?
 
6:33 AM
Actually no it's from 2012
Wow I can't actually figure out where the rage came from.
@Mysticial Even with Google's not-perfect translation I can comprehend the... language. lol
 
@Mysticial For clarity, "puta" is "bitch", and "mierda" is "shit".
 
@R.MartinhoFernandes I'm surprised Google translate didn't pick up on that
 
@R.MartinhoFernandes that definitely helps... :)
 
@R.MartinhoFernandes And "cojones" is "testicles".
 
6:41 AM
Eggs is testicles too I think
 
lol, "putaaaaaa children"
 
What the hell does "pUT NEGATIVES YOUR FUCKING MOTHER" mean?
 
That's not Spanish.
 
Do we have any native Spanish speakers here?
 
The robot?
 
6:42 AM
@R.MartinhoFernandes You don't say?
 
lol
 
Nothin' like black coffee, two strips of bacon, hot buttered toast, and some lightly-moderated eggs
2
 
Xeo
Mornin Shog
 
'morning
 
6:48 AM
evening
 
Xeo
Are we to expect a smurf invasion again? :)
 
strictly-speaking, I have about 12 minutes of evening left, so either salutation works.
 
Xeo
(I really like "smurf" for mods in chat. Gotta give @Cicada big credits on that.)
 
user1357851
@Shog9 Have you ever had a dream about yourself having buffet?
 
no, but I'm pretty hungry now
 
user1357851
6:54 AM
shame, that's one way of having as much seafood and butter cream cakes as you want without gaining any weight
 
7:06 AM
Yeah, but you don't get to keep the full feling.
 
user1357851
You can get the full feeling from many things ... such as burger and fries, bread, potatoes, rice and apples
 
user1357851
And if you are too full, it is actually uncomfortable
 
user1357851
7:23 AM
 
Ahem.
I forgot to properly say thank you, @Xeo, for the help.
 
Xeo
Oh, np
 
... N-Not that I needed it anyways! I was going to guess header inclusion soon!.
... Oh god you're actually here.
Um OH LOOK IT'S NAPTIME.
 
Xeo
Still writing the blog post~
 
@Xeo My talent finally gets due recognition!
 
Xeo
7:38 AM
Mornin
 
Mornan
 
hi there
uh my stomach hurts again. No more beer todayz.
Oh my god @ThePhD you should be locked away for passing dumb pointers around
it's like a kid running with scizzors
 
scissors*
 
zz sounds more awesome
Can you please give an answer to this thread. stackoverflow.com/questions/15310777/…kalkin 2 hours ago
this thread
this_thread
@Don dunno, I would need to see code
 
if the viewing direction is the same as the light direction for blinn/phong...
... YOu're not supposed to see any highlights, rite?
 
7:46 AM
what.
 
If eyedir == -viewdir in the Blinn-Phong (Specular highlight shading / plastic shading) model,
the halfway vector is 0, 0, 0, and thus no specular highlights show up, right?
 
um, I don't think so
imagine you are holding a shiny metal ball
and you are exactly between the sun and the ball
also, you are infinitesmall
will you see the highlight?
 
I don't think so.
 
well, the highlight will appear just normally
and it will be seen to you exactly at the center
at least, it should
because why not?
why should it suddenly dissappear?
 
Blinn-Phong is dot(normal, half)^n. If the half-vector is 0, you get 0 as the result.
 
7:57 AM
uh
that sounds bad
 

« first day (876 days earlier)      last day (4073 days later) »