skysight-inc/HackerNews huggingface dataset:
I wanted to import a typescript file from another typescript file.

If I made my import line be “import .. from ‘./foo.ts’” then typescript was happy, but the compiled output still specifies .ts rather than .js. So the import was broken (that file didn’t exist in tsc’s output directory).

My other option was to “import .. from ‘./foo’”. Then typescript worked but the bundler I was using refused to import the file at all - since it was missing an extension in the import statement. And apparently extensions are technically required by the spec.

The real solution would be for the typescript compiler to rewrite import statements. Like, import foo.ts should be rewritten to import foo.js. There’s a GitHub issue talking about this[1] that was closed because the typescript authors think this is someone else’s problem.

I ended up just giving up and trying a different bundler - which had equally different, but equally frustrating problems.

The ecosystem is a disaster.

[1] https://github.com/microsoft/TypeScript/issues/40878
Thanks for memcached! I am surprised how pylibmc even works at this point - its last released version was in 2019. I do hope Pinterest sponsors.
Because it’s well known that cops usually take longer/don’t respond in bad neighborhoods.
Like almost all traditional advertising, it's just about name/brand recognition. Almost nobody sees a geico ad and decides to go out and buy car insurance, so if direct sales lift was the objective, advertising is clearly a losing proposition. However, when someone decides they need insurance, there are probably a couple of companies whose names already stand out in their head, and that is when the advertising investment pays off.
> Instead, they just show that the "default" number of digits is enough.

The "default" number of digits was chosen and became the default because it's enough for mostly everything.
This 87/3 split sounds suspiciously like what Agile with frequent checkpoints was supposed to mitigate.
I've been using it for a couple months and it's kind of a weird experience. If it works you can feed it regex and stuff which is nice. But sometimes it will just tell you that it doesn't know anything about the repository, or it will miss results entirely that the normal GitHub search (bad as it is) finds easily. And the website is this weird div soup that doesn't really let you copy or anything, which makes it kind of frustrating to work with.
> I’ve deeply invested myself in therapy, support groups, meditation, dating coaching, yoga and hypnotism.

I’ve known plenty of my female friends who were so aggressively “fixing” and improving themselves, that they even didn’t notice how big their ego had become.

Their whole life was revolving around Me Me Me, I want to be perfect, I want a perfect marriage, I want a perfect husband, I am perfect, I I I…

It’s hard to explain, but from the side it was obvious for me why men kept avoiding them, which perpetuated the vicious circle of “self-improvement”.

No sane man or woman would want a partner obsessed with his ego.

No matter how fit, smart and beautiful the partner is.

I don’t know if it has anything to do with your situation (for that I’d need to know you in person at least) — but I see the described pattern in many women (and men too) around me. So maybe it was useful for someone.
Low level detail of HTTP connections is already abstracted away in any general REST API.
I can only assume you are heavily invested in natural gas. The Diablo Canyon plant in CA has a cost basis around 10c per kWh, which covers all expenses including reactor construction, fueling, waste disposal, maintenance, operation, and decommissioning.
We have WewtherKit, yet we still don’t have an iPad port of the official iOS weather app?
App Store is 14 years old. If Apple wanted to take a cut of literally everything that was facilitated using the phone e.g. Amazon or eBay they would've done it a long time ago.

The benefit to Apple is the same reason that Google invests in Project Zero.

Higher consumer confidence that a product is safe = higher engagement = higher revenue.
When someone leaves a company you look at their resources and assigned new people to them or delete them. But you should prefer teams and projects over individuals anyway.
I know they’ve said it’ll be integrated into the main GitHub site, but the way it’s pitched on the landing page makes me wonder if they’ll roll it into an individual subscription like the Copilot product.
> Cross app caching for such common data could be a huge boon for watchOS complications..

What is your differentiation criteria between anticipating a "huge" boon versus a "regular" or "modest" boon"?
I currently run this! Kinda... I haven't really touched it since 2017 when I built it as an evening project to see if it could be done as a static AWS API Gateway configuration. It costs a few dollars a month plus the domain cost and a fair amount of people use it so I've kept it up and running.

I've been meaning on writing the same functionality as an actual application and adding things like custom response timers, timeouts and more and deploying it to fly.io to try their service out but I haven't gotten around to doing it yet.
It's coming with iPadOS 16: https://www.apple.com/ipados/ipados-16-preview/features/#wea....
Implications of Walmart’s Cloud Native Platform
if memory serves, the problem with ieee754 fp representation isn't the relative sizes of its largest and smallest possible values, but its uneven representation of the values between
a) WeatherKit has the resources of Apple behind it so the API you would expect be more performance and available.

b) OpenWeatherMap limits not just by total API calls but by API calls per second.
The strangest omission to me is the calculator app.
Another good short story: https://www.nature.com/articles/519498a
> So, instead of learning Puppet or Terraform, you want to implement one from scratch?

I definitely don't want to implement from scratch.

I share his sentiments. I keep hearing about Puppet Labs (i think is the right one), but I've been to the site a bunch of times and I end up leaving because I have no idea where to start. So I really donno how I would benefit over just using a few bash scripts or powershell scripts to manage my Linux/Windows servers inn AWS.

Many different things are like this. The barrier to entry is high, once you get started it becomes easier and you tend to agree that the tool is much better than other alternatives.

However I today learned that Pinia is the state management library that replaces Vuex in Vue. (effectively V5 of Vuex) and I opened up the documentation, and within a few minutes of reading I had it up in running in my little side project. The documentation explained why its now Pinia, and gave a concrete working example of a simple counter and how its used.

Vue, Rust, Postgres - these all have my favourite documentation.
But those deaths are 1) rational and 2) avoidable by defensive driving. By rational, I mean they make sense - drunk driving, unsafe driving, and speeding [1]. By contrast, you never know if someone on the subway is a mentally deranged person (frequently experience this on BART), a robber out to take your shit, or just someone who's being aggressive because they're trashy (also frequently experience this).

Per mile, cars make me feel the safest. And that's what matters for what I (and others) end up selecting for my form of transportation. Obviously, I'm probably never going to die on the subway due to a train crash. But I could be seriously hurt or my property taken from me - and it wouldn't show up in the stats as caused by the subway because it's just another crime that happened to occur there.

Have you really never been unsettled and felt unsafe due to mentally deranged people at night on BART/NYC subway?

[1] https://www.idrivesafely.com/defensive-driving/trending/most...
A few things that seem a little off from the accounts:

1) A flight attendant wouldn’t be the one to make the announcement. It would be the gate agent.

2) The Apple Pay part of the announcement is really weird. Airlines typically don’t hand out cash directly and even if they could, this isn’t how Apple Pay works. The payment usually comes in the form of a check or a credit voucher printed at the gate.

I wouldn’t be surprised if Delta offered the amount to gain a little positive press but I don’t believe some of the extraneous details.

To be clear, Involuntary Denied Boarding compensation, the kind you’re given when no one takes the bump offer, is soft-capped at $1550 - https://www.transportation.gov/individuals/aviation-consumer...

Delta may have known there was no way they were going to get these passengers on other flights today and gave them more cash to try to make it a little easier to swallow.
Yes but many developers end up writing objects to hold the REST API data and methods to operate on it. And as the API changes you then to have a whole bunch of code you need to maintain and keep up to date.

Client library frees you from that.
And still too busy smelling our own farts to unionize.
I also wondered about this. Why aren't more rich people murdered by people who have a fixed amount of time to live.

1. People are cowards even if they are dying

Or

2. Only sociopaths can kill for revenge.
> there is not actually enough renewable capacity yet to charge anything much.

What is this trash? Excess solar output is already an enormous problem. https://www.latimes.com/projects/la-fi-electricity-solar/
Right, there's levels of consequences here. You're very focused on what's illegal. Some of the things I mentioned are illegal and you would probably be sued/go to jail for them. Some probably aren't illegal or may even be explicitly legal (NO WARRANTY, etc.) but there are still consequences to doing it. You'll often only get the chance to get people to try your published code that happens to infect them once, and after that they will not only avoid your software but also get people to do the same. They may even be upset that your software did this, because despite there being no legal agreement in place between you and the person that downloaded your software to prevent this, they do have a social expectation that you're not being negligent, or misrepresenting your code. Nothing stops them from calling you a jerk.
Much simple answer is that Russia doesn't have a viable air force. Air force and the navy, not tanks, lets military get things done - land troops are just to seal the results of the already won battle.

Having a viable air force requires a viable electronics industry which Russia completely lacks, and metal processing achieving much better tolerances than they shown to be capable of doing - which defines both stealth and engine performance. Sorry but there is no way to "hack" this: having a viable air force requires an advanced economy and science which only a rich country may have.
Dark Sky had a big focus on "hyperlocal" weather prediction prior to the Apple acquisition.

If you're a weather app, being able to tell your users "it will start raining in 35 minutes but pass in 55 minutes" is a huge value add over "80% chance of rain in the next hour". I found it to be quite accurate down to the 5-10 minute increment when I used to live in an area with frequent summer thunderstorms.
The smart to stupid is a smooth curve, so everyone have a point in the line.
This happened to me and I learnt from it. Regardless of how objectively good your work is you need to remember that you're part of a team, and that means learning to fit in with the team while helping push it forward.

You also need to remember that you might be in the wrong team, whether or not your work or your colleagues work is of a high standard or not.

Both can be true but there is no "I just keep doing my thing" option here that has a good outcome. If anything, I'd say the message from your colleague is a good thing, someone wants you to succeed.
I deleted my AWS account because SES refused to take me out of sandbox due to a security violation that could not be disclosed to me.
Interesting that almost all forms of SMTP are blocked once you are on some secret black list.
Back when I got involved in NancyFX, I started by just contributing to the documentation to make it easier to understand, filled in the missing pieces that I had to learn or annoy people by asking questions.

The only downside was after a couple of years, in the chatroom people would ask a question that 95% of the time resulted in just linking them to the docs and they said thanks it solved the issue. The other 5% was either not supported or resulted in improved docs.
Well, there was the Mastodon instance that just disappeared on me one day.

I wasn't paying for it though, or using the account much.
The government is just a set of people that changes over time not some singular entity that has distinct behavior compared to humans.

Speaking about it as like you do makes no sense
Dopesick is a great series. Worth a watch!
It's so nice to see an historic application being ported and maintained all the way from the '80s macs to SwiftUI!
> I believe that, in general, fame is a solved problem, but the solution is not available to everyone.

Wow what a meaningless phrase.
Not at all. My argument is that some things are better when centrally administered to some degree, and that "I don't use it therefore I shouldn't have to pay for it" is itself an extreme and somewhat antisocial position to hold in general.
There’s a subreddit on UK-style crosswords that will help you with understanding clues: r/crosswords. NB that r/crossword is for the US style.

You might find the Telegraph easier than the Graun to start with.
The Truth About the Evolution of Russian Military Doctrine
If M$ can parse and index code, they are able to do the same with sofware licenses and skip the projects that forbid this behaviour in robots.txt fashion.
Do you realize that they don’t need Google? Your phone operator can get precise location data all the time even with the dumbest phone. If you don’t want to be tracked don’t use a phone.
> setting up a hiring cartel to depress our wages

I missed this, any details?
It literally says V 0.3 in the very center of the website. First thing.
That's not the impression I got from the article. It says:

> If it’s a family, set up a dinner for them (delivered to their home, out at a local restaurant, whatever they prefer) to celebrate the new job together.

That seems more like the company is paying for a dinner for the family, not asking to meet them.

I agree that demanding to meet an employee's family would be creepy.
I haven't worked with Qt so I don't know how the API looks,

But on a complex app, to see "dirty bitflags", "intermediate values", "redrew the UI in the middle of mutating document state", I feel what you feel, and I want to share what helps me and my team overcome this kind of complexity.

This happened a few years ago to my team. We alleviated this with several solutions. The most effective solutions is to 1.) separate UI logic/compositive component from UI visual/appearance component, 2.) separate UI component from actors.

1.) Separating logic from visual helps developers define problems separately, especially those around the required states, step-functions, and lifecycle. We made this separation because of three things: 1.) We observed that our programmers are simply divided into these two categories, 2.) The dependencies of these two sets of components are simply different (e.g. logic --depends-on-> actors and ownership/lifetime management modules, while visuals depends on DOM, rendering, setting up callbacks), 3.) It is actually good to have a high cohesion between UI and logic modules. You may want to use the same UI for a slightly different logic, and vice versa.

2.) Separating UI component from actors helps a lot with decoupling state changes and re-rendering, and actually gives developer a chance to separate/abstract/generalize concerns when things have gotten too complex to be written in a UI component.

Actors is what I call any kinds of data that can act, have their own agency. It can be what you call a service, worker. It can have a Timer-based or queue-based internal lifecycle-management that does not require interaction from user (very useful for things like updating background data at interval)

UI component can both "own" or "borrow" actors. "owned" actors dies when its parent component is destroyed, while "borrowed" actors does not die when its borrowing component is destroyed.

We decouple actors from UI component and set up bridge between them. UI component can signal actors by function call, and actors can get back to the UI component by using either a return value or event/callback system.

And the last but not least, writing app in a smartly typed language combined with functional domain modelling helps a lot (see about it here https://www.youtube.com/watch?v=Up7LcbGZFuo).
"Inability"
Simply not true. That’s exactly what I want and DT already has a reset button by which I can undo those base edits anyway. It’s again, another thing that puts people off and is confusing as hell at first.
I’ll give a counter example: married at 29, had only an ectopic pregnancy at 31 to show for our trouble, was diagnosed with low Anti-Müller hormone levels, never went the fertility assistance route because losing my mother to breast cancer put me off messing with my hormones. Decided around 38 to be content with my kind husband, comfortable life, travel, and lovely nieces and nephews.

Gave birth to our “happy accident” a few months after my 40th, chasing around a robustly normal, deviously clever near-two-year-old now.
Wonder what this will mean for Sourcegraph and other code search engines as a player like GitHub enters the space.
> Generally speaking, if you think you need more than double precision, what you really want is double precision and a better algorithm. Generally speaking.

Though a lot of the time, the better algorithm is using an error accumulator-- so 2 doubles. This tends to outperform 80-bit extended precision, double-double, or long double arithmetic... but more precision would often also suffice and use the same amount of space.
I might be color blind, or it's my monitor. It just looks blue to me.
>You can compare cost of living to an extent - assuming, for instance, that the worker won't go on holiday anywhere nice.

But that's my point - as you get more experienced your net salary levels by remoting and you have lower cost of living - you actually have larger discretionary budget for vacations.

>Also engineers these days don't live like upper middle class (unless they come from such background). It's more like upper working class. Progressive taxation prevents workers from amassing capital and climbing the class ladder.

>People from upper middle classes get paid in ways out of scope of progressive taxes designed to keep working class in check.

True as well, which is why moving to Western Europe never made sense to me - as a freelancer I get to claim most of my income as company profits - taxed ~20% locally - vs. ~50% if it was income tax. And I can afford private health care/kindergarten/schools so the shit public care isn't an issue either.
If you've gone on 120 dates and found not one of them workable, you need to look at yourself, not "hacks"
Another of Terry Bisson's short stories, "Bears Discover Fire", is an absolute gem, and free to read online: https://www.lightspeedmagazine.com/fiction/bears-discover-fi...
Likely the "filmic rgb" module in darktable. One of the most popular modules, it's pretty easy to get good results with the workflow they described. I also use it on most of my RAW pictures.

https://docs.darktable.org/usermanual/4.0/en/module-referenc...
It's basically a variation of Chesterton's fence[1]. There's a lot of hubris in thinking one could write a piece of code better than someone else if one has never attempted to write that piece of code, especially when never even having done anything like it at all.

[1] https://en.wikipedia.org/wiki/Chesterton%27s_fence#Chesterto...
I recommend anyone who's interested in this topic, or in data structures and optimisation, to pick apart Stockfish' transposition table implementation[0,1]. It's essentially a highly customised hash table. It has to handle multiple threads reading and replacing entries, with no locking. It can't grow dynamically, and so it has to "age out" entries.

Think of it like hash table implementation with the difficulty set to brutal. You can't grow dynamically(too many entries). You can't store the key, since it'll almost double the size of each entry. You can't use locks. Lookup times need to be practically constant time.

[0]: https://github.com/official-stockfish/Stockfish/blob/master/...

[1]: https://github.com/official-stockfish/Stockfish/blob/master/...
Apple api - nope. Norwegian Meteorological Institute api - yup.

That’s mostly in jest though (sent from an iphone) but also because Apple bought darksky (which was my preferred weather api/source in the past) and I’d assume that’s a big part of/rolled into the weatherkit offerings now?
I've never used AWS Batch but heard only good things about it. If you could elaborate - i.e. warn me - I would very much appreciate it. What should I know before using AWS Batch?
So how many women do we need, like 15? Maybe a Scrum master who knows the Lamaze method?
I've been in the alpha for about six months now and I love this - I use it several times a day.

It's become my default option for API documentation: given basically any API I want to use, this gets me real-world examples of it in seconds - often far more useful than the official documentation.
I can’t think of a better place to advertise to make your brand a household name.
For posterity, here's a link to a version of that page with the original comments section intact:

https://web.archive.org/web/20160410051513/https://blogs.msd...
I'd want to look how many were from jets vs passenger prop plane engine outs, which seem more common to happen than jet engine failures (but passenger prop plane flights themselves are so much less common it might not matter).
It's not incidental. If you think about the attributes of the person you want to spend the rest of your life with, and the attributes you want them to see in you, either implied or explicitly, one of those attributes will most likely be "happy." Most people don't want to seriously date angry/sad/etc people, but who knows. Either way, if dating and "looking" is making you not-happy (which is the sense I got from OP's post), then you need to stop. Because even if you found someone, the odds of them wanting to continue with someone who doesn't come across as happy is nil.

It might be worth clarifying the definition of "happy." I'm not talking about all smiles and shit, you can get angry, even as a "happy person". I mean more like the source of happiness comes from within. Your spouse's job is not to make you happy, no one is on this planet to make you happy. The only person who can make you happy is yourself, so find what brings you joy and do that thing, but try to make it a thing that is around other people doing something similar (not sitting in a house all alone).

If you are happy, content, etc, people will subconsciously seek you out just as we all subconsciously seek out those people to be in our lives. Oh, and get outside your friend group ... like, way outside it. There's a lot more to it than that and I've hand-waved a lot of it, but I'd have to write a book and I really don't want to.
Fantastic writeup, definitely the easiest and clearest I've come across in terms of being able to follow along from first principles after being only a git customer. Bravo.

If you know of any resources you think are even better please do share! xD
Not to mention that your error grows with any mathematical operations you perform and all sorts of other numerical precision issues.
> If you don’t want to be tracked don’t use a phone.

Thats old school. You don't not need a phone to be tracked.

If you don't want to be tracked don't go out in public.