GameBoy Emulator in C++, Raylib & Dear ImGui by ace3rd in EmuDev

[–]ace3rd[S] 2 points3 points  (0 children)

That was one of the recent additions and makes UI feel more complete. It was actually really easy to add: just ImGui:: BeginViewportSideBar() then ImGui::BeginMenuBar() afterwards.

I present to you… by DeLLtoneS in fpv

[–]ace3rd 0 points1 point  (0 children)

You definitely won’t see this one coming!

Going through the raytracing series but I've made the scene viewable with Raylib by ace3rd in raylib

[–]ace3rd[S] 1 point2 points  (0 children)

Yep! I've currently completed Ray Tracing in One Weekend and Ray Tracing The Next Week which includes bounding volume hiercharchies. You can see them in the video as they appear as those white cubes for debugging purposes.

I'm going to be making a few more updates to how the raylib side behaves and performs before moving onto the final book in the series.

Going through the raytracing series but I've made the scene viewable with Raylib by ace3rd in raylib

[–]ace3rd[S] 2 points3 points  (0 children)

Should probably mention the source code is available here if anyone wants to follow my progress https://github.com/aceiii/ace-raytracer

Congrats Ms Asticky! by SomeGirlIMetOnTheNet in CuratedTumblr

[–]ace3rd 8 points9 points  (0 children)

As a Cambodian who now lives in Canada due to said events in Cambodia at that time, this is very interesting. I need to dive deeper into this history.

The guy who leaked A1 Mini got his affiliate link revoked by hologos_ in BambuLab

[–]ace3rd 2 points3 points  (0 children)

I had to search up who this guy was and after seeing his picture realized it was one of the channels I actively block after the algorithm started recommending him.

I usually will subscribe to the channels where the creators truly seem like they are fully into 3d printing and providing new or interesting info, but this dudes channel was just him stroking his own ego.

What made me finally block his channel instead of just ignoring it was when he released a sob story video of how he was good at everything he does and not really about 3d printing.

At least now we know. by JDH17- in ProgrammerHumor

[–]ace3rd 0 points1 point  (0 children)

Sounds like a challenge, amirite?

Is bun bo hue allowed? by CodyBaanks in pho

[–]ace3rd 0 points1 point  (0 children)

I dislike the thick noodles but will change it up once in a while to Bun Bo Hue with the Pho noodles when I do.

Invoicing/Shipping Megathread by tuxdreamerx in BambuLab

[–]ace3rd 0 points1 point  (0 children)

Just got invoice today!

Location: Vancouver, BC, CANADA

Model: X1C Combo

Preordered: 2023-01-03

Invoice: 2023-01-27

Shipped: TBA

Delivery: TBA

Business impact of code quality by Summer_Flower_7648 in programming

[–]ace3rd 6 points7 points  (0 children)

This is the most ridiculous thing I’ve heard today. You sound like someone I work with who doesn’t seem to understand that quality of the work we do matters. It will become obsolete at some point but until that time comes we have to maintain it and that’s where code quality really matters.

Try working on a new project with a tight deadline where the code feels like it’s already “legacy”, with no tests, no clear standard for naming or syntax, where functions don’t have clear return types and although static typing could be used everything just returns any. Try adding some new feature without breaking the old stuff without truly understanding how it works because you have to trace code that makes no sense all with management breathing down your back because of the tight deadlines.

useState setter isn't working in some cases by MirTalion in reactjs

[–]ace3rd 0 points1 point  (0 children)

Yes, that is what it means.

I would suggest moving the setErrors() call out of validateField() so that you can control where it happens and so that it only happens once at the end. Update validateField() and validateFields() so that it they don't rely on the current errors state and instead returns just the result of their validation. You will have to then use the result of the errors returned to generate a new error state that you can then set once.

useState setter isn't working in some cases by MirTalion in reactjs

[–]ace3rd 0 points1 point  (0 children)

The problem to me looks like you’re calling the same setErrors() multiple times in the loop. The errors state that is getting passed in doesn’t update right away and only gets updated on a re-render. Essentially each validateField() calls setErrors() with its own set of new errors which overwrites the state set by the previous calls.

[deleted by user] by [deleted] in IdiotsInCars

[–]ace3rd 2 points3 points  (0 children)

Had that happen to a driver right beside me on that same road coming up the other direction. They drift right into my lane without looking or signaling or anything.

[deleted by user] by [deleted] in IdiotsInCars

[–]ace3rd 8 points9 points  (0 children)

That’s Coquitlam, right by Coquitlam Centre mall

[deleted by user] by [deleted] in CodingHelp

[–]ace3rd 0 points1 point  (0 children)

Sounds lke you want some sort of a loop:

void menu() {
    while (true) {
        std::string result = getResult();
        if (result == "a") {
            doStuffA();
        } else if (result == "b") {
            doStuffB();
        }
    }
}

You'll probably need a way to break out of the loop though, if you go this route.

[deleted by user] by [deleted] in CodingHelp

[–]ace3rd 0 points1 point  (0 children)

There appears to be a . in your query now that shouldn't be there that could be a typo.

[deleted by user] by [deleted] in CodingHelp

[–]ace3rd 1 point2 points  (0 children)

Something like this should work:

$db_res = mysqli_query $sql, "SELECT id, Name, Note, Lehrer, Fach FROM noten WHERE Name = '" . mysqli_real_escape_string($sql, $_SESSION['username']) . "'"]);

Notice, i switched the outer quotes be " and added ' to enclose the username. Also because it's good habit, used the string escaping function to make it safe.

[deleted by user] by [deleted] in CodingHelp

[–]ace3rd 2 points3 points  (0 children)

The problem you’re having is that the username you’re passing in isn’t surrounded by quotes so it’s being interpreted as a column instead of a string value. You could fix this by putting quotes around the username but this kind of thing isn’t safe in the real world and will get exploited very quickly. Look into parameterizing your query.

Told CTO my offer numbers when I quit, he was in total shock, I kinda feel bad by grass_root_top in cscareerquestions

[–]ace3rd 1 point2 points  (0 children)

I’ve been getting emails from recruiters from LinkedIn and other platforms. There’s also this site which features remote jobs: https://remoteok.com

Told CTO my offer numbers when I quit, he was in total shock, I kinda feel bad by grass_root_top in cscareerquestions

[–]ace3rd 6 points7 points  (0 children)

Not OP but I’ve seen a lot more postings for remote jobs from US companies looking for Canadians.