skysight-inc/HackerNews huggingface dataset:
I love command-line applications for interacting with web services! They allow me to scrape things off websites that would be difficult with navigating the HTML DOM or learning the service's specific JSON API. For example, `youtube-dl` is a fantastic tool for downloading videos from almost every video hosting site such as YouTube.

I've always wanted a tool that will scrape article text (either plaintext or converted to Markdown) from news websites. I don't see it on http://weboob.org/applications/, but I think it would be a nice project addition. Sometimes I just want to read or download a news article without adapting to each specific journal's page layout and dealing with ads. Firefox's Reader View does this pretty well, but a command-line version would be more useful to me. It could be implemented by writing a heuristic for scraping arbitrary news websites, and several hand-written parsers for scraping popular ones. Cookboob (http://weboob.org/applications/cookboob) is pretty close to this idea.
This is a big question that doesn't have a single answer, and might be the wrong question to ask. I recommend Bogleheads or buy an hour with a fee-based financial advisor.
I'll give you a proper Hacker News answer:

Invest it in software companies who develop in Haskell and Rust.
I set alacritty to bind

chars: "\x03"

which is what Ctrl+C normally sends, to Ctrl+Shift+C, and copy to Ctrl+C. This is after getting used to the default behavior of VTE-based terminals (like GNOME Terminal), which set Ctrl+Shift+C to send Ctrl+C if you set copy to Ctrl+C.

(Also "\x04" (Ctrl+D) to Ctrl+W, which will close things like python if it's running or the terminal if nothing is.)
On the other hand, companies with long histories of sustained and rising dividend payments also tend to outperform the S&P500 in terms of total return (dividends + capital gains), and do so with lower volatility. Reasons include having a business that is profitable and stable enough to sustain such payouts and a management culture that appropriately balances shareholder interest (by paying dividend) against the long-term viability of the business (and can therefore continue its dividend payments over multiple decades).
Best Easy Practices of JavaScript
The S&P500 still serves a purpose for very large funds (pension funds, endowments, etc), whose main problem is how to allocate tens of billions of dollars each quarter, and for these, their playbook has included the S&P500 for a long time.

They're not going to drop it simply because there are other ways; for them it's about being conservative and cautious about any decision they make.
For more on this, do a search for "index inclusion effect".

A 2016, "On the Changes to the Index Inclusion Effect with Increasing Passive Investment Management”:

> This paper provides an empirical analysis of the index inclusion effect for additions to the S&P 500 index between 1981 and 2015. The analysis finds that between 1990 and 2015 the average excess return for additions from the announcement to effective day was 5.64%. The analysis goes further by exploring the average excess returns due to inclusion in each year. […]

* https://repository.upenn.edu/cgi/viewcontent.cgi?article=102...

NY Fed study (2011), "Is There an S&P 500 Index Effect?”:

> We find that the firms included in the S&P 500 index are characterized by large increases in earnings, appreciation in market value, and positive price momentum in the period preceding their index inclusion. This strong preinclusion performance predicts 1) the permanent increase of market value and 2) the change in return comovement, reflected in declines of size, value, and momentum betas, following index inclusion. Nonevent firms with similar performance experience similar appreciation in value and changes in comovement coincident with the event firms. Contrary to the consensus in the literature, our results indicate that – after accounting for the firms’ extraordinary preinclusion performance – index inclusion has no permanent effect on value and comovement.

* https://www.newyorkfed.org/medialibrary/media/research/staff...
Clearly it won’t work in the long term. No one knows what the market might do tomorrow. We might think we know but no one can ever truly know (legally speaking).

What I’m advocating for is mainly based on the timing: the market corrects, on average, every 8-12 years. Right now, many Robinhood investors (like you probably are) are extremely bullish and are inflating the market.

When the bubble pops I will see you at the bottom. And I damn well hope I am wrong.

Buckle up.
> a card in multiple languages

The version that I remember is this one

https://upload.wikimedia.org/wikipedia/commons/thumb/9/92/De...

but I'm sure there are other versions sending the same message!

> everything is concentrated to a district

I've also noticed this in São Paulo, Brazil, which reportedly has about 60 streets with particular kinds of specialized retail.

https://pt.wikipedia.org/wiki/Ruas_de_com%C3%A9rcio_especial...

(I remember visiting the commercial kitchen supply street because I wanted to bake some cupcakes, and cupcake tins were considered a specialist item. I also feel like I once wandered into a street that specialized in plastic flowers—I guess probably R. Cantareira, which also seems to do a lot of other plastic stuff, or part of the nearby R. 25 de Março?)

> food was great though

The best I've ever eaten anywhere in the world, I think!
Wow, I was skeptical reading that title (and I'm a front end dev so I can only imagine what the usual React bashers would think), but this is really cool. It simplifies so many aspects of creating CLI apps by leveraging React's architecture.
Ask HN: What do you use to manage your business and what changed when growing?
I am currently in the scaling stages and need some advice from experienced founders.

I am talking about requirements that could count as ERP like e.g. payroll, timesheets, requests, tasks, communication, CRM/Sales, etc..

I know this depends deeply upon ones business model and needs generall advice. Currently we are using GSuite Enterprise which is nice but not an ERP system.
If you don't have an appropriate contact, sending a good cover letter and acceptable resume to someone who isn't HR is the first step in getting that conversation in my experience.
While I don’t agree with your skepticism, there is a fund who goes off that theory that an S&P 500 index fund would become top weighted, or that the companies that have shown the most past growth are more heavily weighted, instead of focusing on future growth. It’s RSP, and it holds equal positions in all 500 companies equally.
Honest question (has the potential to sound sarcastic): Is there a reason to test if the input is a number before testing if it is an integer?

I would expect that it doesn't matter if isInteger receives a number, character, decimal, null, or whatever as long as the isInteger test can in fact detect if the input wasn't an integer, and subsequently let you know it was expecting one. The given code seems to suggest there might be non-numerical integers out there.

I imagine something like this:

isNumber("A") => 'expected a number'
isNumber(2.2) => True
isInteger(2.2) => 'expected an integer'
isInteger(2) => FINALLY YOU GOT IT!

In other words, a high level construct is being treated as if it were a low level construct, which would seemingly create a lot of duplication at run time.

In Lisp, for example, I have only ever directly checked evenp or oddp without using numberp or integerp first, and haven't seen anything instructing that it should be done any other way. There would surely be a speed penalty if those tests were done separately before calling evenp, since evenp itself would obviously test those cases already.

I can't think of any input value that isn't a (numerical) integer that would trip up evenp or oddp, given that only an integer could possibly pass either test.
Just FYI, if you are buying on Robinhood or similar service, you are getting front-runed. That’s why it’s free.
I love to read about how StackExchange does things, it's such a stark contrast to the cloud maximalists. I'm not saying there aren't advantages to each camp, it's just nice to have a solid example on the "vertical scaling can actually get you pretty damn far" side of things.
If you fund by a 100% income tax, everyone would quit instantly. There would literally be no point in working for money. UBI cannot be funded by the thing UBI would eliminate.
Are Tokyo and Osaka notably sparse compared to American cities?
As someone who has lived in several tourist-ridden parts of California, the idea of turning the airport itself into a tourist trap is very appealing.
> I think you're unintentionally proving my point.

My point was that the majority of American adults practice their own medicine, which is factually correct.
I learned this lesson the hard way.

A lot of ticketing platform for the 2008 Olympics was Perl, and I was responsible for one of the engineering teams.

The first on-sale basically flopped because our load testing environment had a different version of DBD::Oracle.
How long ago that decision were made? PlayCanvas is still here, doesn't look like it is going anywhere.
For many years it existed, many people resist, some don't. But business is still here. And community grows. Portfolio of commercial projects as well.
if you stare into the abyss, the abyss stares back at you
A modern car very likely already has a built in gsm module and possibly gps as well. If so, this data is collected and could be subpoenaed by whoever
I'm not into graphics/games development so that might be why, but I had never heard
of Shaders (the third category), which doesn't look at all like JavaScript.

Demo: https://js1024.fun/demos/2020/12

Source code: https://js1024.fun/demos/2020/12/source

Shaders: https://developer.mozilla.org/en-US/docs/Games/Techniques/3D...
So $450K is both a lot of money and not a lot of money. Yes you could maybe buy a house with it, but with the current economic climate of foreclosures just over the horizon, I would probably wait for the market to bottom out to do it.

If it were me, I would start looking for vacation properties which are selling as a steal. Then when the real estate market recovers, sell it. And enjoy the wealth that comes with it.
TL;DR: spam detection is hard
tldr; the main reason behind this was due to routing and authentication flexibility.

Full explanation:

Most users of UH VPN utilise it for remote access to their corporate or home networks. This often requires the use of concepts like split routing where only certain subnets are routed over the VPN. OpenVPN achieves this much more easily using it's "push" directives wheras a solution involving wireguard is much more complex.

In addition to this, UH VPN is in part a VPN authentication system as a service, as such it requires a VPN protocol capable of working with a custom authentication system. OpenVPN does this very nicely using its "auth-user-pass-verify" directive. This allows servers to make calls back to the UH VPN API to check whether a user is indeed authorised to join a network as opposed to just relying on the cryptographic validity of the connection request.

One final and often overlooked note is that when we started development of UH VPN (the website, server software and client apps) wireguard was still very much in its infancy and as such was not recommended for production use. Therefore, we made a concious decision to use the openvpn3 codebase as our base VPN protocol and build our feature set on top of this library. When testing our applicaitons, the performance difference in most people's use cases is near identical to that of a wireguard deployment. We have a strong development team behind UH VPN and when wireguard offers a clear benefit for our clients in terms of performance whilst maintining flexibility with respect to routing and authentication we will add support for it alongside our openvpn solution.

James.
Check out on blog of released major features and releases on github for the engine. It is only growing.
I'd probably recommend https://old.reddit.com/r/FatFIRE over /r/pf as it's more likely to have people that have experienced getting a large lump sum like this.
Perl 5 has been declared dead before, I don't think it will die that easily :-)

Given that 95% of CPAN supports a 15 year old version of Perl (and even Mojo supports an 8 years old version), I don't think the ecosystem is going to drop it any time soon.
That's horrible that Peloton was able to do this. Maybe there's more to the story, but it seems like the court allowed them to shut down a competitor for simply building a similar (relatively obvious) product?

In fact, the CEO of Peloton had the idea for Peloton... IN A FLYWHEEL CLASS. That's insane.
I wonder, would there be an opportunity to flush any substances down the toilet, at that point? Sounds like a potentially terrifying situation, considering the number of stories I’ve heard from friends and family about accidentally flying with marijuana that they were unaware of was left over in a backpack or whatnot.
Try Typer (https://typer.tiangolo.com/) sometime, which is built on Click.
Btw imgur doesn't allow me to Display Pictures in full size, are they doing the same abominable game to trick me into their App?
A New Future for Java
Hahaha no. Much of our code is still v2, with no hint of a transition happening any time soon. It's mostly in maintenance mode.

Quick edit: To sibling comment's point, we're not a tech company, so it's very difficult to get this type of work done. It pretty much only happens on new development (where we are using python3), but that new development doesn't replace the old code.
Heh, someone downvoted me for posting facts in response to a false assertion. Gotta love HN.
Today over 224,000 cases worldwide were reported as recovered since yesterday, the second largest single day rise.

Data is good.
> The short answer is that he can't.

It depends upon what you mean by "can't."

If you mean legal authority to block a specific app, no.

If you mean use his authority to influence & effectively make it happen, he can.

In other words, it is very much a threat with teeth. It would just be a roundabout path for implementation.
Thanks, typo brain fart on my part, see my last posts, I know who John Perry Barlow is.
If you wanted to give a Scala SDK a go that would be great! We'd certainly be interested in any contributions you're willing to make to the project!
Hallo senan
Google and Apple have not delisted tiktok because China is a huge market for the companies. They are playing the part of Switzerland.
He’s still on the board and is a friend of Zuck.
Not surprised at all, what did you expect? it's Google after all.

If it were me (or my company), I would refuse to use a programming language created by a surveillance capitalist like Google.

What's next? telemetry in the Go language?
The doctor certainly knows better than the patient, all else being equal. However, the patient has much more time, motivation, and contextual information about their situation. This leads to situations (some of the time) where a patient who has done a lot of research can outperform a doctor who spent 10 minutes doing an exam and making an educated guess based on demographic factors.
Many native engines "can" compile. But really it is only experimental and commercially non-viable option.
Unreal engine decided not to continue support webgl target.
Unity lifted off "experimental" from webgl target, but really nothing changed - it is still huge build, crashes mobile, and development process for web in unity, simply awful. So it can compile, but commercially it can't compete with webgl-first engines on similar projects.
I am in a similar financial position but in Europe. I considered buying a property, expecting prices to collapse, but instead prices are going slightly up - the EU overall has a 10% GBP drop compared to the IS’ 30%. Cynical as it may sound I was expecting a sharper downturn. Seems like people are back to work and thus there is no collapse in sight.
Facebook and Google quit China because they didn't want to obey the speech control policy which not as democratic as in the U.S. They could have continued to operate in China had they chosen to follow the rules set up by Chinese regulators.

With the TikTok it is a different story. They are willing to obey all laws of US and the Trump admistration still wants to ban it without sound reason.

This is ridiculous from my point of view because the authoritarian Chinese government allows the US companies to operate in China when they follow their rules, but the democratic US government doesn't allow Chinese companies to operate in the US when they do obey US laws.

The only explanation to me is that the president is thinking in a way similar to curing COVID with disinfectant injection.
You have to get the water and rice in the right proportion in both rice cookers and pots.

However, a rice cooker frees you from having to watch over it while it cooks. It'll stop cooking automatically once it's done. Not so for the pot, which you have to keep an eye on or time, and turn off when it's done.

This difference makes a rice cooker much more convenient for those of us who want to do other things while the rice cooks, and not have to worry about it.

Also, a rice cooker will keep your cooked rice warm for a long time after it's done, but a pot won't.
I wish he mentioned what C++ option parser sticks to the rules he outlined.
We've made a note about how inefficient our solution was and what was the plan to fix it. Sadly, to get proper stats in nginx we needed two things:

* C interface for stats, so we can would have access to from C code.

* Instrument all `ngx_log_error` calls so we would have access not only to per-request stats but also various internal error conditions (w/o parsing logs.)

That said, we could indeed just improve our current stat collection in the short term (e.g. like you suggested with a per-worker collection and periodic lua_shared_dict sync.) But that would not solve the longterm problem of lacking internal stats. We could even go further and pour all the resources that were used for Envoy migration into nginx customizations but that would be a road with no clear destination because we would unlikely to succeed in upstreaming any of that work.
The conflict is the presidents advisor sitting on the board of the company most likely to benefit from the ban.
ATtiny84
Martin Shkreli's investing classes on youtube.

https://www.youtube.com/playlist?list=PLJsVF3gZDcuTxcdH5FmQR...
Oh man, this is terrifying, and here's the thing... how many of us or our partners start having erratic or 'strange' periods in the pre-menopausal, mid-40s, etc. points of their life? It's happening for my wife -- extremely short cycles, sudden intense periods, etc. and the doctors are kind of like "well this is within the bounds of normal"; not the exact same set of problems as you describe, but some overlap... but the doctor is young, it doesn't feel like she's taking my wife's concerns seriously.

Do you have any advice on the kind of testing that _could_ have diagnosed your partner's situation earlier?

And... wow... glad to not have to deal with the insurance situations you describe. But here the challenge is getting them to take you seriously enough to get access to imaging.
Likely cause Luke is providing some valuable code that other golang users depend on?

Also: hi Luke! And thank you!
Depending on the market, I can’t imagine it being easy/straightforward for someone with “trash credit” to find a landlord willing to lease an apartment at the market-rate.

That $1000 is likely getting spent no matter what, either in repaying loans, or paying a premium over the market rate to get a landlord to agree to lease you an apartment instead of someone with an 800 score.
You would have to use the airplane toilet. Immediately after stepping off the plane, you are scanned by some kind of scanning IR(?) camera, which I assumed was looking for drugs. I actually had some vitamins in a baggie which I was shitting bricks about, but the actually immigration point was very polite and chill, much moreso than, say, JFK.
A “shrink” means a psychiatrist, and a psychiatrist is how you get drugs. So I feel there is some conflict in your answer where you say they funnel people to drugs and also it’s hard to see a psychiatrist.

In my case I went to Kaiser and it took a few weeks to get to see the shrink, who gave me drugs.

If you’re looking to have your health insurance cover therapy, I agree that Kaiser is the wrong choice. I also saw a therapist for a while, who was covered by my employer’s EAP (a separate benefit from health insurance).

I didn’t think most insurers would cover regular visits with a psychoanalyst. I thought they were a pretty rare resource, so if people with insurance had free access, wouldn’t they all be fully booked?
Some tangential musings:

I can't stop but see here parallels between cmdline arguments vs. environment variables for programs, and keyword arguments vs. dynamic binding for functions in a program (particularly in a Lisp one).

That is,
$ program --foo=bar
vs.
$ FOO=bar program

seems analogous to:

(function :foo "bar")
;; vs.
(let ((*foo* "bar"))
(function))

When writing code (particularly Lisp), keyword arguments are preferred to dynamic binding because the function signature is then explicitly listing arguments it uses, and dynamic binding (the in-process phenomenon analogous to inheriting environment from a parent process) is seen as dangerous, and a source of external state that may be difficult to trace/spot in the code.

I suppose the latter argument applies to env vars as well - you can accidentally pass values differing from expectation because you didn't know a parent process changed them. The former doesn't, because processes don't have a "signature" specifying its options, at least not in a machine-readable form. Which is somewhat surprising - pretty much all software written over the past decades follows the pattern of accepting argc, argv[] (and env[]), and yet the format of arguments is entirely hidden inside the actual program. I wonder why there isn't a way to specify accepted arguments as e.g. metadata of the executable file?
That's right.

You used to get LXD over APT but they changed it and now you can't.

Well there's an APT package, but it simply tells Snap to install using Snap. You can do the latter yourself and get the same result either way.

Most of my servers use LXD for containers, and started doing so when it was over APT like any other package.

Then it was like a much improved LXC, and pretty nice. Things "just worked".

It's just as well it's like an improved LXC, because the commands are both "lxc" -- to maximise confusion! I need both old-style LXC and new-style LXD-pretending-to-be-LXC installed at the same time, because some LXC container images fail to run under LXD.

The change to forcing Snap is literally the only use of Snap on my host servers now. It's annoying and disconcerting. I'm still not sure if it will auto-update or not, and I daren't find out by switching to the current version of LXD. I'm sticking with an old version, which seems safer!

I could study Snap and get to know it, but that seems silly given I don't use it for anything else.

It's also annoying because of the mount points and data isolation inside Snaps, which I've basically had to workaround. I appreciate the benefits of container isolation, of course, but it did require some bind-mounting to accomodate my existing images and configurations.

In due course I expect I will switch out LXD for Kubernetes. That will be a pain, because K8s/Docker are not optimised for running distro images, but I don't think the pain will be any worse than trying to obtain certainty about LXD+Snap's evolving behaviour, and daily familiarity with K8s has far higher market value.

Which is a shame, because LXC and LXD are great technologies, and the various packaging and relevance issues have made even old-style LXC something to move away from.