News for hackers. Stuff that matters.

pg_bot

Re:Tesla Roadster on Thursday October 15, 2026 @10:27PM (#50113181)
"That wasn't flying. That was falling with style!"
Re:A PDF that changes based on how its read on Friday June 12, 2026 @10:28PM (#48512049)
Yes this is already possible. You can look up the ZUGFeRD standard for an example of how this is done for German invoices.
Re:Who Killed the Florida Orange? on Wednesday April 22, 2026 @11:28PM (#47871989)
A similar thing happened in France in the 1850s.

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

Re:Ask HN: What Are You Working On? (April 2026) on Monday April 13, 2026 @11:29AM (#47753435)
I own {{mylastname}}.com and have been making a small social network for everyone who shares my surname. (it's rare) I'm using Facebook's NLLB to translate posts to different languages since we are mainly split between the Americas and Europe.
I suspect this is true for nearly every somewhat relevant subreddit. Everything has been captured, someone has taken control of the politburo and is defining the message. I've been using the site since 2008 and within the last couple of years it feels like you cannot post anything unless you know someone.
Re:$100K fee added to H1B applications on Friday September 19, 2025 @04:32PM (#45306207)
Just make it an auction that runs every month.
Re:Hiding messages in a deck playing cards on Monday July 21, 2025 @12:36PM (#44637198)
You could also add face up or down.
We are running out of floppy disks. No one makes them anymore, and there is a finite supply of existing inventory.
Re:IMG_0416 on Sunday November 10, 2024 @04:47PM (#42102818)
"Turn roll Nate roll some little" might be burned into my brain now.

https://www.youtube.com/watch?v=WOSWZduStYs

It seems like it worked out quite well for Cloudflare. You typically only increase bounties if you aren't seeing the results you want.
Re:East and Gulf Coast ports strike on Tuesday October 01, 2024 @10:04AM (#41708592)
You need to take the long view. The United States is the only global superpower because of our economic might. If other countries catch up to us, they will start to test the waters on whether going to war is advantageous for them.

The ports play a crucial role in wealth generation for the USA. If other countries are able to ship goods cheaper and faster than us, more industry will be transferred overseas. This creates a vicious cycle where industries that exist due to agglomeration slowly decay. Being able to move a container 1000ft is the limiting reagent for entire economies. Buy the unions off and automate it. Everyone only cares about a relatively small amount of money compared to how much is moving through the system.

Re:East and Gulf Coast ports strike on Tuesday October 01, 2024 @09:24AM (#41708057)
The port would not be run by the federal government. Pass an infrastructure bill that funds port automation and gives a healthy wage for ~30 years to any longshoreman who is either automated or wishes to leave. Give them 150k per year with no contingencies.
Re:East and Gulf Coast ports strike on Tuesday October 01, 2024 @09:18AM (#41707979)
The federal government should buy out the union
Re:East and Gulf Coast ports strike on Tuesday October 01, 2024 @09:08AM (#41707870)
From a national security and economic perspective we need to automate the ports.
It's approximately one kilometer.
A mile is 5,280 feet and a kilometer is approximately 3,280 feet.

If you need to do rough conversions just think of a kilometer as slightly more than 3/5ths of a mile.

https://pubmed.ncbi.nlm.nih.gov/34904207/

https://www.statista.com/statistics/825214/atorvastatin-out-...

https://www.statista.com/statistics/825187/lininopril-out-of...

https://www.statista.com/statistics/825259/albuterol-out-of-...

https://www.statista.com/statistics/825193/levothyroxine-out...

https://www.statista.com/statistics/825244/amlodipine-besyla...

https://www.statista.com/statistics/822626/gabapentin-out-of...

https://www.statista.com/statistics/825200/metformin-hydroch...

https://www.statista.com/statistics/825281/losartan-potassiu...

These are some of the most prescribed drugs in America, the trend is quite clear. Every drug except albuterol and levothyroxine has decreased dramatically in price. Levothyroxine's patent expired this year so there will be some time before prices go down. Albuterol is expensive because the inhaler had to change the propellant to remove CFCs and there is a new patent on the hydrofluoroalkanes (HFAs) that has yet to expire.

Would you rather live in the world where we don't have a solution or the world where the solution is expensive now but will eventually become cheap?
I think we're on the verge of drastically increasing survival rates for people with Glioblastoma. It's an extremely aggressive form of brain cancer with an estimated average survival rate of 8 months and a 5 year survival rate of 6.9 percent.

I've been following the case of Dr Richard Scolyer who is using himself as a guinea pig to treat his own Glioblastoma. He and Dr Georgina Long created a plan based on their expertise in treating melanoma. So far the results have been fairly spectacular as his brain scans have shown no recurrence over a year after his diagnosis. I hope one day that they both share the Nobel prize in medicine.

https://x.com/profrscolyermia

https://x.com/ProfGLongMIA

There are many situations where renting is advantageous to owning.
Re:Database Design for Google Calendar: A Tutorial on Tuesday July 23, 2024 @07:53AM (#41045009)
In practice performance problems are a nonissue. Your API should consist of start time and duration because that is how people think about appointments and meetings. (An hour long meeting starting at noon) It's a pain to write a UI that updates two pieces of information when one piece of information changes. If you are truly worried about query performance you can denormalize the data before saving by storing start/end times as a datetime range field, but it still makes no sense to expose that in your API.
Re:Database Design for Google Calendar: A Tutorial on Tuesday July 23, 2024 @06:06AM (#41044411)
You don't want to store two dates for an event. It's easier to store the start time of the event and a duration for the event. This will make the logic for updating your events simple. You can always calculate the end time of the event based off the start and duration.
Re:Gold Recovery from E-Waste by Food-Waste Amyloid Aerogels on Thursday March 07, 2024 @01:04AM (#39625535)
I think you could extract Vanadium from seawater by farming sea squirts.

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

Re:Elixir Nitpicks on Wednesday February 07, 2024 @09:45AM (#39289166)
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.
Typical ten ply article. Every level of politics comes with strong feelings from all sides, get over it.
Re:Lithium-ion battery pack prices hit record low on Thursday December 14, 2023 @04:16AM (#38639406)
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.

Older »