« first day (866 days earlier)      last day (4098 days later) » 

9:00 AM
I've never had a job :/
 
@melak47 Working is overrated.
 
Well, you shouldn't be concerned if that 47 is not a 'xx of birth or your age. :D
 
I should look into it though. Seems I'm not doing great enough at uni to keep getting moniez from the gubment D:
 
@melak47 lol really?
 
@DomagojPandža Is that some programmer punishment?
 
9:01 AM
Perhaps there already was 46 other melaks
 
lol
 
@DomagojPandža I am not a newfag here
@thecoshman I am overreacting, right? Tell me I am.
 
@TonyTheLion Well, that would be appropriate. Although my favorite is forcing someone to write code in an IDE with a yellow background with the white Comic Sans font. :D
 
Guide to punishing programmers: Make them write singletons in multithreaded software
 
@BartekBanachewicz: You are overreacting. (Even if I don't understand what you are all talking about)
 
9:03 AM
@ereOn Well, if you call it coding and laptop
@ereOn Good.
 
@DomagojPandža lol
 
@BartekBanachewicz Is it really good ?
 
I can't figure out why I'm tired
I slept well and woke up without alarm
 
Me neither. Must be the 47 hours without sleep.
 
@TonyTheLion Have you drink before you went to bed ?
 
9:05 AM
@ereOn If you mean alcohol, no
 
I mean, alcohol
 
Xeo
Mornin'
 
@DomagojPandža You still get the nightmares?
 
@ereOn Zomg
 
Yup, I hate sleeping. :
:D
 
9:06 AM
:(
 
You get used to them, it's like a fucked up free horror game every night.
 
I get nightmares every so often
 
@TonyTheLion lol?
 
I once dreamt I was in a std::vector<> and there wasn't enough place for me and it wouldn't resize() and I couldn't breath.
 
@melak47 me neither
 
9:06 AM
but they don't prevent me from sleeping
 
Xeo
Woops
 
@ereOn lol
 
Xeo
0
Q: Invoking the destructor of the same object multiple times, result is not the same as described in standard

spin_eightI use MS Visual Studio 2010. I made implementation of a double-linked list. I wonder why in main function after invoking method Clean, which invoke destructor of an object, after I refer to the object no errors are raised. Here are some of my double-linked list methods(relative to my quest...

 
@BoltClock but I don't even have a bajillion zillion reps to show for it ;_;
 
Xeo
Why, people, whyyyyy
 
9:07 AM
@TonyTheLion Yeah, there was a time when I could estimate when I'd get a nightmare. If it was the night before, I knew I had a few days of good sleep and every day after increased the odds of getting one again. :D
 
@ereOn That must be incredibly claustrophobic
 
@Xeo noobs, that's why
 
does anyone here have a clue why photoshop is applying some weird different color profiles or something for my screens? :S
 
Now it's regularly fucked up, I don't even bother. Sometimes I contemplate is it getting worse or better.
 
@BoltClock Yes, you have no idea ! Since then I have my own allocator when I go to sleep.
 
9:09 AM
@melak47 Your screens?
 
left side is on one screen, right side another screen
 
Ah, dual screen
 
triple, actually :p
 
That's really weird it would do that
 
Lol, seems like a different tone mapping.
 
9:10 AM
I already took care of calibrating my screens. I don't need it to apply more color profiles :S
especially crappy ones like that.
 
Left seems like the after, right like the washed out before.
 
this is the original image
 
@DomagojPandža You do that often?
 
Almost always, I know, it's bad for my health. But from my perspective, so are my dreams. After I "survive" it, I just lose myself in my work. Tired > nightmares. :D
 
That must suck.
 
9:15 AM
It'd probably be less unhealthy to get drunk every evening
 
Speaking from experience,are we? :P
 
I finally found the color settings menu, and told PS to piss off, now the image looks normal on one screen, and over saturated on the left screen >_>
 
Bed allocator
Watch out because I am going to invent epic nerdy pickup line
 
epic?
 
I am totally using it on @Cicada
 
9:18 AM
So, it seems sobody at my place thought it would be a good idea to have a std::vector<std::vector<std::string*>*>...
 
What I'm saying is go to a doctor or something
 
@ereOn :/
 
@ereOn well. Looks like ptr_vector
 
With a comment that indicates that "This loop is complicated. Thanks the STL for that"
I'm not sure I even want to fix that or just close my eyes and skip to another non-sense.
 
@ereOn Woah, my eyes
 
Xeo
9:20 AM
@ereOn ...
 
Haha, the rationale is that it allows for empty lines in a two-dimensional array xD
(with empty cells, obviously)
 
@ereOn If I could find a legitimate usage for that, I'd give up programming for good. Some people just want to watch the world burn.
 
guys, can I reply to someone and still have a oneboxed image?
 
Yes, it just won't be referenced in the onebox, but hovering should show the referenced dude/dudette. Cicada, I mean.
 
hmm, whenever I try it usually ends up as just a link
 
9:23 AM
Oh this is getting good. The index of the first layer of vector is the id of an "application", the index of the vector inside is the id of a "session" inside the application
 
@melak47 Example?
 
Since those are not necessarily consecutive, some lines must be "empty"
 
hm. weird.
I guess it does work.
 
Well, chat is weird about that - if you use the upload button instead to post to stack.imgur, it will post as an image without the reply part
17
Q: Keep the message ID in the text field so I can reply to a message with an upload

BoltClock's a UnicornWhen I click the arrow icon to start a reply to a chat message, the text field is prepended with a colon followed by the message ID. This also works even if you've entered something in the text field, so Replying to somebody becomes :1234567 Replying to somebody But since an image upload wi...

You can still edit your last message to add the ID manually (see my post ^) but that can get annoying
 
9:26 AM
nah I usually post images from my dropbox, so it's fine
 
@melak47: Ever heard of memegenerator.net ?
 
@ereOn I have. and?
 
Well, nothing. May be of use oO
 
I don't like memegenerator. it's easier to just use photoshop, I can put the text where I want, make it however large I want..
 
@melak47: When you ar on linux, you have not much choice
 
9:29 AM
I know C so much I hate it. If that makes sense.
 
@ereOn photoshop 1.0 source code has been made available. get on it! :p
 
@DomagojPandža I just read your starred message, hope you've been better
 
@melak47: Really ?
 
> what would be the most bug-prone way to write
am I getting that wrong or is OP asking the most bug prone way to do something?
 
9:31 AM
@BoltClock Thanks. But you either get over it or it gets over you. :D
 
@TonyTheLion: I can think of a dozen ways to have something bug-prone
 
@DomagojPandža Heh, interesting way of thinking. :)
1
Q: most portable ways for memory allocation and freading arrays in C

axeothJust wondering what is the soundest way to allocate memory and freading from a file in C. First, an explanation: int32_t longBuffer; Now, when freading in the longBuffer, the code could go as: fread(&longBuffer, sizeof(longBuffer), 1, fd); //version 1 fread(&longBuffer, sizeof(int32_...

it came from here ^
 
I once had a technical interview where I was asked to tell what the code was doing. All the variables were named a1, a2, b1, b2, and stuff... I really realized how important naming was at this very moment.
 
yea, naming is extremely important, but also difficult
Code Complete second edition goes over that quite well
 
I never read it. I'm so late on my reading.
I feel like authors are writing books faster that I can even buy them.
 
9:36 AM
I only read parts of it
 
here we go again then ¬_¬
 
I should really read the entire thing
@thecoshman another day where not a single fuck is given
@thecoshman So what you gonna do to mangle your way through the day then?
 
@TonyTheLion twating around with package shit ¬_¬
you?
 
oh, wait...it's thursday
I thought it was friday
 
@thecoshman Having fun at work?
 
9:40 AM
@ereOn The only correct answer is "I don't know"
And then you can explain why the code is shit and how you're not a fucking computer
 
@DomagojPandža oh yeah, shitting tonnes of it
 
@CatPlusPlus: That's actually what I said. They agreed and told me they would also hire me to fix legacy code that was poorly named. So I was still asked to tell what it would do.
 
Maintenance jobs
 
Turned out it was just a stupid linked-list reversing function, but took me like 10 minutes to conclude that.
 
Programming equivalent of working retail
 
9:43 AM
@ereOn lol
 
@thecoshman debugging my flawed feature
 
@CatPlusPlus: Yeah.
 
Blarrgh.
Celshading ~_~
 
@CatPlusPlus hardly! that would be glamorous compared to maintenance work
@TonyTheLion erm... tempted to make a foot reference...
I just can't help it :(
 
Damn, the sampling function keeps doing all this complex blending shit
when all I want it to do is point-sample.
Maybe I should just use a conditional and save myself some of this texture1D agony.
 
9:45 AM
huh?
 
I'm using a texture1D of 5 pixels to alias the lighting over a polygon.
Rather than have a smooth shading, I'm trying to tell it "hey, if you're between 0.0 and 0.2, just be completely black", and etc. etc.
I first thought I would use 5 conditional if/else, but shaders don't like conditionals, so I made a 1D texture to do it.
However, the end result is still completely smoothly shaded.
 
and what's the problem? it blends between the colors in the texture1d?
 
It seems like it, the shading is absolutely smooth.
 
have you tried turning off the filtering on the texture?
i.e. linear filtering or something
 
I'm using Linear Filtering.
I think I need straight point-based no-mip-map filtering.
 
9:48 AM
why would you have mip maps
 
Just, as part of the filtering technique.
 
I think you would have to explicitly tell it that you want a mip mapped texture
I've done a mandelbrot thing in the pixel shader before, and stored the color ramp for that in a texture to sample from...but I wanted smooth transitions then so I don't know what's happening here
 
@thecoshman Seriously, it's not funny. If you had to live with the chronic pain I have to suffer, you may not appreciate it either, the off joke I can handle, but not constantly. :(
 
got a picture of what this looks like?
 
You can use a light map
 
9:52 AM
Hallo!
 
A light-map for Cel-Shading?
 
Guten Morgen
 
Mooooorning
 
@ThePhD That's the most commonly used technique
@R.MartinhoFernandes Hey there
 
Confuzed.
I thought light-maps baked in things like ambient and diffuse lighting.
How would I bake in cel-shaded lighting?
 
9:53 AM
Hmm maybe I'm not using the proper term
I haven't done 3D in a long time
Let me check
 
If you wish cartoonish shading, you can either analyze geometric continuity to determine edges (most precise, involves the geometry quite a bit), do a screenspace depth discontinuity test and shade based on that and also just block the gradient at discrete intervals to receive the granular cartoony shading.
 
The granular cartoony shading si what I'm attmepting right now.
 
(Back in the times of DX9, you just passed some "light map" to DX and it would automagically give you cel shading)
 
I have a gradient block, i.e. a 1-width texture with single-pixel blocks of increasing discrete degrees of lightness.
 
@DeadMG Sounds just like my first two months here.
 
9:56 AM
@ThePhD how are you sampling from that?
 
@TonyTheLion yeah... sorry. I don't mean to push it, can't help being a dick some times.
 
CelGradient.Sample, with all that fancy
4.0 - 5.0 Shader Model nonsense.
because tex1D is a lie in D3D9 and shaders that use it get bit in the ass.
 
The simplest version: Calculate the standard lighting equation, then floor it to the nearest available block, for example, you might have 0.25, 0.50, 0.75 and 1.
 
@ThePhD and the location to sample at is derived from the angle to the light somehow?
 
9:57 AM
No need for 1D textures, code it in directly.
 
@DomagojPandža That's how we did it in class.
 
I was trying to avoid hard-coding it in with the texture lookup.
But filterings a bitch, so might as well. :c
 
You can always expose the values in a buffer
and change them in realtime
 
user142019
What day is it?
 
thursday
apparently.
 
9:58 AM
Donnerstag.
 
@DomagojPandža That's starting to go over my head. @__@
 
user142019
Oh aight.
 
user142019
Also hi.
 
Aaaah I remember
 
I haven't touched Deferred Shading just yet...
 
9:59 AM
@ThePhD show us teh codezzz
 
@melak47 It's nothing special, yo.
Really:
 
@ThePhD how can you not, doing regular shading is like...ew
 
float fresnal = dot( vout.normal, vout.eyedir );
float diffusefactor = clamp( fresnal, 0.0, 1.0 );
diffusefactor = CelGradient.Sample( CelGradientSampler, diffusefactor );
return diffusefactor;
 

« first day (866 days earlier)      last day (4098 days later) »