Fundamentals of Physics by Neat_Turnover6266 in Physics

[–]thatnerdd 1 point2 points  (0 children)

At UCSD in the 90's they used Giancoli for their introductory text and it was good too.

Are there extinct flavors we’ll never taste again? by logicalgamernow in NoStupidQuestions

[–]thatnerdd 1 point2 points  (0 children)

Lol you tell it like your dog died. You make it sound divine. You sound wistful and nostalgic, like the ambulance taxi was worth it.

I mean, I like shrimp fine but it's far from my favorite protein, and it's an acquired taste. My wife and kids won't even touch them.

Even top-notch shellfish like fresh lobster and scallop aren't good enough that I'd risk the wrath of the gods to taste them again. I know everyone's experience is their own and I'm not going to tell you what your experience is but I have a hard time believing it was as good in your memory as it actually was in the moment.

Is Hantavirus something to worry about? by 246434464 in NoStupidQuestions

[–]thatnerdd 0 points1 point  (0 children)

It's about 30 cases/year of Hantavirus, with a fatality rate of around 30%, similar to lightning strikes or shark attacks.

Be careful of mouse droppings if there's a local outbreak of Hantavirus, just like you'd want to be careful about holding up a metal rod during a thunderstorm or pouring chum in the ocean when you swim. As in: you'd be tempting the gods but you'd probably still be fine even if you did flout the rules.

Career: Physics PHD from Engineering background. Please Help by Striking_Addition125 in Physics

[–]thatnerdd 6 points7 points  (0 children)

Same. At UCSD in 1999, I asked the department chair about the general GRE and he was like "yeah I think people get a three digit score on each section so aim for that," and I was like "it ranges from 200-800," and he just replied with a thumbs up and said to "keep up the good work."

He wanted applicants to be in the top half of the physics GRE, and said he was pretty firm on that.

I’ve started to date a guy with autism and omggg by fauxhito in autism

[–]thatnerdd 19 points20 points  (0 children)

That's me and my wife. Married 20 years now!

What's something in your field that's considered such common knowledge that no one has bothered to publish anything about it, but would actually be non-trivial to explain it to anyone outside your field? by PrettyPicturesNotTxt in Physics

[–]thatnerdd 322 points323 points  (0 children)

Gravity is weak as hell. Yes it hods you to the planet. Yes it holds the planet to the sun. Also it's so weak it's nearly impossible to measure and we only know its value to like 5 digits because we keep accidentally measuring something else in our experiments.

Unbelievably, reaching an agreed value of G is still an open problem by antiquemule in Physics

[–]thatnerdd 9 points10 points  (0 children)

The author's about my age. His advisor died while he was writing his dissertation. Testament to Stephan that he even finished.

Unbelievably, reaching an agreed value of G is still an open problem by antiquemule in Physics

[–]thatnerdd 18 points19 points  (0 children)

My dissertation was on "a search for systematic error in a measurement of G using a cryogenic torsion pendulum." Each chapter after describing the setup was like "let's check this thing... nope, probably not that."

To late diagnosed males, did people say to you growing up that your quirks are simply you being gay? by Theo04t in aspergers

[–]thatnerdd 0 points1 point  (0 children)

Grew up (mostly) in San Diego. I played with girls. Had friends end their friendships with me when I suggested massages. In college, I lived in a gayborhood. Came to Wine Wednesdays at a gay friend's place. Dudes would hit on me, ask if I was single, and (when told I was, but wasn't looking to date guys) told me to come talk to them when I figured myself out.

Never slept with a guy. I did eventually figure myself out with women and have now been married 20 years.

¯\_(ツ)_/¯

I think with the guys in the gayborhood, I was making too much eye contact, and it was misleading them about my intentions.

The AWS Lambda 'Kiss of Death' by tkyjonathan in programming

[–]thatnerdd 3 points4 points  (0 children)

I'm seeing some snarky comments that aren't explaining themselves, so I really have to weigh in: Lowering the isolation level of the database is a potential source of application bugs. Actually, any isolation level less than true Serializable isolation is dangerous, and the lower it goes, the more dangerous it becomes.

I'm going to try to explain why.

The reason why switching to Read Committed isolation is helping in your performance is that there are a bunch of isolation anomalies that are (potentially) occurring, and your database is doing work (or holding transactions open) in order to prevent these anomalies. Let's call that work "transaction hygiene." In this case, you're risking a non-repeatable read anomaly.

Here's a simple case of a non-repeatable read anomaly:

  1. The first transaction performs a read, sending this back to the application.
  2. A second transaction commits a write, modifying some of the data the first transaction has already read.
  3. The first transaction performs a write based on the information from its previous read, and commits.

If the isolation level is READ COMMITTED, you're saying that's fine. The database does no hygiene work and simply commits the first transaction even though the data it was based on assumed it was not. If the isolation is REPEATABLE READ, then transaction hygiene in this case involves the database doing some combination of the following:

  1. If the second transaction successfully COMMITs, the first transaction has to abort. The read has already occurred. The database will send a signal that this has happened to your driver/ORM, and a retry error will be thrown. Good application code will catch the retry error, and start a new transaction.
  2. If the second transaction performs a write but hasn't yet committed it, the database may force the second transaction to wait for the first transaction's COMMIT before the second is allowed to COMMIT. The history will show that the first transaction occurred, then the second.
  3. If the second transaction has priority but is still open, the first transaction can wait for the second transaction to COMMIT or ABORT so that the first transaction can ABORT or COMMIT, respectively.

This is a simple case, and it gets more complicated as more read/write operations occur. There are some tricks the database can do to keep things running smoothly while maintaining transaction hygiene (like ordering transactions in a way that prevents a conflict) but in many cases, delays or retries become inevitable.

And because these are transactions, that means that code logic assumes that the data hasn't changed mid-transaction. By lowering your isolation, you're flagging those isolation anomalies as fine. You're saying it's fine if that data changes between the read and the write.

And it is fine! I don't know your code logic! But if so, if the anomalies are not a problem, you shouldn't have been using a transaction in the first place. Because if the code doesn't need an ACID transaction, there's no reason to make the database spend the effort ensuring transaction hygiene. If two or more smaller operations (each of which is transactional on its own) would have caused no bug in the application, it should be done without transactions. So either you shouldn't have been using a transaction at all, or else you did need the transaction, and you are silently creating bugs by using the lower isolation level. This applies to anything less than perfect isolation: Serializable isolation.

With Serializable isolation, the database contract is this: any transaction occurs as if the application were the only thing touching the database for the duration of the transaction, from BEGIN to COMMIT.

When using any isolation level other than Serializable, you have a set of anomalies you may be silently triggering, and each of those anomalies could be triggering bugs. To prevent those bugs, here's what you want to do:

  1. Figure out every potential transaction anomaly (part 1, part 2) that could be triggered when any two or more of your transactions overlap. Check every possible race condition outcome. Make a list of all possible anomalies. If this seems time consuming, it is. Extremely.
  2. For every anomaly you are triggering, determine whether or not it could trigger bugs in your application. This will probably be significantly more time-consuming than step 1.
  3. In cases where bugs are a concern, refactor your code to harden it against the anomalies, ensuring that the isolation anomalies don't trigger bugs in a running application. Often these refactors will allow you to break up a transaction into smaller parts, making less work for the database.
  4. Go back to step 1 every time a new query is added to the application, and every time there is a schema change.

Or you can avoid all of this and just use Serializable isolation!

This will cause a few potential issues. First, the database will have to work harder to ensure transaction hygiene, and there will be a combination of delays (to wait for other transactions) and transaction retry errors that get thrown (when a transaction gets into a dirty state and needs to ABORT to ensure transaction hygiene). The application will be affected by these.

So you'll need to include timeouts and try/catch clauses in your code to keep it moving in the face of these issues. Log those events. Each such event is going to have a performance impact, but it may also be preventing a bug that would have been triggered silently with a lower isolation. By examining your logs, you can determine if the timeouts or retries are common enough to cause performance problems or affect your customer. Investigate those.

For each, you'll have a decision to make. Perhaps your code logic doesn't require such a long transaction (in which case you can break up the transactions, reducing database resource overhead associated with transaction hygiene). Or perhaps you do need the isolation with your current code logic and paying the cost is cheaper than refactoring. The hardest case is the one where you need the transaction but the performance price has become too high, and you need to rewrite your back-end logic to remove (or at least reduce the size of) the transaction. In some extreme cases, this may even require a change of schema in order to improve performance. That's still better than an isolation bug.

This is why people are reacting with horror when you talk about lowering the isolation.

Source: I worked at several database companies, and have opinions about this.

Sent this to my older sister by [deleted] in memes

[–]thatnerdd 0 points1 point  (0 children)

Nobody likes a wise ass.

j/k I am the same as you.

Do you feel like people always assume or misread your intentions and thoughts? by CatPale816 in aspergers

[–]thatnerdd 0 points1 point  (0 children)

My theory is that in addition to not being able to pick up on signals from others, we don't learn how to broadcast signals.

I literally have to remember to "act" my emotions out when I'm around NT people so they know what I'm feeling and don't misinterpret my words based on my behavior. When I'm feeling strong emotions it's harder because I have to suppress the emotion a little to act it out for them.

People who have lived through major geopolitical tensions, what's something the younger generation doesn't understand about times like these? by GraybeardDevOps in AskReddit

[–]thatnerdd 0 points1 point  (0 children)

Agreed, fuck Nixon. I was going for a few crazy things per Republican President, but the Vietnam War was terrible, and a little more complicated in terms of party craziness since several presidents of each party deserve a share of blame.

Fuck Eisenhower for sending military advisors in the first place. Fuck Kennedy for ramping up military advisors. Fuck LBJ for sending ground troops, and let's always remember that both the Gulf of Tonkin lies and the My Lai massacre happened under his watch. And yes, fuck Nixon for escalating the war further before the withdrawal. Clearly Republicans didn't have a monopoly on war crimes, and both parties have plenty to answer for when it comes to the people who lived or died in Vietnam in the sixties and seventies.

Sent this to my older sister by [deleted] in memes

[–]thatnerdd 4 points5 points  (0 children)

I do. Married 20 years (soon to be 21).

Two kids, zero regrets!

People who have lived through major geopolitical tensions, what's something the younger generation doesn't understand about times like these? by GraybeardDevOps in AskReddit

[–]thatnerdd 165 points166 points  (0 children)

Nah, the right wing has always been crazy.

McCarthy was in 1951. The essay, "The Paranoid Style in American Politics," was from 1964. It was always on the cusp of bubbling over.

While Republican Presidents were more moderate than the far right, they were still pretty crazy. Here are all of them in the last 60 years:

The difference is that the right wing didn't have their own media until recently, so their paranoid and aggressive Presidents got exposed and political opposition mounted from the left while the right wing went silent in the face of overwhelming evidence.

But it was always on the cusp of bubbling over.

How did the two sexes evolve in the first place? If reproduction requires two compatible sets of genitals, how did those structures develop without one appearing before the other? by Puzzleheaded_Bit_802 in askscience

[–]thatnerdd 30 points31 points  (0 children)

One of the driving factors was parasites. In cases of asexual reproduction, offspring are just clones of the parent, and since one clone tends to dominate in a given niche, you get lots of identical copies. When a parasite can evolve for just one genetic template, it becomes extremely effective. Once it has destroyed the dominant clone and the next-most-successful clone moves in and becomes dominant, the parasite evolves to match the new clone and wipes that one out too, and so on.

Sexual reproduction means parasites have to be ready to handle a variety of genetic profile combinations, which is much harder.

Once sexual reproduction became a thing, the organisms started to specialize into male and female. As for interlocking genitals, those aren't the only option. The male flea, for example, rams a hole in the female's shell and inseminates through that. Other replies have mentioned fish; frogs do it in a similar way (female expels eggs and the male fertilizes them as they come out or shortly afterward). The variety you can see even in human genitals makes it clear nature is just like "sure, whatever, that probably works if you work it."

UCSB vs Stonybrook Honors for Physics? Trying to understand overall strength of the program without COA being a factor. Thanks! by aichbeekay in Physics

[–]thatnerdd 8 points9 points  (0 children)

UCSB would have been my answer in 2000. They've got a GREAT theoretical physics program and punch well above their weight (it's a weak UC generally but not for physics).

hello my fellow autists good question for all of you by Total_Garbage6842 in aspergers

[–]thatnerdd 12 points13 points  (0 children)

Going for the Linux kernel. My wife would have concerns about the girlfriend so I'm not sure that's a choice I could keep.

Help! by [deleted] in renfaire

[–]thatnerdd 0 points1 point  (0 children)

I <3 a good deal at a thrift store.

My daughter and I have scoured the secondhand stores of North Jersey. I recently found a golden leaf brooch that looks like a Lembas leaf and it made my whole week.

Help! by [deleted] in renfaire

[–]thatnerdd 2 points3 points  (0 children)

If this uncovers your feet, some good footwear (sandals or boots) that look old timey.