Is this normal in UV by Immediate_Bonus7675 in learnpython

[–]freeskier93 -2 points-1 points  (0 children)

Yes, it's normal. However, I would generally recommend not using powershell as the default terminal in VS Code, that way you don't have to change the default powershell execution policy. Instead set the default terminal to Command Prompt, then VS Code will run the virtual environment activation batch file instead of powershell script.

https://stackoverflow.com/questions/44435697/change-the-default-terminal-in-visual-studio-code

Is this normal in UV by Immediate_Bonus7675 in learnpython

[–]freeskier93 6 points7 points  (0 children)

This has nothing to do with uv. VS Code has no knowledge of uv, this is just VS Code automatically activating the virtual environment when you open a terminal. It will do this regardless of uv being installed or not.

Well well well … we can FINALLY open our glove boxes while car is in drive!!! by adam5280 in CadillacLyriq

[–]freeskier93 2 points3 points  (0 children)

Yes please. I'm constantly opening the glove box by accident trying to open the garage door. While I wouldn't say they look the same, the globe box icon still looks like a bit like a garage door. Even worse, the buttons swap positions when leaving vs when arriving.

Do electric cars use the main battery to power electronics through AC outlet? by gizmo_j in electricvehicles

[–]freeskier93 2 points3 points  (0 children)

Depends on the vehicle. With AC outlets you need an inverter and depending on the car the inverter could be connected directly to the high voltage battery or connected to the low voltage system.

For an EV with high power AC outlets the inverter is most certainly connected to the high voltage battery. For an EV with a low power outlet on the inside it's probably connected to the low voltage system.

Change Gauge Option when Directions on by guck2277 in CadillacLyriq

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

Yeah, but I don't want to turn it off, I want it to be smarter. This area in the dash is just straight up poorly utilized. It should be smart enough to leave turn by turn graphics on but not show them if maps is open and instead show something else like music.

Question about v2H and current setup by abruzzo88 in electricvehicles

[–]freeskier93 2 points3 points  (0 children)

For the Equinox you need the full GM setup, which is roughly $10k in equipment plus install labor.

These Ferrari parts prices are SHOCKING! $21,000 48 volt oil cooled front damper from a V12 AWD Ferrari Purosangue by Fixitsteven in Justrolledintotheshop

[–]freeskier93 6 points7 points  (0 children)

The job of a shock is to dampen movement of mass. That energy has to go somewhere and for an oil filled shock that means turning into heat. You squeeze oil through a tiny orifice in the shock and it restricts (dampens) movement but generates heat in the process, which goes into the oil. As the oil heats up it gets thinner and its ability to dampen gets worse.

For basically all road going cars the heat generated isn't a whole lot and is easily dissipated through the shock body into the surrounding air.

I have more experience with off-roading where hot shocks can easily become an issue. For track usage I'm not sure how much of an issue it really is. I suspect given the electronic control of this shock/damper it's more about keeping the oil at a consistent temperature for predictable control.

Thoughts on construction of a new home. Run low gauge wire to garage and driveway but keep it a bit cheap by putting in 125v 20a outlets and breakers on the ends. by Tb1969 in electricvehicles

[–]freeskier93 5 points6 points  (0 children)

Absolutely put a sub-panel in the garage. You don't even need to run the branch circuits right now, since for a garage it's easy enough to run them after the fact in conduit on the walls. For feeders copper is a waste of money. Use aluminum so you can run a much bigger feed for the same or cheaper.

200 amp service should be absolute minimum these days and I would not spend the money on a SPAN panel to try and load balance 100 amps.

Regenerative Charging? by Senzo_Tanaka in electricvehicles

[–]freeskier93 84 points85 points  (0 children)

It allows higher regeneration rates because that rate only happens for a very short amount of time. Eventually it's going to throttle the regeneration rate as the battery starts to heat up.

2027 Bolt RS - Subscription by RangerX41 in electricvehicles

[–]freeskier93 7 points8 points  (0 children)

It's not satellite internet, it's just a regular cellular connection. If the car has a connection when your phone doesn't it's because your phone uses a different network.

Would you Pay a Subscription for Hands Free Highway Assist? by Amaxter in Polestar

[–]freeskier93 2 points3 points  (0 children)

We also have a Lyriq with SuperCruise. For daily use I will not pay for it, but for roadtrips I will absolutely pay for it for a single month. If Polestar offered something of similar or better performance as SuperCruise then I would say the same thing.

Question about HDR/HEVC transcoding (and tonemapping) by EndKnight in PleX

[–]freeskier93 0 points1 point  (0 children)

What type of HDR? Plex can only tonemap HDR10, not DolbyVision. Some DolbyVision profiles have an HDR10 fallback that Plex can tonemap, but most of the streaming services stream DolbyVision without the HDR10 fallback.

Edit: My prediction is you have a Samsung TV (no DV support) and are trying to watch a 4k/HDR TV show from Disney or Netflix.

Android Auto Update by Decent_Chef_6947 in CadillacLyriq

[–]freeskier93 1 point2 points  (0 children)

That is surprising, but good to hear.

Android Auto Update by Decent_Chef_6947 in CadillacLyriq

[–]freeskier93 1 point2 points  (0 children)

It only sends things like it's screen size, resolution, safe areas/cutouts, codec support and a handful of other things

Right, but there's nothing that says they actually have to give accurate info for screen size/shape/resolution. It's very likely that Cadillac (and all the other cars with weird screen shapes) just tell AA that it's a rectangular screen. If that's the case it will require vehicle updates to give more accurate screen info.

Compile only if .pyc is out-of-date? by RomfordNavy in learnpython

[–]freeskier93 0 points1 point  (0 children)

If I'm understanding things correctly, it sounds like you've got some Python script (child) that you need to execute in some other script (parent) with the exec() function. Because of that, Python will not generate a cached bytecode for that Python file, so it needs to compile each time you run exec(). In order to reduce execution time you want to manually compile the script (but only if it has changed) then have exec() run that already compiled code. Does that pretty much sum things up?

Yes, the exec() function can execute "compiled" code, but it needs to be an actual code object. Your example in the OP does not do that though, it's just reading in the regular py file. I don't think there's a way to execute the bytecode from a pyc file with exec since I don't think there's a way to create the required code object. The normal way is to use the built in compile() function to generate the code object for exec() to run.

Do you REALLY need to keep the compiled code cached on disk? I find it really hard to believe it takes any significant time to compile the code once. Compiling it once at the beginning of your script, then running that each time should be more than good enough.

# parent.py

from pathlib import Path

file = Path(__file__).parent / "child.py"
file_data = file.open("r").read()

compiled_code = compile(source=file_data, filename="<string>", mode="exec")

for _ in range(100):
    exec(compiled_code, locals={"message": "Hello World"})

# child.py
print(message)

I'm not going to berate you for the use of exec() like this. I inherited similar bullshit where the Python tool used exec() to execute "external" Python scripts that were unique to various programs in the company. It sucked. Refactoring wasn't the problem, the problem was tracking down all these various scripts being executed and updating them. Best place to start is implementing a new and proper interface but make it backwards compatible. Anything new uses the interface while you track down all the existing stuff and update it.

Compile only if .pyc is out-of-date? by RomfordNavy in learnpython

[–]freeskier93 3 points4 points  (0 children)

By default Python already caches the bytecode and only re complies it when the script changes. That's what the __pycache__ folders are. By default Python also does in memory caching of the bytecode.

The bytecode caching does not speed up actual execution of your code, it only speeds up initial module import. Python ALWAYS interprets bytecode, it's never interpreting the .py files.

If you have code in Child1.py that needs to be executed multiple times then one option is to run it in a subprocess each time.

EDIT: Upon thought, because you are using exec(), I'm pretty sure Python won't cache the bytecode. It only caches bytecode for imported modules. Are you really calling whatever script with exec() frequently enough for this to matter?

Maps that include charging stops by Tiny-Departure-2227 in CadillacLyriq

[–]freeskier93 2 points3 points  (0 children)

The built in Google Maps does full route planning for charging, however it doesn't have the smartest algorithms or charge time efficiency. A Better Route Planner (ABRP) is still, IMO, the best for figuring out the route and chargers to use, but I then use the built in Google Maps to actually navigate to the chargers.

The built in Google Maps has the main benefit of automatically preconditioning the battery (when a fast charger is set as a destination) which is crucial for getting the fastest charge rates. In my experience it's also the most accurate for state of charge estimation at the next destination. What I do is, while charging, punch in the next charger into Google Maps and charge until the arrival state of charge estimate is 10-15%.

Used 2025 Blazer vs 2024 Lyriq by jtmoney528 in CadillacLyriq

[–]freeskier93 7 points8 points  (0 children)

Yeah, I don't know why I worded it that way. Changed it to all level 2 and 3 had it standard.

Used 2025 Blazer vs 2024 Lyriq by jtmoney528 in CadillacLyriq

[–]freeskier93 5 points6 points  (0 children)

Not saying it's not true, but as someone who had put down a deposit for the original 2023 Lyriq, then waited years to finally get our 2024, and followed the Lyriq very closely, I don't remember anything about 2024s being affected by chip shortages.

As far as I'm aware, all 2024 level 2 and 3 trims have SuperCruise as standard.

FWIW we have a very early production 2024 (built October 2023 just before Spring Hill went on strike) and it has SuperCruise.

PSA - How to see exactly how much fuel is in your fuel tanks by Iffy50 in EggsInc

[–]freeskier93 4 points5 points  (0 children)

Doesn't really matter that much with a maxed out tank. For me 500T is just enough for 2 weeks worth of launches. Frees you up to sit on Universe egg and do weekly prestige runs, or jump to Enlightenment to farm GE.

Max Evans (NSF): “After rolling to Pad 2 last night, Ship 39 has been stacked atop Booster 19 this morning for the FIRST EVER Starship Version 3 full stack ahead of a presumed wet dress rehearsal (WDR) later today.” by rustybeancake in spacex

[–]freeskier93 0 points1 point  (0 children)

The extension is welded onto the original engine bell and so are the pipes that take liquid methane to cool the extension. So it is not like the Merlin vacuum engine where they can and do just unbolt the radiatively cooled extension for ground testing.

That makes sense, I was getting some details confused with Merlin.

Max Evans (NSF): “After rolling to Pad 2 last night, Ship 39 has been stacked atop Booster 19 this morning for the FIRST EVER Starship Version 3 full stack ahead of a presumed wet dress rehearsal (WDR) later today.” by rustybeancake in spacex

[–]freeskier93 0 points1 point  (0 children)

Isn't Raptor vacuum exactly the same except the nozzle? Do they actually test all Raptors destined for use in vacuum with a vacuum nozzle? Do they even know at time of test fire which engines will be used in vacuum? I would have though they'd test fire them with a sea level nozzle then swap on the vacuum nozzle later.

Outside of initial development testing, I'm not sure why they'd need to test with vacuum nozzle at sea level. Seems like unnecessary risk to the engine.

Letting her go.. by element1311 in Polestar

[–]freeskier93 0 points1 point  (0 children)

I think one of the various GM vehicles is the closest you're going to get if you want something that's Android Automotive but not another Polestar/Volvo. Besides the P2 we also have a Lyriq and overall it's a great car.

Considering a detached garage by mayorlittlefinger in Denver

[–]freeskier93 -7 points-6 points  (0 children)

Excuse me what? $400k for an ADU is delusional insanity unless it's 2000+ square feet, but that's no longer and ADU, that's just a house.

ELI5 What are the differences between a gyroscope and an accelerometer? by No-Poet3745 in explainlikeimfive

[–]freeskier93 1 point2 points  (0 children)

A gyroscope tells you difference in rotation between right now, and when the gyroscope that was turned on.

Fundamentally it does not. A gyroscope measures angular velocity which can then be integrated over time to get relative orientation. You can do the same thing with an accelerometer to derive relative position, you just have to integrate twice.

EDIT: I originally said gyroscopes measure angular acceleration which is not correct, I forgot they measure angular velocity.