News for hackers. Stuff that matters.

wazokazi

The workers sit idle for n-1 out of n time slices. As n gets larger, amount of work being done approaches zero.
I got this >>

To determine the winner, we need to calculate the time it takes for each car to complete the 100-mile race.

For Car A: Speed = 10 miles per hour Distance = 100 miles Time = Distance / Speed = 100 miles / 10 miles per hour = 10 hours

For Car B: Speed = 5 miles per hour Distance = 100 miles Time = Distance / Speed = 100 miles / 5 miles per hour = 20 hours

However, Car B has a 10-hour headstart, so we need to subtract that from its total time: Adjusted Time for Car B = 20 hours - 10 hours = 10 hours

Both cars take 10 hours to complete the race, so they tie.

Re:Testing the F-35C Tailhook on Tuesday February 27, 2024 @12:17PM (#39526639)
Was there ever any consideration given to building a "testing harness" to physically simulate the F35 landing? Something like the "dead load" testing that the EMALS undergoes. Just in reverse. Anyway, that was great read.
Re:Tesla Cybertruck Pricing and Specs on Thursday November 30, 2023 @06:30PM (#38480769)
A different comparison would be the following (from the manufacturers sites)

----

  Ford Lightning Pro: $50K
    240 Mile EPA-Est. Range – Standard-Range Battery and RWD171
    0-60 MPH in 4.1 seconds - Standard Range Battery\*
    Wireless Integration with Apple CarPlay® and Android Auto™
    12-inch Touchscreen
    Mega Power Frunk

  CT Rear-Wheel Drive: $61k
    Available in 2025
    250 MI. Range (EST.)
    6.5 sec. 0-60 mph
very similar ranges and specs, but and CT is 10k more. Also, ships in 2 years.
Re:Lex Fridman Podcast: John Mearsheimer [video] on Wednesday November 22, 2023 @03:57PM (#38384993)
Mearsheimer was prescient when he advocated Ukraine be allowed to keep a strategic nuclear stockpile in the early 90s when the US admin was pushing to disarm Ukraine, post breakup of USSR.

  The Case for a Ukrainian Nuclear Deterrent

 Most Western observers want Ukraine to rid itself of nuclear weapons as quickly as possible. In this view, articulated recently by President Bill Clinton, Europe would be more stable if Russia were to become "the only nuclear-armed successor state to the Soviet Union." The United States and its European allies have been pressing Ukraine to transfer all of the nuclear weapons on its territory to the Russians, who naturally think this is an excellent idea.


  President Clinton is wrong. The conventional wisdom about Ukraine's nuclear weapons is wrong. In fact, as soon as it declared independence, Ukraine should have been quietly encouraged to fashion its own nuclear deterrent. Even now, pressing Ukraine to become a nonnuclear state is a mistake.


  A nuclear Ukraine makes sense for two reasons. First, it is imperative to maintain peace between Russia and Ukraine. That means ensuring that the Russians, who have a history of bad relations with Ukraine, do not move to reconquer it. Ukraine cannot defend itself against a nuclear-armed Russia with conventional weapons, and no state, including the United States, is going to extend to it a meaningful security guarantee. Ukrainian nuclear weapons are the only reliable deterrent to Russian aggression. If the U.S. aim is to enhance stability in Europe, the case against a nuclear-armed Ukraine is unpersuasive.
[1]

But, he does give Putin a pass on the invasion itself. Couldn't Putin have won the desired concessions with just sabre-rattling and having a skirmish on the border instead of a full on invasion, which is slowly destroying both Ukraine and Russia.

[1] https://www.mearsheimer.com/wp-content/uploads/2019/07/Mears...

Re:Salesforce CEO goes back to being remote on Saturday September 16, 2023 @12:06AM (#37531966)
Remote is ok if your personality doesn't mesh with an office. And you are the CEO. This should do wonders for feeling of "ohana" at salesforce.
10 micron tolerance on body panels sounds like a typo. Coefficient of thermal expansion of steel is 6.5 microns/in/F. So, a 2 degrees F change in temperature will put parts over an inch out of spec. Imagine a 3 foot (36in) body panel going from a 80 degree stamping area to 75 degree assembly area. It will be out of spec by over 1000 microns!
The total cost($) vs total runtime(s) graph doesn’t look correct. Longer runtimes should cost more, so the dots should cluster in the top right quadrant.
Re:Ask HN: How to handle financial calculations precisely? on Wednesday January 25, 2023 @04:55PM (#34524699)
I would encapsulate the set of supported operations in a class along with the rounding mode and scale.

Something like: ------

   class MathOps{
    public MathOps(RoundingMode mode, int scale) {
       this.mode = mode;
       this.scale = scale;
    }
   ....

    public BigDecimal add(BigDecimal x, BigDecimal y){
     return x.add(y).setScale(scale, roundingMode);
    }
   ....
    public BigDecimal divide(BigDecimal num, BigDecimal denom) {
       return num.divide(denom, scale, roundingMode).setScale(scale, roundingMode);
     }
   ...
   }
----- You can then either create a new instance when you need to perform a math operation or just create a singleton instance if scale and rounding mode are always the same.

For financial calculations in US, I would recommend using RoundingMode.HALF_EVEN. From the docs "Rounding mode to round towards the "nearest neighbor" unless both neighbors are equidistant, in which case, round towards the even neighbor. Behaves as for RoundingMode.HALF_UP if the digit to the left of the discarded fraction is odd; behaves as for RoundingMode.HALF_DOWN if it's even. Note that this is the rounding mode that statistically minimizes cumulative error when applied repeatedly over a sequence of calculations. It is sometimes known as "Banker's rounding," and is chiefly used in the USA. "

Re:Ask HN: Transfer Large Amounts of Data on Tuesday December 06, 2022 @09:16PM (#33889935)
Take a gigabit network switch over to your friends house and connect both the machines to the same switch. Use windows to discover the shared folder on your friends computer and copy it to yours.
Re:Ask HN: Movies to Watch on a Plane on Saturday October 15, 2022 @05:08PM (#33218677)
[Snakes on a plane| https://m.imdb.com/title/tt0417148/] is a hoot!
Re:Divergent Association Task: Fast creativity test on Monday May 02, 2022 @10:45AM (#31235757)
I am an ESL speaker. That said, I did learn English at a very young age and it was the language of instruction at school.
Re:Divergent Association Task: Fast creativity test on Sunday May 01, 2022 @08:50PM (#31230233)
Your score is 97.52, higher than 99.83% ———————- paternity chocolate snowblower troglodytes sediment dictionary ricochet ————————

This could be a fun wordle type game that one could play everyday.

It is supposed to roll out this quarter, they gave me a $100 rebate check for not having it available at the time of delivery :)

Edit: Forgot to mention, it is an additional $600 option to get hands free driving feature.

I finally got mine last week, took over 6 months after placing the order!

It is very well built, unlike any ford I have ever driven. Drove it for about a 100 mile trip in the Columbia gorge last weekend, it was a blast.

That said, even with 250+ mile highway range, my wife had a bit of range anxiety once the battery gauge dropped below 50%. Something that will hopefully go away with time.

Are incentives even necessary anymore?

Regardless, this just shows how well Ford understands the truck market. This will sell like hot cakes, and they will have trouble keeping up with demand.

Re:Tesla Q1 2021 Results on Monday April 26, 2021 @08:51PM (#26950359)
I bought a Ford Mach-e, after comparing the mileage, build quality and pricing with model Y. The Tesla drives better, performance wise they felt the same, but build quality and cabin noise is way better in the Mach-e.

Also, surprisingly actual road mileage is better in the Mach-e too[1].

Tesla felt like a car built around the software and ford felt like a car with the software as an afterthought. But I like driving cars (drive a manual right now), so, don’t really care as much about the software as others.

[1] https://www.edmunds.com/car-news/electric-car-range-and-cons...

>> How effective is the Oxford vaccine?

>> There are three figures doing the rounds - 62%, 70% and 90%. The first analysis of the trial data showed 70% of people were protected from developing Covid-19 and nobody developed severe disease or needed hospital treatment.

>> The figure was just 62% when people were given two full doses of the jab and 90% when they were first given a half dose and then a full one.

>> The Medicines and Healthcare products Regulatory Agency (MHRA) has approved two full doses of the Oxford-AstraZeneca vaccine.

>> However, unpublished data suggests that leaving a longer gap between the first and second doses increases the overall effectiveness of the jab.

This description of the results doesn’t inspire confidence.

Re:Shanghai stock exchange suspends Ant Group's A-share IPO on Tuesday November 03, 2020 @02:59PM (#24983367)
From what I can gather from public information, the loan volume is ~$300B/year and growing rapidly. If they have to hold a 3rd of that on their books, that’s a lot of capital they have come up with. And maintain a loss reserve. I guess, they are being asked to become a bank.
Re:Trump Halts U.S. Funding of World Health Organization on Tuesday April 14, 2020 @07:25PM (#22872672)
Could this not have waited a few months? In the middle of an pandemic, to cut off funding to the only organization that is coordinating the global response is just crazy. The pettiness of this administration seems to know no bounds. Even if we accept that WHO screwed up in their early response and yeah they could be critical of China, cutting funding is wildly disproportionate reaction.

China will offcourse make up the difference, and appropriately gain more influence. As it rightly should.

Re:Ask HN: Is AWS Backing Away from PostgreSQL? on Friday January 03, 2020 @06:11PM (#21951327)
It may have been a glitch. I can create new Aurora Postgres instances, with version 11.4 as the newest supported. RDS (non-Aurora) instances have support for 11.5.

None of the big 3 cloud vendors support PG 12 yet.

AWS generally is the first to provide support for newer versions, and they usually lag the PG release dates by 6-9 months for RDS and over 12 months for Aurora.

[Edit] GCP Versions: https://cloud.google.com/sql/docs/postgres/db-versions Azure Versions: https://docs.microsoft.com/en-us/azure/postgresql/concepts-s... AWS Versions: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_...

Is there support for loading data from Parquet files?

Older »