skysight-inc/HackerNews huggingface dataset:
Oh good, that will be fun.

Here's C++ code

#include <iostream>
#include <cstdint>

int64_t scaleFV(int64_t P, int64_t R, int64_t C, int64_t Y)
{
int64_t SP = 10000; // temporary principal scale factor, 4 decimals
if (P > SP * 1000) SP *= 10; // extend accuracy for larger amounts
int64_t SR = 1000; // annual rate scale factor, 3 decimals (pre-applied to R)
int64_t N = C * Y; // total number of compounding periods
int64_t D = C * 100 * SR; // period rate divisor
P = P * SP; // scale the principal (int64_t)
while (N > 0)
{
std::cout << P * R << std::endl; // watch the errors fly!
P = P + ((P * R) / D); // compound principal with period interest
N--; // count the period
}
return (P + SP / 2) / SP; // unscale result, round back to nearest penny
}

int main()
{
std::cout << scaleFV(10000000000L, 8000, 12, 30) << " = 11605682736 != 109357296578\n" << std::endl;
}

I added a print in your loop to show you the overflow. Good luck. To help you, P * R for this calculation gets about 4x as big as an int 64 can hold.

Another way to see it is your answer 109357296578, times your scaling 100000, requires P to hold > 53 bits. But your rate of 8000 is almost 13 bits. So P * R cannot fit in a 64 (well 63 for signed) int.

If you cannot fix it, care to explain how your code works only with int64 as you claim here and in other threads on this page? Maybe then you can address the errors I listed above where your routine failed?
It's really annoying when your HP dock needs a firmware update because Windows updated and now the laptop doesn't recognize the dock so the only way to update the firmware so that the laptop can see the dock is to connect a different laptop to the dock and update the firmware so the laptop you need to use the dock with can see the dock.

If you put two buttons in front of me, one that would either blow up HP and the other that would give me $5,000 but I had to fix another one of those docks that require 2 computers to return to the same functioning it had yesterday to get it, HP would probably be going down.
"Fixing the error" is at times subjective. A less nuanced approach is to freeze non-reliability-improving changes (i.e. merges) until the production meets SLO again. That is the canonical example policy given in Google's SRE Book.
The risk of bricking isn't so bad as long as you keep a copy of the original firmware. If the patched firmware doesn't boot, you can always revert back.
hi. did you remember to bring your wallet? new guys always buy a round for everyone.
New pro-China disinformation campaign targets 2022 elections: Report
Customizing HTML Tables
Not just Russia and Iran, anymore.
I taught summer school math to 8th graders for a brief spell. I was teaching them addition and subtraction. I shit you not.

It's really sad.

And it did not matter how they performed, if they showed up for class, we passed them and sent them along. Also if they didn't show up, we passed them and sent them along anyway.

We should be absolutely ashamed of the public school system in our country. It'd corruption and perverse incentives from the top all the way down. Disgusting.
> In industry terms, we combine Privileged Access Management (PAM), Identity and Access Management (IAM), and passwordless technologies.

In plain terms, this sounds like a classic "Jack of All Trades, Master Of None" waiting to happen. Personally I prefer more focused products rather than those trying to be all things to all people.

It is also kind of an area with a lot of competition, I would be interested to know how you compare yourselves to, for example, the OKTA's of this world.

Which then brings me to the topic already mentioned by others. As OKTA and others have shown us, outsourcing your secrets to others is a bit of a risky game to play.

You say you are SOC2 compliant and this that and everything else, but so are OKTA and look what happened.
Architecturally, that is fine... but if it's not open and well-specified it will continually face (well-deserved) distrust.
Actually that's not necessary, with Merge to earn it's theoretically possible to send whatever amount to only the contributors of a PR (instead of all contributors).

Imagine putting money into a vault that gets released to contributors on PR merge.
That is not why Microsoft got smacked, they were given a lesser penalty than many believed they deserved, and still the result scared the antitrust enforcement division so much that it has taken decades for them to remember they have a job to do.
Digitization, Surveillance, Colonialism
I’d guess close to zero. A few years after graduation, I bought the card game he created not knowing it was his work until I was back at my hotel room and looking through the manual and recognized the logo on the back page of the manual as the same logo he used on the Escape from Harvey Mudd.

(Fun trivia, neither Matt nor I actually graduated from Mudd. He ended up getting his degree from Pomona College and I got mine from Pitzer.)
> Life, Liberty, and the Pursuit of Happiness?

Those are slogans, not substantive conceptions of rights, and the last of those a slogan that was used because the thing many then-contemporary liberals would have preferred and that reflects (but still does bot substantively specify) what they and most modern libertarians value most, property, was too contentious even at the level of a slogan.
>The interview process is not about selecting the best candidates but about selling your company so the best candidates are actually willing to even entertain talking to you.

Best candidates will require best money.

Most positions don't need best candidates. For many, even mediocre candidates will do.
Yet their headcount grew by double digits.

Many tech companies living in fantasy land, having gotten used to free money and strong organic growth essentially guaranteed from secular tailwinds. At a certain scale, and level of competition (more and more social/advertising platforms becoming popular), these companies become more cyclical rather than guaranteed growth bets.

Google is a great company that will surely be worth more down the line, but the whole hire as fast as possible and pay increasingly high comp is going to have to come in line with the new reality.

You can't expand headcount and employment costs faster than your revenue/profit growth and expect it to end well
Oh you worked on How to Train Your Dragon? That's my favourite movie in the world!

Really random follow up question - there's a How to Train Your Dragon advert that I assume played before the first film in cinemas, advertising the cinema's popcorn and other concessions, but the only two copies on YouTube are in really terrible quality. (one in English https://www.youtube.com/watch?v=f37fI14Ne0I, the other in Finnish I think https://www.youtube.com/watch?v=W0Hr4mD3G1Q). I really really want a high quality version of this, and I'm wondering if you know of anyone at DreamWorks who I can contact about this? I've tried tweeting at a couple of people but unsurprisingly heard nothing back, so I'm maybe looking for someone in marketing?
I see a lot of comments about how other languages are faster.

Please think about your actual workload and take them with a grain of salt.

For instance, for most web apps, you spend a large amount of time waiting on database responses. It looks nothing like the modeling the tests in the article do. Benchmarks are not typical workloads.

Don't just assume because some random person on hn says zig is faster you should rewrite your business apps.
> So bland, neither elegance nor character

Curious, I feel the exact opposite.

I remember the competition that spawned these - they were, by far, my favoured option.. although the idea of wireframe giant humans and ants oVer the countryside was 'interesting'! :

https://www.theguardian.com/environment/gallery/2011/sep/14/...
If they lied to get the job, they've demonstrated a willingness to be dishonest for personal gain. What will they do on the job if an opportunity presents itself?
makes sense I guess, it's had a lot more development time I'm sure. Thanks!
I'm presently nearly done reading (fiction) The Long Ships about this region 1022 years ago. I'm enjoying seeing how cultural attitudes that took root in the transition from a bunch of guys doing whatever they wanted, and everyone can be a king as long as they can murder would-be-murderers well enough, to accepting a (supposed) life of peace as followers of Christ.

It makes me want to understand the subsequent 1000 years of history to see how they became as they are now.
If you read that as an attack, then I apologize as I worded it poorly. On a re-read, yes, it could have been worded better. Meant to been more of encouragement as "just swallow the fear and get over it" vs "don't be a wuss and just get over it."
Textual Inversion
What does “enhanced enterprise version” mean? Proprietary software?
In most cases, attempting to roll your own secrets management (or just ignoring secrets management entirely) will end up spraying access across all kinds of third party services (usually in plain text), as engineers resort to sharing secrets via email, chat, file sharing, and other tools to get their work done. The cost/benefit/risk calculation of trying to do this all yourself isn't good.

Using open source/self-hosted secrets management tools can be a good middle ground that requires less trust while still providing secure sharing options to engineers so they don't resort to egregiously insecure methods. Disclaimer: I'm the founder of just such a tool - https://envkey.com (we're adjacent to Idemeum but are focused specifically on application-level configuration and secrets, not passwords or SSO).
Facebook already used 2FA gathered numbers for ads in the past so I'm not sure why there is so much doubt in this story.

https://techcrunch.com/2018/09/27/yes-facebook-is-using-your...
Wouldn't be the first time this happened, but it's hard to verify this without any hard data. Follow up with Meta via your business account and ask them to explain or you'll go the FTC and press (me).
I refuse to praise Oracle for anything. But I could make an exception if they put Isolates in the CE version of Graal and not only the Enterprise one. :)

Also, obviously Oracle didn't do this out of the kindness of their hearts, if they didn't contribute Graal into the OpenJDK the would risk to Graal never become anything other than a niche VM because most people, specially big clients don't want to change VMs and the CE version will be their new gateway drug to their Enterprise version of Graal.
Saw this coming with Eddy Cue taking over the App Store from Phil Schiller.
We use Robot at my current job and it works flawlessly. It can test the web front-end (Browser, wrapper for Playwright), the REST APIs (REST, RestInstance), CLI stuff and much more.

We selected it specifically for its versatility and the DSL is easy enough so even less technically adept testers can pick it up quickly.
Old versions of Chrome Apps won't open on Windows devices after December 2022
Even nuns watch porn, Pope says, warning of risks
Eschew flamebait. Avoid generic tangents. Omit internet tropes.

https://news.ycombinator.com/newsguidelines.html
Hm, yeah, that doesn't sound ideal :(
You need to deal with the root societal cause: computers are too easy to use. So start advocating for them to be harder again. People won't be sending you random documents if they can't configure their modem.
Design-wise this is amazing. Typography, animations, just great taste all in all.
https://en.wikipedia.org/wiki/Anecdotal_evidence
Did the parachute not simply open before he landed in the water? He can't remember that part, and he only woke up after the parachute was under water and yanking on him.

Either way, refreshing to see a well written piece.
Mysterious Atlantic cable cuts linked to Russian fishing vessels
But the issue isn't the technology, its that Microsoft is the only trusted CA for secure boot.

So if we want to actually change this, we should aim to create another CA, not attack sysD or secure boot(though its design is stupid to rely on Microsoft but it's too late now).
They already paid a multi billion dollar fine for misusing 2FA phone numbers and have insane process to prevent this specific scenario. Way more likely that OP put their phone number somewhere else.
This infographic seems relevant -

https://i.redd.it/rgpgh82xwzv91.png

(Number of Artifacts in British Museum Collection by the country of origin)
I could believe it as a big tech guy working at a different company

Google's internal culture sounds awful to me*. Tons of kool-aid chugging, shadowy political battles, people obsessed with tech for the sake of tech... plus they don't generally interview for a specific position, instead you interview for Google at large and then have to find a team that wants you once you pass the bar.

Passing the bar is also obnoxious. Maybe there are a lot of transcendent super-geniuses out there who can do it without studying, but IMO the Google bar is tuned to baseline-assume that you can crank out a Leetcode Hard problem in a few minutes, then they throw extra twists in on top of that.

So you have to spend months of your precious free time cranking away at coding practice just to get an offer, and then hope that you can find a job you like once you're in. OR you can go to Facebook, Amazon, Apple, Uber, etc and make just as much money.

* I can appreciate how it'd appeal to a lot of people though. One man's "Kool-aid chugging" is another's "Pursuit of social justice", one man's boondoggle is another's cool tech, one man's "shadowy political battles" are another's "Engineer-first Meritocracy"
What a find! That's a top notch GPS explanation; simple, detailed and great visualization of complex stuff. Thanks!
No IT department wants their remote management at BlackHat.

https://www.runzero.com/blog/ilo-vulnerabilities/

I'm not sure that iDRAC is much better; haven't checked lately.
Abscence of evidence isn't evidence of the abscence thereof.

That it runs cold lodges it firmly in the "we are pointedly not going to talk about it" space, which for me is where the worry even starts. If my little gray hat wearing mind can come up with plausible ways to exploit something like that...

A) I am not that smart

And

B) Someone in a position to pull something like that off has probably already implemented it.
C++ (especially template heavy with lots of headers and so on) is certainly not fast to compile. But 2 hours that's crazy. What sort of codebase and on what kind of machine?

A 128 cores threadripper is a great workstation to compile C++ code fast :D
Yes, and if the data isn’t secret the number of things you can do with this data is limited. It’s like security by obscurity in reverse.
Another Google product bites the dust.

Some nostalgia and use are still associated with my favorite Chrome Apps. Caret and Caret-T were beloved apps; I could "install" them on any computer anywhere without admin rights.

I feel sucker punched.
Maybe you and the other commenter were talking about the so-called "jumbo" loans or interest-only loans that had become popular at the time. This was at the height of "flipping" and the idea was you'd make into your house and after five years you'd flip it and make a fortune because home prices were soaring so high. I saw the writing on the wall, but a lot of home buyers apparently didn't realize this was a first-mover opportunity and they may be left holding the bag. As it turned out, that was only the tip of the iceberg and that is what caught everybody by surprise!
LibreTranslate – Free and Open Source Machine Translation API
A much more challenging task is writing a systemd unit that starts gracefully before shutdown. I wanted to write a unit that could issue an API call to delete the instance rather than doing a normal power off. Putting it at a reasonable place in the sequence took a lot of trial and error! The trick is actually to have the unit be started at some point in normal boot up (e.g. “armed”) and then do the actual task when the unit is stopped.

Here’s the unit I ended up with: https://github.com/CGamesPlay/infra/blob/master/private-serv...
I wasn't making an endorsement, it was just a statement of fact.
Telegram auctions usernames including some previously “stolen” form its users
Yeah, that broken hinge issue is fairly well known. The repair is to semi-dismantle the screen and use cotton balls and superglue (or epoxy for an even more permanent fix) to bond the plastic clamshell to the hinges as the plastic they used for those models is such low-grade crappy plastic that was never meant to be used for a load bearing part that no matter what else you do it will re-break.

Even with that fix, it can and will re-break, just in a different location so you have to be forever careful with this $1,200 laptop.
We basically built towards a local maximum of what's physically possible for fossil-fuel powered sub-sonic aircraft; we also pushed into super-sonic, but the efficiency and noise pretty much preclude that for all but military and niche commercial operations.

However, there have been huge improvements in other areas, like efficiency and safety. Take a look at this fatal accident charts, and remember that aviation usage has been growing in the meantime, so rates per passenger and per passenger mile have been improving even more than this shows.

https://aviation-safety.net/graphics/infographics/Fatal-Acci...
This is such a stimulating quote! It sounds like a promise that it's possible to regain some peace in the middle of a deluge.
My guess is it is very unlikely he hit where the plane did. More likely the rough sea and high swells created the turbulence needed.
> How is it not a problem for you that you make a change in a .ts file and then you are immediately in a world of uncertainty: Is the typecheck already complete? No clear progress on this.

You're right in saying that having a clean and understandable development environment has a lot of complicated moving parts! Dropping the ball on any one of them means having a bad developer experience.

Since I've said this on other comments, I'm not going to dwell on the fact that this behavior isn't something Webpack itself solves. However, if you make a change in a .ts file, two things typically happen in a dev server:

1. Your code is retranspiled and rebundled, usually using partial recompilation.
2. Your IDE sends these updates to the TS language server that powers your IDE's TypeScript support. That server uses the same typechecking logic as the TypeScript compiler, so it's a good source of truth for surfacing type errors in the files open in your IDE.

Depending on your dev environment, one of a few things might happen next:
1. Your dev server might hot reload the changes in your browser once the build is finished.
2. Your dev server might also block reloading if a type error is found.
3. Your dev server might even show you that error in your browser so that you know what's going on.

Next.js currently does all three of those things, which makes for a really nice developer experience. You don't really have to keep an eye on another terminal — everything shows up in your browser. They even render a little loading icon to let you know when a rebuild is taking place.

Next.js uses Webpack internally, but Webpack isn't the reason for this nice developer experience; it's just a core part of it, and is only responsible for bundling and rebuilding.

I love talking about this stuff, for what it's worth, so feel free to ask more questions. I helped Etsy adopt both Webpack and TypeScript when I worked there, so I have a good chunk of experience in the area.
"Apple doesn't believe in ads!"

Whoops
Imagine pushing a balloon out of your car window while driving on the highway and taking your foot off the accelerator. It doesn't float outside the window beside you, but it comes to a stop almost in an instant.
Apple Issues New App Store Rules for Crypto and NFT Payments
It's hilarious how often nearly this exact quote appears at the top comment in any bad news that shows up on the front page.

Sure this isn't the end of the world but clearly the market doesn't believe this is a "non-deal".

We're also absolutely seeing a broader shift in the tech space, and traditionally companies like Google have been more immune to market changes than others.

But of course the current mantra of HN is "this is fine", it's part of a broader trend of denialism in the community that major shifts, towards things being worse, in many parts of our lives are happening.
In general, the more work the type system is doing for you, the slower the compilation speed. Kotlin and Scala, for instance, both compile far more slowly than Java. I think even C# compiles very slowly compared to Java. You mention type inference, but type inference actually slows down compilation, and the more sophisticated the type inference, the slower the compilation!

Similarly, Rust compilation speed is much slower than GoLang's, whose type system does relatively very little for you. I haven't seen exact numbers, but I've seen people say Rust and C++ have similar compilation speeds, and both are, in general, slow to compile.
Show HN: Video, Audio, Text Annotations for PDFs, Images, Websites
Hi all,

We created Annootate.com to help users gather comprehensive feedback on their projects/documents. We believe gathering feedback through text is outdated and ineffective. This is because we lose so much of the detail and nuances in the feedback given.

Please try out the example document (link) and let us know if you have any feedback! Thanks.
It's a weak signal, but it's often highly variable what kind and quality of support vendors give for which products.
Amazing that the newer Deus Ex got decompiled. Cool!
I think you're right - easier job to predict lulls in the action.
Do people not search HN before posting?
This video about metaballs (really about marching squares) blew my mind when I first saw it[0]. The author is great at walking through the reasoning process starting from scratch and incrementally building up the solution in completely logical and "obvious" steps. It's amazing what you can do when you have "simple" insights that end up being powerful when put together.

[0] https://www.youtube.com/watch?v=6oMZb3yP_H8
I feel there's perception that by labeling this article as "wordy", I have also made far more reaching implicit claims such as

* Wordy is bad

* There's no room in this world for wordy/long-form

* I am a proponent of 20-word Facebook posts, they are awesome and a pinnacle of human achievement and we should all use them going forward

I have not made such a claim in the initial post and have made substantial effort to explicitly indicate thusly since. Lord knows nobody ever labeled me as "succinct" :-D

My old co-worker had a term "We are in violent agreement", and I feel that's what's happening here :->
I don't think I've ever gotten a spam call. I used to get the occasional telemarketer call, but I added my number to the NIX-registry (Do Not Call Registry) a few years ago and I've only gotten one marketing call since then.

Regulations around telemarketing are pretty strict here. I did report the one call I got and I got a follow-up email a few weeks later explaining what had happened (the company doing the marketing had experienced a technical glitch [1]).

[1] https://nixnamnden.se/2020/10/20-196-20-197-20-198-20-199-20...
"The unit... generates round-the-clock energy... producing energy in all weather conditions."

Can someone explain to me how, whenever wind energy is mentioned, any sort of of scepticism, and I don't mean "snarky internet contrarian" scepticism, I mean "human being who has lived on Earth" scepticism, ceases to exist?

Is there actually a large population out there who has never experienced outside weather conditions in which there was no wind?

Or do you... think that bad things will not happen to you if you just believe in transparent bullshit hard enough? Because I'm sorry, but they will.

How. Does this Shit. Get Written?

The best, most reliable sources of wind, FYI, are known by anyone in industry to be very far away from most built structures, and high.