« first day (1868 days earlier)      last day (3082 days later) » 

2:00 PM
@fredoverflow "Like this if you're old enough to get it"?
 
user1804599
@sehe ok! edited.
 
my calculator only has an AC button
 
user1804599
Why would a calculator offer airconditioning?
 
user1804599
Internet of Shit calling in.
 
if (c) {
    A
    if (d) { B }
}
if (!c || !d) { X }
 
2:01 PM
@Elyse so, are the conditions themselves "idempotent" (does the time of evaluation not matter)? Because in that case you're done
 
@Elyse for sweaty palms of course
 
@orlp yup that
I carn't type
 
@sehe ryp
 
user1804599
@sehe d depends on A.
 
@orlp !c && !d
 
user1804599
2:02 PM
And A has side-effects.
 
@Elyse Then it doesn't get better than orlp's
@thecoshman no !(c && d) is correct though
 
@thecoshman nope
 
right ye are
 
off-by-de Morgan's
3
 
user1804599
@sehe Duplicates c and d.
 
user1804599
2:03 PM
So I guess I'll just use a goto, then.
 
@Elyse no, because timedependence makes it not duplicate
 
@Elyse are they functions, or just variables?
 
Also, functional decomposition
 
user1804599
They are function calls.
 
if X is a function call... I don't see it as that bad an issue
 
user1804599
2:04 PM
And, even worse, c has side-effects.
 
It's a smelly, smelly design :)
 
@Elyse that's not bad
the only though scenario is if d has side effects
 
user1804599
c reads a global verbibol.
 
Is X tx.rollback()?
 
user1804599
2:05 PM
@R.MartinhoFernandes No.
 
De Morgan's laws are called "leis de de Morgan" in Portuguese. The double "de"s trip everyone.
 
@Elyse I think you are better just keeping what you have it it works
 
@R.MartinhoFernandes I enjoyed writing that sentence too much.
@Elyse There's your problem! :P
 
Ven
mell wet anyone?
 
user1804599
if (isset($_GET['transaction_id'])){
    $vouchers = $this->voucher_model->get_paid_vouchers_by_transaction_id($_GET['transaction_id']);
    if (!empty($vouchers)) {
        $this->payment_success($vouchers);
    } else {
        $this->payment_failed();
    }
} else {
    $this->payment_failed();
}
 
2:06 PM
@Elyse you can always store the boolean result, so you only have to call it once
 
user1804599
Right.
 
un-CPS it.
 
try {
    if (c) {
        A
        if (d) { B }
        else throw dummy
    } else throw dummy
} catch (dummy) { X }
 
@Elyse shouldn't 'payment failed' take a reason? and thus the two calls would be with differing params?
 
return $vouchers;/return null;
 
Ven
2:07 PM
@elyse ```
if (isset(...) && $vouchers = $this->voucher_model(...)) {
success();
} else failure();
```
 
user1804599
Ah! I know! This is awesome. :D
 
user1804599
    if (!isset($_GET['transaction_id']))
        goto failed;
    $vouchers = $this->voucher_model->get_paid_vouchers_by_transaction_id($_GET['transaction_id']);
    if (empty($vouchers))
        goto failed;
    $this->payment_success($vouchers);
    return;
failed:
    $this->payment_failed();
 
@Elyse that's even worse
 
user1804599
I'm so happy PHP got goto recently.
 
Ven
2:08 PM
"recently"? that was like 5.2
 
@orlp I'd use returns instead of throws, but yeah, similar idea. Just un-CPS the fucker..
 
Ven
@Elyse use my way!
 
@Elyse is that monstrosity php
 
if (isset($_GET['transaction_id'])){
    $vouchers = $this->voucher_model->get_paid_vouchers_by_transaction_id($_GET['transaction_id']);
    if (!empty($vouchers)) {
        $this->payment_success($vouchers);
        return;
    }
}
$this->payment_failed();
 
@Ven good markdown
 
Ven
2:09 PM
@Jefery I hereby declare SO's markdown parser shit
 
user1804599
@thecoshman Nice. :D
 
@Prismatic ITT rightfold is not very good at programming
 
@Elyse that being a standalone function ofc
 
user406009
@Prismatic Can't you tell by the $ signs? PHP is all about making $. No focus on style or code quality.
 
user1804599
@thecoshman It is.
 
Ven
2:09 PM
@sehe She just loves gotos.
 
come
on {
man
}
 
@Elyse wasn't a question, my solution mandates it
@Jefery whom get's the cum?
 
fuck me
 
Ven
@Jefery I tried like 5 different styles, with spaces, with >, with `, etc
 
0
Q: Is an operator have alway needed arguments?

J.G33 33 C:\Users\gauthjer\AppData\Local\Temp\Temp1_Ok.zip\rectangles.cpp [Error] 'rectangle operator++()' must have an argument of class or enumerated type I created a program and the latter want to register a compiler error. My question is: Is an surcharge operator (overrriding) have alway ne...

dat title
 
2:10 PM
@Ven I'll have you know that I like gotos too. They're so deliciously lightweight and really are the quick win sometimes. I still avoid them because of bitrot and maintenance
 
user1804599
I have an even better idea.
 
So no one knows of a good opensource raytracing lib? No fancy features needed. @Elim @Bartek @Borgleader @whoeverelsewasitthatwasintoraytracingshit?
 
@Elyse Botany
 
Ven
@sehe I'm mostly against control-flow shenanigans like this. Even early returns.
 
@Ven Yeah no, it's broken.
 
user1804599
2:11 PM
@R.MartinhoFernandes metatrace is pretty good.
 
Ven
@Jefery :[
 
@Ven let me guess... You're of the Andy-school-of-tiny-functions
 
Ven
@sehe Andyher? I barely know her.
 
@R.MartinhoFernandes o_0
 
2:12 PM
@thecoshman sooooo many grammar errors condensed
 
@Ven early returns are the besterest
@sehe whence say thy
 
thy's*
 
Ven
@thecoshman (who gets)
 
@sehe Our Andy?
 
user1804599
2:14 PM
Other than that, I only know of Mental Ray, which is proprietary. :'(
 
@Jefery yes
 
What about him?
 
You're the one asking. I dunno. I had not held back anything
 
user1804599
Maybe POV-Ray can be used as a library.
 
@Elyse Checked, no.
 
user1804599
2:15 PM
Then RIP.
 
@sehe What was that "Andy-school-of-tiny-functions" a reference to?
 
Ven
@sehe I'm mostly of the idea that lighter functions allow for more composability, yes.
 
@Jefery Andy's penis, of course.
@Elyse The source is AGPLv3 too, so ick.
 
@Ven that's a truth (see my earlier confession about goto)
 
user1804599
I once started an AGPL project. :)
 
Ven
You once started many projects.
6
 
user1804599
AGPL is great.
 
@Jefery the school of thinking of which Andy is a violent supporter
lol. Head hunters. Ruining even the job opponings that you already dismissed :)
 
user1804599
@Ven I don't like my Python code. :(
 
That's not newsworthy
 
2:19 PM
Maybe I can write my own RT.
 
@sehe How did he ruin it?
 
I don't even need lighting.
 
@R.MartinhoFernandes On a business card
 
user1804599
So ugly. But I don't know how to make it nicer.
 
2:19 PM
So, essentially a rasterizer, not a raytracer.
What's the difference? I'm stupid.
 
@TonyTheLion She. And it's in the "in hoeverre dit wat betreft complexiteit voldoende bij jouw wensen aansluit" - that's gonna trigger the "overqualified/too expensive" reflexes immediately
 
Ven
@Elyse it's python
 
user1804599
def __loop(self):
    while True:
        with self.__running_lock:
            if not self.__running:
                break
        self.__once()
 
user1804599
This kind of stuff is why statements suck, even in effectful languages.
 
@Elyse s/ code// s/(/)/
 
2:21 PM
@sehe ah yes that makes sense
 
user1804599
You can't nest them arbitrarily.
 
@sehe so complex
 
> Pros and cons of men
Con: they're dicks
Pro: their dicks
 
@StackedCrooked is that tag-meme-so-wrong?
 
is-a and has-a
 
user1804599
2:22 PM
Not all men have dicks. Don't be a dick.
 
dikks dix diqs
 
be dickless
 
is this dickscrimination?
 
@Elyse So not all men have pros.
 
@TonyTheLion I don't mind. I think the company is not a match. At least their job description talks way too much about deployment of (physical!) access control. And nothing, at all, about software development
 
2:23 PM
@R.MartinhoFernandes Not all pros are men.
 
Men can be nested arbitrarily.
7
 
@sehe ah ok.
 
@R.MartinhoFernandes They can be pros
jinx
 
@MartinJames Ough
 
Havastar
For the mere effort of showing up
 
user1804599
2:23 PM
@sehe eww, double space between mijn and contactpersoon
 
Tragedy
 
solved my microoptmization problem
 
@sehe Not all my fault - got suspended for a week.
 
cleaner and smaller now
and no hax
 
@MartinJames Ow whatcha do?
 
2:24 PM
@MartinJames yeah yeah. Explain to the judge :)
 
@JohanLarsson s/oo.*n/openis/
 
I really wish using that sed syntax nonsense would be an autoban
 
Shut up, Cat.
 
@Elyse I would tell her, but today was her last day. That's the second contact person I had in 2 weeks with that agency. Go agency! (... not)
 
@R.MartinhoFernandes I failed to be economical with the truth when commenting on 'i++ + ++i' and the like. The mods don't like it when you're too honest:)
 
2:25 PM
Haha, just what I imagined.
 
@MartinJames I missed that. That's a shame
 
user1804599
@sehe Reply: "Seth?? Dat is "Zijne Majesteit" voor jou!"
 
@Elyse Yeah, basically. :/
 
user1804599
2:26 PM
@sehe :(
 
Ah well. I didn't ruin my own chances yesterday. But I still feel they're gonna go with someone less mature expensive
 
Stupid winter
 
You looking for a job?
 
We'll see. I think I'd probably like that job quite a bit. Maybe not for the travel
 
3PM and it's so goddamn dark already
 
2:27 PM
@R.MartinhoFernandes Yeah, picking up steam now
I've been idling since october. Just "looking around"
 
Its probably nice when you're not in a rush looking for a new job
 
It is. But the game is tricky
 
user1804599
 
<3 zero copula
Not to be confused with zero copulation.
 
@sehe Where can I read about his ideas?
 
2:29 PM
Could've fooled me
 
@R.MartinhoFernandes I know many raytracers, but not ray tracing libraries.
 
I'm starting to fear losing opportunities now. I wonder whether it would be worse to regret accepting the wrong job too soon, or going with a lesser choice after missing good opportunities
 
@Borgleader :( Why is this not a thing?
I don't get it.
 
@Jefery He writes about them in this chat room, and on SO
 
Ok
 
2:30 PM
@R.MartinhoFernandes Because most often you need a scene definition and material definition and a few others things, at that point its just simpler to offer a package for which you feed those inputs and an pretty image comes out.
 
@Borgleader Er, I don't see how that's not what I asked for.
For implementers it's actually simpler to not have to bother with parsing those things.
 
mmmm, what do you imagine under a "ray tracer library"?
 
Something I can use to render stuff inside my program?
A ray tracing program without the driver.
 
system("povray.exe -infile -o some_file);
wait_pid();
read_file("some_file");
:P
 
If you have a friend called Ray, and you want to find his location, you'd use a Ray tracing library
 
2:34 PM
http://embree.github.io/
Intel has one, dont know if it does splines though
 
broke something
 
hi guys
0
Q: How to resize a single collapsable box in AdminLTE without affecting the others?

user3783598I'm developing a system and I'm using the template AdminLTE-2.3.0. I have to use many of the given component collapsable box but I don't know how to resize one box only without affecting the others. This is what I would like to happen. I want to put the box/panel with add button on the right s...

 
@user3783598 wtf dude
 
2:37 PM
@user3783598 enjoy your downvotes I guess
 
@user3783598 Hi?
38
Q: How do I write an ADL-enabled trailing return type, or noexcept specification?

R. Martinho FernandesImagine I'm writing some container template or something. And the time comes to specialize std::swap for it. As a good citizen, I'll enable ADL by doing something like this: template <typename T> void swap(my_template<T>& x, my_template<T>& y) { using std::swap; swap(x.something_that_is_...

Your move.
 
Ohhh a game of chess
I'm getting popcorn
 
> The current version of the API supports triangle meshes (rtcNewTriangleMesh), Catmull-Clark subdivision surfaces (rtcNewSubdivisionMesh), hair geometries (rtcNewHairGeometry), single level instances of other scenes (rtcNewInstance), and user defined geometries (rtcNewUserGeometry).
Sounds like only tesselated splines.
If I understand correctly what Catmull-Clark means.
 
@R.MartinhoFernandes With a high enough subdivision level the difference should be minimal
 
Though I guess for my stuff should do.
 
2:45 PM
Never realized that ADL could be used on trailing return types.
 
@JohanLarsson Was it @Nooble's mother's back?
 
@user3783598 Aren't you rude?
 
don't think so
 
@Borgleader missing "
 
@user3783598 how bout not affecting us
 
2:49 PM
wow
just... wow
At least fucking rebase these commits dammit
 
Revertception
 
user1804599
@fredoverflow I'm going to represent bytecode as an array of floats in my VM.
 
Hm, average build time is getting to 20-30 seconds per .cpp file.
Buildtime has been slowly increasing over the years.
 
user1804599
Because OCaml optimises arrays of floats, and only arrays of floats, to unbox the elements.
 
And now we're boiled frogs.
 
user1804599
2:55 PM
Oh wait, integers are also unboxed.
 
user1804599
Floats aren't normally, but they are in arrays.
 
user1804599
Oh then I'll just use int arrays.
 
user1804599
And it uses a tag bit, lol.
 
user1804599
So integers in OCaml are either 31-bit or 63-bit.
 
2:59 PM
@Borgleader Actually fuck it. I'm just going to generate some "textures" on inkscape and then use geometry and tessellation shaders to produce what I need.
 

« first day (1868 days earlier)      last day (3082 days later) »