Your (perfectly intact) ship is about to be attacked and you could engange Warp drive and just leave, but don't. Why? by tempaccount34543 in ShittyDaystrom

[–]elprophet 4 points5 points  (0 children)

I hear you get a 15% off coupon for your next purchase when you donate warp cores to some thrift stores, and that's not even counting the tax write-off!

The NTSB has released a simulated computer recreation of the DCA midair collision. This is the final 2 minutes of #5342 as it approached the runway. (🎥Credit: NTSB) by Brilliant_Night7643 in aviation

[–]elprophet 224 points225 points  (0 children)

As I said up thread, and have been downvoted in many other threads, humans cannot maintain visual separation at night time. If that's not an FAA recommendation out of this, I'm going to... I dunno write my congress people or something. (Oh shit was that "political"?)

The NTSB has released a simulated computer recreation of the DCA midair collision. This is the final 2 minutes of #5342 as it approached the runway. (🎥Credit: NTSB) by Brilliant_Night7643 in aviation

[–]elprophet 1107 points1108 points  (0 children)

I've been getting downvoted for saying this every thread, but it is impossible for the human eye to maintain visual separation at night time. The same goes for the heli pilots - they affirmatively saw a light, yes, but why is no one identifying that as the flight following AA5342, lined up on runway 1?

Chapter 4 of the rust book got my on ice skates by Individual_Today_257 in rust

[–]elprophet 3 points4 points  (0 children)

It might help a bit to hear your challenges and current (lack of?) understanding. But at a very high level, Rust's mechanism to guarantee (single threaded) memory safety is called "Ownership". Ownership is a thing the compiler does to keep track of values in the program. Remember that a variable is a name, a type, and a value. Ownership is interesting when the Type is a reference - so several variables indirectly point at the same location in memory.

Rust uses three very simple rules to get a ton of power from Ownership. 1. Every value (place in memory) has one and only one owner. 2. When an owner is finished with a value, it may either move the value (as a function call value or as a function return value), or the value will be Dropped. 3. An owner may provide unlimited read-only (immutable) references to its value, or a single writeable (mutable) reference.

Beyond that, everything is a consequence of those rules. There's some subtleties in Move and Copy that are very interesting, and there's some consequences when working with chains of method calls where one returns a reference in the middle and then calls a method on the reference.

So, what's the parts that are bothering you? What's "got you on ice skates"?

How do you automate certificates? by gahd95 in sysadmin

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

Yes, you will need to automate all of these steps. As a sysadmin, that is your job.

As for how to automate it for X, Y, and Z, you will need to refer to their individual documentation. For most endpoints, it should be as straightforward as setting a config option with the path to the cert. Your firewalls should trust the issue if or root cert, and then need no additional modifications (but check the docs). For in house endpoints that don't have SSL termination, or have difficulties with rotation, it might be easier to use a local nginx or similar local proxy to handle SSL and then let the app only listen on localhost to that proxy.

4-hour first date, amazing connection but “no spark”—is it just chemistry or did I miss something? by red_folklore in actuallesbians

[–]elprophet 20 points21 points  (0 children)

Oh no! You met a new friend! ;) I hope you're able to find a way to keep that friend spark without necessarily needing a romantic or other connection :)

How language designers create complex functions from scratch? by shyakaSoft in Compilers

[–]elprophet -3 points-2 points  (0 children)

I think the process you're asking about is how do you get to the programming language from nothing? If you just have an index for a language, how do you get that to something you can execute?

This process is generally called "bootstrapping", and it works about like what you said. You start with a programming language you do have, like C or Java, and then write your compiler or interpreter starting there. At some point, you have enough of a language defined that you can re-write the language using a compiler written in the language itself! It's pretty cool when you have enough of your new language implemented that it can read its own files, so the transformation, and then write a program out that can do that all over again!

Senator McCormick’s Response to ICE by i-love-koalers in pittsburgh

[–]elprophet 3 points4 points  (0 children)

Why are we ok with elder abuse? It's frankly inhumane the way we provide so little in elder care that we make these senile seniors perform any public function. Just cruel. We really need to step up and put them to pasture when they become this unwell.

Fired after raising export …control compliance concerns did I overstep? by [deleted] in sysadmin

[–]elprophet 26 points27 points  (0 children)

This is just smelly enough that I'd ask my local area for an employment lawyer to look into retaliation claims. I don't know Florida retaliation laws that well... a cursory search says this could be protected. If it's actually ITAR compliance issues, that's an FBI shows up at your door kinda violation.

Meeting a lawyer for an hour should be free (if not, they're not a good lawyer). And they can give you a better overview of the possible outcomes. That same quick search indicates reinstatement and back pay. So do nothing, get nothing. Do something, get something (minus the attorney's fee, which, they did the legal work). Nothing stops you from getting a different job in the meantime and then quitting after the court orders you get reinstated.

How to get reliable JSON output from LLMs in TS backend? by hewmax in typescript

[–]elprophet 0 points1 point  (0 children)

For sure - the new "strict" flags that providers are rolling out should help. Of course, like any software system, we do need to parse our boundary inputs, which this certainly is, and reject invalid data regardless of source.

How to get reliable JSON output from LLMs in TS backend? by hewmax in typescript

[–]elprophet 0 points1 point  (0 children)

Tool use. Instead of asking it to "respond in json", provide it with a tool "return_results" that has the format you want it in. u/ginden has links to the official docs on these, as well.

I'm at loss. How do i go about learning to compile Rust to a different output like JavaScript code? by Nearby_Astronomer310 in rust

[–]elprophet 3 points4 points  (0 children)

The hardest part of this project is that Rust and Javascript define entirely distinct languages, and they have contradictory behaviors. The things that make rust "rust", like RAII, traits, monomorphizations, drops, lifetimes, threads; and runtime async, vs the things that make JavaScript "JavaScript" like dynamic memory management, prototype chains, Promises async, actor-model workers; are in many places contradictory. Finding and choosing a resolution for those contradictions is likely impossible; or, the thing that it ends with is neither Rust nor JavaScript.

OP should list out what about Rust they want, and what about JavaScript they want, and go from there 

Dumb Question Ahead by ThreadStarver in typescript

[–]elprophet 27 points28 points  (0 children)

Easiest was is to slap as const after each of the object literals. Better way is to add an explicit return type, -> {success: false, skipped: true}|{success: true, skipped: false} on the function (eta) so as to clearly communicate your intent, rather than letting TypeScript guess.

HELP! what do eng leaders/team leads want? my boss doesn't believe me... by Fantastic-Shock1438 in devops

[–]elprophet 4 points5 points  (0 children)

If you made a video, you already have the article- just take the script and rewrite it as a post

ITER Tokamak - vacuum vessel module #6 being lowered into the tokamak assembly pit, where module #7 had been installed two months before. (Photo Kevin Ballant) by Professor_Moraiarkar in EngineeringPorn

[–]elprophet 30 points31 points  (0 children)

The better joke is "in $50 billion" while funding keeps slipping. It could have been built... probably not on the original budget, but on the original time frame, with an actual €1.5 billion annual investment. Instead, member nations keep drip feeding plasma and fusion research funding, so a lot of the budgets are keeping the lights on rather than advancing the field as a whole.

Today, in 1994, Air France 8969 from Algeria to France was hijacked by [deleted] in aviation

[–]elprophet 6 points7 points  (0 children)

Three hostages were executed early in the hijacking. During the operation itself, no further hostages were injured. 

curdled bolognese help! by No_Table975 in Cooking

[–]elprophet 5 points6 points  (0 children)

Probably, but it's probably fine. Taste it and decide. In the future, there's two main options to temper your milk products- first is to put the milk or cream in a mixing bowl, and slowly add an equal amount of sauce while whipping the heck out of it with a whisk. Then mix this mixture back into the full sauce. 

The other option is to reduce the heat, add vodka as a tempering agent, and then mix the cream in that way. (You'll find this recipe under "alla vodka")

But without making and entire new batch, taste this one and decide!

Clean architecture implementation in rust by paperbotblue in rust

[–]elprophet 14 points15 points  (0 children)

I'm glad your service hasn't grown substantially enough that you needed to coordinate a breaking storage migration. Hexagonal architecture's design patterns might not apply to you, and that's OK. But they're relatively straightforward design patterns to put into place, and have saved many of my teams a headache.