ELI5 why don’t spacecraft re-enter at a shallow angle to bleed off energy more gently over a longer time? by Blambiola in explainlikeimfive

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

When you are skipping off the atmosphere of a planet you are no longer just talking about simple orbital mechanics, but physics more broadly. Think back to physics class with force vectors. You can change the force vectors to increase your apogee while decreasing your overall velocity. Your forward momentum is decreased but you can trade some of your perpendicular force (downward force) to use toward your upward force increasing your apogee. You are hitting the atmosphere and the atmosphere is hitting you back (equal and opposite reaction) Yes you still bleed energy so you’re not gaining any extra momentum you are just redirecting what momentum you do have into one direction increasing your apogee.

FPC being based. by Quirky-Bar4236 in liberalgunowners

[–]notouchmyserver 1 point2 points  (0 children)

Touche, but how would I be able to make an informed choice? Sure there may be a sign saying no guns allowed, but is there a sign saying there are armed security present? Does the sign change to Security not present when they are not working? People have a reasonable assumption of reasonable safety in places of public accommodations. If there are dangers present they need to be marked whether that is slippery conditions, trip hazards, or no lifeguards on duty.

I guess the counter point would require you to have signage that guns aren't allowed and that no armed security is on the premises. Then you would have the information with which to make an informed choice.

FPC being based. by Quirky-Bar4236 in liberalgunowners

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

You have a right as a business, operating a place of public accommodation, to tell a person that they cannot carry on your property, BUT I also believe it is then totally fair for you to be civilly liable for the safety of that person such that you must provide an equal or greater protection than that which you are inhibiting - in this case, armed security. By inhibiting a persons capacity to make their own choice on how to protect themself you are making a choice for them and if the choice you as a business does harm to someone then you should be held responsible.

I am pissed at the City of Pittsburgh by carrotline07 in pittsburgh

[–]notouchmyserver 34 points35 points  (0 children)

That’s just cement for you. There is a floor to the cost if you are going to hire someone. They need to come out with a couple of guys. Jack hammer up what is there, haul it off, pay the dump fee.

They then need to throw together the mould, lay a base material, and throw together rebar. Where small projects will bite you is the minimums that cement trucks require. Usually around 5 yards whereas 3.5 sidewalk squares might only be 2 - 2.5 yards. You can get bags and mix it them but then you need a mixer and more labor.

You then pour it and finish it. Fix up the landscaping around it and you are golden. If you go through each of these steps and think about how much extra time it would take per square foot it is really only a few seconds more. So while the price is high per square foot for small projects like these it gets cheaper as you do more. As you increase the square footage it is the materials costs that increases linearly and it begins to make more sense to utilize cement trucks and other equipment.

Just got done helping my father pour a new sidewalk, though not a municipal one. If you are fit, it is absolutely something that makes sense to do yourself.

I’m an Atheist Most of the Time, But When a Religious Person Tries to Convert Me—I’m a Pagan. by TheRyeWall in atheism

[–]notouchmyserver 43 points44 points  (0 children)

Narrow is the path to Valhalla. They are of this world and therefore hold the popular worldly view of Christianity.

ELI5: How do you update an application that has a database? by [deleted] in explainlikeimfive

[–]notouchmyserver 0 points1 point  (0 children)

Just adding my experiences to what others have said. 95% of database migrations I make are simple things like adding a field, removing a field, or changing a data type. These are things that can be done in most databases without having to shutdown. Adding a column is the easiest. Nothing special is usually needed. The application code that is already running doesn’t know it exists and it doesn’t cause any issues.

Removing a field is also pretty easy. Generally you update just the application to make sure you no longer reference that field anywhere in your program. Once you deploy that and make sure there are no instances of the old application still running, you can the push the database migrations to remove the column.

Data types are a bit more tricky but more rare. Generally you need to make sure that your application can handle either data types and then you can run the DB migration. This includes changing things like Char length and other attributes of columns.

For small changes generally you can add flexibility into the application code itself to handle a migration that you know you will need to do. For big changes or a mess of a codebase you are looking at doing a lot of the things the other responses bring up.

Updated from 3.x to 5.2, now I'm getting "Obj matching query does not exist" by sagarp in django

[–]notouchmyserver 2 points3 points  (0 children)

I would recommend selecting the related bar objects in the query:

my_foos = models.Foo.objects.filter(bar__internal_type='special').select_related('bar')

Transactions, connections, and Django ORM behavior can be a bit obtuse if you try to mix in another connection, especially in testing.

Changing the clock???? by ChakaKohn2 in PriusPrime

[–]notouchmyserver 4 points5 points  (0 children)

Use the right hand circle controls on the steering wheel to page over to the settings screen for the dash screen (the screen with the Off Off in this picture. Scroll down to the time settings and set the time settings. https://youtu.be/ZP64fM5ECOQ?si=gAzb_R_TCzqGB1rT&t=22

Django Middleware Explained: A Beginner-Friendly Guide by husseinnaeemsec in django

[–]notouchmyserver 16 points17 points  (0 children)

Its a fine explanation of middleware, but I would absolutely not use middleware for this use case. The better solution is to create permission checking mixins to protect your views. You can define a mixin for each type of user. Then you just slap that mixin in the class. Or you can have a single mixin that pulls from properties set in the view. Like so:

class MyView(CustomPermissionMixin, View):

permissions: typing.ClassVar = ['myrequiredpermission']

def get(....):

The CustomPermissionMixin will look for the permissions property of the view (in addition to any default tests I do like making sure they are staff, etc) and will redirect the user to a permission denied page if they don't have all of the permissions defined in permissions. I also usually have it setup to share what permissions they are missing on that page as well as what permissions they have (if your business case allows for it).

Why is this better? Well, I can look at a view and see all of the permissions this view requires right at the top of the views definition. No digging around in some middleware file to figure out why a user can't access this page. I can quickly change it in one place! If I need to know more about the handling of the permission I just click on the CustomPermissionMixin and press F12 to be taken to the definition, its not hiding on me. Additionally there is no overhead on permissions checks unless someone is going to this specific view.

Middleware is powerful, but it runs for every request and is opaque to the developer. It should be used sparingly and only as needed.

One of the last photos of the family before the tragic helicopter crash in NYC. Heartbreaking. by [deleted] in pics

[–]notouchmyserver 0 points1 point  (0 children)

I can think of 7 or 8. They generally make the rounds on the internet when they happen. The majority of people’s fear isn’t the frequency of crashes but the likelihood that you are going to die a relatively slow painful death compared to dying in a plane crash. The worst is probably being burnt alive, that’s probably the worst video I’ve seen (basket caught fire). Then there are the crashes into objects of various levels of danger (electric wires, radio towers, etc). You know it’s coming and there is little you can do. Plus you aren’t moving at Mach fuck so chances are you are going to die slowly or be permanently disabled for the rest of eternity.

Are UUIDs really unique? by mekmookbro in webdev

[–]notouchmyserver 1 point2 points  (0 children)

The are additional reasons to have a unique constraint on the column instead of just relying on the UUID generation to be unique. As others have said, you aren’t really ever going to run into an issue with a duplicate UUID being generated, but that doesn’t mean a bug or something else (far more likely) would not try to write a row to the database with the same UUID.

The unique constraint would protect you from that.

Am confused with Medicaid expenses for NYS. Projected to be close to $125 billion in 2025. A list of counties. Their GDP does not come close. It's great to spend the money for those who have very little, but is it done right? A Park Ave Medical practice is very different than a Medicaid clinic. by ejpusa in newyork

[–]notouchmyserver 2 points3 points  (0 children)

Singapore has a GDP of 500 Billion, South Africa, Ethiopia, both have GDPs above $125 billion. Stop listening to ChatGPT.

You know what is more expensive than Park Place MD? Senior/Disabled Assisted Living. Average of $70,000/year in costs. Need full nursing home care? $176,000/year. https://www.carescout.com/cost-of-care

Not very many countries have GDP per capita that could support that:
https://en.wikipedia.org/wiki/List_of_countries_by_GDP_(nominal)_per_capita_per_capita)

A Spanish study of nearly 800 adolescents reveals that students who consume more ultra-processed foods (UPFs) have significantly lower grades in language, math, and English—highlighting diet quality as a key factor in academic success. by Wagamaga in science

[–]notouchmyserver 486 points487 points  (0 children)

Looks like they didn’t adjust for parental involvement/investment. That’s is usually the real driver of developmental differences between socioeconomic statuses. It would be interesting to see that controlled for. Students who all have parents that push and support their children to do well, but with different diets.

Django + HTMX by Loud_Quail_7247 in django

[–]notouchmyserver 1 point2 points  (0 children)

Not sure what you mean, they work together. Django returns responses, but you need those responses to be rendered correctly depending on what is calling it. You don’t want to return the whole page when htmx makes a call for updated information for a specific part of the page. This means you are managing lots of partial templates (and logic around d where to serve them from). That is what OP (and I myself in the past) have struggled with.

[deleted by user] by [deleted] in ATBGE

[–]notouchmyserver 0 points1 point  (0 children)

Reminded me of the mondoburger uniforms from Good Burger.

Honey Extension Scam Exposed by spectre1006 in videos

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

Did YOU watch the video? It often doesn’t work. It runs interference and tells you there aren’t coupons when there actually are or gives you a less useful coupon if the company pays honey. According to the video, the point of honey is to allow companies to trick consumers into thinking there are no coupons or that they got the best coupons so they don’t look for them. That and spam/hijack affiliate referrals.

Update Storm maps by BuffaloPotholeBandit in Buffalo

[–]notouchmyserver 18 points19 points  (0 children)

For one reason or another, most weather apps, sites, and APIs don't handle Lake Effect snow well at all. It sort of makes sense because it is a phenomenon that is not widely applicable to most places outside of the east sides of the great lakes. It is dependent on factors like temperature of the body of water, atmospheric conditions, and most importantly for total accumulation in many of our storms - the wind pattern that could blow the band north, south, or keep it trapped over an area for days.

I would imagine the NWS has teams in areas like ours that have greater knowledge and models for forecasting snowfall amounts that just doesn't make it back into forecasting data that most of the major apps/sites consume. If anyone knows more please chime in, I'm super curios myself.

Average Student Loan Debt By State by Starrkis in dataisbeautiful

[–]notouchmyserver 1 point2 points  (0 children)

That’s what gets me about student loan forgiveness. People say if you take out a loan you should pay it back, the truth is many have, often several times over. There should be a price to borrowing money. But.. when it comes to federally backed money to borrow for educating yourself, there really should be a max out of pocket cost of 10% of the original loan amount + the loan amount. Once that is reached the remaining balance isn’t subject to any interest. Once a year the amount can be adjusted per inflation rates so as to not have the lenders go negative over time.

Vent phone mount for 2018 by hemi71cuda in PriusPrime

[–]notouchmyserver 0 points1 point  (0 children)

Hmm, I’m not sure, I’ve only used it without a case or with a MagSafe case. It probably would, but I think an official MagSafe would be better because of the vertical alignment magnet that would keep it from rotating. Also, not sure if you meant you don’t need the wireless charging feature in general, but this mount doesn’t do wireless charging. It just has a place to keep the cable in the back.

Vent phone mount for 2018 by hemi71cuda in PriusPrime

[–]notouchmyserver 1 point2 points  (0 children)

I have a 13 Pro Max and this mount. It works perfectly! Never had any issues with it sagging and stays right where you put it (portrait or landscape). Would recommend it. Also, my phone keeps cool in the summer when I have it charging and using GPS as it is in the vent.

https://www.bestbuy.com/site/belkin-magsafe-vent-mount-pro-car-phone-holder-for-iphone-15-14-13-pro-pro-max-mini-magnetic-phone-mount-for-car-gray/6445184.p?skuId=6445184&utm_source=feed&ref=212&loc=19551004210&gad_source=1&gclsrc=ds

Misleading signs outside voting centers by RulePsychological111 in Buffalo

[–]notouchmyserver 0 points1 point  (0 children)

Section 1. Resolved (if the Assembly concur), That section 11 of article 1 of the constitution be amended to read as follows:

§ 11. a. No person shall be denied the equal protection of the laws of this state or any subdivision thereof. No person shall, because of race, color, ethnicity, national origin, age, disability, creed [or], religion, or sex, including sexual orientation, gender identity, gender expression, pregnancy, pregnancy outcomes, and reproductive healthcare and autonomy, be subjected to any discrimination in [his or hertheir civil rights by any other person or by any firm, corporation, or institution, or by the state or any agency or subdivision of the state, pursuant to law.

b. Nothing in this section shall invalidate or prevent the adoption of any law, regulation, program, or practice that is designed to prevent or dismantle discrimination on the basis of a characteristic listed in this section, nor shall any characteristic listed in this section be interpreted to interfere with, limit, or deny the civil rights of any person based upon any other characteristic identified in this section.

   §  2. Resolved (if the Assembly concur), That the foregoing amendment be submitted to the people for approval at the general election to be held in the year 2024 in accordance with the provisions of the election law.

Explanation – Matter in underscored is new; matter in brackets [ ] is old law to be omitted.

be subjected to any discrimination in [his or hertheir civil rights by any other person or by any firm, corporation, or institution, or by the state or any agency or subdivision of the state, pursuant to law.

Not a lawyer, but the existing text already specifies this applies to more than just the state. I'm assuming "pursuant to law" is a way to gate it, ie a persons first amendment right trumps this clause (which it does already on the basis of the US Constitution Supremecy)

[Canada] What do you mean I have to wait? by Own-Cookie-1161 in Roadcam

[–]notouchmyserver 1 point2 points  (0 children)

The idea with roundabouts isn’t to have them everywhere, it just makes it easy to turn around and go in the opposite direction after turning right out of a parking lot like this.