skysight-inc/HackerNews huggingface dataset:
pdf.js has had 26 pull requests merged in the last month.
5,622 additions and 6,991 deletions. That's just in the project directly, not in the dependencies.

Since it's such a quickly evolving project, I wondered where form support is up to. https://github.com/mozilla/pdf.js/issues/7613

Form support is not complete. Seems like it required quite a rewrite to get the foundation in a good place to finish it off.

Are there rendering bugs? Yes. See plenty here: https://github.com/mozilla/pdf.js/issues

Of course, Acrobat also has PDF rendering bugs, and other various bugs apart from the security issues mentioned (their JavaScript implementation for example).

As for printing... browsers aren't even good at printing HTML. The best browser for printing is based on the old Opera software(PrinceXML), and Safari is probably second. Remember the Apple display system used to be based on PDF rendering... and they do a lot with CUPS and graphic designers.

However, printing PDFs on many browsers can go directly to the printer or the OS (which mostly all support rendering PDFs directly now).
My theory is that these hotels were the very first to get wifi, when it was a premium feature. Because it works or perhaps because of contractual obligations with their service provider, they're reluctant to change their model now.

The hotels in East Asia got wifi later, where it was easier to set up and therefore more likely to be offered for free.
If they are adding people to your community- what roads will these new people be driving on? What schools will their children be attending?

The additional revenue is not being added in a vacuum.
The first snippet you wrote makes sense for string, but not for vector. For vector, you'd need to do:

if (x_Vec.find(another_x) != x_Vec.end()) {
//some code
}

The reason why vector doesn't have contains() is because it would be an O(N) operation for a vector. STL is generally designed in such a way that, when something needs to do an O(N) lookup, it has to deal with iterators, making the iteration happening in the background a bit more explicit.

But, for example, for std::set and map, you can just do:

if (a_set.count(x)) { ... }

It's not a good pattern for multiset and multimap, since it won't stop at the first occurrence. C++20 finally added contains() for that reason - but, again, only to associative containers.
LXD provides "system containers" in contrast to the "application containers" from Docker.

You create a "system container" and it keeps running as a stock Linux distribution (many flavors are supported).
It takes about a couple of seconds to create a new container, and a bit less to remove it.
For more on Kaczynski's evolution, see https://www.theatlantic.com/magazine/archive/2000/06/harvard...

I've been curious how participation in Murray's experiment influenced other Harvard grads -- Americans with influence -- in the 1960's and '70's.
Project HTU: Market predictions from collective intelligence
As a European who has never been to an English-speaking country yet has always preferred English versions of everything (and all my friends are bi- or tri- (or more) lingual, reading something in English or in our mother tongues is a near-zero difference for us) I wonder what is the actual proportion of Europeans who can not be targeted by a service in English... I've heard learning English is not particularly popular among e.g. Italians but in Scandinavia and in France almost every "millennial" is more or less fluent in English and comfortable with it.

PS: I didn't downvote, I never do - I'm a downvote-hater :-)
LooxidVR is a virtual reality headset that can analyze your emotions
Like people, states might decide to form a union to increase prosperity for their citizens by bargaining with corporations as a collective. It makes it more difficult for adversaries to overpower individual states in a union. This could consist of an obligation to uphold revenue (taxes) which is used to provide certain living standards (e.g. medical expenses, feeding grandma, etc...) through a social guarantee.

How does corporate bargaining power work? Suppose two states and one corporation operating in both states. The corporation says to each state, "I'm reducing the employee count in your state unless you reduce my taxes." The threat is credible and is in neither state's interest. Unless the two states talk to each other and both agree to not reduce the tax rate, a social guarantee is in jeopardy. A union or cooperation of the states disallows the corporation the ability to punish and reward individual states, reducing the means to manipulate each individual state's tax rate to the corporations liking.
The new people will be paying sales taxes, property taxes and state income taxes.
The Leverage Against Amazon Is Here
Short sentences help search engines 'understand' the text, because they can easily parse each sentence to get direct meaning out of it. If your article says 'Fire caused titanics sinking.", and someone searches Google for "Why did titanic sink?", then Google can return that snippet of your article directly. They can also look for similarities in meaning between your sentences and all other sentences on the web to find contradictory information.

If you use long sentences with twists and turns and double negatives, it's rare that such a direct match can be made to a search query, and your article won't be returned.
The History of Christmas Lights
Often VIPs are paid by the clubs to appear, which is indirectly passed onto other punters as a marketing cost.

Here, you're essentially bringing in a whole bunch of new burden on infrastructure, but getting proportionally less back in order to support it (waiting on some inflection based on future sales tax or property taxes etc is not a guarantee, especially as campuses can be out in the sticks so drawing workers from a wider area). Either you take hits on that, or pass the extra needed cost onto other taxpayers.

I'm not sure whether or not the net is positive or negative, but the second order effects do need to be paid for somehow.
Stripe is an often cited example of good UI.
You can control code generation for templates by putting only the generic data structures in the header, and all function bodies in an implementation file. Then you explicitly instantiate the template for the types you want it for in that implementation file, and declare those instantiations as forward references in the header.

It's not pretty, but it's not hard either, and gives you full control over how many instances there are around. When C++ is used in a heavily constrained environment, that can come in handy.
Some apps do this to give you access to your data across devices/ecosystems. Especially true of apps that were websites first.

Perhaps Solid data pods will solve this.
Lehanga by Ramphal Brothers
Stop cry Bloomberg, everyone loves Sweden. That's just the way it is.
Re: Cloudflare plans, their paid plans also see the traffic; at most you can get a dedicated cert, or even hide the cert from them, but the traffic is always visible, since their CDN system pretty much relies on that.
Haha, typo is fixed! And to clarify licensing, I've updated it to SIL OPEN FONT LICENSE.
90,000 is not an impressively low number of jobs. It makes Apple one of the 40-50 largest employers in the US and one of the five largest US tech employers.

Back in January Apple publicly announced their plans for repatriation. While Apple doesn't give routine updates on exactly what it's doing with every dollar of cash it holds, they've stopped accumulating debt and have begun reducing it. Previously, for years, they were aggressively accumulating debt to fund their capital return programs (which require immense sums of capital in the US in one form or another). To fund that they either have to use debt in the US or have the domestic cash holdings to cover it.

"Apple Inc. said it will bring hundreds of billions of overseas dollars back to the U.S., pay about $38 billion in taxes on the money and spend tens of billions on domestic jobs, manufacturing and data centers in the coming years."

"Apple has the largest offshore cash reserves of any U.S. company, with about $252 billion at the end of September, the most recently reported fiscal quarter. The tax rate indicates that Apple is likely bringing back a majority of its overseas cash back to the U.S., leaving only a small portion for international investments like retail stores."

https://www.bloomberg.com/news/articles/2018-01-17/apple-exp...
I dunno if that's a bad thing. I would endeavour to write all your documents as simply as reasonably possible.
The whole idea of non-free hotel WiFi is ridiculous. It's like charging extra for tap water you use. It can only make sense if the hotel is really really cheap.
New device could help answer fundamental questions about quantum physics
You're absolutely right. SIL Open Font Licence is a better choice and I've changed the licensing to that now.
Isn’t there then just the option of traditional split-risk insurance?
I've also struggled with the distinction, but I believe the commenter above was referring to LXC (and LXD's) "system containers".

Full user namespacing has been in from very early on (day 1?) which is the "increased security" -- this is where I believed the difference between "system containers" for LXC and regular "application containers" was. runc was not always the runtime underneath Docker, and IIRC it has not always had support for proper user namespacing for as long as LXC has.

Also, LXC has so many more features packed in I think it's a disservice to compare it to runc in the first place.

It should go without saying but I would absolutely love for you to sprinkle some knowledge on me wherever I'm wrong about either of these.

[EDIT] - Getting downvotes so figured maybe I said something egregious so I did some digging:

- LXC had user namespaces @ v1.0 in 2013[0]

- Docker got user namespaces @ 1.10 in 2016[1]

This is the distinction I meant.

[0]: https://stgraber.org/2014/01/01/lxc-1-0-security-features/

[1]: https://blog.docker.com/2016/02/docker-1-10/
I would hope that requests to "POST /store/checkout" are encrypted. Cloudflare is a MITM so they can of course see this (and the associated personal / payment data...) regardless of encryption.
Who the hell upgrades their entire production system to new OS releases without thoroughly testing beforehand? Especially if you're running completely unsupported hardware configurations.

That's just extreme ineptitude at best, grossly negligent at worst.

You just don't do that no matter the OS/hardware vendor - How many people have run afoul of Microsoft releasing broken patches into the wild? If you have mission-critical systems, you test everything in isolation first.
I think the issue is also that for a long time (or still is?) it was Ubuntu only.
> there are enough Smiths/Lopezes/Kims/Lis out there that if you try each of those against every room number (100-1000) you could reasonably get free wifi in minutes

Stolen wifi, since someone will end up getting charged for it.
Figma for UI design.
You're totally right. It's unclear. And that's way I've decided to release this under the SIL Open Font Licence instead. Website is updated.
How to own a startup with no money. No BS
LXC is capable of both[0], but Docker wasn't for a long time -- but it got the marketshare IMO because of how approachable it was and the community effort..

[0]: https://linuxcontainers.org/lxc/introduction/
The DO droplets are such a great investment. Using them to learn and develop is such an easy thing to do and they can be used for almost anything. This last weekend I set up NodeJS and Postgres just to tinker with and it has been a blast to learn something new. At $5 a month, it is hard to pass up.
Some time ago I wrote a pytest plugin[1] that helps me test my long running shell scripts.

The idea was to treat the shell process as a fixture, and conditions before and after the test (input file checksums, output files, generated stdout/stderr, etc.) would be checked. It was mostly for data analysis pipelines (hence the name).

I don't use it as much these days as my days of writing long running pipelines are behind me. But for that time, it did its job pretty ok. It was also a nice way to peek into pytest's internals.

[1] https://github.com/bow/pytest-pipeline
The fire that has been burning for 56 years
Buy YouTube Subscribers – Get Non Drop Real YT Subscribers
I have found that the more expensive the hotel is to stay at, the greater the chance they charge for wifi/internet access. At cheap hotels they use it to attract customers, at expensive hotels they use it to gouge the customer for a little more. It is usually because expensive hotels know that people staying there for work will expense it, so there is little cost for the user in those situations but the hotel gets some extra income.
Developer's Journal
Can you recommend any specific RTL-SDR dongle?
At oxwebs you will find a lot of development articles to help you with development as well as a solution to many issues that a developer faces.
In some cases they are. There was an episode of Planet Money where they were discussing Kansas City Kansas and Kansas City Missouri competing for the same companies and companies going back and forth across the state border to whoever would give them the best deal.

The companies were squeezing all of the benefits from having the company be there out of the city.

It took decades for some cities to wise up and realize that having a sports franchise wasn’t worth all of the incentives they give the leagues.
> Also you can use traditional ansible, puppet or chef to create and manage images and containers directly instead of learning shell scripts and Dockerfile way with additional cognitive load.

You can certainly provision docker containers using ansible / chef / puppet. It's not popular, because they do way more than is required in those situations normally, but it doesn't stop you. A lot of larger applications on dockerhub are done that way - splunk's dockerfile is just an ansible starter for example.

Puppet even has a page about it: https://puppet.com/blog/running-puppet-software-docker-conta...
How to Rank in the Google Top Stories Carousel
I've replaced kubernetes / docker with LXD to host https://www.codemy.net/posts and various other services. All I have to say is overall much less moving parts, much lower management cost (uses less time) and much more efficient workflow. For me using LXD has been a dream. Congrats to the team.

I plan on releasing some of the work I've been doing on LXD soon, hopefully it will push lxd into the spotlight over kubernetes and docker.
Win2K3 was basically Win2K + XP icons, as I recall. I did the same thing in XP, always switching it to classic mode. Then later in Vista, and even in 7 for a while. Unfortunately it's gone in 8+...
A good framework to test command line is cram

https://bitheap.org/cram/

You can define in a small test file what is the shell code to execute and what is the expected result, including error codes

I like sh very much in Python to generate scripts, but in terms of pure testing shell commands, I think cram is brilliant.

Here is an example on tests for a shell utility I created: https://github.com/jaimebuelta/ffind/tree/master/tests
19 Typography Tips That Will Change the Way You Design for the Mobile Web
2018 Top-Performing Barristers and Law Firms in UK High Courts
What the article attempts to exemplify is conciseness and transparency. C++ is inherently OOP and OOP is not concise or transparent.

For example when you extend an object the object knows of its chain of inheritance at compile time, but this is not immediately evident from reading an extended instance in the code. This allows code that is simple to write and expand, but more challenging to maintain. It also results in a large amount of boilerplate programming by convention.

The way I prefer to think about this is programming as a means of communication. There are three mental models of communication: explicitness, implicitness, and stupid.

Inherited object instances are implicit structures. You have some idea of what they are because of where they come from and what you know about that thing they come from. This requires some amount of reasoning that isn't directly spelled out. Implicitness is a convenience that scales well. In spoken language the most common implicit things are pronouns.

Creating everything as an explicit quality takes a tremendous amount of work. The result though is clarity in that you know what you are looking at by simply reading it. Counter-intuitively explicit things are not necessarily more code and in many cases actually result in less code. This is the nature of sacrificing convenience for precision.
Show HN: Vitriol – distributed, serverless publishing platform
Yeah, but their numbers will look good for a year or two and by then they (CEO, etc) will have moved on to another company before things crash.
I see what you're saying, but, to paraphrase the article, giving a billion dollar company an 8.6 million tax break when you're shutting down social programmes can be a tough pill to swallow.

On a parallel note, I'd like to underline just how good the tech giant has it. Since it can move anywhere, you have to give it excessive gifts for him to come to you. So the giant gets those rewards, simply because he's a giant.
Possibly an unpopular opinion, but I believe one could easily build a better platform than Kubernetes as it sits now on top of LXD. The amount of features baked into LXC and exposed by LXD is bonkers.

LXC doesn't have the flexibility (for example you can't just add another runtime underneath it), but the amount of features it has packed in it could have given earlier k8s versions a run for their money. Also, a lot of the implementation flexibility that Kubernetes is seeing now (ex. runtimeClass) is the result of years of inflexibility and people finding ways to work around it (frakti, etc) and build at a slower pace (which is also a good thing, slow measured progress and all that) -- my point is that LXC might have have been the better base, all things equal.

Moving VM workloads right into LXD without needing to port them to be "cloud native" might have saved people a bunch of time, never having to deal with complexities of overlay networks (as long as you could set up LXD properly) would also likely have saved people some time.
We didn't have it this way in US, either. It's a relatively recent phenomenon.
I think the parent comment is referring to the "Flexible SSL" option where Cloudflare does HTTPS on the frontend but HTTP over the internet to the origin. Customers like it since they get the "green lock" in one click and no one can tell it's actually insecure. You could speculate Cloudflare are only analyzing this outbound unencrypted traffic, but they are of course seeing everything as you rightly pointed out.
I prefer the Windows 2000 style myself, at least when it comes to "timelessness".

The issue I have with the XP style is the perspective, it is not consistent. Some icons are front facing, others have perspective, and it changes depending on the icon size.

I mean, I think it is a nice style, and I agree with you when you mention the balance between skeuomorphism and unique digital design. But it may not be boring enough to become timeless.
>wifi ... was a premium feature

Which millennium are we talking about?
Also, East Asia skipped wired internet completely and went straight from nothing to mobile.

And internet is cheap, really cheap, in East Asia. I'm in Vietnam at the moment and my gf got a SIM card for unlimited 4G/LTE data for 15 days (the length of a visa-free visit here) for $8. That's the expensive foreigner price. I didn't even bother getting a SIM - she hotspots me on the rare times we're somewhere that there isn't free WIFI.

I was in Cambodia earlier in the year, and was paying US$1/week for effectively-unlimited data (250Gb each week). Thailand is a bit more pricey for farang, but still not bad. Australia was AU$1/day for 30Gb over 30 days. It's not a huge expense, but the difference is noticeable.

I think it's the nature of the market. There's no way that SE Asians would pay Western prices for internet, so the price comes down.
> if a method consistently fails to be implemented correctly by a large segment of projects, I put the blame on the method myself.

I have heard that sentiment many times but it doesn't really make sense to me.

If a doctor tells patients that going for a run a few times a week is a good way to increase their stamina, but most patients are too lazy or busy to do it, do you blame the method of running then?

Or do you mean that the method should be designed in a way that only companies who will succeed will adopt?

By your standard, is there any successful method to this area?
As someone further up the comments mentioned, take the case of Christina Grimmie [0] as a pretty wrapped up example of what can happen.

[0] https://en.wikipedia.org/wiki/Christina_Grimmie
That’s not really all that different to everyone moving their CSS-in-JS and GraphQL queries out of a functional component body though, is it? This is kind of exactly the scenario Symbols seem to have been intended for.

Also... a nitpick, but `new Symbol` always throws a TypeError. And Symbol.for() is a useful escape hatch.
And how often are pop stars killed by crazed fans? In the 60 year history of rock you can count them on one hand and not use all five fingers.

Lennon was killed on the street walking into his apartment building not at a concert. Lennon also lived like a regular New Yorker picking up his own dry cleaning and prescriptions from the drug store on 72nd and Columbus, taking the family to the park across the street etc. You couldn't have chosen a worse person.

>"This is nothing new."

No setting up a "command post" as mentioned in the article, facially ID'ing "fans" and introducing police culture to concert venues is indeed very new and very creepy. It's also about the most un-rock and roll thing I've heard of. Any venue larger than a club has security and metal detector as the door. This is just a self-aggrandizing control freak.
> We're terrified of darkness, of strangers, of foreigners, of immigrants.

Antisemitism, hatred for LGBTQ people and Religious fanaticism is rampant among those foreigners and immigrants, especially those who yell "Allahu Akbar"

https://www.theguardian.com/world/2018/dec/13/manhunt-for-st...
But they aren't especially tax on company profits. There are many big inefficient polluters who pay lower wages and little profit tax. The additional demands will be covered by taxing relatively big salaries Apple pays and sales taxes those new employees pay.
Most of hotels TVs are connected to ethernet cables. Travel always with your own router, disconnect cable from TV and connect to router. You have free internet
There are several good reasons to do this. I mean for rich donors.

For example, you may want to donate, but not decide which organisations get donations. You may think that ordinary people should have more power and rich people less, and so your allow small donors to decide your donations for you.

Or you may think that the receiving organisation ought to focus on small donors and its users.
Erik Naggum was not 'the Lisp community', though there were some people worshipping him on comp.lang.lisp - both from inside Lisp and outside. comp.lang.lisp was a popular forum, but not THE Lisp community. I always thought that his online behavior was kind of an ugly personality disorder.
> The person who spends more is likely a better use of your money.

I don't buy this, at all. There's so much money being 'donated' to organizations that decline climate change, or lobby against net neutrality, that those who spend more might actually be the worst use of your money.