Better HN
topnewbestaskshowjobs
Log inSign up

pg_bot

5,090 karma · joined Jun 24, 2011 (15y ago) · 1,005 submissions

Technical founder at scalpel.com. We make practice management software for primary care clinics and run a clinic in Greenville South Carolina.

tom [at] scalpel.com

Submissions

comment 2y ago · link · parent

The following code could be written much better by using the cond operator.

    with {:is_email, true} <- {:is_email, is_email_address?(email)},
         {:is_available, true} <- {:is_available, EmailAddresses.is_available(email)} do
      ...
    else
      {:is_email, false} ->
        {:error, :bad_request}

      {:is_available, false} ->
        {:error, :conflict}
    end

    cond do 
      !email_address?(email) -> {:error, :bad_request}
      !EmailAddresses.available?(email) -> {:error, :conflict}
      true -> {:ok, email}
    end
This gets rid of unnecessary duplication, and I think is easier to understand.

comment 2y ago · link · parent

Context for those out of the loop.

https://www.cnbc.com/2024/01/30/tesla-shares-slide-after-jud...

comment 2y ago · link · parent

Saving money. If it is cheaper to generate your own power, a lot of people are going to do it. Practically speaking, you would probably still need (and pay for) a connection to the grid but just not need to use it. This isn't a reject society and live alone in the woods kind of appeal. You are going to be spending money on power for the foreseeable future, why not minimize that expense if you can?

Also in developing countries where there isn't a reliable power grid, would you just skip that step entirely? I know some places in Nepal where they have daily rolling blackouts and it is extremely annoying.

comment 2y ago · link · parent

I'm trying to think of the second order effects of solar and battery storage if it becomes cheap enough to run your entire house without the grid. Wouldn't it make sense to design houses with DC power from the ground up? Why go through the inefficient inverter if you are generating DC from a solar panel and using DC power internally in all of your appliances?

Assuming $3-5 per watt fully installed and a 6 kWh solar panel array. Plus and additional $10k worth of batteries, you should be able to run most houses 24/7/365 off solar power. So a $40k investment should be around what you need to generate all the power for your home for ~25 years. (Assuming you average 30 kWh used per day) This is pretty close to being a no brainer for certain areas of the country with high electricity prices. (California, Hawaii)

comment 3y ago · link · parent

I've never been able to get this feature to work on iOS.

comment 3y ago · link · parent

Meilisearch seems like it is the best open source option.

https://www.meilisearch.com/

comment 3y ago · link · parent

RIP to Mr Belser.

I hope that we can add nutrition labels to alcoholic beverages in the near future.

comment 3y ago · link · parent

If you can get refrigerant to a lower temperature than -10, you can still grab heat from the outside environment thereby heating your house.

comment 3y ago · link · parent

If you're traveling as fast as voyager 1, it would take over 2 million years to get there.

comment 3y ago · link · parent

There is a company called Niron Magnetics based out of Minnesota that looks promising. They are making an Iron Nitride magnet that supposedly is better than neodymium. Since it's made out of iron and nitrogen it should also be a lot cheaper to produce.

comment 3y ago · link · parent

It's honestly not that hard. Given that both parties are serious about working together, even considering rescinding a signed offer is ridiculous. There aren't many reasons why a company could legitimately back out of an employment contract, and those can be added to the fine print. If the company want to be protected against potential criminality or an injury that would cause you to be unable to perform the duties of the job you can write that into the contract.

Everything is negotiable, you just have to ask.

comment 3y ago · link · parent

If you negotiate an employment contract make sure that there is some sort of break up fee in case a company tries to pull this sort of nonsense on you. There's no reason why someone should be able to upend your life without due compensation. Accepting a job offer is not something that is done on a whim for most people, so it should be fairly easy to add in a clause that states "If this offer is rescinded for any reason after it has been signed by both parties, {{COMPANY}} agrees to pay 9 months of the negotiated salary to {{EMPLOYEE}}"

comment 3y ago · link · parent

There are a couple of operators who seemingly have a decent amount of money but are atrocious at running businesses. Radioshack's previous owner Retail Ecommerce Ventures has the reverse Midas touch. It shouldn't be surprising that trying to transform into a crypto hub fell flat as they were two years too late to the game and all of the smart money has left that market entirely.

I don't see much value in the brand anymore. The only pivot I could see is switching to an online only store, but even then you're competing against the entire internet for selling commodity parts. This does not seem like the most profitable use of money for investors. It's ok to let it die.

comment 3y ago · link · parent

I think the limiting factor on this type of turbine is the material you use to make the disks. As the disks get bigger the rotational stresses increase. To be practical the stress induced would need to be below the ultimate tensile strength of the material. Since these turbines need to spin at extremely high rpms and need to be fairly large to be efficient, there's no practical material that they can be made of.

comment 3y ago · link · parent

There's absolutely no reason for benzos to be over the counter. They're extremely addictive, can have really bad side effects and contraindications, and can be fatal during withdrawal. You should be under the supervision of a physician if you're taking them.

comment 3y ago · link · parent

https://en.wikipedia.org/wiki/Triflyl_group

comment 3y ago · link · parent

Price is $3,499. Who is this product for?

comment 3y ago · link · parent

digical sounds better

comment 3y ago · link · parent

Hyper heat are typically 5-10% more expensive than regular heat pumps.

comment 3y ago · link · parent

Hmm you should've only needed a 3 ton unit for that amount of square footage and those cost about 2-5k. Was there some other kind of work that needed to be done that you aren't mentioning? You should've seen prices around 8k for the unit plus installation.

comment 3y ago · link · parent

Too difficult/expensive to ship stuff

comment 3y ago · link · parent

There are a few local activists who have been staunchly opposed to spacex expanding into the Boca Chica area. I find it perfectly reasonable that someone would not want a rocket company in their backyard, however if you are going to be launching things into space you are somewhat geographically limited. You want to be as close to the equator as possible to take advantage of the faster rotational speed of the Earth and you want to have an ocean to the east in case there is an accident so that debris doesn't hit anything on land. The area should ideally be relatively remote so that testing doesn't cause too much of a disturbance, but populated enough so that you can get supplies and workers. This leaves you with two options if you want to launch spacecraft in the united states, south Florida and south Texas. There really aren't any other options if you want to be as efficient as possible.

comment 3y ago · link · parent

If this were the music world, Lichtenstein would be drawn and quartered by the legal system. These are nearly identical works and even a moron in a hurry would think that they were by the same person.

comment 3y ago · link · parent

Look at basalt fiber, similar properties to carbon fiber but much cheaper.

comment 3y ago · link · parent

You need to buy time. Right now your biggest priority is to stop losing money. Can you cut expenses or staff? Can you raise prices without losing all your customers? Can you get more customers? You need to act as if financing will not be available to you, because in honesty it might not be.

If you don't figure this out within the next few weeks, you will find yourself without any options and will need to either close the company or take whatever lowball offer you can get.

comment 3y ago · link · parent

One thing that also should be pointed out is the race gap in medical outcomes. When you look at the statistics Black Americans face a higher risk of stroke, heart attacks, cancer mortality, infant mortality, maternal mortality, HIV/AIDS, diabetes, pneumonia, etc. In almost every leading cause of mortality in the United States there is a significant gap between Native Americans and Black Americans and the rest of the population.

My sense is that there is a combination of culture and poverty that is causing this gap to occur. Poverty doesn't seem to be the sole cause IMO (although it's probably the biggest factor) because white people and asian people experience similar levels of poverty but asians live way longer.

comment 3y ago · link · parent

You totally can do that, it's not illegal! Schenck v. United States is a pretty odious court case I wouldn't want to be on the censor's side in that one.

https://www.theatlantic.com/national/archive/2012/11/its-tim...

comment 3y ago · link · parent

In theory a restaurant that is over capacity and catches on fire should be able to have everyone exit without death or injury. In practice, people panic and act in their own self interest leading to disaster.

comment 3y ago · link · parent

It's not a straw man to call this a prisoner's dilemma. The bank went from well respected institution to receivership in approximately 24 hours. 42 billion dollars worth of deposits was taken out of the bank. In the amount of time it would take to coordinate everyone (assuming they would even cooperate), someone else would've beaten you to the punch and removed their money. Every additional person that has made that decision puts you at risk of holding the bag. I do not fault any of the VCs who requested that their portfolio companies pull their money out. They saw the writing on the wall and were trying to protect themselves, the companies they invested in, and their LPs.
12345
34