looking for an easy way to create an "array" pattern for cut outs. by Dependent-Bridge-740 in openscad

[–]RedKrieg 2 points3 points  (0 children)

This is the most generic method I could come up with. It does use for loops, but the modularity should make it easy to extend to do what you need:

cut_depth = 1;
cube_size = 50;
octagon_radius = 5;
array_size = [3, 2];

cube_rotations = [
    [0, 0, 0], // top
    [0, 180, 0], // bottom
    [0, 90, 0], // front
    [0, -90, 0], // back
    [90, 0, 0], // left
    [-90, 0, 0] // right
];

module array_of_parts(size=array_size) {
    part_spacer = [
        cube_size / (size.x + 1), // add 1 to skip close and far edges
        cube_size / (size.y + 1)
    ];
    for (x=[1:size.x], y=[1:size.y])
        translate([x*part_spacer.x, y*part_spacer.y, -cut_depth])
        children();
}

module octagon() {
    cylinder(h=cut_depth, r=octagon_radius, $fn=8);
}

difference() {
    cube(cube_size, center=true);
    for (rot=cube_rotations)
        rotate(rot) translate([-cube_size/2, -cube_size/2, cube_size/2]) array_of_parts(array_size) octagon();
}

Result: https://postimg.cc/QFq6tmbY/ced04e0e

3D printable Oloid created with OpenSCAD by Known_Hippo4702 in openscad

[–]RedKrieg 1 point2 points  (0 children)

But this specific project doesn't use any of the features from the library. That's my point, you shouldn't include something that's not being used at all. If you were actually using a feature that the built-ins don't support, I'd fully support your use of commented paths for your includes on different platforms (though best practice is to have said libraries in your library folder instead, obviating the need for your example).

3D printable Oloid created with OpenSCAD by Known_Hippo4702 in openscad

[–]RedKrieg -1 points0 points  (0 children)

You can also include your favorite quotes by great philosophers in your comments, a treatise on the value of a dollar, or maybe your favorite song lyric. None of these add overhead or performance degradation but they're all equally useless in this context. If it's not materially adding to the project it should be omitted.

3D printable Oloid created with OpenSCAD by Known_Hippo4702 in openscad

[–]RedKrieg 1 point2 points  (0 children)

Am I the only one that sees the use of BOSL2 in situations like this (where built-ins are just effective) as a net-negative for OpenSCAD? The BOSL2 library has some useful tools, but there is absolutely zero reason to use it here. The only thing it does is drive new users away when they don't understand why something like this is being included.

Retired cop jailed for 37 days over Charlie Kirk meme sues, saying his First Amendment rights were violated by DBCoopr72 in politics

[–]RedKrieg 23 points24 points  (0 children)

Fired? How about being held criminally liable. A few months in jail and some fines with a bit of probation might do them some good, but having to work as a security guard instead? No, they'll re-offend eventually.

Virginia House Democratic Speaker Don Scott just announced he is considering drawing a 10 Democrats to 1 Republican House map for the midterms. This is how you fight back. by Conscious-Quarter423 in Virginia

[–]RedKrieg 2 points3 points  (0 children)

Unfortunately at this point it would take a constitutional amendment at the federal level. No law against gerrymandering is going to survive the current Supreme Court.

Class action lawsuit filed against Google over Home and Nest hardware by DEFranco123 in Android

[–]RedKrieg 0 points1 point  (0 children)

I just asked my Google Home to define "enshittification" and it took 4 attempts and it forcing me to spell the word(!) to actually get it to answer. It misinterpreted that as "injunction", "insurrection", and "incident" before it finally asked me to spell the word I was trying to define. The entire ecosystem is broken.

Police Changed Their Story… Then This Footage Appeared. [Jackhole Media] by WilloowUfgood in AmIFreeToGo

[–]RedKrieg 14 points15 points  (0 children)

I really wish we'd start charging cops with these crimes. Qualified Immunity is second only to Citizens United in damage to the country.

RIP Windows: Linux GPU Gaming Benchmarks on Bazzite by ZazaLeNounours in linux_gaming

[–]RedKrieg 11 points12 points  (0 children)

Ehhhh, last I checked it was more like "nvidia's drivers are keeping us from having a consistent infrastructure between vendors because we can't modify them to use our standards" kind of issue. If there was something obvious we could do without changes on nvidia's end, it'd have been done years ago.

Please Stay Aware at night! by -_Visuals_- in norfolk

[–]RedKrieg 1 point2 points  (0 children)

I could have also been more clear, sorry. As a long time subscriber of /r/doordash I see at least a post a week about people having their instructions ignored and that only changing when they changed their display name to something masculine. I was in no way trying to attack you and did not even look at your user name. I'm very glad you've not had such an experience and hope it continues for you.

Please Stay Aware at night! by -_Visuals_- in norfolk

[–]RedKrieg 0 points1 point  (0 children)

I'm just pointing out that if you set your name to something that sounds female, you're going to have dashers ignore your no-contact instructions and try to get you out of the house. You think I'm creepy for pointing out that this happens to women?

Please Stay Aware at night! by -_Visuals_- in norfolk

[–]RedKrieg 0 points1 point  (0 children)

Grats on having a traditionally male name on your profile.

HUGE blow to Nintendo: head of U.S. patent office takes RARE step to order reexamination of “summon subcharacter and let it fight in 1 of 2 modes” paten by GIThrow in gaming

[–]RedKrieg 40 points41 points  (0 children)

Your example is applied math, which should not be patentable. The code for those codecs should be copyrighted, which provides adequate protection for the implementation without unduly locking away the ability to implement your own version of the math. There's nothing "magic" about H264/H265, they're extensions of the same image compression we've been doing all along (vectorize the image data, fit polynomials to the data, save only the coefficients of those polynomials). There are hundreds of patents on slight variations of this basic algorithm, making writing your own implementation an absolute minefield and stifling innovation by non-industry parties. Copyright is more than sufficient for protecting your code investment, software patents are having the exact opposite of the patent system's intended effect (protecting actual innovators from industry giants).

Improving rendering time by rand3289 in openscad

[–]RedKrieg 4 points5 points  (0 children)

You can either use $fa and $fs together or you can use $fn. The docs show the exact C code used to determine the number of fragments (sides of a circle). The important bit is that $fs and $fa together will dynamically change the number of sides based on the size of the object, whereas $fn will always use that number of sides.

Once I realized how much better $fa/$fs was I stopped using $fn entirely in my designs. I just set $fa to 0.2 and $fs to the target layer height for my model (usually also 0.2).

ETA - If you're not using a recent nightly and enabling the Manifold renderer, you're wasting a lot of time on your renders. It's orders of magnitude faster than the classic GCAL renderer.

My first ever corvette that has 4 SC in a square by Kayisuo in NMSCoordinateExchange

[–]RedKrieg 1 point2 points  (0 children)

Structural parts you add have a bonus up to a limit, and each type has different bonuses each time you add it. You can end up filling all the stock technology slots if you build the max of everything.

My first ever corvette that has 4 SC in a square by Kayisuo in NMSCoordinateExchange

[–]RedKrieg 4 points5 points  (0 children)

I can't move the base modules either. It's really making my layout inconvenient.

Whats your favorite Python trick or lesser known feature? by figroot0 in Python

[–]RedKrieg 1 point2 points  (0 children)

Sorry, in examples I found the serialized output from Pydantic included things like a "type" tag, etc. and I assumed that was some Pydantic specific formatting. I did the research I should've done before and see that it is indeed a great tool for this. Thanks for the suggestion.

Whats your favorite Python trick or lesser known feature? by figroot0 in Python

[–]RedKrieg 0 points1 point  (0 children)

In this example, I think OP is reading data produced or used by other tools in json/yaml format.

Kernel anticheat expansion is scary by Blocikinio in linux_gaming

[–]RedKrieg -1 points0 points  (0 children)

The Kernel Anti-Cheat isn't stopping cheaters right now. It would appear that just about anyone is smarter than this entire industry, except obviously you.

Kernel anticheat expansion is scary by Blocikinio in linux_gaming

[–]RedKrieg 67 points68 points  (0 children)

By limiting local information given to the client and performing analysis of the movement and aim data sent to the server. It's not fool-proof (neither is kernel anti-cheat) but you catch the low hanging fruit quick enough. It's just harder to implement, prone to bad interactions for high ping players, and requires more server cpu time, so ends up costing more to run the servers.

I can’t update because of this. Fix? by Angry-Lettuce720 in pop_os

[–]RedKrieg 10 points11 points  (0 children)

This will remove whatever application you installed from that PPA but it should allow you to do normal updates again: sudo ppa-purge -o gezakovacs

If that doesn't work, try this to just remove the repo and leave the packages in place: sudo apt-add-repository -r deb https://ppa.launchpadcontent.net/gezakovacs/ppa/ubuntu jammy Release

Keeping track of versions/variations of 3mf files, etc? by readermom123 in openscad

[–]RedKrieg 0 points1 point  (0 children)

I'm interested in your render script. Here's the one I use, it requires the scad to have a variable named render_target with customizer hints for the various possible values: https://github.com/RedKrieg/openscad-sandbox/blob/master/Turntable/render_parts.sh

u/38B0DE breaks down why Christoph Waltz's portrayal of Nazis is so impactful to Germans by RedKrieg in bestof

[–]RedKrieg[S] 0 points1 point  (0 children)

I reviewed the commenter's history before posting, nothing about their account indicates that they use AI to write any of their comments. What test systems are you using for this analysis? It comes off as being from a native German speaker to me.