skysight-inc/HackerNews huggingface dataset:
There are better ways that place usability first. By usability this means that there is nothing for the content creator to do and nothing for the frontend developer to do.

I use mod_pagespeed - there are versions for nginx and Apache that do all of the heavy lifting.

With mod_pagespeed you can get all of the src_set images at sensible compression levels. All you need is to markup your code with width= and height= values for each img.

With this in place the client can upload multi-megabyte images from their camera without having to fiddle in Photoshop etc. It just works and the hard part is abstracted out to mod_pagespeed.

By taking this approach there is no need to use fancy build tools. However, a background script to 'mogrify' your source images is a nice complement to mod_pagespeed, if you want your images to be in Google Image Search then 1920x1080 is what you need.

The really good thing about taking the mod_pagespeed route is that you do get 'infinite zoom' on mobile, e.g. pinch and zoom and it fills in the next src_set size. Keep going and you eventually get the original, which you have background converted to 1920x1080.

There is also the option to optimise image perceptually, so you are not just mashing everything down to 70% (or 84%).

On your local development box you can run without mod_pagespeed and just have the full resolution images.

Or you can experiment with more advanced features such as lazy_loading - this also comes for free with mod_pagespeed.

If you want your images to line up in nice squares then you might add in whitespace to the images. Maybe taking time in Photoshop to do this. However, it is easier to just 'identify' the image height/widths and to set something sensible for them, keeping the aspect ratio correct. Then you can use modern CSS to align them in figure elements to then let mod_pagespeed fill out the src_sets.

Icons and other images that are needed are best manually tweaked into cut down SVG files and then put into CSS as data URLs, thereby reducing a whole load of extra requests (even if it is just one for a fiddly 'sprite sheet').

Oh, a final tweak, if you are running a script to optimise uploaded images and to restrict max size then you can also use 4:2:0 colour sampling. This is where the image still has the dots but the colours are 'halved in resolution'. This is not noticeable in a lot of use cases and particularly good if you are using PNGs to get that transparency.

As mentioned, mod_pagespeed reduced project complexity by offloading the hard work to the server, keeping cruft out of the project and making the build tools out of the way. It can also be covered to inline some images and plenty else to get really good performance.

Mileage may vary if the decision has been made to use a CDN where such functionality is not possible. However, if serving a local market then a faux CDN is pretty good, i.e. a static domain on HTTP2 where the cache is set properly and no cookies are sent up/down the wire to get every image.

https://www.modpagespeed.com/doc/filter-image-optimize
https://www.modpagespeed.com/doc/filter-image-responsive
> I can pretty much confirm that I have never had real Parmesan Cheese, and neither have you.

That is a bizarre claim. If you’ve only ever bought pre-grated Kraft “Parmesan”, that might be true. But it’s not difficult to buy Parmigiano-Reggiano in nicer grocery stores.

Also the EU has hundreds of special designations. It’s not surprising that the US would decline to give a blanket deference to EU law in this area.
4% of 24 hours is about 58 minutes.

So, 6% of the 16 hours/day you're awake.
9% of the 11 hours/day you aren't sleeping or working.

Sure, owning a car is useful. But, private car ownership is highly inefficient.
California Clinic Screens Asylum Seekers for Honesty
Shouldn't an engineer be able to predict how a system will scale ahead of time? asking for a friend
I think that line is blurrier than we engineers might often want to admit. What's the difference in the end? Money? A legal contract with stipulations?

I think the core of my question is this. You agree we have a right to choose whether we want to engage with the public. Do we have a fine-grained right to engage in one area of life, but not others?

Historically, I think this has been the case (e.g. keeping family out of politics), but I think the line is blurring over time, and I'm not sure that's a good thing.
Can the brain do back-propagation? (2016)
I see GraphQL as a protocol replacement for REST. With REST you have the following problems:

* Responses either contain more data than you need, or not enough data (e.g. you need data for related entities as well).

* With REST, if you need data for related entities then you need to perform additional REST calls, resulting in more network roundtrips.

With GraphQL you can specify exactly what you want, and the server responds with just that, in a single call.
Does it means that each url I visit with this addons enabled are send to a foreign server?
Blockchain Economics(Trilemma: correctness, decentralization, cost efficiency) [pdf]
Housing in Alaska already is affordable...
Do you think Her Cocky Software Developer would be a big seller?

This is the real issue
They are literally manufacturing islands in the ocean.
oh wow, I totally missed that since it was minimized and I was skimming. thanks!
The official reported rate is less than 7%, the actual rate is probably 5-6%. But the problem is the growth of debt, not its absolute value. They most definitely have to hit the brake on growth sometime soon, or they are screwed. Even the Chinese governmebt states this, we are only debating the consequences of hitting the brakes, not whether it will happen or not.
Assessing the Scalability of Biologically-Motivated DL Algorithms
Yes, in that they cut/chiseled the heads off all representations of monarchy in Versailles. It seems mainly to serve as a negative example.
I believe it's intended as an API gateway, a means of creating a single front-facing web API for one or (usually) more back-end services. That way, clients can pick and mix apis and the data they want from it (e.g. streaming posts for mobile, or 20 posts at a time for desktop), without a developer having to create a REST / Rails API endpoint for each possible use case / client.
I had to look up how to do italics
The purpose of SNI is to allow the server to pick the right proof of identity (usually an X.509 certificate) for the site the client actually wants to access. This needs to happen before the HTTP session starts, so we can't wait for a Host: header.

Yes, the intent is exactly to encrypt SNI during the initial ClientHello, in particular the public key used will be found in DNS alongside the server's IP address(es).

The key used will be the same for some set (perhaps all) of names hosted on this IP address, so yes it achieves the same goal as "domain fronting" but without tricks.
Facebook to Beat Q2 Estimates: Jefferies
Black pepper is not necessary. There are extracted forms with patented formulas that have studies showing possibly increased effectiveness compared to black pepper. Theracurmin and Longvida
> China is still a developing nation.

> That means that China can invest in infrastructure (roads, trains, airports, education) which have high real return making the increase in debt much less of a problem.

What does that have to do with being a developing nation? The US could do the same.
You can also surround the text block in asterisks to put it in italics:

> Two years later, the artist Takeshi Murata
created “Monster Movie,” which blended footage
from a 1981 B-movie and a heavy soundtrack and
which is now in the permanent collection at the
Smithsonian as perhaps the most influential
piece in the datamosh canon.
I think it's reasonable to be dubious given the source, and for that to be the default position until there is confirmation from other independent sources. That is, it may not be worth the time necessary to figure out whether the results hold up given that there is a prior likelihood of the source intentionally cherry-picking data on one end of the statistical spectrum that supports their agenda.

I mention in a comment above that the underlying source for the data is BP [1], which is also a little suspect, and their description of the methodology [2] is way too slim to be useful for a critique or confirmation of their results.

[1] https://www.bp.com/en/global/corporate/energy-economics/stat...

[2] https://www.bp.com/content/dam/bp/en/corporate/pdf/energy-ec...
> Units covered 100%

This metric means very little. It does not measure the extent of code path coverage and much more.
Luxembourg: The tiny nation leading a new space race
> Technically not if packages are just the misguided habit of "one package per function" seen in the Node ecosystem.

No. Using a package for a single function doesn't preclude code reuse.

Look at underscore.get package. You could write your own recursive key finder (which I have before), and so could every package author, and you'd have 10x the amount of implementations of a recursive key finder.

A single require of underscore.get by you and other authors means you have a single, well tested implementation with a million other users rather than 10 low quality ones.
We don't seem to know how hard the roll-over was but we can see at least three of the doors still open. Part of that will be because they are pillar-less so less likely to jam at the top but it's still pretty impressive.
Containers or VMs: ​Which is more secure? The answer will surprise you
"At this point" does a marginally faster CPU make a big difference? Not to me, my "workhorse" laptop is a 2013. But if they stuck with a 2013 CPU in a 2018 Macbook, people would go ape shit even though for people like me, the faster processor doesn't change a single thing about how the machine works.

Way too often people on here see something and think "that doesn't help my use case, therefore it's a stupid decision" and never stop to think "hey maybe someone has a use case I don't have, and maybe this helps them". To you, 3mm doesn't sound like a lot. To me, a few hundred Mhz or another few GB of RAM doesn't sound like a lot. But you don't see me screaming in the comments thread "how dare Apple put a faster processor in their Macbooks instead of shaving off another few MM of thickness!" because that's just ridiculous. Someone out there is happy that the machine is faster, even if that person isn't me. I have the ability to put myself in someone else's shoes and be happy on their behalf.

Some people's laptops sit on a desk all day and that's fine. Mine doesn't, and every MM shaved off is another pair of socks I can pack into my luggage.
But the scale of China population is so that if they double their GDP per capita, they will have an upper and middle class population bigger than most if not all individual countries in the world (EDIT: except India).
If you click on a link to a .pdf in Safari on iOS (certainly on iOS 11, but I'm pretty sure many versions prior to that) it will transparently show the PDF within the browser (it's a fast native PDF viewer that can be zoomed/scrolled very easily).
> pulled the kill chord.

pulled the plug

> For years, Lidl is expanding operations.

For years, Lidl has expanded operations.

> high-turnover countries

high-volume or high-revenue
Whereas Oracle is how Larry Ellison interacts with our world.

A reasonable business case for SAP, I suppose.
Consider this:

https://en.wikipedia.org/wiki/Enterprise_resource_planning#F...
In case it's useful to anyone (or they want to pick at my code), here's a quick and dirty python thing I use to automate timestamps on journal entries. It just accepts strings of text and saves them in a file named with today's date and a time above each entry.

import time

user_input = ""
date_string = '-'.join([str(n).zfill(2) for n in time.localtime(time.time())[0:3]])
while user_input != "q":
user_input = raw_input("Log entry (q to quit): ")
with open("time_log_"+date_string+".txt","a") as timelog:
#timelog.write(time.asctime(time.localtime(time.time()))+'\n')
timelog.write(
'-'.join([str(n).zfill(2) for n in time.localtime(time.time())[0:3]])
+ ' '
+ ':'.join([str(n).zfill(2) for n in time.localtime(time.time())[3:5]])
+ ' | '
+ user_input
+ '\n')
Regulations around selling foreign made cars in the US have absolutely nothing to do with safety.
Yeah people don't die. But there's a chance that energy gets dispensed through other forms. I mean there is so much money in sports. There is so much money in just exerting dominance. So much to gain. Notoriety. Plus, I can't even begin to imagine the mental destruction that goes on in these players. Depression, Ego Inflation to the point of psychosis. Why can't we transcend domination and go back to play?
I'd like to see version controlled text files used for important legal documents and many other government docs.

Someone mentions "blockchain" in 3... 2... 1...
Rent a car for the weekend? Though there's obviously some transaction overhead associated with doing that.
https://www.edx.org/school/aws

3 courses with hands-on exercises, and you can't beat the price either. They are also run by AWS Tech Training staff. I finished the "building" one, and I'm looking at starting deploying soon
You can not have PDF as an input format in pandoc.

PDF is terrible because you can not easily/sensibly even parse the text. That also means it is hard to diff two versions and see the differences.
I don't think anyone would disagree with you there.
From the linked Reddit thread.

> We'll be placing an order for a new Model 3 as soon as the insurance is sorted out.

Satisfied customer and Tesla will get another sale.
Ask HN: How to Decode Interstellar Signal with Unknown Bitrate
I have a question about FSK modulation I'm going to frame in terms of a hypothetical:

Imagine that you are transmitting a message to an ET in another solar system. The message is encoded in binary and embedded in the radio signal using FSK modulation. Lets say the signal is broadcast at 5 GHz and FSK +50kHz (i.e. 0 = 5,000,000 kHz and 1 = 5,000,050 kHz). Finally let's say you want to broadcast @ 1 bit per second.

Now lets say the message you send is "1111111111" (10 ones).

Would the ET recipient of this message be able to decode it without knowing the bit rate?

My argument would be no, since to the ET it would just look like an unmodulated signal at 5000050 kHz that lasts for 10 seconds. If the ET didn't know the bit rate, it would be impossible for it to determine whether there was 100 ones or 10 ones encoded in the signal unless some zeroes were present as well--that is, unless the signal was modulated. Even in a modulated signal, however, it seems difficult to determine the number of bits in the transmission without knowing the bitrate.

Are there any techniques for "reverse engineering" baud in a signal whose transmission parameters are unknown?
We are all connected.
Oh wow, a SAP rollout that went wrong! That never happens !
Similarly, if you're still living in the past and / or want to maintain your own server instead of pass it through a 3rd party like that or a CDN, a few years ago Google's mod_pagespeed (module / plugin for both apache and nginx) did image optimization and a lot of other optimizations, all transparently - page caching, creating sprites, inlining small images (as base64), above-the-fold CSS optimization, etc.

I'd still recommend it if you've an old-fashioned webserver (like idk, random wordpress installation) and don't want to pay a third party. I don't know if it's still being maintained or updated though, I haven't heard much of it since its release.
GraphQL is the equivalent to REST or even SOAP.

Just like there are frameworks for these protocols, this is one that automatically creates a service for a postgres database.

postgrest[0] would probably be it's REST equivalent.

https://github.com/PostgREST/postgrest
Any source for ride-sharing ban by Helsinki?

AFAIK no such ban ever existed. The Finnish law does require commercial drivers to hold taxi permits, though, but that is not specific to Helsinki.
The point being is that should be a choice, and they have Macbook line for it if that matters more to you. It shouldnt be the priority for the Pro line when it hurts the UX, that's the issue.
This tradeoff between the relative virtues of PDF and HTML is a good argument for looking at Pollen (pollenpub.com) a framework for designing your own markup language that is capable of targeting HTML and PDF (or any output you need: audio, Kindle, whatever).

A proof of concept is here: https://thelocalyarn.com/excursus/secretary/ On every page at that micro-site, you can view the Pollen markup source, or the PDF version. The PDF and the HTML are generated at the same time, from the same source.

Another example is my blog The Notepad (https://thenotepad.org/). Both sites have links to their source on Github.
"monetary sovereign"

It still requires them to get many other rich countries to generally buy into their story.
No need to do on-demand scaling via JavaScript either! The srcset attribute is also available in <img> tags and lets you define differently sized images for different viewports: https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimed...
This is amazing! I have an old copy of GW Basic. Maybe it's worth an experiment to do the same with an even older interpreter for the fun of it!
MacBook Pro 2.9 ghz review: 2018
Academic expert says Google and Facebook's AI researchers aren't doing science
> The downside of course, is that there are now five extra parameters for the function, which looks painful. (Of course, the equivalent method in the OO version also had these five dependencies, but they were implicit). In my opinion though, this pain is actually helpful!

I'm definitely in favor of making dependencies explicit, but I wish there was a typed language that allowed me to avoid mentioning "less important" dependencies when I want to. Logging is a perfect example:

function log(msg: string) =
ImplicitDependencies<ILogInfo>().Write(msg)

Let's imagine that "ImplicitDependencies" is some special keyword. The compiler would give the "log" function a type of (string -> (implicit ILogInfo) -> unit). But my code is allowed to say that its type is (string -> unit) if it wants. Now if I use this "log" function in UpdateCustomerProfile, then UpdateCustomerProfile gets an (implicit ILogInfo) parameter too.

The compiler would also give me some way to designate a function as "root level" meaning that all implicit dependencies must be resolved. I'd imagine something like Racket's parameterize for this. (https://docs.racket-lang.org/guide/parameterize.html)

The idea is, most of the time, I don't want to keep mentioning logging in my type signatures. I just want to silently kick it up the call stack.
I think with images, just as with videos, there will never be a consensus; some people will insist on certain proprietary formats, forever. At least there's standards now, so that you can provide fallbacks - if you as a website owner would e.g. prefer people use webp because it compresses more than jpg then you can offer both, without forcing one or the other on them.

I wouldn't mind a solution on the server-side though, where in your html you just put an img tag and the server determines what the best format is based on browser support. Of course, that would mean there'd be a header (or some smart user agent analysis) for every image request, and you'd like to keep that overhead to a minimum.
It would be ironic if YouTube were owned by the UK Government. I don't think this particular situation is ironic. I think it's just simply irritating.
Specious though the south china sea argument feels to us, Its entirely consistent with a long held vision of China and its sphere of influence. What rankles, is the extent to which the opposition to it, the open-seas sailing policy, is being taken by actors (the US, Australia) who chose otherwise to disregard mediation and international law in matters of their own spheres of influence: East Timor for instance. This is not whataboutism, its directly relevant, contradictory behaviour. The Chinese have a long standing stated claim to the spratleys (which btw, I think is entirely bogus) but in no sense simply emerged into a state of claiming them in recent times. The laws being used to push back, are entirely a product of the post-WWII polity, were an attempt to construct a legal mechanism to mediate between states, which is being (forcefully) applied here by some states, who choose to disregard the same legal basis when applied to cases of their own.

Lebensraum was a manufactured need of political expediency and an explicitly expansionist act. The South China Sea is not lebensraum, its open-fishing rights, and over-flight and sailing rights, and mineral rights. It's also a vision of a defensive ring.

You know, that domino theory we used to be sold about chinese expansionist policy in S.E. Asia? its being played in reverse: they need this barrier, because we are trying to re-apply opium war logic to opening chinese capital investment markets, and land in China...
Interview with Jim Keller
On “solving” Montezuma’s Revenge
If you include HK and Taiwan, they own a whopping $1500 billion in US debt via treasuries. But these are just savings instruments for them, a way to deal with excess foreign reserves without messing with their own exchange rates. It isn’t like the USA is begging them to buy treasuries, more like treasuries are provided as a service that makes the dollar so useful in trade.

The yuan does not provide the same service to other countries, nor could it since it isn’t fully convertible anyways.
This is an important idea in performance vehicle design - in a crash, the 'capsule' around the occupant must not be compromised. You see this pretty vividly in bad F1 crashes. Granted, those vehicles are so weight optimized that they'll lose a wheel if they tap a kerb, but in particularly bad wrecks you'll see that the entire car, aside from the capsule has pretty much disintegrated.

example: Fendando Alonso's 2016 crash. Looking at photos, the car had been reduced to a capsule with a bit of engine and wheel sticking off of it. Alonso climbed out of the cockpit himself.
This does kind of start to adopt a counter-accusative tone, which could be interpreted as negative. Though it would entirely depend on context. The expletive just makes it sound angry overall.
Ask HN: If you had to pick one of these Locations to hire remotely from?
As a Non-U.S. Remote Company, which of those 3 countries you've seen most success with and you would recommend to hire from for our software openings and why (cons, pros)?

1. U.S. (Limited to Texas & Boston)
2. Spain
3. Argentina

Would really appreciate your help.
My wife worked for a large law firm that decided to standardize on SAP. That's sensible - there are loads of legal practice management suites out there that are designed to cope with the peculiar demands of legal billing - so let's ignore all those and buy a product that doesn't do it, and spend millions adding customization to get what we want.

Of course the project was killed after 3/4 years and millions spent.

A good thing for SAP that in the large firms they target, mediocrity floats upwards!
> Either the consumer is savvy and spent the requisite time considering their purchase, or they haven't. Retailers will always attempt to capitalize on this.

And the news media will always try to educate the unsavvy consumers; especially if it's an easy story to tell, like this one.

A lot of people, formed their impression of Amazon when it pretty much always offered a good deal (and didn't collect sales tax in the US). Many of them are still coasting on that impression, and shopping exclusively at Amazon in many categories under that outdated assumption.

I'm not a natural comparison shopping, so it took me a long time to figure out I can no longer I'm getting a good deal at Amazon anymore. I'm glad the BBC is reminding people to question their outdated decision-making assumptions.