GentriFriedRice

joined 2 years ago
[–] GentriFriedRice 11 points 1 year ago (1 children)

My favourite conundrum is the unlawful imprisonment of the unborn if the mother is in prison or jail.

[–] GentriFriedRice 4 points 1 year ago

If you're already using an esp32 why not just get a simple ultrasonic sensor and measure flow on an indoor inlet pipe? You may need to know the pressure (probably 1.7 kPa) and temperature but that should be possible to calibrate against your meter readings

Then your project just becomes a simple pipe clamp that can be indoors

[–] GentriFriedRice 14 points 1 year ago* (last edited 1 year ago) (2 children)

This just seems to be detecting if the browser is Firefox. The function is even named isGecko which is Mozilla's browser engine used by Firefox. Edge, IE (Trident) don't return true from isGecko

Unless I'm missing something I don't see where the delay is added

[–] GentriFriedRice 8 points 1 year ago (1 children)

You hardline republicans sure are a contentious people

[–] GentriFriedRice 4 points 1 year ago

I went to multiple hardware, plumbing stores, and Amazon but only found my obscure bathtub faucet to hose fitting on aliexpress for less than a dollar

[–] GentriFriedRice 5 points 1 year ago* (last edited 1 year ago)

It's not really like they are storing DNA sequences anyways. They use a genotyping array which just reads ~650k single nucleotide polymorphisms (SNPs).

An analogy would be 23andme has a 6.4mil page book of DNA for a single customer but they only know the position and letter of single character on every tenth page. Sure it's enough to identify someone (You can confidently use 50 SNPs to identify these days) but it's not like 23andme was ever storing a whole genome

[–] GentriFriedRice 26 points 1 year ago (2 children)

Atoms are binary. They are either intended to be hydrogen or helium. We can't just scrap this worldview just because of a handful of supernovae

[–] GentriFriedRice 0 points 1 year ago (1 children)

Fahrenheit is Celsius - 32 then divided by 1.8 which is not an easy conversion luckily its also 9/5ths

The trick I found out was to subtract 32 from Fahrenheit then divide by 9 then multiply by 5.

The other trick, you subtract 10% from your Celsius times by 2, then add 32 but this one doesn't reverse well because you have to add 1/9th

[–] GentriFriedRice 3 points 1 year ago

What an adorable kangaroo

[–] GentriFriedRice 3 points 1 year ago

Maslow's hierarchy of R I C E

[–] GentriFriedRice 3 points 2 years ago

Most modern websites are multiple servers with servers being a specialized computer with no screen that has all the software needed to run the website. Each of these individual computers can each show you the website but it's somewhat random as to which you will connect to when you connect with your web browser (i.e, a request). Having multiple computers able to show you the website is one way software like lemmy is designed to help reduce its load -- often termed load balancing.

To make your website be able to be split between multiple servers you must make it so that they can all access the same information (otherwise with 5 servers a user could only see the content posted to the server they are currently connected to or approximately 20% of the content.) To achieve the data sharing, all of the computers with the software for the website will connect to the same database on a different server. This makes it so all the content is shared across all servers. But now we've introduced a new bottleneck where the database must be updated or read from on every request. This is where this can get slow or even stop when the database is not able to handle all the requests. Typically, a write operation like posting or upvoting is considered more computationally "expensive" than a read operation (e.g. browsing posts or comments). We tend to measure a server's load by its slowest component which is typically data access. Database software is built by some very smart people over time and have a lot of math involved to make them efficient but sometimes software like lemmy can write data in a way that the database algorithm isn't well designed for, making it harder to read the database if you add too much information. Alternatively database software can have inefficiencies appear once enough data is entered in their database.

There is some work that can be done to make load less impactful like: having separate databases for writing and reading and/or cloning data into multiple copies of the database, or designing the way that the data is entered into the database that makes it easy to retrieve.

view more: ‹ prev next ›