« first day (1068 days earlier)      last day (3872 days later) » 

5:00 PM
Well, it's very difficult to answer a question where you first have to ask "What exactly is the question"
 
Except in alot of scenarios, there is incorrect or poor data on the internet. This can actually confuse someone quite a bit.
 
and in our field of work, where exacting explicitness is kind of on the menu all the time, I don't think many people have the patience to figure it out.
 
I enjoy the sarcasm.
 
or the oppposite, the information is so specific to the task, that I can't abstract it to fit my scenario b/c not enough fundamental information is presented
 
@Greg of course.
 
5:01 PM
The example he gave, "How do I get the last 3 characters of a filename?", is a perfectly valid question to someone that legitimately has that need.
 
3
Q: Does FileInfo.Extension return the last *.* pattern, or something else?

Pheonixblade9I'm curious what exactly the behavior is on the following: FileInfo info = new FileInfo("C:/testfile.txt.gz"); string ext = info.Extension; Will this return ".txt.gz" or ".gz"? What is the behavior with even more extensions, such as ".txt.gz.zip" or something like that? EDIT: To be clear, I...

 
Poll: Code blocks inside blog posts.
Vertically fully expanded or fixed height with scroll bar?
 
@Pheonixblade9 ok, your making his point here
 
@ŠimeVidas fuck scroll bars
 
just try it out
use linqpad
 
5:03 PM
@CharlieBrown I answered it months ago. Just trying to make his point.
 
@ŠimeVidas If the code is important enough to include, I'd like to see it all
but
 
And if you READ the question :) you would see that I DID try it. I wanted to know the spec, which I could not find.
 
I tend to like to limit the code within blog posts to only the relevant code to explain what you're describing, and put the full code in a download separately
 
I did read the question
@ReedCopsey i like that approach
 
then you should have seen:

EDIT:

To be clear, I've already tested this. I would like an explanation of the property.
I still don't think it deserved as many downvotes as it got.
 
5:05 PM
Yep, I read that
Because opening reflector and looking at the code provides a very simple, easy answer
 
Not everyone has reflector or knows about it
you assume people know more than they do
 
i was just typing that :)
 
point is, it was a perfectly acceptable question and people went AHHH THAT QUESTION IS TOO EASY DOWNBOAT RAGE RAYGE
 
@ReedCopsey Example: Last code block in this blog post
 
The question you had was fine. The question you posted was stupid.
 
5:07 PM
I think the accepted answer is the right solution to point out. First check msdn, then reflector. (I didn't downvote you)
 
yes, and I did check MSDN. I just didn't think to check reflector
@KendallFrey why was it stupid?
 
Because you could have easily examined the result yourself.
 
...obviously I did not know how to
 
I think it failed at this point "Will this return ".txt.gz" or ".gz"?", but was a perfectly fine question with your edit "To be clear, I've already tested this. I would like an explanation of the property."
 
or didn't know of the tool
 
5:10 PM
@Pheonixblade9 You said yourself that you had.
 
I was asking WHY, not what
@KendallFrey didn't think to use the tool, then
 
Yes, but your question asks what
That's the problem
 
dude you are really good at pissing me off
 
You asked the wrong question
 
I didn't think to do that
ok? that's why I asked the question
sorry I'm not fucking perfect like you
 
5:11 PM
Its not a war
 
What you wanted to know and what you asked for are so different...
 
What Kendall is saying, is you asked the incorrect question in the first place. You asked what it will return, when you really wanted how it works
 
no, but you are calling me stupid for asking a question. questions are rarely stupid, maybe it should be edited. If so, then edit it. Your derision for my not asking the question properly is against the spirit of SO.
 
I love Alice Cooper way too much...
 
@Pheonixblade9 When did I call you stupid?
 
5:12 PM
4 mins ago, by Kendall Frey
The question you had was fine. The question you posted was stupid.
 
:(
 
this isnt two guys trying to beat up on you, its a casual debate
 
I called your question stupid, not you.
 
there is no debate
I agreed with you
 
yikes i cant spell
 
5:13 PM
and you are pounding it into the ground and calling my question stupid
@KendallFrey and guess who wrote the question?
 
Yes, I am.
@Pheonixblade9 Well, duh
 
so by extension you are calling me stupid
dude you're gonna have a lot to learn when you actually get into a professional environment
emotions exist
 
I am in a professional environment...
@Pheonixblade9 Get some pointy ears
 
life would be a lot easier
 
You have my permission to insult my questions of long ago.
 
5:15 PM
@Pheonixblade9 It's always preferable to admit your stupid, if you are in fact, wrong, than continute to be wrong.
 
@ginkner I'm not stupid. I asked a question that was not entirely clear. There is a difference
 
you guys realize you will have to kiss soon?
 
@ŠimeVidas The last part there - the "little bit of javascript" - I'd break that up and explain what it's doing, personally
 
@JohanLarsson I shall maintain a Spock poker face while doing so.
 
@KendallFrey sounds good as long as mouth is open!
 
5:17 PM
It won't be
 
My first SO question was "recommend me a resource"
 
I'm going to pose a question, when you condescend or insult a question that someone may not know. Doesn't mean the question is stupid. Someone didn't know and would like to know. By hindering a question under the assumption it is stupid; actually makes people who aren't as skilled intimidated on asking questions which will hinder learning.
 
my questions get tons of views, but almost no upvotes
 
@CharlieBrown my dumbest question on SO
2
Q: This end tag has no matching start tag. I messed up somewhere. Please look at it for me?

kush<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="StudentList" runat="server"> <div> <asp:ListBox ID="lstStudents" runat="server" onselectedindexchanged="lstStudents_SelectedIndexChanged"> </asp:ListBox

 
5:21 PM
I dunno if that's super dumb. I didn't know you needed a doctype
but then I almost never do web design
 
@ginkner no, the answer is that I was too impatient
@ginkner top comment
 
My dumb questions...
0
Q: HTML5 Object (Codebase, Codetype deprecated) which DNN Uses

GregThis very well could be a very, very stupid question. So I apologize; so I have a client whom doesn't want there Dot Net Nuke skin created in a .ascx format. So anyways, for some odd reason I've stumbled upon a dilemma. So in Dot Net Nuke, you could simply do: <object id = "Name" codebase = "N...

 
Sometimes it takes Visual Studio a while until it checks for syntax again. In this case you see an error message although the error has already been fixed. — dtb Aug 24 '11 at 19:11
 
lol
 
@ginkner Didn't help that I was on a virtual machine inside an older laptop
 
5:22 PM
My other dumb question...
1
Q: The Mystery of an Image

GregSo I'm developing a Model View Controller (MVC) project. Due to the size and complexity, I'm trying to ensure organization. I've managed to stumble on a unique quandary, one that has left me quite stumped. My issue is drawn from a Jquery Rotator that I'm integrating into my site. My Solution E...

 
This is my worst question lol. I think I was pissed at this point:
-5
Q: How to display an image using Xcode

JLottI need to know how to display an image using Xcode and Objective-C. I am using Xcode 4.5.2. I would prefer to use an empty application. Thanks.

Frick you Xcode....
 
@JLott Blame Apple for writing such garbage.
 
I'll agree with that being garbage.
 
I never figured out objective-C
granted I never tried very hard, but it seemed needlessly complicated
 
I kind of like C.
 
5:27 PM
well, I liked Objective-C early on, when I first started learning C++
 
C i like. Objective-C is weird
C++ is my happy home
or my nostalgic home
 
but then I discovered that C++ shouldn't be C with classes, and never really cared for objective C again
 
@ginkner It is pretty complicated. I found that the language was not bad... It was Xcode... Dragging and dropping things all weird like.
 
@JLott yeah, It was really cluttered and weird to me
 
C is good. It's C++ without the complexity.
 
5:28 PM
I'd rather just use notepad
 
[[[you stop] making] please] no]
 
@KendallFrey it's also C++ without the nice things things
...Theres a military jeep out my window. How odd
 
Suck on my pointer!
 
like, hanging out of?
 
@Greg not unless you dereference it first
and their on a transport truck
 
5:30 PM
Well I am off to class. Bye bye!
 
Later.
 
later
Hey, what's the best way to do a recurring async operation?
 
lately, that depends on the framework version. I'm sure @ReedCopsey has some good insight
 
4.5
and yes, I'm sure he does
 
@ginkner How are you trying to run it?
@KendallFrey Yeah, but without all of the safeguards - C++11/14 makes C++ far, far nicer to use than C in practice
 
5:33 PM
I don't know yet. I just know I need to call an async function every hour or so
 
use the Toilet Paper Library
 
@ginkner Just call it from a timer, then
 
that'll work?
 
shouldn't really be any different than calling a normal method, other than you may want to await it so you can capture/log exceptions
yeah
 
Whenever I write C++, I find myself using pointers and shit, just like C.
That reminds me...
Is there anyone here with 3D rendering experience?
 
5:34 PM
@KendallFrey really, C++ still uses pointers enough
 
user1804599
@JohanLarsson haha
 
@KendallFrey In general, today, you should almost never use pointers in C++
 
I have very specific experience
 
@ginkner Right, but references usually are better.
 
@KendallFrey yeah -t hat's my day job ;) I have a 3d software company. What are you trying to figure out?
 
5:34 PM
some? not much though
 
so I may give you good answers or im just stupid, you pick
 
Well, let me ask my Y question before my X question.
To display 3D triangles on a 2D screen, you normally multiply them by a 4D matrix (Yes, I know how oversimplified that is)
 
@KendallFrey why do you say that?
 
@KendallFrey, kinda, using managed bindings to opengl
 
Then you clip them to a bounding box, right?
The projection matrix moves the triangles from a frustum to a cube (or something along that line), right?
 
5:37 PM
like a viewplane/projection
 
@KendallFrey You multiply them by a 2D, 4x4 matrix, not a 4D Matrix ;)
but yes
 
@ReedCopsey Like I said, oversimplified.
 
you can clip them, but most things don't - as anything off screen will just drop out anyways
and graphics hardware does a very good job of handling that nowadays
 
That's my question.
 
there are rendering engines that try to do culling on the fly
 
5:39 PM
Do you normally clip the triangles manually?
 
and it can be beneficial, but on modern hardware, you typically don't need to
the rendering engines that do it
 
not in directx or xna, they clip for you
 
Oh God....a 4D Matrix...
 
don't actually "clip" the triangles as much as cull out objects that are completely offscreen (or behind other objects, or far away, etc)
@ginkner (I deal with nD matrices all of the time :D )
 
No, I'm asking specifically about clipping to bounding box.
 
5:40 PM
@ReedCopsey just pure scalar ones?
 
Gosh, maybe I need an illustration
 
@KendallFrey What are you trying to do?
 
My question is, how do you handle points behind the camera?
 
@ginkner hint: don't investigate anything that involves tensor fields
it'll melt your brain
 
@KendallFrey So that's automatically taken care of for you by the rendering pipeline
 
5:42 PM
@TomW I tried those already. Not quite at that level. I'm not exactly sure what the difference between a vector and a tensor is
 
What if I'm writing a software renderer?
 
as best as I could comprehend, they're nD matrices of matrices where each element is a vector operator
 
An operator you say? And not a vector itself?
that's....that's kind of genious
 
possibly.
I never got around to general relativity, but IIRC that's the convenient way to formulate it
 
@KendallFrey Yeah, you'd have to handle that then - it's part of the projection matrix normally
 
5:44 PM
It's an interesting way, if that's it, but yeah, I can see it being convienient to write stuff like that
 
tensor field * some physical quantity = physical quantity transformed by warped spacetime
 
the near and far clip planes are included in the projection matrix
 
I know about clip planes.
 
Damnit, stop distracting me with delicious physics. I have to write this program that gets data about fish
 
Let me make a drawing
 
5:44 PM
@KendallFrey The clip planes handle things behind the camera
 
@ginkner stop distracting me with delicious fish
 
@ReedCopsey No, no, let me explain.
 
@TomW you cant eat them. They're migrating. Probably. I just make the software
@ReedCopsey do you know if they've made the WPF Constructor errors any less frustrating?
in C# 5
 
@ginkner you mean the exceptions from xaml parsing?
 
@ReedCopsey yeah....
 
5:47 PM
they're still pretty similar - they're not too bad once you figure out how to get the right info out of the inner exceptions, usually
4.5 improved some of them, thouh
 
@ReedCopsey Alright, imagine a triangle. Two of the points are inside the viewing frustum, and one is behind the camera (not the near clip plane, the camera position).
 
favorite xaml exception: "Check the innerexception for more details" "InnerException: null"
 
which projection?
 
The perspective projection matrix
 
the full projection should put the point behind the camera entirely, so it'd show clipped, if you've got the other matrices multipled in place
 
5:50 PM
I'm not concerned about how to clip it, I'm concerned about how to draw it.
 
clipping is usually done after all of the matrices (exception viewport scaling) are multiplied in
 
Yes, I know.
 
user2695458
hi @ll :)
 
Every triangle in 3D space becomes a triangle in screen space
 
not necessarily
 
5:51 PM
or a line
 
@ReedCopsey Alright, when doesn't it?
If you look in the first picture, what the user should see isn't a triangle. How do I convert from a triangle to that quadrilateral?
 
yeah - they can map into a line
or a trapezoid
which is the case you're showing, because the portion crossing the clip plane gets clipped off
 
How do they map onto a trapezoid?
 
you're clipping off a corner
because the corner is on the other side of a clip plane
 
There are 3 points. they get multiplied by a matrix. they are still 3 points. thus, they cannot make a trapezoid.
I think they will make the triangle in the second picture
 
5:55 PM
the clipping pass, if you want to add it in
will see that one point is on the other side of the clip plane
and clip the edges, so that will effectively turn it into a trapezoid
most hardware implementations, IIRC, turn it into 2 triangles at that point that align with the clip plane
 
So, you do have to clip manually?
Ah, ok
That makes sense.
 
if you're doing it in software, I believe you'll have to do that, and handle that case, if you want to get the same visual
what's this for, btw? (just curious)(
 
I'm just curious.
 
@ginkner I don't eat fish for environmental reasons, even though I really like it. You aren't helping!
 
I want to write a software renderer for kicks
 
5:57 PM
Have you done much with 3d graphics and rendering in general?
 
Not really. My experience is essentially XNA.
 
@KendallFrey how much would you take on? Can you feed a raster to the GPU and call that rendering, for example?
 
I understand most of the maths.
@TomW Well, the output will be a WPF image, so it'll hit the GPU, but I will generate all the pixels myself
 
Hmm. I wonder whether CUDA would be an efficient way of writing a graphics engine, or whether that's too abstracted and not close to the metal
 
I forget how far I got. I think I have 2D lines done
 
6:00 PM
writing a software renderer is fun
 
@TomW I wish I could use a GPU, but all my attempts to do so in C# have failed.
 
lot of work though, esp if you want to support more options
 
In writing the renderer, it would completely defeat the purpose to use the GPU
 
Yeah I didn't mean it as a suggestion, the conversation just prompted another train of thought
 
@ReedCopsey I'll be happy to start with colors and textures. I'll be lucky if I ever implement lights
 
6:01 PM
@Greg that's exactly what I was saying
 
presumably stuff like OpenGL is comprised of GPU assembly language
 
@TomW Feel free to answer my CUDA question...
 
with a fuckton of vendor-specific switches, probably
 
@Pheonixblade9 What was?
 
@KendallFrey textures are tricky - lights are easier, from what I remember
 
6:02 PM
@Greg about asking questions.
 
Yeah.
 
@ReedCopsey Textures seem easy to me. just interpolation is all
 
the OpenGL pipeline is so bloody complex these days you need a PhD to understand the entire thing properly. Most people just write their own shaders and such if they need to
that's what happens when you make a single OpenGL render
the primitive processing is the "GPU assembly language" bit you're talking about
 
@Pheonixblade9 No hotlinking
 
happy?
unfortunately I only really understand the old pipeline, the new one with stream processors and such is out of my depth :(
 
6:05 PM
shaders in xna are fairly easy to do for simple things
 
they missed the opportunity to draw 'fog' as a cloud
 
Seems odd to do depth testing so late
 
like the one representing 'internet' in most networking diagrams
 
@KendallFrey I believe the reason they do it so late is so they can apply anistropic filtering at that point, once more stuff is done
probably a better (more up to date) overview:
 
6:07 PM
Anisotropic doesn't seem to depend on depth...
Only angle
Oh, but I guess the third aspect of trilinear does.
 
There aren't a lot of IT-related topics that make me think "derp"
 
Still, they aren't dependent on depth stencilling.
 
this is one of them
 
derp = depth interpolation
 
6:09 PM
but doesn't it have to redo the filtering if the drawings from far away are discarded?
 
Depth stencil seems like something you'd want to do at the first step of rasterization.
@Pheonixblade9 Hah, that's the other side of it.
 
well, you need to know the perspective in order to filter
 
But you'd think they could wait to do filtering until everything is drawn?
 
for trilinear or anistropic
 
(I may be way off base)
 
6:10 PM
I'm not sure
this is mostly speculation, I don't really know for sure about any of this stuff
you mean drawn to the vertex buffer?
 
@Pheonixblade9 The perspective? You mean, the fourth dimension? or something else?
 
you should be on CNN, they are great at speculation
 
@Pheonixblade9 no, the pixel buffer
 
perspective being the camera. So you don't render stuff that is off camera
yeah, that's what I meant
 
"This is what might have happened in the frame buffer"
 
6:11 PM
thing is, once it's in the pixel buffer, it's already been rasterized
so you'd have to do some weird DSP stuff to filter it
when it's in the vertex/frame buffer, you still have the geometric information about it to do the filtering
 
Yeah, well, you could still access the vertex buffer, but the depth values would filter out stuff that's obscured
 
but then you write to the pixel buffer twice
 
(I'm pretty sure I'm talking out my ass at this point.)
 
I've been talking out of my ass this entire conversation
 
@Pheonixblade9 Write to the depth buffer first, then the color buffer?
 
6:13 PM
hmm
I'm not sure what those are
 
Just dimensions of the pixel buffer.
 
oh I see
 
Some systems might combine them, some might keep them separate.
 
kind of like the alpha channel in 24 bit color
 
6:14 PM
You could have ARGBZ pixels in a buffer
 
(not in implementation, but in organization)
yeah
 
That's kinda pointless to combine them though
 
how does a pixel have depth though?
 
It doesn't on screen
Just for clipping
Generally, pixels with low depth overwrite pixels with high depth
Not always though
I used this for a HUD in my game.
 
6:16 PM
I drew the 3D scene, then reset the depth buffer, then drew the 3D HUD
I can't think of a situation where you would actually change the depth stencil mode
 
anybody know how to copy an excel worksheet into word (office 2010) using vsto?
 
One thing I realised with the tiny amount of 3D graphics I've done is, a naieve implementation will work, but artefacts are like a plague
 
@KronoS into word? huh?
 
ahaha
 
@Pheonixblade9 ya... I'm actually wanting to convert Word Tables into Excel worksheet embedded into word
 
6:18 PM
@TomW The question I had above would certainly become an artifact, and a weird one.
 
ew... why?
 
We had enough trouble when we switched on face culling, and half of our objects disappeared
 
Which half? I'm guessing it wasn't the back half...
 
thats why the best solution is to make each frame in photoshop and just make a slideshow
 
6:19 PM
B/C Word Tables don't import into DOORS :)
 
No, I mean...
 
Word is a proprietary format... maybe look at OpenOffice's code?
but you can use OleDB to work with Excel, it's pretty easy
 
@Pheonixblade9 vsto -> Visual Studio Tools for Office (from MS)
 
Did you completely disregard (what's the word)
 
@KendallFrey Everybody knows that the bird is the word.
 
6:20 PM
We didn't bother to ensure that the vertices were drawn in the right sense such that each face was the right way around
 
That's what I was thinking of.
 
@TomW Gotta standardize that winding
 
Some were CW, some were CCW, right?
 
god, this ticket is like cancer. We keep finishing it, and it keeps coming back to haunt us
 
6:22 PM
it's changed a bit since I left
Realise that it's a product with a dev team of 2, and I didn't have any say in how things were done
 
@TomW Seck-seh...
 
that is an intense video
 
I don't know who chose the music
 
When I made a video for a school project, guess what I chose?
One of the Windows sample tracks, of course.
:D
 
6:24 PM
Rename it "Traffic Jam Simulator 2014" and submit to steam
 
not a bad idea
we did jokingly discuss trying to gamify what we knew
 
public string GenerateVideoGameName()
{
    return Dictionary.English.GetRandomWord() + " Simulator " + (DateTime.Now.Year + 1);
}
oops
 
yes, it shreds engine blocks
 
jesus christ
 
I love those things
Don't let your dick hang out!
 
6:27 PM
this one is my fave: youtube.com/watch?v=b7ex3ejXnEo
 
Will it shred? That is the... who the fuck are we kidding? It always shreds.
 
Will it shred: God
yep.
 
I wanna see it shred railroad ties
even better, railroad rails
 
different sort of steel, might actually struggle
 
yeah. the engine blocks are much more brittle. I feel like the ties would be too ductile.
 
6:33 PM
the variation in properties in steel is pretty nuts
 
@Pheonixblade9 That's just Chuck Norris's electric shaver
 
are rails even steel? I thought they were just iron
Modern track typically uses Hot rolled steel with a profile of an asymmetrical rounded I-beam
there we go
 
there isn't a massive distinction
steel is actually iron with LESS carbon in it than most varieties of industrially produced iron
 
@ton.yeung steel (uncountable, countable) A metal alloy of mostly iron plus carbon, harder than pure elemental iron but malleable when hot.
@ton.yeung steel A handgun.
 
the point being that steel is an engineered product with a precise distribution of additives that give it its properties, whereas iron used for any particular purpose on its own tends to contain all sorts of rubbish as an impurity rather than as an additive
 
6:42 PM
traditional steel is forged at a high temperature, then quenched in carbon-laden substance (such as engine oil) to make it steel, I think
 
Steel is an alloy of iron and carbon. Carbon is the primary alloying element, and its content in the steel is between 0.002% and 2.1% by weight. Additional elements are also present in steel: manganese, phosphorus, sulfur, silicon, and traces of oxygen, nitrogen and aluminum. Alloying elements intentionally added to modify the characteristics of steel include: manganese, nickel, chromium, molybdenum, boron, titanium, vanadium and niobium. Carbon and other elements act as a hardening agent, preventing dislocations in the iron atom crystal lattice from sliding past one another. Varying...
 

« first day (1068 days earlier)      last day (3872 days later) »