« first day (1790 days earlier)      last day (3383 days later) » 

17:00
@ScarletAmaranth ~~~Well Rounded~~~
user406009
@JerryCoffin Their courses might be useful for their plans. I can see how philosophy debates could be useful for a lawyer, etc. The useful ness of a class depends on your goals.
user406009
Forcing liberal arts majors to take calculus is also pointless.
user406009
@ThePhD But I am already more well rounded due to the campus food!
singlevariable calculus is what should be considered basic math...
@Lalaland I can't agree. Reminding idiots that they are failures by forcing them to take classes in which they'll fail is justification in itself. :-)
user406009
17:02
No. I disagree. Single variable calculus is useless for most career paths/ lifestyles.
seriously, common math knowledge nowadays should go beyond multiplication...
I wanted to automate something with Android, after 3 hours I give up.
Because apparently I need to void my 2 year warranty to do so.
user406009
What was your idea?
@ScarletAmaranth addition, multiplication, fornication!
user406009
@ʎǝɹɟɟɟǝſ if it sounds interesting, I would love to try.
17:04
@Lalaland There's this game which implements a random generator of matches to which you can say "Ok, this match will be fine" or "No, I want another match".
And I wanted to automate the "No"s because they can be detected based on the text that appears on the screen
So I would only get updated once a suitable (for some definition of it) match has been detected
@sehe You obviously have that out of order--multiplication follows fornication.
Hehe. You forgot to add these pieces of confusion to the question it seems. Did you talk to Chris about this question (or did he just guess)? — sehe 26 secs ago
@JerryCoffin Negative numbers are taught before fractions!
@ScarletAmaranth Unfortunately I think it's been deleted, but a few years ago there was a question on SO that the answer was basically: "divide A by B".
@sehe Whoosh!
@Borgleader RIP, the C++ class is only 1 credit.
Well, whatever. I'll still take it and ace it.
There's also a 1 credit Ruby course and a 1 credit Python course.
user406009
Do you need the credits for graduation?
user406009
17:09
Or are you GPA padding?
GPA padding and getting free credits.
> 8:40am-9:55am
The other option conflicts with another course. Fuck my life.
@ThePhD Even if the course is free, that's a pretty high price.
@JerryCoffin Ah, sorry. This is the Linear Algebra course; the other option is 6:10 to 7:25 PM, which conflicts with the C++ course.
user406009
@ThePhD there might be a waiver for overlapping classes.
@ThePhD what year are you
17:11
@Lalaland There is.
@Prismatic Junior.
3rd Year.
user406009
Hah, same here.
linear algebra in third year?
user406009
Halfway to my sheet of paper.
CS weirdos
I just hav never taken the course.
17:12
TDD is like a half-duplex protocol.
user406009
@Prismatic learning linear algebra has nothing to do with taking a course.
user406009
Taking the course is more a question of scheduling for a given semester.
Yeah.
I already know Linear Algebra. Just never had the formal course on it.
Right now, my course count is at 7.
my program was structured differently, we had mandatory courses each semester with one or two electives. Linear algebra was a first year course because it was a prereq for pretty much everything
I have 5 real courses, then 2 1-credit courses I'm taking for a Letter Grade to get that sweet ezpz 1 credit in Python and C++. I don't know Python, but it's probably stupid easy enough to get easy credits in.
@Prismatic I would have taken it earlier, but I was PreMed heading for an MD/PHD program. I changed abruptly.
Which sucks: none of my biology is helping me here. =/
It's not even counting credit-wise.
17:15
should have taken bioinformatics or biomedical eng :p
Too boring.
@ThePhD I would yes, but Python is actually easier than that.
I did Computational Biology in labs. It was just statistics and number crunching.
user406009
@ThePhD hah, we have literally followed the same exact track. Organic chemistry was fun, but useless now.
@Lalaland Another person who's seen the light. ❤
World could use more doctors, but... ehh.
user406009
17:16
Still might take the MCAT though.
Do it.
Get a high score and then rub in everyone's face "WELL, I COULD BE AN MD IF I WANT."
biomedical eng is not boring
prosthetics, artificial joints, etc
Yeah, but the precursor to that is eating lots of boring research fellowships. You might as well just do traditional Electrical and Mechanical engineering, and then specialize in a Masters / PhD program.
@JerryCoffin Sounds like a plan!
> That being said, if you find yourself drinking a martini and writing programs in garbage-collected, object-oriented Esperanto, be aware that the only reason that the Esperanto runtime works is because there are systems people who have exchanged any hope of losing their virginity for the exciting opportunity to think about hex numbers and their relationships with the operating system, the hardware, and ancient blood rituals that Bjarne Stroustrup performed at Stonehenge.
I know people who have gotten jobs during and right after undergrad at companies like intuitive surgical
But yes its a very academic/research oriented field
user406009
17:21
@ThePhD the main thing worring me is that the future of cs jobs looks quite bleak for us youngsters.
I did my undergrad work placements all in research mostly
@Lalaland If you're GOOD at it, you can always overshadow the other youngsters who are clamoring into the field for the paychecks.
Just make sure you're buckled down and ready for it.
user406009
Yes, and if you are a good musician, you can make it big in a rock band ...
user406009
I find the "rock star" analogy quite hilarious.
user1804599
hi
17:27
@Lalaland :D
So, now I only really have one choice.
I can lay my Linear Algebra class overtop the C++ Programming Languages 1-credit course and then just explain away the fact that I got an A but never attended the course,
user406009
I don't know. All I know is that historically, when industries see such a great increase of graduates, people start getting screwed. See the law industry.
or I can take Linear Algebra at 8:40 in the goddamn morning.
good point
Which poison do I pick?
@ThePhD The big one
user406009
17:29
8:40 isn't early at all.
user406009
Simply go to sleep before midnight.
@Lalaland :l
user406009
The secret is turning off the computer.
0
Q: Does Xcode protect against C++ array bounds runtime issues?

Sam ClausI am delving into C++ as of today, and would like to know what risk I am putting my computer at. Does Xcode prevent me from breaking my stuff if I mess up on a bit of array math somewhere? Like every other C++ compiler I know of, it doesn't catch errors of that nature at compile time. Does it per...

@Lalaland :l Who turns off their computer these days?
17:31
> I am delving into C++ as of today, and would like to know what risk I am putting my computer at
@Lalaland I find it insulting. Most rock stars seem to be incompetent, lazy, morons whose success stems mostly from some combination of looks and luck, with skill (if it's involved at all) a distant last place.
But, it's also really nice to be able to sleep in on Monday and Wednesday and have only 1 class that day and not get out of bed until 12:00 PM.
Of course, this means my Tuesdays and Thursdays are pretty much clusterfuck free-for-alls, with 4 classes on them.
user406009
@Prismatic Well, halt and catch fire is a completely standard adherent response to undefined behavior.
@Lalaland Has anybody built a computer with an actual "HCF" instruction? I think somebody should...
someone should make a troll post about ub
user406009
17:34
@ThePhD no. Sleeping in is a trap. Keep the same schedule every day. It's much more effective.
Should I remove a temporary file I create (in /tmp)?
instill the fear of bjarne in him
user1804599
@набиячлевэлиь Yes.
user406009
@набиячлевэлиь Yes.
user1804599
Also don't hardcode /tmp.
17:35
@elyse I don't
user1804599
Excellent.
there's this guy at work whose name is "Engineer"
how cool is that
he's obv an engineer
I'm not that stupid
Unbelievable Behaviour
3
@Morwenn SICK Behaviour
17:36
Fabulous Behaviour :D
> Sorry, this is FB.
user1804599
Unacceptable Behaviour
Argh, I can't English anymore.
user406009
@JerryCoffin That part was a joke. I think the essence of my counterargument is still valid though.
@elyse Did you really create 5 repositories in less than 24 hours?
17:37
@JerryCoffin lol I meant as an answer to the question I posted
and i had to reboot because i crashed my display driver... again
user406009
Lol. Just through using valid open gl calls?
user1804599
@Morwenn Yes. Is there a problem with that?
the data may not have been valid
i just switched libs for loading .obj file
@Borgleader I forgot most of the little details about witcher 3
17:39
@Morwenn In around 1 hour
@elyse Not really. I'm only surprised by the speed at which you create repositories.
user406009
If that's a bug in the driver, there might be serious webgl security concerns.
user1804599
ok
user406009
@Borgleader see if you can make a webgl proof of concept.
17:39
@AlexM. lol people referring to books by some ordering instead of proper names
> Any modern OS (this even includes Mac OS X)
So.
I clicked on the above link, went to grab some coffee, looked at the tab, found it to be an interesting stupid question, decided to share the link to the Lounge.
I'm an idiot.
@EtiennedeMartel Nice
@EtiennedeMartel No, you're not
You wanted to share it with us, that counts <3
Doesn't matter it was already 1 page up
That's trve love.
user406009
17:42
Did anyone post the catch fire answer yet?
@EtiennedeMartel happens a lot to me
I stop right before posting tho
@Borgleader and again
user406009
@набиячлевэлиь just use a destructor for removing the temp file. Raii works great for resources.
@Lalaland Yeah, maybe because that's what it's for
I didn't get the original issue, but if you have a temp file that's supposed to be dead after use, mark it as "delete on close".
17:46
@EtiennedeMartel What do you mean by "delete on close"? RAII?
On Windows, for instance, when you create a file, you can pass a flag so that when the last handle to the file is closed, the file gets automatically deleted.
I assume other platforms have a similar feature.
As long as it doesn't come with a gigantic filesystem library...
With Win32 it's a flag for CreateFile.
Also for that, make sure to pass FILE_ATTRIBUTE_TEMPORARY for better purrformance.
> Win32
So not cross-platform
user406009
@EtiennedeMartel I think what you are calling "delete on close" is the default on Linux. IIRC, all files are reference counted.
17:50
There's gotta be a feature on Linux to do that
@Lalaland What?
Sounds very horrible
user1804599
Use Python.
user1804599
It has that.
@elyse I have considered that option
Uh, there's even a standard C way.
@Lalaland No.
user406009
If you open() a file, it will keep it around even if you remove it.
17:53
@Lalaland I'm talking about a file getting deleted when all handles get closed. You're talking about a file being still accessible by existing handles when deleted.
@EtiennedeMartel Yes, there is. Unfortunately, I need to (a) get its name and (b) open an ifstream or similar on it
user1804599
Files are deallocated when no hardlinks to it exist anymore and when all file handles to it are closed.
@elyse That's the UNIX way, yes. Windows just prevents you from deleting a file if there's at least one handle open.
Which is stupid in my opinion, but oh well.
user1804599
@набиячлевэлиь Then create the file normally, and delete it in some destructor.
user1804599
You may want to create a temporary directory to put the file in.
user1804599
17:57
With mkdtemp, then delete it when you're done. The nice thing about this is that you will get the name.
@elyse This is my current approach
user1804599
Excellent!
user1804599
Problem solved!
#offtothepub
@JerryCoffin uh noes; must not appear whoosh due to pushing my own counter jokes badly :(
18:03
Does commenting on a question require a minimum amount of rep
@Prismatic Commenting in general (except your posts) does
user1804599
RTFM
user1804599
Oh cool. Unicorn prefers to do garbage collection between HTTP requests instead of during their handling.
user1804599
Let's implement a garbage collector.
@TonyTheLion ^
user1804599
no
user1804599
it is sin
user1804599
18:16
you go to hell
Can I fap in hell, too?
user1804599
no
with hairy hands yes
Oh, the fappening.
@elyse To hell with hell, then
@Borgleader It's sumthin'!
@ThePhD the obj lib was at least part of the problem
@Borgleader Kinda has the elements of the Sponza atrium. :D
@ElimGarak it is the sponza atrium
Marko Dabrovic made that, a long time ago. A fellow Croatian, a bit of a standard in the industry for testing GI. And other stuffs. Thinking about creating a modern version of it. Although, he intended it as a visualization, he's a 3D artist or something. Crytek added the RGB curtains later on, but the base geometry is much the same.
18:19
Now I have to figure out how I'm going to deal with z-up vs y-up and all this crap T_T
(thats why the camera angle is shitty btw, i had the coordinates in blender but they didnt translate well to my application)
Heh, a lot of people trip over that. Just give it some thought and you'll figure it out. I prefer z-up.
me too
z-up is best-up
zup. A common greeting from now on.
> On some implementations (e.g. Windows), elevated privileges are required as the function may create the temporary file in a system directory.
what the fuck
user1804599
18:21
lol
ECEF uses z-up too
@ElimGarak is there a common "forward" for z-up?
-1
Q: trying to bubble sort a char array in c++. Help me.

rama41222here I'm trying to sort the 2d char array names. of course i get an output put it's not sorted. please help. I don't want to use string library for this. Expecting a simple solution. #include <iostream> #include <cstring> #include <string> using namespace std; void bubsort(char [][10],int); i...

so many shit questions
hahahahahaha those names
char names[][10]={"man bitch","amare","mathew","xor","balla","pussy"};
18:23
today I'm patriarchal.. damn women.. I've been waiting for my girlfriend for 40 minutes now
@Borgleader Folks like to use y, as they are used to translating x to left & right.
>: (
z itself is the only one that determines handedness
> tfw implementing ??? in C++
18:25
@Prismatic z-up is basically the norm. Early graphics were confused due to the 2D start with XY. So z signaled depth in the early days. Still does. But most tried to "project" that into representing the "world space". And the scientific folk finally reasserted z as the height measuring axis. Although there are a few dissidents.
> Although there are a few dissidents
They will be crushed
z-up will reign supreme in the new world axis order
> reign supreme in new axis world order
hilter detected
I like how folks believe that they have to abide by the "default choice" of a coordinate system of their API. And then somehow get convinced they can't do anything else.
@Borgleader y-up is best, as it translates 2-d coordinates easiest. Meaning, you can chop off the z coordinate or set it to 0 and not require a swizzle to get your traditional 2D screen. z is best seen as the depth coordinate (and indeed, most systems default to having it that way).
For some reason Blender and other things do that weird z-up bullshit, which is just... all kinds of weird.
It's like they knock the graph paper over and then extended it up from the table, rather than just letting it be a natural extension of the flat paper.
Again, all of them are acceptable systems but some translate and work easier than others.
@ElimGarak Count me among those dissidents.
@ThePhD You have my sword!
18:35
Ah, but there is a difference between the different spaces and the coordinate systems you use with them. What you suggest works well in view space and screen space (albeit with non-linear depth coordinates), and is still actively used to describe it.
user1804599
what
user1804599
why can't you call operator delete[] on pointer to non-const
user1804599
well I guess just delete[] should work fine here
You'll figure out the benefits eventually, as you get into more complex situations. I usually try to avoid discussions of anything that pertains to choice. Whatever works for you is best, really. :D
Over time, I've knocked out half of the "defaults" out of my stream, especially the way I record depth information, because the default one has serious precision problems with rendering large areas like terrains. 3ds max's viewport uses the shittiest approach and immediately fucks everything up on a scale of a city ( you have to modify clipping sliders which basically mostly react to the near field due to the way the equations are formed (near singularity)). z-fighting, flickering and shit.
@ElimGarak Wouldn't that happen with y-forward too?
user1804599
18:41
bleh you can't have struct s { int a; int b[]; }; in C++.
@ThePhD Ah, but y forward from the perspective of the terrain. We don't really apply that to viewspace and beyond. Only world space in my case.
@ElimGarak Oh.
@elyse On some compilers, maybe! With extensions & stuff.
@elyse why? because size is unknown at compile time?
user1804599
    struct layout {
        object base;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpedantic"
        object* fields[];
#pragma GCC diagnostic pop
    };
user1804599
Excellent. :3
18:42
Mostly it is the non-linearity of the depth buffer and the really poor distribution of precision. I suggest figuring out your own equations, it is well worth the hassle. Especially if you ever want to render anything to its actual scale. :D No "general solution", tho.
user1804599
To remove one layer of otherwise necessary indirection.
@elyse Will it also silence -pedantic?
But if you're too lazy, we will always have the master distance fog race. :D What units do you guys use, I'm curious. I am strictly with centimeters.
user1804599
@набиячлевэлиь No idea.
18:44
@набиячлевэлиь They are synonyms, so probably.
I've had some ideas to enable planetary scale rendering on 32-bit graphics hardware, but the transformations are too intense.
i need to learn to read the documentation >.>
i was calling glm::perspective with a fov in degrees, guess what it needed
Ahahah, that's also a common one. :D Always do radians! Natural transforms.
I can go play Witcher 3 now :)
18:47
First, update to Windows 10 :P Borderless window and the flip model will give you a performance boost. :D
nah, i need to switch my ssd first
which means i need to clone this one
@ElimGarak glm just relatively recently switched to doing everything in radians
Damn, looking at the geometry, I seriously need to rework the sponza.
it was a mix before D:
Damn, it is raining outside again. Also, playing Interstellar's S.T.A.Y. on loop in the background. Man, I am depressed.
18:49
@ElimGarak Btw, this is Dabrovic sponza not crytek sponza
@Borgleader Yes, Crytek added the lions and the RGB curtains :D
Funny enough, none are really representative of the actual Sponza. The problem with the real sponza is a really drab material that is almost everywhere. It could be classified as "depressingly diffuse".
user406009
@ElimGarak Rain is awesome
user406009
At least it is in California.
Some CG colleagues are really jelly because I walked around the real thing. :D
@Borgleader Nice job!
18:52
@ElimGarak oh is that why games run better on Windows 10?
@Borgleader No redirection bitmap, no trickling over the PCIe twice among other low level stuffs. :D
And you no longer have to fear for your life when you alt-tab, that you won't be able to come back. It's instant.
It's literally a window without borders. :D
user406009
@ElimGarak But my package manager and tiling windows manager!
@ThePhD It took forever T_T stupid obj lib. Now I'm stuck with assimp until I make my own format
Thank you. I wish c programmers would embrace Boost more — xinthose 24 mins ago
use the new gl interchange format
user1804599
18:55
cldoc is terrible.
user1804599
Middle-clicking links opens them in the same fucking tab.
@sehe Wat
ahahahah, gave it a +1
user1804599
Breaking this shit requires more effort than not. How can people be so incredibly bad at web design.
user406009
@sehe that's not completely out of place. Lots of "C programmers" try to program the same way in C++.
user406009
18:56
C with objects.
@Borgleader The Šibenik cathedral model is also fun. But they are all seriously old. When Marko Dabrovic built the Sponza and the cathedral, I got my first computer ever (2002).
Why doesn't c++ look up operators (the assignment operator at least) in the base class when you call them on a derived class?
@Prismatic Because defaulted and compiler-generated ones overwrite them.
I had this problem yesterday.
Explicitly export them into the current class's namespace.
Plus if the derived type has extra members that could really screw things up.
using base_t::operator=
18:59
Well this isn't a copy or move assignment operator
You should be able to do using base::operator=
@ThePhD sniper
@OMGtechy Pew pew.~
dies
...
WHAT HAVE I DOOOONE!

« first day (1790 days earlier)      last day (3383 days later) »