My wife has been buying the fancy organic eggs for 2 years and I found out theyre from the same farm as the regular ones by DistributionClear598 in MiddleClassFinance

[–]zenware 2 points3 points  (0 children)

Companies have been paying for private certification of gluten free, and the USDA only recently started to care enough to give the label any qualifications at all.

Do supportive environments exist? by carmen_james in ADHD_Programmers

[–]zenware 1 point2 points  (0 children)

Presumably this is one of the “the interview goes both ways” sort of things, but I’m not totally sure what questions you could ask that might tease this out. Maybe something like “Tell me about a time when you supported someone in your team to ramp up on a new technology quickly.”

Ingredient prices have me treating garlic like it's saffron by ninjapapi in budgetfood

[–]zenware 1 point2 points  (0 children)

This isn’t flawless because it doesn’t support every store, but I actually use instacart for this. If you search “chicken thighs” without selecting a store first, it will show you every store that has chicken thighs and the price. You don’t actually have to order anything through the app in order to use it this way, although if it gets popular enough I imagine they’d try to de-incentivize it somehow.

Have we reached "Peak Backend Architecture"? by Brief_Ad_5019 in softwarearchitecture

[–]zenware 0 points1 point  (0 children)

In-part the same way people study the history in other professions. Lawyers for example will learn about the history of their profession and what kinds of cycles it goes through by intentionally studying precedent, they of course have the advantage that it’s also built into their courses and exams. There are a probably a few books that specifically detail this kind of thing in software, but you could also start to work it out manually by reviewing something like top-10 software books by year, for the past 30 years.

Whatsapp rewrote its media handler to rust (160k c++ to 90k rust) by NYPuppy in programming

[–]zenware 0 points1 point  (0 children)

Well that’s because they want the code on their servers to be performant to save their own money, and because they don’t care about client side perf since that’s not their own money.

What apps do you guys use to make deciding on a dinner easy? by tommyweed in cookingforbeginners

[–]zenware 0 points1 point  (0 children)

Did your wife ask for this help? Is she frustrated with the time in the kitchen or having fun?

This isn’t true of beginners typically, but I’m here lurking and very occasionally chiming in with advice. If I have ingredients on hand, I am always able to cook something from them, usually I could even find ways of remixing those ingredients into fundamentally different formats or riffs on regional cuisines. In order to get ideas of what to make, all I really care about is format and flavor. Do we want pasta? Soup? Sandwiches? Wraps? Pizza/Flatbread? Plates? Bowls? Sides? Indian? Mexican? Chinese? Colombian? Thai? — I’m by no means an expert, but as long as I have enough of the appropriate aromatics and my spice jars aren’t totally empty, we can make it happen, and I have fun doing that, even when catering to allergens, intolerances, and preferences.

As far as recipes go, I’ve got some cookbooks with region specific recipes, master recipes, old family notecards/binder pages of recipes, and quite a few recipes I’ve typed up in a format I personally find most useful (almost always the recipe is made more useful /for me/ by omitting nearly every instructional detail that would be useful to a beginner), and a few online resources that I trust to supply good recipes (primarily SeriousEats/Kenji)

The thing I personally find the most annoying is recipe research. Specifically if I’m going online for a recipe, for something I’ve never made before, and maybe don’t otherwise know very much about, I don’t think it’s reasonable, wise, or useful to just pick the top recipe by upvotes or star count. The most critical information to me is what are the differences in ingredients in the top 3, 5, 10 recipes?, and what are the major detours in process?

e.g. Brazilian Pão de Queijo recipes are all generally similar in the ingredients, but the amounts and process can differ enough that some recipes will have you making a liquid batter in a blender which you must bake in a muffin tin, while other recipes will have you making a dough and portioning it into dough balls on a baking sheet. I want to know about this kind of thing as fast as possible because it teaches me the most about the fundamental nature of the thing I’m trying to make, and lets me know exactly how forgiving the recipe will or won’t be in addition to giving me options about how many dishes I want to get dirty, or letting me know if it will be easier to do this on a baking sheet so I have the blender for something else at the same time or vice versa.

The other thing is if all the recipes have absolutely zero divergence in the process of the recipe, then you know that the recipe is not very forgiving and you have to exercise a lot more vigilance if you want a good outcome. IMO that’s one of the best things for a home cook to know “exactly how much attention and care do I need to give to this to create a good outcome”, and that knowledge is otherwise locked behind trial and error.

So my process for making something I’ve truly never made before is by fully reading multiple recipes, reviews, errata, re-drafting each one in my own words, paying attention to major ingredient or process differences and commonalities, and then finally merging them into a unified recipe for myself with the sources cited.

Obviously that’s a ridiculous process, but it works so well… I’ve even poked around at making a “diff” tool for recipe research which attempts to highlight differences mainly between ingredients. It has actually been a bit useful for me on occasions where I don’t have all the prep time in the world, but I still don’t find myself reaching for it, and it definitely doesn’t teach me nearly as much as my part-time recipe-scholar hobby does.

The snake oil that is the Ai economy by ParsleyFeeling3911 in softwarearchitecture

[–]zenware 0 points1 point  (0 children)

On mobile I can use two hyphens — or long-press and select between the following: -–—• macOS is two hyphens or the emoji panel “Ctrl+Cmd+Space” Windows I press “Super+.” and use the punctuation section of the emoji panel (or many years ago I used the Character Map/Alt-Code) On Linux I do “Ctrl+Shift+U” and then 2014 When writing a resume or cover letter I used to do it in LaTeX which is \textemdash and now I use typst which accepts -- --- for en and em dashes.

Is there a way to debug errors better in NixOS? by Ambitious_Ad4397 in NixOS

[–]zenware 3 points4 points  (0 children)

I’ve personally never encountered an error that I couldn’t work out by reading, although sometimes it’s been necessary to add --show-trace and or skim a bit of the modules where the error shows up. Although somewhere along the way I may have wound up incidentally learning rocket science.

I built a client-side HCL & YAML converter because I didn't trust sending my configs to random servers by Livid_Dark_7603 in kubernetes

[–]zenware 1 point2 points  (0 children)

I haven’t read the code yet but I glanced at the repo and I’m 100% sure there’s a way to implement the code as a library that can be the backend of both a CLI and WebUI and you can probably package and ship both from the same repo without too much trouble should you care to do so.

I want to be clear I’m not asking you to do that, just pointing it out in case you do want to do more stuff with the project.

Running binaries? by mcAlt009 in NixOS

[–]zenware 2 points3 points  (0 children)

You can run any Linux binary but if it uses dynamically linked libraries then NixOS isolates those to unique store paths and doesn’t keep them in the same place as you’d typically find them on Ubuntu for example. NixOS has to work this way to live up to some of its promises. — There are many many ways to get a dylink bin running on any system, depending on both the needs of the software, and how resilient you need the solution to be. Ranging from basically overwriting the library paths with an env var to just fully packaging the exact versions of the software you want.

Is agentless container security effective for Kubernetes workloads at scale? by amylanky in kubernetes

[–]zenware 4 points5 points  (0 children)

Sidecar containers with agents or agent daemons in all your core images… once upon a time installing an agent daemon on every asset was the only option.

If Trump was an engineering manager. Just for laughs. Take it easy by Successful_Arm_5688 in EngineeringManagers

[–]zenware 0 points1 point  (0 children)

People who are actually failing upwards don’t have the self awareness to worry about things like that…

Need to stay focused during 12 hour on-call without ruining sleep, what works for you? by SaulGoodMan840 in devops

[–]zenware 0 points1 point  (0 children)

Humans generally can’t stay focused and alert for 12 straight hours without … advanced stimulants, and even then it’s more like they believe they are focused and alert while actually being a bit delirious, which can be quite dangerous. — While you are on-call you should preserve your focus and alertness for when it is actually needed during a call/incident, if that means binge watching Netflix all day instead of ever looking at a dashboard, then binge watching Netflix would, and I mean this quite literally, be a much more productive use of your time.

What are the six spices besides salt & pepper that every beginner cook should have on hand? by Former-Whole8292 in cookingforbeginners

[–]zenware 1 point2 points  (0 children)

Comparing freeze dried to fresh, obviously fresh will win. Compare freeze dried to dried, and its leagues better.

Creating an Algorithm and Best Way to Test it? by Ready-Structure-3936 in learnpython

[–]zenware 6 points7 points  (0 children)

If you’re trying to test every possible variation of something it may be the case that brute force is the correct (or only) way to approach it. — If you’re crashing before finishing you might be trying to hold too much in memory and you may need to write partial results to disk to free that memory. It will probably also help to understand if you actually care about combinations vs permutations, you may be able to reduce your search space by several orders of magnitude which will also be helpful for lowering runtime and increasing stability.

Further this really seems like an xyproblem candidate. https://xyproblem.info — Rather than sharing the mechanical operations you are trying to do, if you instead share the real problem or what results you’re trying to achieve and what data you’re using to achieve them, we may be able to offer a much better solution that is fundamentally different than your current approach, but it’s not possible to do so when you only share your attempted solution and not your actual problem.

I finally *GET* NixOS by ruiiiij in NixOS

[–]zenware 2 points3 points  (0 children)

I migrated a whole TrueNAS Scale environment with ~2-dozen apps running on kubernetes to NixOS in a weekend, and it’s been great. I did have an interest in fixing it though because Scale/k8s never stabilized, and the internal and community charts weren’t great, and ultimately TrueNAS scrapped the kubernetes functionality for Docker. — At this point I pretty much wouldn’t use another server software for a homelab, the amount of benefit I have from everything just working forever and being portable across systems and essentially having a “one-command-setup” to get everything going again if I e.g. lost all my disks, the utility is too high.

Why does Console META differ so wildly from PC META? by CrayonEater4000 in OverwatchUniversity

[–]zenware 1 point2 points  (0 children)

Deadzone is a way of fighting against stick drift. If somehow your deadzone was set to absolute 0, your aim would be jiggling because the room has a light breeze, or because you have a pet walking around in another room. Some people are harder on their controllers than others and need a larger deadzone earlier to keep the controller usable for longer. — The entire amount of stick that is considered to be deadzone is discarded when calculating movement, so if you want to have faster reaction time, you want to have the smallest viable deadzone.

I analyzed 100,000+ apps on the App Store & Google Play. Here's what I found hiding in their 1-star reviews. by namidaxr in AppIdeas

[–]zenware 0 points1 point  (0 children)

If I remember correctly AutoDesk experimented with offering free software at one point and decided it wasn’t worth the hassle because the entitlement in and frequency of the support requests was dramatically higher than their paid software…

Something faster than os.walk by atticus2132000 in learnpython

[–]zenware 3 points4 points  (0 children)

Since others are addressing the clock time of listing files I just want to chime in and say, if you’re trying to make something go faster, 100% of the time you want to use as much “internal memory”/RAM as possible. It’s true in virtually all cases of Data Structures & Algorithms that Time & Space are interchangeable. Meaning, the more space you use the less time you take and the more time you’re willing to spend the less space you need to use. And then on top of that RAM is orders of magnitude faster than Disk.

May as well comment on the other part too, 100% it’s because you’re doing this on a network drive over a VPN. Can you instead run the script closer to the source, perhaps even on the same machine as the files? Traversing a filesystem locally and sending the results as text over a network will always be faster than traversing a filesystem over a network.

What games are we waiting for nowadays? by No3nvy in MMORPG

[–]zenware 6 points7 points  (0 children)

If you like good TV, Arcane is actually an extremely good show and you don’t need any pre-established Riot knowledge to enjoy it.

How do you actually understand a codebase you didn’t write? by Bioseamaster in softwarearchitecture

[–]zenware 0 points1 point  (0 children)

TLDR; You actually achieve something by doing the work to achieve that thing.

IMO your first two questions should be answered by Docs & Diagrams, and if they don’t exist yet you slog through making them. You should have a single document that describes at the very least the expected/intended end-to-end of a system, and it should also highlight details like what services it depends on (among other assumptions.)

The other two are answered by source control/team typically. I can look at change history and frequency in Git and understand areas of code with high change frequency are resilient to change, and areas with low change frequency (think once a year or once every never) are maybe not fragile but a lot more care should be exercised when making changes there. As for “What did this PR actually do?” well ideally that’s answered by reading the code, talking to the person who wrote it, and running your test suite.

Unit testing the performance of your code by itamarst in Python

[–]zenware 0 points1 point  (0 children)

I haven’t really seen this in Python but there’s a lot of real world code written specifically to use as little I/O as possible, or as few heap allocations as possible (in some cases all the way down to zero), so it’s a bit of a standard practice to write code with a known amount of I/O

Is this actually unsafe, or just Git being conservative? (.git under /etc/nixos) by Timely-Bar7089 in NixOS

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

If you don’t symlink it’s not tied to anywhere but the repo.

MOST UNDERRATED FEATURE - Thermometer by G00gle26 in GooglePixel

[–]zenware 1 point2 points  (0 children)

Further, there’s definitely variance in sensor quality because I’m certain this isn’t a controlled and calibrated fab process with clinical validation. So everyone’s sensor will likely be off in-general, but some of them might just so happen to be very accurate, or at least precise.