skysight-inc/HackerNews huggingface dataset:
Haskell is very terse, but it doesn't mean that this is true for every FP language. Code below is in Gerbil Scheme and should be readable even for OOP programmers.

(def (alignCenter strings)
(def n (apply max (map string-length strings)))
(def (align s)
(let* ((count (round (/ (- n (string-length s)) 2)))
(whitespace (make-string count #\space)))
(string-append whitespace s)))
(map align strings))

Here also the same code in JS, which is almost identical.

function alignCenter (strings) {
const n = Math.max(...strings.map(s => s.length))
const align = s => {
const count = (n - s.length) / 2
const whitespace = ' '.repeat(count)
return whitespace + s
}
return strings.map(align)
}
If you want SV propaganda, try techdirt.com.
Safari is the new IE6, because the version of Safari you have is locked to the version of iOS you have. Features like Pointer Events, visualViewport, ES2017 etc are available on Android 4.4, because Google still updates Chrome on old Android devices.

I struggle to support iOS 9 (Safari 9) and I barely support iOS 7, because we have a number of users with old devices and we are not a consumer app so we can't just ignore our users who cannot upgrade their browser.

I regularly check caniuse and mdn to see if I can use a useful feature that is in Firefox, Chrome and Edge, and I regularly can't because Safari doesn't support it. Or often I try to use a feature and it is buggy on Safari. Safari is the only browser that regularly breaks our web app (most recently Safari 13 changes for the iPad desktop mode). I also see old versions of Safari in use by some of our MacOS users (presumably because they can't or won't update?)

If our users hit a show-stopping bug in any other browser (browser bug or our bug), they can usually try a different browser. But iOS users can only use WebKit, so they are the most vulnerable to serious bugs.
Better than previous case where German court decided games are "works of art", thus licensed not sold :/ https://www.rockpapershotgun.com/2014/02/10/german-court-rul... It was a BS ruling, basically saying if you bundle a song and pretty graphic in your program its no longer "just" software and rule of exhaustion doesnt apply.
That's the whole point is it not? We should each shoulder the appropriate burden of impact in the price of all the goods and services we buy.

If that means some businesses are no longer viable, they go the same way as horse buggy manufacturers. Maybe far fewer will be willing to take international holidays every year. Business will seek more sustainable ways of doing the things we enjoy.

How can a market be expected to function fairly with secret information (an externality)? It's intentionally distorted. Pollution, waste and the rest comes with negligible immediate cost, but far reaching consequences to everyone else's freedoms. If all those externalities are priced in, customers can make informed decisions.
What's a "proper" extension? The only things in the release notes seem to be about broadening the API somewhat.
Can't agree strongly enough. Even with meditation, where the whole point is (in a sense) to wake up to one's entire field of experience, people are generally unwilling to dig under their own metaphysical layers. They write this off as "oh, I don't do metaphysics." Yes, you do; you're just unwilling to face it.

I updated my post above with a link to a first draft of a site where I go into a little more detail.
I made the switch to FF 2 months ago after being a Safari zealot (for nearly 10-14 years). I did not notice any memory hogging (was an issue in past). I have not rebooted FF in 20+ days. I really enjoy the "container" concept in FF. (ymmv of course)
Indeed. That does not, however, impact the actual energy available in a gallon of gasoline.

Technically the 6kWh of energy spent on refining (or any other work) is itself subject to inefficiencies in generation, transmission, etc. It would also suffer from inefficiencies in the electrical storage and motive portions of an electric vehicle as well. And at the end of the day even if there were perfect 100% conversion it would still only be 6kWh of energy available vs 33-34kWh.
UPS has had hybrid trucks here in Phoenix for quite a few years; I haven't seen any fully electric ones yet, but I'm not really looking, either.
We've already had this discussion.

We've already seen non-adtech companies simply shut down EU access if they don't have enough revenue. That's probably not a good thing.

I support the GDPR, but complying with it is far from simple and the jurisprudence is not yet clear.
or even civil servants
I am on board with this law, but I’m curious how these two points will shake out:

> - Consumers can opt out of their data being sold, and businesses can’t retaliate by changing the price or level of service.

> - Businesses can, however, offer “financial incentives” for being allowed to collect data.

Seems to me that it’s a distinction without a difference. Is there something I’m missing?
One thing Safari really needs to fix: suggesting a secure password but then not save it. I have been trolled too many times.
I don't understand, what's the significance of this in light of what happened to Richard Stallman this week?
Google Wing Launching US Drone Deliveries with FedEx, Walgreens
Amazing and congrats! I'm curious if anyone knows how much revenue/profit Stripe is making? Or is it all still under wraps?
Why have whisper network, as one of the quotes I mentioned, if being "fat and ugly" is all that's needed to recognize a creep?

I do not think Stallman is ugly, so I don't know why that's even an issue. He's had at least one girlfriend, so it's not like his physical attributes are a universal turn-off. Can you find women writing they don't like him because he's fat and ugly? Because finding accounts of women who dislike his creepy sexual advances is not hard.

Do not use 'Autistic types or Asperger types' as a "boys will be boys" type excuse. I'll quote an autistic person, at https://twitter.com/HickeyWriter/status/1172674056828661764

> I'm autistic. I am not good at social cues. I have, in my time, held quite a few shitty, offensive opinions. But when people have pointed out how awful those opinions are to me, I've thought "Oh shit, they're right," apologised, and changed my opinions.

Or from another autistic person, at https://twitter.com/mykola/status/1172685579424817152 :

> Being autistic doesn't make you an asshole, certainly not a pedophile. It mostly makes you a little weird.

Your argument, if it makes any sense, means that Stallman should have been kicked out long ago because he was being surrounded by enablers and yes-men who didn't provide the feedback he needed for his position.

Which, as you likely know, is one of the comments made by the linked-to page:

> I was around for most of the 90s, and I can confirm the unfortunate reality that RMS’s behavior was a concern at the time, and that this protection [by Minsky and the AI Lab] was itself part of the problem. He was never held to account; he was himself coddled in his own lower-grade misbehavior and mistreatment of women. He made the place uncomfortable for a lot of people, and especially women.

How can you meaningfully write "Justin Bieber creeping his followers" if you think "creeping" means "fat and ugly"?

And, "the feminist popes" ... WTF?!
The tax problem could be solved by requiring a shipping manifest, including declared value, and applying taxes at the shipping carrier level. This would make more sense anyway since the delivery carriers have to establish a physical presence.
Yes, but wasn't the initial comment about NYT's rather consistent complaints about "big tech" when they aren't exactly blameless themselves?
>but Rust has had a lot of high-profile, high-traffic deployments in the last year. But honestly, the high order bit is:

Name them, and then, maybe, you will have a valid point.

Until then you're just spewing shit, as usual.
Cto.ai – Workflow Tools for DevOps
Deep Transfer Learning for El Nino Prediction
There were legacy extensions delivered outside the app store. Those are deprecated and with Safari 13 were removed.

There are other extensions delivered through the App Store you can install. For example, there is a uBlock extension there.
I have a word for you Apple fans: H U A W E I
Exotic locations and good light make a better photo than simply having the newest iPhone--I think everyone here can agree.

Brian Chen, whom I respect, from NYTimes reviewed the newest iPhone and compared all his notes, photos, and videos to his iPhone reviews in the past and said there was hardly a difference in quality and performance.

I'm not saying the camera advancements aren't nice, but as a working photographer I have pretty strong opinions about some of the new features like night shot. There are already apps that exist for iOS that do this (take multiple photos and average them out to produce a brighter image with less noise). Also, I believe that if it's really too dark to take a good photo, it's not worth taking a photo at all because even the night shot image won't look that great (and of course they look great when you see them because they are side-by-side comparisons with the darker, more crappy photo, but as standalone photos they look like garbage). I'd rather find or make good light if I want to take a portrait.
You’re using it on 13?
6. Piracy isn't seen as something morally bad in your society.

Where I come from, you can buy a bootleg dvd/bd from a store for a buck and nobody bats an eye.
This is not about "goto", it's about "asm goto", which is a gcc extension which allows inline assembly (itself a gcc extension) to jump to a label outside the inline assembly.
Question, Patrick (yes I still call you that)

How many kids do you literally have? Have you taken three different toddlers to get vaccines and observed how miserable they feel over the next week?

No?

Well I have and I don’t give a shut abt those fucking “studies” because I have three humans I have raised and watched how their persons react to many inoculations at one time,

Fuck those “studies”

And recall my brother is one of the top doctors in the nation, and he agrees with me.
The only downside is that FF battery life is much worse than Safari. Supposedly they're working on being smarter about GPU usage to improve this, but I haven't checked lately to see if it has made a difference.
+1 - I think the kind of marketing and messaging that makes environmentalism all about saving "the planet" and "the animals" and "the natural environment" really doesn't serve us well. A better strategic approach would be to highlight (with the right crafty messaging) that a very tiny statistical slice of earth's historical states and potential future states are any good at supporting large human populations comfortably like we do today, and our goal is preserving this state in our own self-interest. It's not environmentalism at all, it's human self-interest.
Agreed. A good rule of thumb is the law applicable is where your HQ is located. Or you have to come up with good reasons why US companies shouldn't comply with the Chinese gov but should with EU ones.
Josh Wolfe on Soft Bank
OH BOY!! More fraud ahead!

Let's see, first he'll pump almost a Billion dollars into a company, then he'll "buy" vehicles from said company which can now use that order to misleadingly project revenue growth so that it can obtain a competitive advantage over other such competition and take a step in assuring a handsome return for its investors all while Amazon and lil'Bezos incorporate those projections into its ever rising stock price so they can continue to sell treasury stock to buy more such companies as well as their own stock to do the same and wipe their asses with it.

AMAZON IS ENRON!!!!!
I payed for Wipr and I don't notice the difference between it an uBlock Origin on my windows machine. Can you report if it works on Safari 13?
"Yeah, because a phone imaged by an entity controlled by the CCP is better than a phone without Google or Apple."

A phone without all of them would be the best deal but, as an European, I'm 100% sure that assuming all three of them are spying on people using their phones, currently the Chinese are the least likely to give any data about me to my government.
> "tell everyone you're a friend, it's not allowed in this building but everyone's doing it"

Maybe because I'm getting older, but going through something like that would ruin my vacation.
Does this mean that I can justify the staggering price of an iPhone 11 Pro by saying that I won't be needing a new camera? Not that I was really in market for a new point-and-shoot, but I feel like I need something to justify it.
> Until we wake up to this fact

That is not really the case here. I woke up already long ago, but there is no way I can stop the idiots. Only governments can take action by law, not me.

France and Germany will not allow for Facebooks' Libra coin. It shows how fast they can act if their economy is at stake. But for decades already they allow pesticides for agriculture. They could and should know about allowing for mass extermination of entire insect species. So tell me what I can or should do if they let this sick economy prevail?
If you want an anecdote I've met multiple indians who have masters in the US who can't conceive of solutions themselves. They can't figure out "if" statements or solve logic problems that are trivial that I'd expect a freshman in college to solve.

Don't be fooled by that the people around you are the majority who get the green cards or visas. It's actually quite a weak argument all together. Same as this one.
Its the basis upon which I form my opinion as to what "good docs" look like. It makes you incredibly spoiled when trying to use some of Stripe's competitors.
The Wise Man Home
I'm not sure from what you wrote that we have the same definition of metaphysics. I'm referring to a specific branch of mainstream academic philosophy. [1]

1. https://en.wikipedia.org/wiki/Metaphysics
I'd say his speeches and appearances are fairly worthless now.

Maybe there's a lesson here: Don't blindly defend pedo friends.... hell, I'll be even bolder... don't associate with kid-diddlers. And don't trivialize age of consent laws.

There's a reason why we don't want adults fucking children. This stuff isn't difficult to understand. It boggles my mind that someone as smart as RMS essentially performed an act of self-immolation.
No need to go off topic and try to stir up a flame war. Go to Reddit for that.
First Open Source Project
https://github.com/Lisa-Caton/Venture

Asking for feedback
(1) Fork the project!
(2) run the rails server (on the terminal)
(3) possibly open the code for review

Thank you for your help in advance! My questions are below:

-------------------------------
open-source (specific) Qs
-------------------------------

1. Does this app seem ideal for a traveling user?
2. Which would be more accessible to travelers - having this App built as a (mobile) app -or (iPad) website?
3. Does the design excite(!) the user to keep scrolling?
4. Is one feature enough?
5. CON: the app won't run in real-time - since it is pulling from API. Can anything be done to compensate for this?
6. How would I go about writing a TDD - on an API?
7. Is this code efficient enough for my first open source project?
8. Was Ruby on Rails the best approach for this project?
When it comes to renewable energy it is worth to look at one (sad) statistics: if Germany and California, one of the largest CO2 emitters (Germany is on the 6th place, despite a lot of (failed [2]) efforts and even more PR) would spend those money on nuclear energy, they would be 100% clean - CO2 emission zero, null.

Why people keep investing in something so unreliable like wind/solar power plants which are useless without auxiliary source of energy (batteries technology is not ready for mass energy storage) while we have technology that provides clean, CO2 free energy?

I understand sun power plants in California, that make some sense (not much, as those stats show), but, hey, Germany? With more or less 60-70 sunny days a year?

[1] https://www.forbes.com/sites/michaelshellenberger/2018/09/11...

[2] https://www.forbes.com/sites/jamesconca/2017/10/10/why-arent...
Petrol is a large tax source in the UK -- every mile you drive in a petrol car funds your local school.
What could be driving that, I wonder? Are they concerned with malware?

Regardless, it seems like a big thing to omit from the notes.
Disclaimer: I work at Algolia (https://www.algolia.com/), a hosted search as a service API.

While I agree that building a great and relevant search experience with a Lucene-based engine requires lots of extra time and effort to get right, there are other non-TFIDF based solutions that provide a much faster path to great relevance with far less effort (https://blog.algolia.com/inside-the-algolia-engine-part-1-in...), and it's possible to have semantic ranking without too much machine learning (https://blog.algolia.com/promote-search-results-query-rules/). Not to discount the value of machine learning - we're finding that for specific usecases ML can be a very valuable way to help surface more pertinent content for individuals based on their profile/preferences etc. (https://blog.algolia.com/personalization-announcement/).

This may be along the lines of what you mentioned around "commoditizing" complex traditional search workflows. I'd be curious to hear more about what kind of use-cases you think are trickiest without SS.
Our EU employees could not file expense reports for months, because our expense management software (FROSCH or something) could not figure out GDPR compliance.

Soooo I kinda suspect you're talking with absolutely no first-hand experience.
My apologies for being combative
I mean... An international customer can call a US business to place an order, that doesn't mean the US business needs to follow through with or accept this order. Lots of US small businesses I know about don't serve international markets in the hobbyist circles I come from, even though they most definitely have demand there.
I know the Vision Fund is massive but the fact that SoftBank was even considering having one fund make a $16 billion investment in one company is insanity to me.
Not sure why you think this is so odd. This is how interstate commerce has worked in the US long before the Internet came around. Mail- and phone-order businesses were (and are) required to obey the laws of the state they're shipping to.

> The physical establishment rule was the only sound approach.

The only reason that rule exists is because enforcement was much more difficult when your target doesn't have a physical establishment within your own borders. If you can enforce it for foreign entities (via some kind of side leverage, like a trade treaty, threat of sanctions, etc.), then, at face value, you should: why should the law behave differently based on physical presence? You yourself point out that things are different in the Internet age; that includes the acknowledgement that commerce can now trivially cross borders without having to have satellite offices everywhere.
Visa's underlying fundamentals didn't change due to a recession.
uBlock (not origin) is by the same company as AdBlock Plus - "acceptable ads" (e.g. pay to play), privacy issues, general scummy behavior. I would suggest to steer away from it.
>Many companies have to RADICALLY change their architectures just to support these laws. And often the costs will be enormous.

Bummer dude. As an engineer type, I say, bring it on. Hard for me to have much sympathy ZuckerBrin can't afford another island or whatever because they made unethical decisions in the past. And if companies blow up because of it: good, that's the idea. There needs to be consequences.
No harm in reading books , also is it a crime to try to make money?
I wonder who took it upon themselves to taste all the different kinds of crude oil to classify them by flavor... Job for a grad student?
The story of a bug that caused the AI to optimize for maximally disturbing text that went unchecked because the only people authorized to stop it were asleep is a great illustration of how easy it is for an AI to "go evil" when you're not worrying about safety.
On newer versions (of Firefox Nightly), they use the native CoreAnimations library now for vastly improved battery life:

https://twitter.com/whimboo/status/1168437524357898240
Study suggests even 'safe' drinking water poses risk
Fine. Or the rich if you like - although there are fewer of those so the impact won't be as significant. But whatever. I don't care. The point is we need to reduce the number. Who goes, specifically, is somewhat irrelevant.
> The reality is that my only burden is the state in which I operate, otherwise we're interfering with the sovereignty of the state in which I reside... don't think they'll like that. Good luck challenging that one.

I mean, that's exactly what's going on. You can choose to
follow State Y's laws when serving customers in State Y, or you can choose to not serve customers in State Y. But if you choose to not follow State Y's laws while serving customers in State Y, then State Y can use whatever leverage they can get their hands on to keep you out of State Y. That's State Y flexing their own sovereignty when it comes to protecting their citizens, which is the flipside of your argument about your state protecting you.
That was more of a "it's not universal" comment. Sometimes the right solution is self obvious, other times it needs PR.

If I write a piece of code so others don't have to, then it's a service I'm providing. If they don't 'get' the code then the problem is not always with them. It's important to watch for patterns in the questions or complaints you get. There are often multiple acceptable ways to solve the same problem and everything goes smoother if the one you use doesn't trip people up.

In this case I pointed him to some documentation on filter and map.
There is plenty of meaningful work that causes tons of burnout, and not the temporary short lived kind. Just look at teaching or healthcare.

I guarantee people working at a beer company are less prone be to burnout than nurses.

Key factors here are stress and independence.
Why should we use a precise-width integer type?
Ah, one can hope.
I genuinely like Booking.com's interface. I've learned to read the dark patterns so I don't get forced into a bad deal. But once you go past that, they offer all the information you actually need to make a decision
That is a very interesting paper and I only read about half of it, but so far it looks like is says that we will definitely leave a signature on a multi-million year timescale and while it explores the possibility of the Silurian hypothesis, it says that it's unlikely, but lays out some possible markers if it were true.

I think it's a good paper, but one that says the opposite of what you believe.

Also, this paper explores markers of human-like civilizations on million year timescales. It would not touch in any way their continued existance, that is inferred in your comment.
If there's any groupthink somewhere, it's in the notion that "[N-chans] are hot beds for the 1st amendment."

They are not. Nothing prevents them from creating and enforcing standards of conduct, not even the constitution.
What are you trying to say? How does this contradict anything I just said?

Lactose intolerance is an issue involving lack of endogenous proteins, not the gut biome.

Asians, all humans, except for rare cases can digest lactose in infancy.

IBS is a functional gut pain/dysfunction syndrome. Those with lactose intolerance don't get IBS when they eat cheese.
Unfortunately, it's not Netflix so much crippling, as it is all the content creators trying to get a bigger piece of the pie. It was inevitable, there will never been a single place to get all of your media. Even Steam has lost high profile games to Origin, Uplay, and whatever other half dozen or so nonsense services there are out there. I'm sure as shit not going to torrent pirated copies, so I reluctantly install them all if I want to play the game.