skysight-inc/HackerNews huggingface dataset:
Making sure that grayscale/monochrome images are set as such (oftentimes they aren't) can also shave the size down. I use imagemagick for that.
Show HN: Minimal code snippet manager
> You can’t be arrested in the US for saying something that’s too offensive

You clearly are unfamiliar with the entire domain of obscenity law not in the US, which is exactly about defining what is so offensive as to be outside the scope of First Amendment protection.
Let's do it better this time.

The US is anyway in a belligerant course, there is no reason for the world to opt for appeasement.

Backing down from perfect legitimate demands just because maybe the US could retaliate militarilly (to non-military measures) is ludicrous.

Hopefully cooler heads will prevail.
That’s actually a Grady point. Thanks for raising it.
Sans Schema: normalizr.js with ZERO config and ZERO schema
Google did not give any engineering reasons at the time. That's misleading. Here's what they said:

"Domain fronting has never been a supported feature at Google, but until recently it worked because of a quirk of our software stack," a Google spokesperson explained in a statement emailed to The Register. "We're constantly evolving our network, and as part of a planned software update, domain fronting no longer works. We don't have any plans to offer it as a feature."

This might superficially sound like domain fronting stopped working accidentally, as part of other changes, but notice how carefully it's phrased. They made an update. It stopped working. Nothing in this phrasing would be false if they made a business decision to kill it and did so.

I find this explanation extremely likely for several reasons:

1. It happened just when fronting was being adopted by Signal, a high profile app that would have caught attention.

2. All the other big players made the same change, again, prompted by specific events related to anti-censorship.

https://www.bamsoftware.com/papers/fronting/

GreatFire speculated that the attacks were precipitated by the publication of an article in the Wall Street Journal that described in detail domain fronting and other “collateral freedom” techniques. The interview associated with the article also caused CloudFlare to begin matching SNI and Host header, in an apparent attempt to thwart domain fronting.

This explanation turned out to be correct. CloudFlare said:

Among other network service providers, it's clear domain fronting could be awkward. "Cloudflare does not support domain fronting," a Cloudflare spokesperson said in an email to The Register. "Doing so would put our traditional customers at risk as it would mask banned traffic behind their domains."

Note that their explanation of why they killed it would also apply to encrypted SNI.

3. I worked at Google for a long time and am very familiar with their serving infrastructure. I remember noticing that resolved hostname and host header didn't have to match a decade or more ago. This ability lasted a very long time, right up until the moment people started using it in ways that upset governments. Then it went poof.

I can believe that these particular 4 players might have had a change of heart. Mozilla doesn't run any CDN or third party web services of note, and has nothing to lose from implementing this. Nor does Apple. Cloudflare and Fastly are both small firms who might have genuinely changed their minds, although if they have they should state explicitly that they are newly willing to let their "traditional customers mask banned traffic".

But I'm also not naive: it's possible some people are thinking, better ask for forgiveness than permission.
Drop the free plan and lower your price point. I would also listen very closely to your customers (free or not) and even ping them for ideas. Add some features and get creative. What if you added some SEO enhancements? You are using FB as as your content interface, so, you're going to have to find out how much SEO you can do with content coming from FB. I'd also add in some free tools. What about emailing analytics to your users for free each week? You could auto sign them up from something like hotjar.

If you don't have customers then it's one of 3 things:
1. Your pricing is wrong.
2. Your value is too low.
3. Your marketing is not working.

I would ask around at https://www.indiehackers.com/ for advice as well.

If all else fails, sell it at flippa.com and try something else.

FWIW your presentation is attractive and the explainer video is a nice touch. I wouldn't give up just yet. Maybe you just haven't found your niche.
Thanks for the reply, and the code!
Curious as to what Gratipay was, so I did a little a research. It turns out the maintainers of GratiPay have handed over all assets over to Libreapay[0]. Libreapay appears to be a fork for Gratipay. This might be what you have been looking for!

[0] - https://liberapay.com

*I have no affiliation with liberapayn just did some curious research.
So in my country, records are kept by the individual clinics, where I have GDPR rights over them and there isn’t a direct mechanism by which anybody but the clinic can access them. If I move clinic, there’s a process by which those records get moved with my consent.
Man the TC website sure is terrible to use on mobile. Everything keeps flying around, there's a white banner in the way of the video with an X that appears to behave as a back button when you click it??
Well, my off-the-shelf RX460 has just half the power but has no problems with it's fanless cooler while being stuck in the same case as my Core i7 (which runs with a fanless cooler too).

So I don't think it is madness to expect a new product to be a bit better than what you could buy everywhere else since nearly two years.
One of the authors is at Google, so it wouldn't surprise me. Thermodynamics is clearly a metaphor, but information entropy they are studying be bounded by the literal heat generated by their computations.
Supr easy 3D tool for making Snapchat Lenses
Indeed, EOS relies on a constitution with human interpretable rules [1]. Not sure how that fits into the crypto sphere, where governance should be done be algorithms and code.

[1] https://github.com/EOSIO/eos/blob/5068823fbc8a8f7d29733309c0...
All at the low, low risk of creating e.g. a centralised Government database of trans people, or people with HIV, or whatever the next big scare is.
>can compete for 4+ in some longer events.
Dota's TI2 had a weird schedule where winner of lower bracket had to play 2 Bo3 and Grand Final at the same day. And that team won the tournament!
Isn’t this a little like flipping a coin four times - getting heads four times in a row, and looking at your friend and saying “but you told me the odds were 50/50 each flip?!”
I tend to use SVGO’s Missing GUI: https://jakearchibald.github.io/svgomg/. (Great demonstration of service workers for offline support, too.)
What are you doing, and what is your professional organisation (the AMA) doing, to counter long wait times for doctors visits?
Data consistency with concurrency (transactions).
Flying Trains
Is that a real need? I can see it is an add-on to another site builder but not as standalone.
Software Testing Approach – Whitepaper – Digital Transformation Services
I would suggest trying to write correct code without unit tests. They fill up mental capacity making it harder to think about then write correct code in the first place.

Keeping below 1 bug per 100 lines of code is viable simply by being careful and thinking things through. That's a long way from perfection, but it really helps.
But Goldman Sachs are the kings of predicting uncertainty! This is their whole business! They make billions predicting certainty through the murky, uncertain waters of the global economy. Would you argue that the global economy is more uncertain that soccer? I'd say so. How is it that they can find success in the market but not in soccer?

I think this is a smoke signal. Soccer is corrupt; you can't predict the winner unless you know what's being passed around under the table. Goldman Sachs does these predictions so people read between the lines to see how corrupt it is.

My argument is: "Goldman is amazing at statistical analysis and they routinely practice it on much tougher models (the global economy), so they should have no problem predicting a simpler model (soccer). But since they drastically failed at predicting soccer, then there must be an equally drastic variable missing from their predictions. Since we can trust Goldman to use all available public information in their analysis, there must be critical information that is hidden from the public which affects the outcomes". I make some assumptions, but it's fairly sound, no?
>I'm curious just how true it is that Moore's law is starting to approach physical limitations.

Well, Moore's "Law" in the narrow sense has been, to a large degree, about CMOS process scaling and that's clearly running into physical limits.

There are other levers to get better economical performance--some of which come at the cost of extra work in software. For certain workloads, GPUs and TPUs have been an important work around. There almost certainly are further optimizations involving stacking and interconnects. Probably other application-tailored designs (which then have to have software tailored for them individually).

But CMOS scaling has been such a powerful lever that there's legitimate concern that it may not be possible to replicate that kind of advance using other techniques.
Its the availability that is the killer for these sorts of services, as one of the people interviewed in the article says.

I don't see how these services can compare with a private car without totally saturating the neighborhood with lots of idle vehicles sitting around to cover the spikes in demand without suffering infuriating unavailability when you need to get somewhere. Its already annoying seeing all the dock-less bikes and stuff left all over the streets - it'll be much worse when they are dumping cars as well as bikes/scooters.

Having to wait 5+ minutes for Uber to accept your ride and then arrive (complete with the little car icon doing seemingly pointless loop-the-loops on the map) while you are left impatiently tapping your foot is fine every now and then. But having to do that everytime I want to get anywhere? Really? Its not for me - I value having a car sitting idle just so that it is immediately ready for me to use at the precise moment I need it so I can just jump in an go.

Would you sell your car and rely on a service where they might one day just not have any drivers available? I am sure many of us have been in situations pre-ride-hailing apps where we'd be on a night out and call someone for a cab only to be told there is a 2+ hour waiting list. Better start walking home then I guess ...

One-way trips or if I am drunk is where ride-hailing shines - I dont think it'll ever replace car ownership for anyone apart from those people living in the absolute centre of cities who only need to get to work and bars (and in those situations walking is a viable option if you have the time)
Honestly, if corporate IT has to drop connections to a bank, because they can’t MiTM the connection, I see this as a good thing.

Too many people are unaware that their connections to their banks etc from work are insecure because of corporate firewalls and what are (essentially) compromised certificate stores.
How Is a Runner Like a Bouncing Ball?
If you have a problem with the study or methodology, let’s hear it; otherwise, ad hominem attacks don’t add anything to the conversation.
Indeed happy anniversary, congrats, and thanks to Patrick Volkerding and crew.

I'm leaning towards FreeBSD lately, and when it's Linux at work it's necessarily RHEL due to company standardization etc, but Slackware is where the heart is, and will always be.
What's New in ES2018
Thanks for the hint, marketing got me :-/

I saw all the nice Apple products and didn't notice that the eGPU is from a completely different company.
I've always been happy (well, happy isn't the right word -- accepting perhaps) to pay what I know is a 25-40% premium for apple computers over a roughly equivalent PC, because I know what I'm getting in terms of quality, and the software is far superior.

I'm far less accepting of a 100% price premium while I watch the advantages which caused me to love Apple have been diminished. Seemingly every move in the pro line over the last several years have been to take away things that matter to me (replaceable parts, good keyboard, physical keys).
So, hold on--let me try to understand.

You like the keyboard, even if 5-6 keys are stuck, and the space and shift only work if you hit them in a certain spot.

On top of that, you're looking to give Apple even more trust any money, when you know that they haven't fixed those problems?

Why!
Communicating in technical terms with non-technical people
I'd second ImageOptim on Mac or PNGGauntlet on Windows https://pnggauntlet.com .
I'd be careful using pngquant as well, as it will only ever give you 256 or less colour image or your original image back. PNGGauntlet and ImageOptim will optimise your PNGs losslessly.
This is the part where I write some tone deaf response that is obviously based on the assumption that SillyValley(TM) is the center of the universe and suggest that European companies should pay their devs more. /s

I generally agree with you. This is an obvious fluff piece but that's most articles around here. People just seem to turn a blind eye when it's a company from wherever they're from.
Yeah, its like putting extra locks on the front door while the back door is wide open. However, most people would try the front door first.

A lot of domains have that feature btw. Gmail's specific feature is with the dots functioning as catch-all [1] (though Facebook apparently has the very same feature).

[1] http://www.slate.com/blogs/future_tense/2013/08/01/dots_in_g...
<picture>
<source srcset="sample_image.webp" type="image/webp">
<source srcset="sample_image.jpg" type="image/jpg">
<img src="sample_image.jpg" alt="">
</picture>

Didn't know you could wrap images in a <picture> tag and browsers (except for IE) will automatically download the .webp version if they support it. Used to do this via a Javascript. I like on-demand scaling where you pass scaling parameters in the url, such as: /200x200/sample_image.jpg.
And it's an accident that could have been prevented.

The JS ecosystem looks like an isolated entity that contracted amnesia and a learning disability. It then proceeded to remake every single mistake done in 30 years of prior art, while ignoring every other communities warning again and again about it.

And to add insult to injury, devs from the community answered that everything was fine, and that it was us who didn't understand, and failed to live in modern times.

It's getting better. But it took a while because so many JS devs have only ever coded in JS, giving them an incomplete and crooked big picture.
Fair enough; in this case unit testing is not very useful. I was more thinking about business logic when I wrote that example.
I've seen it do combined subway/Uber routes in Moscow.
I was literally just about to share this as well. Such an underrated movie.

Although, Elmyr has a little more of a superhero-esque aura around his forgeries than this guy.
At the time, at least, 50 was $175 including US shipping, or $3.50 each.
Simplifying my digital life
its emissions
43+ Best new web design resources for June 2018
The way I understand it - let's say in a control group 1 in 100 got the disease in a predetermined period of time, 10 times lower risk means that in the group that got the treatment 1 out of 1000 people contracted the disease...
Very true. I did buy the late-2016 MBP, that I swore that was the last time I'd buy anything from Apple (because of the trouble and hypocrisy).
I started unit testing for the first time several months back. I tried incorporating it into my general workflow

Here's an isolated overkill example of how unit tests should not be done on one of my codepen files (its a javascript calculator). All tests passed but the calculator is partially broken still. I made about 20 unit test case scenarios when in reality it should have been significantly less (~ about 5 given the complexity of the problem)

https://codepen.io/vincentntang/pen/XqNGqv?editors=1100

I ended up getting very little useful feedback on codereview / stackexchange, but this is how I felt about unit-testing in general.

https://codereview.stackexchange.com/questions/193128/shunty...

I think unit testing is great in some applications (e.g. working with teams as more things can be missed, where a bug can be exponentially cause issues, systems with larger complexity). Doing it in isolated solo projects is such a waste of time IMO, good commenting / structurally organizing code/ naming conventions suffices here. Most things don't work in a functional way anyways that makes unit-testing easier. E.g hardware calculators don't have logic the way I wrote it in my code above.

Unit testing is OPPURTUNITY COST. For a business to implement this the risks of exponential failure and its demand for risk-mitigation should far outweigh the time and developmental practice of implementing it in your training / management / workflow / toolchain.

...disclaimer: I might have no idea what I'm talking about I'm a fairly inexperienced dev
Are you able to suggest better solutions or steps to better solutions?
There's some unexamined hooey in this post. For example you can't really compress a JPEG, but you can re-encode it to a lower quality, which can have dramatic effect on the file size. That's what moz2jpeg is doing for this person.

But they could have just done the same thing in Photoshop, Preview, MS Office image tool, etc. JPEG is a standard; file size does not depend on what tool you use to create it. It's strictly dependent on the image itself, and the render settings you choose. Same with PNG.

In fact, you'll get better quality for the file size if you go directly from the original image straight to your final resolution in one step. Rendering to high-quality JPEG, then re-rendering on the server to shrink the file size, will give you worse image quality than just going straight from the original file to the final in one render.

WebP looks promising but is not yet well-supported. Most sites can go a long way just by caring about, testing for, and adjusting image rendering defaults to optimize for file size.

EDIT to add a bit more:

If you are optimizing images as part of a pre-deploy build process, you can use whatever library you want. The only thing that really matters is your choice of format (JPG or PNG), and the render settings. Or, you can hand-optimize the images and drop them into your repo to deploy as-is.

If you're running a CMS where non-developers are going to be uploading images through an admin UI (like Wordpress), your CMS should be using a server-side library to render optimized versions of the images that get uploaded, then serving the optimized versions. You can adjust the settings of the server's image library, although that might require a plugin or module, or custom code, depending on the CMS.

Missing this is a common killer mistake in page load times. I visited a site the other day that served a 16 MB JPEG file for the "hero" image on the homepage. My guess it that it was the JPEG straight out of a high-resolution camera.

This is also good for user privacy, as the server-side rendering should remove IPTC and EXIF data that would get served with the original image.
Venkatraman Santanam.

Made deep learning improve thumbnail representation.
Facebook (or google) showed up, gave him a 6 to 8 zeros to the left of the decimal, preceded at the far left by a $ and O(1).

https://arxiv.org/pdf/1612.03268.pdf
Cloudinary is another option to get optimized images/videos without having to manually optimize everything. Definitely a good option if you have lots of user uploaded content. Running an optimization script within your app will likely use more resources than it's worth unless you're already operating at scale.
svgcleaner is supposed to be faster and have a better compression ratio than svgo: https://github.com/RazrFalcon/svgcleaner

It also has a GUI.
Sharing Your Stuff on the Internet in 2018
> It’s not silly at all, because that is literally a law in Canada.

Except it's literally not; that was a deliberate misrepresentation popularized by people like Jordan Peterson. [0]

> There are also 0 restrictions on offensiveness in the US

Incorrect, see literally the entire field of obscenity law.

[0] http://sds.utoronto.ca/blog/bill-c-16-no-its-not-about-crimi...
Babel is solving a complex problem.

Webpack is not.

Webpack is basically a task runner, a bungler and a configuration system. It relies on plugins to do anything hard.

The fact it's breaking compat again is so few years itself is alarming.

But it's crazy that a tool that only glues things together is still unable to provide a better API that it currently is.
>Musk was asked by Richard Stanton - one of the two divers who found the kids in the first place - to keep working on it.

Returning to the points made above, it shows incredible hubris that Musk demanded any attention to his project from the already overtaxed rescue operators. What else was Richard going to tell him? Imagine if one of these kids had died and the divers had pulled the plug on the miracle sub. He's already this upset they didn't use it after a successful rescue, imagine his reaction if he was asked to desist upon arriving.
The fact having a broken arm is better than having aids doesn't mean breaking an arm is nice.
On the flip side, consider the time you spend looking for parking. Depending on where you live, that's also a big time sink. I'd rather be checking Twitter on the sidewalk than cursing the parking gods looping around, but that's just me.
I dunno man. I'm not a member of the AMA and I've always run pretty well on time unless I get bowled a bouncer.

I used to get frustrated with doctors running late, until I became one. It's the patients that come before you that largely determine how late the doctor is. If someone might be having an MI but only came in to discuss "reflux" the doctor is going to run behind.

What would you do about it?

Though, I'm not sure why you're asking me this since it has nothing to do with this thread.
The person asking the question above has a 5k reputation. Mine is over 100k so I've seen quite a bit.
I think https://marketplace.visualstudio.com/items?itemName=Gruntfug... is what you're looking for.
I don't have the required knowledge to form an opinion on the data or methodology, or even on another expert's opinion on those.

But I find it hard to trust the untrustworthy. Personally, I would have appreciated if the title included ", claims an organisation that used to bribe scientists".

In addition, the title is essentially clickbait, a spin on the data that's convenient for the publisher; as other commenters noted, a large absolute decrease of a really large number is still a small relative decrease; and US is still one of the most per capita polluting countries.

I don't want to sound too negative though, I definitely hope the trend continues.
We do not batch queries. We take a slightly different approach. We convert the GraphQL query AST into a single SQL query (no matter how nested the GraphQL query is).
US is not currently the biggest source of CO2. That would be China.

It does not have the highest CO2 emissions per capita. Have a look at Canada and Australia, for example.

It certainly does not have the highest CO2 emissions per GDP. Tons of countries are higher on that count, for example China.
I think you're missing the point: 4:30am may be the right time for some, but that may be absolutely the wrong time for most. And it's not to do with finding a distraction free window. It's down to - as the article highlights - your body rhythm.

For instance, if I wake up at 6am I will spend hours in an awful state of catatonia. Often, I don't get over it the whole day. It's equivalent to how I felt when I suffered with depression. So, screw that.