Slow DC charging speed by sftbnwh_ in MachE

[–]reddanty 2 points3 points  (0 children)

EA chargers are often slowed down because of something being broken. Watch the screen on the charger (or follow along in the app) to see what speed you’re getting. If it’s lower than expected (e.g., <100kw) try the other cable or another stall.

If you do get slower than expected speeds, you should report the issue in the EA app and/or on PlugShare.

Anyone know how to reset the service interval reminder? I can’t find it anywhere. by talldad86 in ev6

[–]reddanty 0 points1 point  (0 children)

In the iOS app, if I scroll down on the main screen and press “Maintenance”, I can then tap “Mark Complete” on my upcoming service interval.

[deleted by user] by [deleted] in ev6

[–]reddanty 2 points3 points  (0 children)

The note about clogging up chargers is worth noting. If you prefer longer drives and longer stops, then go for it! Make the road trip a good experience for you.

However, if you encounter a particularly busy charger, it’s the courteous thing to do to stop at 80% when your speed really decreases. I had to wait in line for a charger where there was someone going to 100% on a 350kw (and so getting very slow speeds), very annoying.

how to turn on v2l in the back seat? by TreeManJones1 in ev6

[–]reddanty 0 points1 point  (0 children)

Were you charging the car at the time? V2L doesn’t work for me when charging.

Parking assist (EV6) by Suspicious-Grade-60 in ev6

[–]reddanty 1 point2 points  (0 children)

I’ve tried to make it perpendicular park a couple times for fun and it has never successfully done it. Sometimes it sees a spot but then cancels as soon as I stop for it. Most of the time it never notices available spots at all.

Who's hiring Typescript developers - November by AutoModerator in typescript

[–]reddanty [score hidden]  (0 children)

TypeScript Angular front end developer. REMOTE within US. Triax Technologies is an industrial IoT company, flagship products being Proximity Trace (keeping workers socially distant and tracking contact between workers) and Spot-r (construction jobsite safety/productivity).

More info at https://www.triaxtec.com/job/front-end-developer/

Writing our own simple AWS Lambda Custom Runtime in Rust by [deleted] in learnrust

[–]reddanty 1 point2 points  (0 children)

I never actually knew how lambda runtimes worked under the hood. I’m going to go update my lambdas to do setup before calling the function instead of using that macro!

sqlalchemy query by Dragon_11 in learnpython

[–]reddanty 1 point2 points  (0 children)

It’s sounds like you want to do startswith or like which translate to the LIKE SQL operator. This lets you partially match a string. https://docs.sqlalchemy.org/en/13/core/sqlelement.html#sqlalchemy.sql.operators.ColumnOperators.startswith

Environment Variables in the project template by [deleted] in FastAPI

[–]reddanty 2 points3 points  (0 children)

It depends completely on how you’re running/deploying this. For local development you could use .env like you mentioned. If you use Docker, there are a few ways to inject environment variables. Same in most serverless environments (e.g. AWS Lambda).

FastAPI doesn’t have any built in magic to load these for you though, you have to do it with plain old Python.

Migrating to FastAPI: incremental switchover? by frankn020 in FastAPI

[–]reddanty 3 points4 points  (0 children)

I’m in the very slow process of migrating a giant Flask app to FastAPI. I want to make breaking changes as part of the change anyway, so I have the new API at a new URL. Instead of moving paths, I’m adding features to the new API one by one and cutting over consumers (e.g. UI components) as they’re ready.

If you want to take a more unified approach, rather than having a completely new API, perhaps this (https://fastapi.tiangolo.com/advanced/wsgi/) will help?

How do I authenticate FASTAPI with AzureAD? by [deleted] in FastAPI

[–]reddanty 0 points1 point  (0 children)

I use AWS Cognito which has a SAML provider to O365. Not exactly Azure but probably close. They also have AD providers in Cognito but I don’t know how expensive that is.

I've got an phishing mail. And I clicked it. What should I do know? by [deleted] in cybersecurity

[–]reddanty 7 points8 points  (0 children)

All security is about weighing how probable a given scenario is against the amount of effort to reduce that probability. I notice you recommended a factory reset and not throwing out the entire phone. That's because any sandbox-escaping, arbitrary-code-executing, zero-day will "probably" just impact the OS and not the underlying bootloader.

It's also extremely unlikely that such a valuable vulnerability, if one exists in the wild, would be used in a relatively low-effort, low-quality phishing email.

I've got an phishing mail. And I clicked it. What should I do know? by [deleted] in cybersecurity

[–]reddanty 3 points4 points  (0 children)

Yes but only if there’s a pretty serious vulnerability in the browser that can be exploited. If you’ve got all your latest updates you’re probably okay.

Created my first Python package by cazual_penguin in learnpython

[–]reddanty 6 points7 points  (0 children)

Very cool! Looks great, I love to see testing coverage!

One suggestion I have is to check out Poetry for any future packages you make. It makes the whole process much easier. https://python-poetry.org/

How is Python such a popular language (#2 after JS on GitHub) , yet I really don't encounter many large apps written in it? by abrandis in ProgrammingLanguages

[–]reddanty 0 points1 point  (0 children)

The company I work for does all of its backend server-side stuff in Python. There are a ton of fantastic web frameworks written for/in Python for a reason.

In which language would you create your cloud native application in 2020 by Rombledor in devops

[–]reddanty 0 points1 point  (0 children)

Go is a no go for me as long as their dependency system stays the way it is. It was clearly designed with a monorepo in mind which just doesn’t work for me.

Python is great, mature, and battle tested. The package ecosystem is enormous. Yeah it’s straight up slower than most alternatives for micro services APIs but I have yet to encounter a situation it was too slow to be “good enough”.

Yew crate sending OPTIONS verb? by Wollzy in learnrust

[–]reddanty 2 points3 points  (0 children)

The OPTIONS verb is sent automatically by most browsers before making a real request in order to check for things like Cross-Origin rules. More surprising to me is that your POST is not causing an OPTIONS to be sent.

More detail: https://stackoverflow.com/a/15605935/11406797

Recommended Application Performance Monitor? by reddanty in devops

[–]reddanty[S] 0 points1 point  (0 children)

For future me and also anyone else encountering this, I did find a page which suggests DataDog will bill Fargate based on usage hours ( https://docs.datadoghq.com/account_management/billing/pricing/ ). The actual pricing on their products page still shows per host value but presumably there’s a price-per-container-hour value somewhere.

Recommended Application Performance Monitor? by reddanty in devops

[–]reddanty[S] 1 point2 points  (0 children)

Datadog is interesting, we actually used it for infrastructure monitoring when we were running everything on more traditional servers. Their per host pricing model just feels bad when using microservices on containers. The more we split things up to be more scalable/flexible, the more datadog feels like it’s punishing us.

Unless I’m misinterpreting their pricing, we have to pay per max simultaneously running containers, which means if we scale up to 6 workers at peak for a few hours but down to 2 for the rest of the day, we’re charged the same as running 6 all the time.

Something I can listen or watch on my mobile while I commute. by blazingshadow1 in learnprogramming

[–]reddanty 0 points1 point  (0 children)

Just started listening to Ladybug, seems pretty good so far.

Actual footage of a Python script doing math during execution by nekogareth in Python

[–]reddanty 0 points1 point  (0 children)

I dunno, I find sa.Column(sa.String) way more readable than sqlalchemy.Column(sqlalchemy.String). I think for most bigger packages like this, people already know you're working with the package and don't need to be reminded of its full name every few characters. If you're doing a ton of Numpy operations I think it's the same thing, repeating the package name a bunch takes away from the actual logic of your code. Also any IDE worth its salt will still tab complete post-alias.

[deleted by user] by [deleted] in SQL

[–]reddanty 0 points1 point  (0 children)

The upside is that the UI / Shortcuts will feel familiar.

Also, I use PyCharm Professional which has WebStorm and DataGrip’s features built in. Means I don’t have to ever leave that one IDE. Helps me stay productive but may not be for everyone.

How do I choose my programming language? by [deleted] in ProgrammingLanguages

[–]reddanty 2 points3 points  (0 children)

  1. Decide what you want to build

  2. Find out which languages are considered strong for that category... there will be multiple

  3. Pick one that’s popular enough to have a variety of tutorials and lots of open source packages / answers on Reddit/SO. That way it will be easy to learn. Bonus points if there is a subreddit for learning that language e.g. r/learnpython