BehindTheBarrier

joined 2 years ago
[–] BehindTheBarrier@programming.dev 1 points 1 year ago* (last edited 1 year ago)

Ultimately, I don't see any need for users to care about ids. I'd just make a user ID column in the category table and use that for selecting categories. Rather think about a display name that is either known or made by the user.

The only problem with increasing numbers is if you don't properly limit access to creator account and a user can just edit the url bar to get others categories. It's still a problem with other unique stuff, but less easy to crack when it's not sequential.

If you really want it, just replace ID in the url with the category name, if that is a simple string without any special characters. Actually useful for users visually, avoids numbers, users only see what they care about, still no bridging table. And the query is still a simple where user_id = x and category_name = y. This actually means non-unique names, but you are always filtering on users, so you can instead use a constraint or unique composite index on user_id and category name.

Personally i would stick with IDs because they are simple, and don't change so they are not prone to renaming, special character issues, and whatever else string handing deals with. And it's probably slower.

[–] BehindTheBarrier@programming.dev 3 points 1 year ago* (last edited 1 year ago)

Not for the rapid update that broke everything.

See post incident report:

How Do We Prevent This From Happening Again?

Software Resiliency and Testing

  • Improve Rapid Response Content testing by using testing types such as:

  • Local developer testing

  • Content update and rollback testing

  • Stress testing, fuzzing and fault injection

  • Stability testing

  • Content interface testing

  • Add additional validation checks to the Content Validator for Rapid Response Content.

  • A new check is in process to guard against this type of problematic content from being deployed in the future.

  • Enhance existing error handling in the Content Interpreter.

 

Rapid Response Content Deployment

  • Implement a staggered deployment strategy for Rapid Response Content in which updates are gradually deployed to larger portions of the sensor base, starting with a canary deployment.

  • Improve monitoring for both sensor and system performance, collecting feedback during Rapid Response Content deployment to guide a phased rollout.

  • Provide customers with greater control over the delivery of Rapid Response Content updates by allowing granular selection of when and where these updates are deployed.

  • Provide content update details via release notes, which customers can subscribe to.

Source: https://www.crowdstrike.com/falcon-content-update-remediation-and-guidance-hub/

Compute becomes cheaper and larger undertakings happen. LLMs are huge, but there is new tech moving things along. The key part in LLMs, the transformer is getting new competition that may surpass it, both for LLMs and other machine learning uses.

Otherwise, cheaper GPUs for us gamers would be great.

[–] BehindTheBarrier@programming.dev 5 points 1 year ago* (last edited 1 year ago) (5 children)

The difference is, with a build pattern you are sure someone set the required field.

For example, actix-web you create a HttpResponse, but you don't actually have that stuct until you finish the object by setting the body() or by using finish() to have an empty body. Before that point you have a builder.

There is noting enforcing you to set the input_directory now, before trying to use it. Depending on what you need, that is no problem. Likewise, you default the max_depth to a value before a user sets one, also fine in itself. But if the expectation is that the user should always provide their own values, then a .configre(max_depth, path) would make sense to finish of the builder.

It might not matter much here, but if what you need to set was more expensive struts, then defaulting to something might not be a good idea. Or you don't need to have Option and check every time you use it, since you know a user provided it. But that is only if it is required.

Lastly, builder make a lot of sense when there is a lot to provide, which would make creating a strict in a single function/line very complicated.

Example in non-rust: https://stackoverflow.com/questions/328496/when-would-you-use-the-builder-pattern

[–] BehindTheBarrier@programming.dev 6 points 1 year ago (1 children)

Halo 4 had great graphics to run on a damn Xbox 360. But yeah, they lost in the design department, imo I felt too much felt like plastic/artificial instead.

Didn't want to install something to move stuff of my laptop yesterday. Took a USB which has both a boot partition and a data partition, which worked on my W10 computer and moved it to the W11 laptop and it wouldn't recognize it...

Long story short, I had to manual set the partition id for the data part using diskpart for the data partition to be recognized. But that was a lot more effort than expected to move a few files over.

If they happen to sell Karaage there, I'm going to be so jealous. Hope it makes it to my country in that case.

It's a link to an image on github not sure why it doesn't work for you. Try just looking at the repo then:

https://github.com/Thomasedv/Grabber

[–] BehindTheBarrier@programming.dev 2 points 1 year ago* (last edited 1 year ago) (2 children)

(Windows only warning, unless someone wants to add Linux support)

I didn't really search around for GUIs way back, but ended up making a basic GUI because I wanted to learn programming.

https://camo.githubusercontent.com/5ecb6cdfb3710e359894b65e42b79c7ab7dd8de55a14cdf34f0f0f37d48c7d04/68747470733a2f2f692e696d6775722e636f6d2f346a46776846652e706e67

With just having options as checkboxes for YouTube-dl. It has served me well all these years. It was literally the thing I made while learning programming so the code is pretty janky when I look back at it though...

[–] BehindTheBarrier@programming.dev 24 points 1 year ago* (last edited 1 year ago) (3 children)

Everyowkring from home and access to on-site locations are limited, imagine the chaos of everyone at their office having to travel to IT to fix their PC, or IT traveling to locations with problems while trying to maintain isolation rules.

[–] BehindTheBarrier@programming.dev 21 points 1 year ago* (last edited 1 year ago) (1 children)

It's hyperbole, but I learned my first language because I wanted to be a god.

I saw these magic windows that popped up, that had buttons, and I was jealous of these godly creators holding the power to make them do as they wanted. So, I learned it myself. I peeked at another program I was using, it was using python and PyQt so that's what I set out with to become my own god of the desktop.

My first program was a GUI wrapper around the YouTube-dl CLI, and I still use it frequently.

Buldak is a bit too spicy for me to enjoy. But Nongshim Shin Ramyun is much better tasting, and highly recommend for those that like spicy noodles that aren't pure fire.

view more: ‹ prev next ›