« first day (1308 days earlier)      last day (3649 days later) » 

user1623923
4:03 PM
uint16_t color = uint16_t(inputString.substring(6,17).toInt());
The value had to be passed as a decimal value. the 6,17 is just to make sure there is enough space although it parses out white spaces.
 
user1623923
Also toInt() does not convert hex to its base value which is where everyone went wrong when trying to answer the question i put forward thinking it was a char to int16_t conversion or similar conversion issue when the issue was "toInt()"
 
@DeadMG bite! ^
 
@Enumerator Also, what are you talking about?
 
not quite sure why she's bleeding?
 
4:09 PM
@LightnessRacesinOrbit :)
 
user1623923
nvm lets just say i figured the firmware issue out
 
Xeo
Ahaha, SeqArt <3
 
user1804599
weeeeeeee
 
user1804599
keeeeeeeeend
 
Xeo
4:14 PM
We can't?
 
user1804599
but of course we can xeoweo <3
 
@Xeo don't get it
 
Xeo
that's the "prequel" to that
For everything else, read Sequential Art
 
hah, been trying to find the answer to a weird ifstream behaviour for a while, today. finally found a useful-looking SO question after poring through some others, and here is the answer that solved it for me:
2
A: Unexpected exception in std::ifstream

Lightness Races in OrbitIt's a bug, and clang v3.4 with libc++ doesn't exhibit this behaviour; GCC 4.8's libstdc++ still does. From the libstdc++ source and the text of the exception, I'd say that basic_ios::clear is not catching exceptions thrown from down the call stack and applying the "are exception flags in play?"...

¯\_(ツ)_/¯
 
> I'm totally used to create my Java classes in POJO manner. That means almost every member of my class will have a getter/setter method for accessing it. I've read that in C++ getters/setters are evil and break the rule of data encapsulation. In eclipse I've got a function to automatically create getters/setters but somehow in visual studio im missing that function. Any advice here? lol
Right, getters and setters are evil in C++, but fine in Java :D
 
4:23 PM
@FredOverflow There are justifications for using them in Java (reflection) that don't exist in C++.
 
@DeadMG But you certainly should not get/set every member of every class, right?
 
you should only get/set the members being intentionally exposed to a reflective API that has that convention as it's interface.
 
user1804599
@FredOverflow No, unlike my teacher encouraged.
 
@DeadMG You're talking about Beans, aren't you?
 
user1804599
If you are using some retarded software that requires a bean, sure make it a bean. And only because other options don’t exist.
 
4:25 PM
@ThePhD congrats :D
what was the cause of the squiggles?
 
user3010322
The bias when shooting the next ray after a hit.
 
user3010322
It was too small (1e-4)
 
user3010322
It needed to be 1e-2.
 
user3010322
1e-3 still caused artifacts.
 
hm? what's the bias for
 
user3010322
4:27 PM
Shooting the next ray after a hit (applied to refraction and reflection).
 
yeah but applied how :3
 
user3010322
ray.pos += bias * ray.direction
 
user3010322
(direction is unit)
 
okay...
how does that cause funky squiggles when you don't bias it far enough? :S
 
Hello? Find me funny.
 
4:29 PM
lolno
 
10 mins ago, by Lightness Races in Orbit
hah, been trying to find the answer to a weird ifstream behaviour for a while, today. finally found a useful-looking SO question after poring through some others, and here is the answer that solved it for me:
This was hilarious
 
user3010322
@melak47 It hits the same primitive again. Bounces. Hits the same primitive again. Bounces back. Hits teh same primitive again, bounces into itself, infinite self-recursion until RayDepth is hit.
 
:S
 
user3010322
And not just the same primitive. But the same spot on that primitive.
 
IT WAS MY ANSWER
god
 
4:31 PM
There there.
:v
 
@LightnessRacesinOrbit You found your own answer? That's like stack overflow masturbation!
 
@ThePhD now you just need to bend your refraction rays by IOR :3
 
user3010322
Well, I am bending them by IOR
 
user3010322
Or at least, it's supposed to be bending them. But it's not working?
 
an IOR of 1?
 
user3010322
4:33 PM
I have different IORs
 
user3010322
Vacuum has an IOR of 1. The rest default to 1.1 or 1.4 or 1.3
 
doesn't look like it's happening though
 
user3010322
Yeah, so I have to check the code again.
 
@FredOverflow Yeah - took me a while, too. I'd read three other ones first, that didn't really help. Then I thought, "ah, finally, someone who knows what they're fucking doing". Then the words began to look familiar. Then I got to the signature box. And giggled. Teehee.
 
are the repos needed to build lightstalker public? or is furrovine private still/again :p
 
user3010322
4:36 PM
It's still private but I can add you.
 
Hello, please help me if you can: superuser.com/questions/755165/…
 
here we go
 
Doesn't seem like he is new here.
 
~Lightstalker Races in Public~
 
No, I am not new exactly
 
4:37 PM
@ThePhD maybe I'll take a look and make it worse :3
 
But I am desperate
 
user1804599
Oh wait huh.
 
@Luka Hello, please don't cross-spam question links. Your desperation does not magically make us want to be spammed. Thanks, and good luck.
 
user1804599
Oh, I clicked conversations, not recent.
 
user1804599
My bad.
 
wtf
How did you do that?
 
@LightnessRacesinOrbit ok, I am sorry :/
 
@Jefffrey well, he's rightfold..
 
user1804599
I’m stoned from the pollen.
 
user1804599
Fuckin pollen.
 
4:39 PM
No, I mean how the hell did you reach that "recent" page?
 
user1804599
By clicking the hyperlink to it.
 
user1623923
Luka
 
yes
 
user1623923
if you want to recover your gmail account, contact google support directly
 
user1804599
Oh hi Enumerator. Long time no see.
 
user1623923
4:40 PM
Hi rightfold? i can't say i remember you
 
you mean, "Since last night"?
 
user1623923
"Long time no see", I'm assuming from a while ago
 
he was here last night.
 
SO.chat is awesome
 
also rightfold has had like, 9999999 names.
 
user1623923
4:41 PM
Lol
 
I still find myself calling him Zoidberg from time to time.
 
user1623923
BAHAHAH
 
user1804599
Stop enumerating my names.
 
@DeadMG Remember Zoidlang? ;)
 
yep
 
and, er, Styx, and Hexapoda, and a few others.
 
user1623923
Brb got code DeadMG, can i ask you a question, not sure if you'd know or not
 
@DeadMG Everyone does, because it was a better name
 
definitely
 
user1623923
Would FFFF AND FFFF00 Translate to the same decimal conversion?
 
4:43 PM
Why are you here again
 
@Enumerator no...
 
@Enumerator Of course not.
 
user1623923
Thanks that was helpful
 
you're welcome that was really, really stupid
:)
 
lol.
 
4:44 PM
Terrible day today
 
why?
 
Rain rain rain rain got splashed by a car
 
he came online and you were here
 
lol
 
user1623923
During most of my time programming I've only done memory modification. I've never used hex much at all except for RRGGBB
 
4:44 PM
Couldn't pick up a thing I've ordered because the idiots wrote the new address of the shop wrong
 
It's all sunny and shit over here.
 
it's been pretty sunny here all day
took the dog for a spin
 
@Enumerator They're just numbers. 9999 isn't the same as 999900, either.
 
Guess we've got the rain from everywhere else
Because it's fucking raining literally all day
 
user1623923
Understood
 
4:46 PM
Also I can't get the stupid BT device to cooperate
Why would you document your protocol if you have two mobile applications doing different things with said device??
 
user1623923
What BT device you playing with cat?
 
Controller thingy
 
user1623923
Oh right i thought you were talking about a usb BT modem device, i used to hack vodafone usb broadband dongles using the mbed LPC1794 microcontroller
 
low level savage
 
user1623923
My last name is Savage
 
4:50 PM
Let's see if I can USB filter the BT4 dongle to a Linux VM
 
@Enumerator A last name, a destiny.
 
user1623923
Brb
 
user1623923
:)
 
user1804599
Is your first name Adam?
 
user3010322
I don't know how to
 
4:55 PM
Me neither
 
user3010322
deal with overexposure aaghahgagh
 
@ThePhD odd, the repo page on github gives me a 404, but I can clone it fine
 
user3010322
@melak47 10/10 github management.
 
What repo
 
@ThePhD tonemapping :3
@CatPlusPlus the furry one
 
4:56 PM
Maybe you're not logged in on the web
 
user3010322
if (red > 255) red = 255;
if (green > 255) green = 255;
if (blue > 255) blue = 255;
 
derp
 
user3010322
OKAY, SEE, THEY DO IT TOO, BUT THEY DON"T HAVE ISSUES
 
user3010322
dhwjdkwahd whatever.
 
of course I'm not logged in, this is my laptop :D
 
Xeo
4:57 PM
@Jefffrey 256
 
lol, I'm stupid.
 
clamp(red, 0, 255)
 
@Jefffrey mod? I'm sure that'll look horrible :p
 
user3010322
Wait a second
 
@ThePhD who's they?
 
user3010322
4:58 PM
What the fuck is this black magic
 
user3010322
	red = (int)(acc.r * (256 / 9));
	green = (int)(acc.g * (256 / 9));
	blue = (int)(acc.b * (256 / 9));
 
Xeo
whee, magic numbers
 
Might as well take an advert out in your local newspaper, as far as I can tell. Just because you're desperate doesn't mean that this is a useful approach, unfortunately. — Lightness Races in Orbit 7 secs ago
 
user3010322
But why 9???
 
Different scaling
 
user3010322
4:58 PM
There aren't even 9 lights in the scene
 
Or some shit
 
@ThePhD Scaling from [0,8] to [0,255]
 
@ThePhD how many lights are there?
 
user3010322
@CatPlusPlus It all gets put into a uint32_t by this guy
 
user3010322
@Jefffrey 2?
 
4:59 PM
i.e. 3-bit to 8-bit, right?
 
@ThePhD Then you have to see it as: (45 / 10) * 2
 
Xeo
3bit would be 0-7
 
@LightnessRacesinOrbit who calculates lighting in 3 bit? o.O
 
user3010322
But acc is an 32, 32, 32 float color
 
user3010322
Why in the world woudl you scale it like that?
 
5:00 PM
@LightnessRacesinOrbit 7 * 256 / 9 = 199.1111...
 
Xeo
for magic!
 
user3010322
I... I don't get it. I'm not reading anyone else's raytracer. ._.
 
Ask whoever wrote that
 
@melak47 Not you him any more, since you he rescaled it
@DeadMG ok?
 
so it does not even remotely scale to 256.
it would only scale to 199.
 
5:01 PM
@DeadMG oh, right, I get ya
@Xeo ok yes
 
I want to write some meaningful Haskell. But I don't know what.
 
user3010322
@Jefffrey TicTacToe
 
> Meaningful.
 
Write the chat
 
@Jefffrey I want to know an electron's position and momentum simultaneously.
 
5:03 PM
Hmm. Ok.
 
user1623923
By knowing the position you can know its momentum :p hehe
 
@DeadMG [0,0,0] and 0, there you go :) (frame of reference left as exercise)
 
Xeo
dammit, the light in my room just blew.
 
wat
 
5:06 PM
Lightness Blows in Xeo's Room
2
o.O
no.
 
Xeo
dunno what the correct English expression is, but the consequence is, that I need a new lightbulb.
 
..
 
user1804599
But that’s a hardware problem.
 
@Xeo Here we'd say "the bulb's gone", but your phrasing was acceptable.
I think the yanks say "the light blew out", or something equally stupid.
 
Xeo
also, somebody here is doing a BBQ right now.
 
5:09 PM
How many McCoys does it take to screw in a light bulb? Dunno, he's a doctor, not an electrician!
@ThePhD hey, is the furrovine dependency zip in the dropbox still up to date?
 
user3010322
@melak47 Should be.
 
user3010322
But there's a link in the Furrovine repo to the list of deps.
 
Maybe yesterday was the last day of my life and now I am in hell?
 
user1804599
Maybe the universe didn’t exist yesterday.
 
user1804599
Who knows?
 
5:19 PM
I do.
 
?!
Every time I see my phone I cry :/
The ultimate pain
 
user1804599
Then throw it away problem solved.
 
(not really)
 
user1804599
No excuses.
 
Then I will end from a hacked email to both a hacked email and a broken phone
no good
The good thing is, now my hidden power is released
I am ashamed to say to anyone my gmail was hacked :/
It's like saying I am a teacher and my kid is a terrible student
If I say this I will never get a job in the IT security
 
5:37 PM
@ThePhD yeah but I don't wanna build all that stuff :p
 
user3010322
You don't.
 
user3010322
Just go to Furrovine's readme and download all the shit.
 
> The I/O stream operations are efficient (though their potential is not always fully achieved).
From Bjarne's book.
no compro
YIL that unique_lock is way slower than lock_guard.
 
depends on what lock.
 
sorry typo
 
5:42 PM
OIC
 
std::mutex
 
mmm; if you record whatever people say during a meeting, is that thing you end up with "a transcript"? I suppose it is not; but what does one call it :D?
 
I was just thinking, "These two comparisons don't make a great deal of sense"
 
@ScarletAmaranth audiotranscript? :S
 
@melak47 I wouldn't know
I can't seem to be able to come up with / google anything
 
5:43 PM
I briefly replaced a std::lock_guard<std::mutex> with std::unique_lock<std::mutex>. It caused a huge performance drop.
 
isn't audio transcript a text transcript of audio :D?
 
@ScarletAmaranth transcript isn't bad but it's commonly known as "minutes".
also, your mother's a whore.
 
@ScarletAmaranth seems so.
 
aww.
 
5:44 PM
:p
 
now you've spoilt my fun.
 
"minutes"? can I say: "it's focused on analyzing minutes"?
o_O
 
does anyone here have one of these oneplus one phone things? a friend of mine wants an invite
 
@ScarletAmaranth "the" minutes.
the minutes of the meeting.
 
right; thanks
 
6:15 PM
Testing...
OK, the SO outage infected my router. I had to power-cycle it.
 
your mother gave it herpes
 
What? From beyond the grave?
 
yep.
 
user1804599
I read that as “my mother gave me nipples.”
 
Zombie herpes?
 
6:17 PM
yep
it'll come back as a brain-eating router
 
user1804599
 
I've seen brain eating chainsaws (Texas Chainsaw Massacre) but not routers
 
Yikes! I'm wearing latex next time I delve into the depths of UnderDeskLand.
 
Shouldn't that be LaTeX?
 
user1804599
6:19 PM
@MartinJames Kinky.
 
well, it's a sexy desk perhaps
 
user1804599
Well fuckers
 
user1804599
What shall I write this weekend.
 
What the world really needs -- yet another linked list implementation.
 
Last will and testament.
 
user3010322
6:21 PM
@melak47 Figure anything out?
 
not done anything yet
just got home after work :)
 
user3010322
Ah, okay.
 
user3010322
Ooh, you have a job?!
 
time to play some gaems
 
@Edward Holy shit.
I just realized what's missing from my life.
a linked list implementation.
 
6:22 PM
@ThePhD yeah, thanks to sbi :D
 
user3010322
You took sbi's job offer?!
 
yep
 
@DeadMG Stomach pain?
 
user3010322
Omg, awesome!!!
 
figured the relocating to Berlin part wasn't so bad :p
 
user3010322
6:22 PM
What's it like working with sbi?
 
admittedly stomach pain is missing from my life but I considered that to be more a plus than a minus
 
user3010322
@melak47 And now you're closer to Xeo, Robot, and sbi. :D
 
@melak47 You took a job offer from a Lounger?
 
that was quick
 
@LightnessRacesinOrbit that's what...
 
6:23 PM
@ScarletAmaranth quick
 
user1804599
@Edward abstract class List<T> {} final class Cons<T> : List<T> { public T car, List<T> cdr; } object Nil : List<Top> {} done :v
 
instantly pops up in my head; I wonder why ^^
 
sbi only posted the job thingie a couple of weeks ago, and @melak47 has already upped, moved and begun his new life in a strange new world
@ScarletAmaranth I don't get it.
 
@LightnessRacesinOrbit me neither
 
user3010322
@LightnessRacesinOrbit Melak slows down for nobody.
 
6:24 PM
@ScarletAmaranth ok....
 
@LightnessRacesinOrbit I wonder what you're talking about ^^
 
it takes me more like 4 years to relocate
@ScarletAmaranth nobody else is confused
 
@rightfold I tried to read it but with a bit of a lisp
 
Maybe sbi and melak can supply a UPS system for SO that actually works.
 
@LightnessRacesinOrbit 'twas a joke. I already live in Berlin :p
 
user3010322
6:26 PM
If a situation doesn't fit him, @melak47 will leaf as quickly as he can to take root elsewhere. It might take a bit, but he won't stop stemming towards his goal. When he gets there, he'll blossom out just as soon as he puts his petals to the metal and make great things happen.
 
user3010322
@Borgleader ^ I caught the pun bug.
 
user3010322
Had to purge it from my system.
 
You mean exPUNge it
 
@ThePhD You didn't try hard enough.
 
in C#, 48 secs ago, by zneak
the thing that truly baffles me with functional language is that no one seems to be able to explain what a monad is in terms that make sense to a non-functional programmer
 
6:29 PM
@melak47 oh.
@ThePhD Very good
@Edward you too
in C#, 40 secs ago, by Lightness Races in Orbit
@zneak A monad is just a monoid in the category of endofunctors, what's the problem?
Surprised to be the first.
 
@ThePhD I did AO-based soft shadows in an evening; only quintupled the render time ^^
 
user3010322
@ScarletAmaranth But you're rendering with the GPU.
 
it's not "easier" implementation-wise
 
user3010322
I meant that instead of quintupling my render time,
 
user3010322
it would instead make my renders... well.
 
user3010322
6:35 PM
Unrenderable?
 
depends on how many samples per hemisphere you're willing to use
 
user3010322
Don't you need upwards 4, 5?
 
I need 128 samples per hemisphere
for it not to look shit
 
user3010322
4/5 extra raycasts for each shadow pixel is Waaaagh. <___>
 
(and 16x AA)
 
user3010322
6:36 PM
LOL 128. <___>
 
user3010322
I'm only doing 2x2 AA
 
well, you're sampling an entire hemisphere
you can't make do with 4 rays
 
user3010322
Yeah...
 
user3010322
Maybe the render will finish in, oh, I don't know
 
user3010322
12 hours?
 
6:37 PM
btw
 
lern2gpu
 
it's 128 with multi-jittered and Shirely's conversion to a hemisphere
it's like 500+ with random samplming
and 300+ with jittered
(to get "acceptable" quality)
 
user3010322
And you have to do this for everyone there might potentially be a shadow?
 
I didn't try Hammersley
 
user3010322
At what point do you think it's going to pan out? <_>
 
6:38 PM
yes, for every light ray / object intersection
I suspect Hammersley would suck massive cocks but I will try it out just in case
or you can just limit yourself to a single ray and get hard shadows out of AO (as it's either "hit a light source" or "didn't hit" :))
 
user3010322
Mmm.
 
it's really not a problem; you just find an intersection, create a plane based on the normal of whatever you hit - then you "wrap" it in a hemisphere and sample the hemisphere and see how much is occulded
done
 
user3010322
Yeah.... "ezpz", for sure..
 
Bad question of the day:
-6
Q: Hi need guide for a program

user3173802requirements Required to achieve a C + + program that implemton a simple system for ticket reservation for plane ( RBA ) . RBA enables clients ( users ) to add airports , airlines and flights for airlines . Each airline is associated with a group of flights . A flight is a airport of departure (o...

 
I refuse to read it ^^
@ThePhD I pay a lot in compile-time for using C++ AMP; my compilation takes over a minute (and rendering ~10 secs)
 
6:43 PM
@Mysticial oh my
 
it's really horrible at generating compute shaders it seems
 
user3010322
My compilation is 10 seconds, my render is like 2 minutes.
 
I'm not even sure as to what's going on; I mean, sure, it has to inline like 100 functions into a single kernel and then spit out a compute shader - but one minute for like 5k lines of code?
that's proposterous
 
I like how the top "related question" in SO's RHS sidebar, for any question poorly titled "need guide" is The Definitive C++ Book Guide and List. Convenient.
@ScarletAmaranth preposterous
(main point of saying that was to emphasise it by repeating it, not to correct the spelling mistake. but I figured I may as well do that whilst I'm here :P)
 
@Mysticial which one of you undelete voted it :P?
 
6:51 PM
@BenjaminGruenbaum whattttt
 
@BenjaminGruenbaum The OP.
OPs are allowed to vote undelete, but it's not binding if it wasn't self-deleted.
 
user3010322
I need an integer type that's guaranteed to hold the value of a pointer.
 
@Mysticial oh, I didn't know OP can undelete vote even without the privilege
 
user3010322
There was something like that in the standard, right?
 
user3010322
uintptr_t or something ?
 
6:53 PM
Comment to a C question, but that's a meme by now:
So you need an answer explaining the book? — devnull 29 mins ago
@LightnessRacesinOrbit So, linking the book list seems not appreciated by the OPs ;-)
 
@Deduplicator ;p
@BenjaminGruenbaum I'm surprised he could find the link.
@ThePhD Yes.
The answer to this question could fill a book. — Lightness Races in Orbit 5 secs ago
 

« first day (1308 days earlier)      last day (3649 days later) »