skysight-inc/HackerNews huggingface dataset:
The most costly operation is usually showing the text on the screen, so you want to optimize the data structure for that. Although it depends on what level you are programming on. Updating arrays is not slow (unless the file is huge) and can be done in parallel.
first letter of the alphabet is clearly 't', the game is buggy
Facebook is becoming a censoring platform each day

Just a few weeks ago they blocked a mutual friend if mine who posted anti govt stuff

And they blocked a guy who shared a photo of a bill on which "Kamal ka ful hanari bhul" was printed (Lotus flower, our mistake as in electing BJP was our mistake)

The guy who shared the oic was banned for 30 days
> it is likely those that do survive will be better than average.

Is it? I know lots of reasons people survive at companies other than skill or competence.
I feel a little mixed about projects like this.

It's fantastic to see people share their knowledge, and turn theory into practice. It's very easy to spout on about best practices and good ideas without demonstrating how they can be implemented in the real world. And this application does demonstrate some good ideas.

...But some bad ideas also. I think one problem we have in the frontend world is that developers of very small, very simple sites are pulling in solutions entirely unsuited to their scale of problems. They think they are being careful and investing in an insurance against rapid expansion, but what they're actually doing is overspending on the wrong investments, making things expensive that don't need to be expensive, and betting against agility. This seems like a mistake.

I encounter too many teams who are building web applications by bunding a cornucopia of technologies they don't understand and allow "best practice" examples on GitHub and Medium to do their decision-making for them. They disengage critically from their technology choices, which has the short term benefit of getting them moving faster, but the long term cost of never developing their research and evaluation skills.

This is not your fault, of course. People always want a silver bullet, a framework prefabricated and ready for drop-in domain code. And to be fair, most websites are very like each other. I just wish software developers chose their tech a little more critically.
`npm install` pulls 1.6M SLOC. That's a little bit less than V8 itself.

$ loc node_modules/
--------------------------------------------------------------------------------
Language Files Lines Blank Comment Code
--------------------------------------------------------------------------------
JavaScript 15594 1681330 215398 283955 1181977
Markdown 1831 246795 70260 0 176535
JSON 1602 167050 936 0 166114
HTML 86 37383 2511 18 34854
TypeScript 289 26943 2895 5929 18119
Jsx 19 11072 1190 587 9295
XML 14 6533 466 4 6063
C/C++ Header 21 7103 1126 403 5574
YAML 280 4697 199 166 4332
Makefile 69 3611 733 844 2034
C 4 2219 271 291 1657
CSS 19 1428 84 34 1310
Plain Text 81 1412 285 0 1127
CoffeeScript 16 1260 181 106 973
Python 6 926 179 56 691
ActionScript 4 904 89 227 588
Autoconf 2 778 70 256 452
C++ 7 423 70 36 317
Handlebars 6 262 30 0 232
Bourne Shell 13 213 27 22 164
OCaml 1 156 23 0 133
D 6 69 0 0 69
Batch 2 18 1 0 17
Lisp 2 12 0 0 12
GLSL 2 11 2 0 9
FORTRAN Legacy 1 0 0 0 0
--------------------------------------------------------------------------------
Total 19977 2202608 297026 292934 1612648
--------------------------------------------------------------------------------
Do you understand this is a question : "Let me ask you how many of immigrants are grad students or people with high tech jobs?"

or not? And asking question or pointing calculation flow in one argument has nothing to do with evaluating your idea before puting forward.

Seriously, Why do you keep repeating yourself!
10 iPhone X Mockup Free to Download
You're implying that the metric system and IPv6 aren't being used in great numbers today, which is false.
Yep, 11GB.
> The code is released under GPL3, so you won't be able to use it for something commercial […].

Actually, you can do this just fine. There are no 'non-commercial' clauses or anything like that in the GPL. You just have to release your own sources.
Perhaps they wanted the average of the dates to be accurate.
Top 3 Selenium IDE Alternatives for Firefox and Chrome
I learned of this man recently from several different Chinese people in China. All are quite interested in listening to what he has to say. Personally I have no idea how much, if any, of what he says is true, but even if he's lying that's not an acceptable reason to silence him. It is also quite a coincidence that efforts to block him have increased right before the big show in Beijing this month.
a map of the whole of North America would make more sense in this context (instead of a map of "U.S. and Canada", which do not even appear in the map itself).
It got shared a bit further down the thread:

https://digiconomist.net/bitcoin-energy-consumption
Not necessary. It's also to remind people that it's not a public service, and that they should not expect anything from it. You should not put anything important on FB, because "XYZ is a business, and can set whatever policies it wants..." and doesn't have your best interest at heart.
Would you please stop using HN for political/ideological battle? You've been doing it a lot, and it's definitely not helpful. It's also against the site rules:
https://news.ycombinator.com/newsguidelines.html.
The reason I don't (and wouldn't) use RawTherapee is that it does not have any selection tools that allows you to edit parts of the image (beyond gradients).

What this means is that you set your global contrast and export the file for further dodging/burning and edits in Photoshop, Gimp or some other software.

If you increased the contrast of the image in RawTherapee you will have darkened the shadows. So, when you open the exported bitmap in Photoshop, dodging an eye or some other part in will give you a lot more noise and a lot less headroom compared to doing this work on the undemosaiced data.

This is a big design fail and an actual problem if you go beyond the most basic raw conversion.
Do you post publicly or privately? This is happening increasingly for public posts
Back in 2002–2004 when DSL wasn't a commodity, a local ISP offered WLAN access. We lived on a ridge and had a clean line of sight – some 2.6 km – to one of the base stations so we set up a spare satellite dish with a peanut can feed and were happy customers thereafter.

In the dry winter months the we had some 22 dB of signal-to-noise ratio and during the summer months it fell to 15 ish dB. The link became unusable at around 11 decibels of SNR, which we hit during heavy rain and fog. Just looking at the link quality would tell you as much as peeking out of the window.
It seems you are not capable of understanding what "we don't know" means and continuing this discussion is pointless.

I asked for statistics and wanted a number. pointing ideas without any numbers is ridiculous. I am fascinated how much people can ignore what they don't like to see.
What 24 Hours of Limited Internet Connectivity Really Feels Like
It only takes a few seconds to explain what a palindrome is. It's a very simple concept. A candidate who can't figure out how to tell if a string is a palindrome in the normal amount of time allocated for an interview is probably not a very good programmer, even if the candidate has never heard of palindromes before.
I think Italians have less humor than Germans. Italian stand-up comedy is quite boring, from what I've seen so far.
>when I said a few weeks back that eventually Google, Facebook and Twitter would start selling Silencing as a Service (SaaS)

Would start?
The music business is growing again
My point is skip the office setting, do 10 mins of workout at home before you shower and save 20 mins of time.
Ycombinator does have a podcast.
Althea mesh: Cryptocurrency powered decentralized ISP (VIDEO)
The linked video provides the best & quickest overview. Included a few other links below for quick follow-up. I'm not involved with the project but came across the video earlier. Decided to post here to see what you guys think of this.

More info here: https://redd.it/73ndia

Home: http://altheamesh.com/

Updates here: https://www.reddit.com/r/altheamesh
Not starting worldwide. Launch city Toronto. There are essentially no jurisdictions where we'd be legal. Places that have legal sex work usually make surrounding activities legal. Places where it's fully legal have regulatory issues we wouldn't pass.

US targeted for mid-2018 after we have a few cities smoothly operating.
>as silencing people is not the American way.

Except when it matters -- e.g. if they're whistleblowers, activists, people like Manning, Gary Webb, or heck, MLK, and so on -- all the way to McCarthy-ism and Hoover.
"Google is now pledging to index all subscription news outlets in search, let publishers determine how many articles to provide free through the search engine, and will not demote them in results if they have little or no free content."

Very useful, indexing inaccessible content.
Particle physics, 10,000 times faster
> But of course if you've done any real world AB testing, much less any statistics training, you should already know that.

Are most product managers and designers running multivariate tests thus trained? My experience has said 'no'.

In fact, if there's one error I see companies making again and again, it's confusing customer signal from user noise.

I do agree with the rest of your comment however.
Maybe I am missing something thing key. But that sounds like an assumption? Is there any evidence/details you can point me to?
I don't think this comparison holds up. There's a not-so-fine-line between co-operating with a racist government for scraps of power, as these ostensible leaders did; and trying to communicate with, and understand individuals.
This technology stack really feels like the future, awesome work! React & GraphQL go so well together, I love Relay's and Apollo's approaches to couple the data requirements of a component with the component itself! This is such an awesome workflow for working with an API.

Also, a shameless plug: If you want to get started with GraphQL, check out https://www.howtographql.com. There's a basic introduction to GraphQL and many hands-on tutorials, e.g. for React with Apollo or Relay (including videos).
The real problem is the inverse. We have too many people ready to contribute new knowledge.... and we think this is a bad thing? Because, all diseases are cured, the jails are empty and we aren't actively destroying the planet?

I think this is actually how we want the future to be (we would prefer more bankers and real estate agents?). The real problem is nobody has worked out a humane way to fund it.
How to Make New YouTube Account Fast
They were trying to get you to learn ZipLists, I imagine.
In practice, we have lethal systems at home already: the electrical system and the hot water balloon.

They have been working fine for the last decades without an Internet connection. We do have accidents, but compare to the incredible deadly danger they pose, it's very low.

How ?

Well they have fail safes that disable the system when it enters a dangerous state.

You should not need an Internet connection for anything essential in your home. Certainly not for something that is marketed to take your "off the grid".
Writer-in-Residence at a Homeless Shelter
I wasn't suggesting you should do HIIT at work (although we used to take an hour gym breaks during lunch at my previous office since we had a gym next door to the office), but rather do 10 mins of exercise at home and get more benefits while saving 20 mins of time.

I mean if you're chatting with coworkers and relaxing during the walk then it's a different story - but if you're just in to it for health benefits - like I've seen people suggest walking home from work, etc. - just take the shorter route and do proper exercise.
You are the one moving the goalposts because the article is about climate change.

“Bill Gates has committed his fortune to moving the world beyond fossil fuels and mitigating climate change”

Back to my original comment: “You derailed the entire point of the article by taking a tangent into a completely different...”

If we move beyond fossil fuels and use 100% wind, solar, and nuclear energy, for example, does the electricity use for Bitcoin matter?
This is exactly what I feel. I get heavy request to build projects in React where their use case is pretty simple even wordpress can suffice.
No offence, but you sound like you haven't worked in or close to such a field. CS theory very often doesn't require coding at all, and coding would be barely helpful.

edit: this is not a value statement.
> You tend to over-index on things you can measure and under-index on things that you can't.

I am going to steal this. I am going to deploy it in one of this morning's meetings and pass it off as my own.
Are you sure the editors you're referring to weren't using gap buffers? The logic for a gap buffer is hardly any more complicated, and the performance benefit is significant.
You know how when you go to a website, even one you'd never share, you'll get a prompt to like/share the page or its contents on Facebook? Every time that Facebook widget gets loaded, Facebook receives information about your browser/operating system/etc. that it uses to create a fingerprint that it checks against your previous history. You'll also get a cookie (which you essentially have to opt-out of) to better help Facebook track your browsing without needing the fingerprint.

So many websites put up that little like button that Facebook's reach extends well beyond what users upload directly to their website. Facebook's strength is that is can combine your demographic data with your network AND your internet habits. Facebook, in countries where it's not blocked, will even build profiles on people that have not signed up for facebook directly, for example if your friend uploads a photo of the two of you with your name. And Facebook advertises to these people as well.

So I think whatever isn't "more serious" that you do on Facebook is probably more serious than you think. You either need to be hyper vigilant about JS/cookies or you need to not use the internet at all to be able to divorce your profile and all of its information from the rest of the information Facebook has from you browsing the web.
> This bit of randomly swapping freeway colors between brown and white seems to be a common theme.

It looks to me that it's to do with contrast against the surroundings. The build up areas are brown and the roads through them are white, when the roads leave the build up area they change to brown. This contrasts against the white background giving a visual continuation of the road.

The brown sections of the road are also thicker, perhaps that indicates multiple lanes or even possibly different road surfaces.
> difference between a recogniser

Please note that the term "recogniser" is very fuzzy, it could mean a regex matcher, a parser or even a turing-complete thing. Not very helpful for this discussion.

> a parser, which outputs a data structure

Please note that a parser is not required to output a data structure. In classic computer science, the parser of a context-free grammar usually has a minimal (boolean) output: it just either accepts or rejects the input.

If your "recognizer" is too weak (e.g. regexes), you risk not properly checking the language (see below).

If your "recognizer" is too powerful (e.g. turing complete), you risk tons of loopholes which are hard to find and hard to analyze. You probably won't be able to prove the security, and even if you do, it will probably be hard work, and even harder for others to follow and to verify.

But if your "recognizer" is a parser, you have a good chance to succeed in a safe way with minimal effort. Proving security is as simple as comparing your grammar with the ECMAscript standard.

> you can get away with something like a regex to do the job [...] with the crazy things JS lets you do a recogniser for a relaxed language is likely to still let potentially dangerous code though

That's exactly my point: Sure, you can try to build a protection wall based on regexes, but there's no reason to do that. Use a proper parser right away and don't waste your time with repeating well-known anti-patterns.
My specific problem was : client claiming intellectual property over my work. If I work for free, my work is my work but somehow the claim was made.

Then you have bugs, months after delivering, and you can't say "no I won't fix it". So although you don't want to work anymore, you still have to.

Then you have new functionalities. You are burned out with the project but there is this little thing that your friend/customer really needs. And you don't want to do it, and since you've never been paid, you'll do it for free again and you'll get burned out some more... So no compensation.

Now you can argue that the problem here is not the money, but the lack for a proper contract, that'd be right. But the money question automatically brings the contract question. That's why I say : don't work for free, ever.
This is a disappointing decision. As a user, I don't want Google to rank page content for me based on something other than what I'll see when I visit the page. With this system, presumably, Google sees one thing (the actual article) while I will see something else (a useless paywall): bait and switch. When I search the World Wide Web, I'm not trying to find content within private walled gardens.

It's fine if Google wants to add support for ranking paywall-restricted pages, but those results should only show up for people who have a subscription at the website, and not for everyone else who doesn't. This would be easy to implement: the publisher sets a cookie with Google on each user who has access. Only users with a cookie will see restricted articles in their search results by default.

You could further improve the search experience by allowing users to set a preference determining whether they want to see restricted content in their search results for which they don't have a subscription.

To be fair, the previous policy requiring three free articles per day was probably excessively deleterious for subscription websites. That's probably more than 95% of casual users will ever read. I think there's a better middle ground in here somewhere. Most of the time, I want to filter websites out of my search results if I don't have the ability to read the article right now.
This is one reason why we're excited about our company (info in profile). By operating anonymously, we can choose ethics over legality. By erring on the side of sex workers, we can shift some of the power away from abusive clients and review culture. Since we are involved in every transaction and serve as a commercial focus point, we can encourage unions and collective action.
Oh yet again another SJW crybaby piece. Stop getting offended. The tech and the crypto world is dominated by men for biological and historic reasons (Read James Damres pro-diversity Google memo and its sources). So obviously they are likely to think a women is +1 at a event. That does not make them evil white men who hate you. How about you stand up proudly and impress them with your crypto knowledge instead of this SJW BS?
Indeed! Actually I'm quite surprised that with all the competition and snobbery going on at Michelin-star level restaurants, there's no restaurant that tunes their tasting menu to the guest's individual perception. Even a genetic test is probably feasible now, but at least a picture of the tongue and a questionnaire. I think there's a huge business opportunity here. "Crisp Paupiettes of Sea Bass in Barolo Sauce" sounds posh, but it could sound even more posh "finely tuned to the perception of those extremely sensitive to chestnut tannins".
Dagen H: The right-hand traffic diversion
From the increasing number of PhDs, can't we state that the PhD is the new MSc? Shouldn't we define a new level?
And it isn't just the experience in their technical area-- it is the experience in life, in communication, in seeing many cycles in innovation, and an experience with a culture and time that is different than the one 20-30 year olds have known. It is unfortunate that people can't do many different careers in their lives, applying the skills of one to another. Switching is rare because you have to chose a track and never deviate. For all the talk in the younger generation about iteration and analysis and rapid modification to promote innovation, one might assume that they welcome those who have changed and refashioned skills and careers. Instead, they seem to fear those who are adept, strong, and confident about learning new careers and making change. It's ironic. It is also tragic for those who have the courage and grit to change, and who can't get hired in any new field despite their skill and hipness w new technology. This speaks of fear, and of anxiety on the part of younger generation. About? That there will be no work? I'm not sure...
I have mixed opinions about the "black boxes" in vehicles.

In theory, it sounds like a good idea but I learned recently that police can quite easily download the data from them (via the OBD port) and apparently it is common for them to do so when investigating accidents -- especially fatal ones. AIUI, they are not required to obtain a warrant in order to grab this data and that is my primary concern.
There are some oddly bad tempered responses here. The readme doesn’t suggest it’s necessarily the best way to implement HN. It’s not an opinion piece. It just lists a bunch of commonly used libraries, and documents rather nicely how to put them together.

I can see some value in describing alternative or better ways to do what this web app does, or of critiquing the particular way the components are used. But rants about hating the js ecosystem or this HN implementation just makes it seem like you’ve had a horrible day at work. OK if that’s the case, we’re sorry. Go out for a run or a drink.
Physical currency per bill needs to travel once and in big quantities in the same truck. Then it circulates on "residual human energy" from pocket to pocket for years.

There is an absolute initial cost, but then there is none. CC servers (and digital banking in general) needs a permanent upkeep of power.

I think the cost for paper money is neglible. Coins however is more interesting. Their face value tends to be less, yet weight is substantial compared to a paper bill.

Here I can see more an argument for cost.

This actually was very relevant going back a bit in history when we used silver and gold for money. You get a whole issue of material cost vs it's face value as well.

In case of heavy deflation, people might just melt pennies (copper) and sell them for other (ie. international) currency. To increase the person's actual buying power.

There's also a general argument to be made for copper and in the past gold for currency, as these materials hold an inherit value for their atomic makeup and it's applicable use which simply can't be justified/compared vs it's value as a human usable currency.

In general, both currencies have their values.

Physical: needs no power upkeep, nor situational power and data connection to work.

This is great for reliability.

A nice thing about digital currency though, is the power we get. Instant transfer over physical irrelevant distances is pretty nice.

Another nice thing is I feel more comfortable with just 20 bucks cash. If I wanted to go out in a world without digital transfers, I would carry a lot with me, for the drinks, the food, buy a situational ticket for some party you come across, money for a taxi/train.

In a world without digital currency, "hitting jackpot" for a robber is statistically absolutely higher, and thus it would potentially increase crime levels quite a bit.
You can, however, use Linear Discriminant Analysis on thr topic scores from Latent Dirichlet Allocation.....
Why Elm needs a better native code policy