« first day (3111 days earlier)      last day (1841 days later) » 
01:00 - 21:0021:00 - 00:00

9:00 PM
I don't think those are inherently bad to use like this
 
Because it takes less pressure to spin the turbine than the fuel produces, and the fuel is depleted.
 
if buckets return x, return y
 
In other words, I would think the pressure drop at the turbine would be at least as much as the pressure increase at the pump
 
hmm ok fair enough
 
(adjusted for mass flow rate)
 
9:00 PM
You don't need the && in there, do you? I thought lodash could handle undefined parameters
 
Where does the extra pressure come from?
 
@WilliamLee not according to its TS definitions lol
 
the IIFE is mostly fine i think, but, maybe the function this stuff is in should be async
thus removing the need for it
it returns a promise anyway
mightaswell be async
 
hmm yeah
 
The only way I can see how this works is if the tank pressure is greater than the combustion chamber pressure, but then you wouldn't need a pump
 
9:02 PM
makes sense. Thanks for the input, it's hard to tell how ugly code is once you've been looking at it for a while
 
@KendallFrey It comes from the heat of the exhaust.
They're boiling the fuel.
 
But why doesn't that increased pressure push back on the pump?
That seems like it would increase the pressure on the entire system between the pump and the turbine
 
@KevinB ah but then you can't catch for the bucket not existing in the array
 
@KendallFrey I see what you mean now. The pressure in the nozzle is a lower pressure than the fuel in the preburner turbo.
 
user8729657
Where can I get networking cable without an rj45 connector attached to it for cheap?
 
9:05 PM
There is no preburner
 
The path of least resistance is through the turbine.
 
6 mins ago, by Kendall Frey
user image
 
why not?
 
@Allenph But why isn't the high pressure before the turbo also high pressure after the pump?
 
wait... your original code was returning two different types of results?
a promise or an array?
 
9:07 PM
nah the original code was in an async function
 
it's all connected via a pipe, which means the "pressure" should be equal
 
err, object
oh
 
I think there's a term for this
 
@KendallFrey It is.
It's like a resistor in a circuit.
 
const existingBucket = buckets && _.find(buckets, { id: bucketId });
if (existingBucket) {
	return existingBucket;
}
try {
	const response = await $http.get<any>(`/buckets/${bucketId}`);
	return mapBucket(response.data);
} catch (err) {
	return undefined;
}
this is kinda yucky but it'll do
 
9:09 PM
The other side of the turbo is at a lower pressure so it flows from a high pressure to a low pressure, doing the work of spinning the pump.
 
@Allenph That should produce at least as much load on the pump as the turbo is providing
By increasing the turbo pressure, the pump output pressure must also increase
 
Sure. But as long as the main chamber pressure is lower.
It's going to go that way.
 
Well no
 
Why would it not?
 
If the fuel pump has to push harder than the pressure available at the turbine, it stalls
To me it looks like a pump pumping itself
Oh I think I got it
power is pressure * volume / time, not pressure * mass / time
so the turbo and pump are doing equal amounts of mass, but the turbo is doing much more volume, so it's more power
 
9:13 PM
I'm gonna go to lunch. Final thoughts on the IIFE vs. the kinda ugly code?
 
i don't like IIFE's
 
How is the turbo doing more volume?
 
yeah I generally am not a fan but it's a quick way to turn a function into an expression
 
It should be the same volume at a higher pressure because that side is heated, shouldn't it?
 
same mass flow rate, but as a gas rather than a liquid
 
9:14 PM
as for the operators, this is already all over the codebase:
const existingBucket = buckets && _.find(buckets, { id: bucketId });
 
If the pressure before the turbo was higher than the pressure after the pump, the fuel would flow backwards
 
I thought I had this figured out. But now I'm confused.
 
hmm I think I'll just go with the uglier but less dense one
!!afk lunch
 
@KendallFrey So the fuel closest to the turbine is heated, and the path of least resistance is through the turbine because the power required to work the turbine and get to the other side into the main (lower pressure) combustion chamber is still lower than moving back to the pump, right?
I feel like I've got the right answer for the wrong reason now.
 
@forresthopkinsa that could technically be shortened
 
9:17 PM
@KevinB forresthopkinsa is afk: lunch
 
const existingBucket = _.find(buckets, { id: bucketId });
_.find returns undefined if buckets is undefined
 
As I see it, everything in blue should be roughly the same pressure
because it's all connected
More specifically, dynamic pressure
and technically it should be higher near the pump and lower near the turbo due to drag on the fluid as it flows
So the pressure after the pump should be at least the pressure before the turbo
 
granted, at that point existingBucket will no longer be false, but instead undefined, but the way you're using it that shouldn't matter.
hmm. since when did windows have an emoji shortcut
🤦‍♂️
 
@KendallFrey but its hotter closest to the turbine.
 
heat doesn't directly translate to usable energy
the turbine is not a molecular ratchet
 
user8729657
9:33 PM
Is there a way to override this CSS class property that's being loaded in from CDN? i.imgur.com/xq83B0V.png
 
Scott Manley replied to my comment saying it's too hot.
I replied with my fuel flowing through the turbine blades idea just to make sure he knows I'm an idiot.
 
9:46 PM
promise question
  static byte_request_supported(url, customHeaders, proxyOptions) {
        return new Promise((resolve, reject) => {
            [...]
            reject(e);
         }
await Download.byte_request_supported(url, this.custom_headers, this.proxyOptions)
            .catch(this.error)
 error(e) {
/* this is undefined in here */
}
Why is this undefined?
 
uhm
something's not right
are those three unrelated pieces of code?
or are the side by side the same piece of code,
or three separate but related pieces of code
If you didn't bind error to use a specific this, it will be detemined by how it is called.
Because you passed it as a callback to .catch, it will be whatever .catch callbacks use as a this
1187
Q: How does the "this" keyword work?

Maxim GershkovichI have noticed that there doesn't appear to be a clear explanation of what the this keyword is and how it is correctly (and incorrectly) used in JavaScript on the Stack Overflow site. I have witnessed some very strange behaviour with it and have failed to understand why it has occurred. How doe...

 
I'm curious, but what happens if you tried doing something like:
const download = new Download();
await download.byte_request_supported(url, this.custom_headers, this.proxyOptions)
.catch(this.error)
 
@KevinB Ok that makes sense. Thanks.
 
Oops, forgot the await
 
@WilliamLee that function is in the Download class
 
9:58 PM
Yep
 
so it doesn't make sense
 
So instead of calling it directly via the Download.byte_request_supported... you create it using the new keyword and then invoke it
 
it would be more like this.byte_request_supported
but its static
 
Oh right, you mean it's invoked inside the Download class as well
Not just declared
 
user8729657
10:42 PM
@JBis, Hey, where can I get find a few security courses that are cheap?
 
user8729657
and is very informative?
 
10:58 PM
Apr 11 at 2:14, by JBis
@OvieAdese I have taken two online (free) security courses and finished neither of them. You will learn the most by doing, but there is one course I would suggest checking out:
 
11:22 PM
@KevinB TS won't allow it /:
 
turns out typeof is very helpful for debuging
 
maybe they're using an old version. It wouldn't surprise me, the project is in angularjs
(not angular)
 
user8729657
11:37 PM
@JBis, but no matter what I do I won't be able to ever fully protect my network, but will be able to protect it from novices, is this right?
 
The goal of security is not to make the system impenetrable, the goal is to make it not worth the time and effort
A system will never be impenetrable. A system that would take 10 years to crack is probably good enough though.
(of course that depends entirely on what you're protecting)
 
user8729657
Just my clients applications and the payment gateways
 
Payment gateways? Are you handling payment information?
Or are you just talking about the "gateway" to a payment platform
 
user8729657
@forresthopkinsa, just something for stripe
 
user8729657
or monaris
 
user8729657
11:50 PM
I dont want someone to be able to change the secret key
 
user8729657
and collect the payment for them self
 
@OvieAdese well you should be able to protect it just about anybody
@forresthopkinsa meh
with cryptography, yeah, but not all security
@OvieAdese There are 0 reasons for your to collect payment information
 
01:00 - 21:0021:00 - 00:00

« first day (3111 days earlier)      last day (1841 days later) »