skysight-inc/HackerNews huggingface dataset:
Hey Usama. Nice walkthrough for the uninitiated. It may be worth discussing the pros and cons of this implementation, however.

The algorithm you have described runs in O(n^2), or quadratic time. This means that if your array has length n, you perform n actions for every item in the array. This is fine for small arrays (9 actions for 3 items), but becomes problematic for larger arrays (100,000,000 actions for 10,000 items).

Compare that with the algorithm described in the first article you've mentioned [1]. This uses a map/hash/dictionary to store information about each unique item in the array and retrieve it (typically) in constant O(1) time instead of needing the inside loop to count matching items again. As a result, it is only necessary to perform one action for each item in the array, achieving O(n), or linear time. Now we perform 3 actions for an array of length 3, and 10,000 actions for an array of length 10,000 (10,000x times faster!).

Of course, this depends on how long each 'action' takes. For example, if we simplify the algorithm in your article, we might just be incrementing a variable. Consider that to be 1 time unit. The algorithm in [1] may need to perform some kind of hash on the array object taking 10 time units before also incrementing a variable, so each action in [1] might be considered to take 11 time units. For small arrays this might actually take more time. An array length of 3 gives 3 time units for your algorithm, and 33 for the algorithm in [1]. Once the array is large enough however, the algorithm in [1] will be superior, taking only 110,000 time units (10,000 * 11) for an array of length 10,000 compared to the 100,000,000 units for the algorithm in your article.

[1] http://stackoverflow.com/questions/1053843/get-the-element-w...
Running ZooKeeper apps without ZooKeeper
> Women get pregnant; men don't. Women have to nurse children (as in breast feed), men don't. When a woman it's pregnant or nursing, she needs support.

Absolutely none of this is relevant to whether non-women or women "should" be homemakers. Women get pregnant but that doesn't mean they're in any way more suited to taking care of children than non-women.

> Because you can't raise children on your own.

Tell that to the literally millions of single parents who do a great job raising kids while millions of two parent households fail at it.
I mean the combination of val (immutable) and var (mutable) as keywords to declare bindings. OCaml uses let and so does Haskell, right?
Smart bike is small enough to fit in a backpack but has some serious power
Ask HN: How does utility hybrid apps makes money
I am planning on making an app similar to wunderlist primarily for mobile but have a syncable web version as well.

What should be my monetization strategies?
Harold Hering
Ask HN: How HN helps you?
Sourcetree, a git/hg client, was written in c# for windows and Objective-C for Mac: https://community.atlassian.com/t5/Questions/What-technologi...
Discovery Learning (1961)
The appropriate place to post this is in a monthly "Ask HN: Who is hiring?" thread. The most recent one (May 2017) is

https://news.ycombinator.com/item?id=14238005
That bug is extremely common, and the source is always the use of soft-deletes in the database. When you view the list of items (ex: inbox), the database query includes a "WHERE deleted = false" to exclude rows which have been soft-deleted. When viewing a single item (ex: message) the URL contains a unique identifier, whether an auto-increment integer, UID, etc. The query used to load one item is "WHERE id = :id" instead of the correct "WHERE id = :id AND deleted = false".

Managing soft-deletes on a database table requires an attention to detail, with every single query ever touching that table, that many developers lack the discipline to handle. Discipline aside, it's difficult for every developer on a team to remember which tables use soft-delete, and when checking that flag is or is not necessary. Finally, ORM abstractions often automate soft-delete in such a way that makes it exhausting for developers to validate every query. I've seen this bug over and over again at every company I've worked for. Happens so often it's impossible to keep count.
Why Unguided Learning Does Not Work [pdf]
There are many useful computational model written in fortran that would be absolutely useful if they can be run in a browser, simply because telling the user to compile them on their own is impossible unless they're familiar the toolkit themselves.

For example, it would be incredibly useful if you can run various US EPA's dispersion models right in your browser.

https://www3.epa.gov/scram001/dispersion_prefrec.htm
Gas got really cheap in the mid/late 80s after it got really expensive in the late 70s.
Hyperspectral developers target smart phone applications
> The way to not be afraid of abuse it's to have a support network.

Your support network is significantly more flexible if you have access to money. You haven't (and I suspect can't) made any real argument that there's not a vast power imbalance in a relationship where one party makes the most or all of the money.
> Because YC is an in-person program, we've never been great at remote work.

Hmm. Is this seen (internally) as a problem that needs fixing?
Members can be chained, which improves readability a lot.
This is his answer: "I work on search at Google, and I have to say, very clever answers! Now, please stop. :-p"

I don't think that he did it because it's his job to stop random people on the Internet from running slow queries. I think she was just surprised how creative people are and found it funny.
Do you have problems with locking if two requests are made in the same time?
Zomato starts monetary payment for Bug Bounty after hack
Don't forget battery replacement... Our the environmentalist coast to build a battery
Writing correct lock-free and distributed stateful systems in Rust, with TLA+
Gobekli tepe – archeological dig reshaping human history
> This battle is starting to get ridiculous. The "let the market decide" shills don't seem to understand there's no market

Why is there no market ? This is the kind of statement a shill would make

> Until then, let's all just agree the net neutrality is a common-good consumer protection

No, first you prove this is not a problem solvable by the market
After the app is loaded, the registerServiceWorker.js is executed. It checks for updated sources and updates the cache then. For the user to actually see those changes, the user will need to refresh the page. The relevant lines are here [0].

[0] https://github.com/facebookincubator/create-react-app/blob/m...
Believing that NYU is an Ivy League school betrays a lack of understanding of the American class system.
The last 3 cars I owned here in Germany had the following real life consumption:

45 mpg (bought 2002)
35 mpg (bought 2013)
42mpg (bought 2017)
Yep! Someone else posted it so didn't get to make that call :) I think we learned we need to make the UI itself have a mini tutorial.
Have you ever wondered why these irrational behaviors are so common? It's not just racism but also overconfidence, aggression, jingoism, ultranationalism, fundamentalism and any number of similar modes of thought. Clearly the fact that they are widespread instincts indicates that while it is irrational at an individual level and is the cause a lot of suffering and injustice, there is a trade-off at the societal level.

These trade-offs are also the reason why more liberal Western societies are plagued by a new generation of social ills and inefficiencies. I happen to be an very liberal person but it's easy to see that people sometimes respond poorly to the absence of value or things to believe in, no matter what these values themselves might be.

Although the person you replied to did cite a medieval concept, it's still very much relevant in the modern world since we now have to deal with anomie on a large scale. I do hope the liberal modes of thought will prevail however! But if there were no trade-offs they would have won out a long time ago.
The editor that became known for consuming nontrivial amounts of CPU for blinking the cursor, something computers could do since they replaced paper tapes with screens.
Dublin Ireland Round Trip from 55 € on Flychecker
Bitwig Studio, https://www.bitwig.com/en/bitwig-studio.html

Booksmart. http://www.blurb.com/booksmart

Ultramixer, http://www.ultramixer.com

jAlbum, https://jalbum.net/en/

VRL Studio, http://vrl-studio.mihosoft.eu/

Centigrade UI Components, http://www.centigrade.de/en/products/bizlaf-stock-look-and-f...

Synthetica UI Components, http://www.javasoft.de/synthetica/

JGoodies UI Components, http://www.jgoodies.com/products/smart-client/

SQL Developer from Oracle is also quite ok.

The sample applications developed on the "Filthy Rich Clients" book, http://filthyrichclients.org/

You can watch the related JavaONE 2008 session at

http://www.oracle.com/technetwork/java/j1sessn-jsp-155597.ht...

Oh and MATLAB is also a Swing application.
Now see the Information Commissioner guidance for privacy policies that I hyperlinked at https://news.ycombinator.com/item?id=14370384 .

Whilst most privacy policies do not say whom the data are shared with when it comes to enforcing terms and conditions and protecting the site/its users, the BBC's privacy policy here is. The UKICO guidelines point out that part of fairness is telling people whom data are going to be disclosed to; which the BBC is doing.

If one has a gripe against that, then one has a gripe against everyone, from Reddit to Amazon. Because all of their privacy policies have clauses that say, in one form or another, that personal information is disclosed in order to enforce terms and conditions, and to protect the site/its users. Reddit's and several others' are elsewhere on this page. Here is Amazon's:

> We release account and other personal information when we believe release is appropriate to comply with the law; enforce or apply our Conditions of Use and other agreements; or protect the rights, property or safety of Amazon.co.uk, our users or others.

Ironically, the BBC is actually attempting to be the best of the bunch. Other people actually do not comply with the UKICO guidelines and make no mention of whom the data are disclosed to in such cases. They just make vague "we disclose data" statements.
Very interesting. Does this really implement some intelligence/learning, however? Or is it just going over a list of known vulns like most scanners do?
I'm not totally convinced but sufficiently intrigued to give this a go.

Are you focussing purely on low to mid level employees inside a company or also catering to freelancers and such people who have similar though not exactly the same needs?
> But truth is, their business isn't from Mars, it's easy to understand, even if it's not easy to optimize. And if they truly need special custom development, why are they so poor at doing it? Where are the benefits of all that admin spending?

Speaking of Buffet, this sounds a little bit like his explanation of the "Institutional Imperative" http://www.berkshirehathaway.com/letters/1989.html (just above the 'miscellaneous' section at the bottom)
The schools for and against anaphoric syntax constructs are pretty divided 50-50. "It" is certainly better than scala's underscore.
> To give you an example of the folly of fuel economy regulation, consider that 90% of automotive pollution is created by the oldest 10% of cars on the road. Does it really make sense to force all buyers of new cars to pay extra? Why not charge a tax that increases for every year a car gets older, so that the person driving the smoke-emitting clunker has an incentive to upgrade into something that is cleaner and safer.

You have picked a bad example.

"Pollution" in the sense you're using it is entirely independent from carbon emissions. Old cars pollute because they have poor emissions controls. Carbon emissions are directly proportional to fuel consumption regardless of emissions controls. For example, a fifty year old VW Beetle gets the same 30MPG as a brand new car, which means it emits exactly the same amount of carbon, but much more pollution, meaning particulates and smog.

The purpose of fuel economy regulations is not to reduce particulates, it's to reduce carbon emissions and oil imports. There are separate regulations covering particulate emissions for new cars, but nobody complains about those because highly effective modern emissions controls are a solved problem. How to make a big fast car that gets 100MPG is not.

The correct solution to the smog problem is to impose emissions limits on all cars. If your old car pollutes too much you either pay to retrofit some modern emissions controls or you don't drive it on the road.

The correct solution to carbon emissions is an energy cross charge. You tax carbon (trivial to do at the pump for gasoline) and use the money to subsidize non-carbon energy. That lets you use half as much carbon tax for the amount of price differential you're creating between carbon and non-carbon energy, and it takes no money out of the average person's pocket. It just means you pay more for gas and less for electricity, which makes you want to use less gas and more electricity by buying an electric car.

In other words, CAFE is stupid but not for the reasons you said.
They are trained to game systems. [Take tests, do better than peers, out think superiors, etc]. But they just need a path to follow. They will follow anything that makes the most money the fastest.
How to solve the issues above:
Just listen to 'ondrop' event on body and store the path of the file and call event.preventDefault() to prevent the file loading.
Now I think all of your issues are solved:

>1: You can now filter the extensions as per your requirements

>2: Now you can load the file separately and verify the content as per your satisfaction using the fs module available in electron

>3: You can use: ondragover and ondragend events to facilitate ui feedback

>4: Not sure what you mean by file drag, but I cannot think of anything that cannot be implemented here.

>5: Not sure what do you want here.

>6: Not inbuilt but can be built easily.

Editors like atom and vscode have very good file-drop functionality and have image viewer apart from many other goodies.
Depending on your familiarity with js, these things are more or less trivial to implement. Github team must have a different feature-set in mind that unfortunately didn't had drag and drop functionality for their first release. If anyone really wants the feature, the better way is to leave a feedback in app or open a issue (not sure if either exists).
Anyone know what the telegram Desktop team uses?
The emails where sent from compromised accounts and Gmail requires a "to" address, I think.
Have you considered trying to recover files that were deleted? Here's someone's free software being promoted for that with handy instructions http://www.easeus.com/data-recovery/recover-decrypt-wannacry..., or you can try Recuva, which is supposed to be particularly good, with a fairly fast deep scan. PhotoRec is where I would probably go for a windows machine myself, it scans slower, but is command line and understands file formats so even if data is partially corrupted it can rebuild and fix.

Obviously, run these from a usb drive so you don't overwrite more.
The machines have surpassed us. No human could come up with paint names this good.
That issue was limited to mac, as far as I know
On your point on algorithms removing the experience of discovery, I sometimes feel like there's something lost in getting your answer from the top comment on a Stack Overflow/Reddit post as opposed to digging through every response to a question on a forum, where I feel like you can gain more understanding of where the response came from.
Language quibble:

> "Function arguments are specified in brackets after the function name."

No they're not! They're specified in PARENTHESES after the function name.
If you're planning on making a ToDo app then you're probably going to make the most money by not building it.
JavaFX is the way to go.

If you also need to target Android, then it is a bit harder.

Yes there is now a port of OpenJavaFX to it but it was still a bit of work in progress, specially since it requires Java 8.

Probably the best way is to use MVVM and have separate views for JavaFX and Android.
many of the enrichment routines are actually based around behaviours that are needed to better care for the animals. for instance, training a command to swim to a platform and breach up and present their underside? this lets veterinarian more easily perform examinations. training a jump to a particular side of a pool and staying there can let the maintenance crews work on filters after hours. modern enrichment routines have many purposes beyond entertainment, and if they can also draw paying crowds and donors, so be it for the better. a marine mammal specialist at your local aquarium can probably talk your ear off on the topic if you were to go ask about the "tricks".
Programming Across Paradigms
I'm fairly certain that the reason the 2002 car was that efficient was because there was less emission regulations back then. They could simply use a more efficient burn at the cost of more polution. This was exactly what the VW scandal was all about.
24 MPG is embarrassingly bad. A 1970s Datsun 240Z gets the same fuel economy. Compared to a modern luxury car, a new BMW 3 Series will get 80 MPG on a freeway. There's nothing wrong with buying a gorgeous car like yours, there are plenty of reasons to have one, but trying to claim it's environmentally friendly is just ridiculous.
This. Having worked in a lab with a strong staff science presence, I know their value and what they bring to the table. I'd absolutely love one.

In the meantime, I'm shaking the couch cushions to be able to support more than one student.

You want 3X what a grad student makes makes? That makes you almost as expensive as me, and I'm the PI. I don't say that out of arrogance - I say that because that means I now have to pay for both of us while you go do science. In a grant, you're actually more expensive, because some of my salary is covered by the state/teaching/etc. while you're a pure soft money hire.

That's also ~45% of a non-modular NIH R01's yearly budget once you include benefits. Which means I'd be frantically writing grants with ~10% pay lines (being optimistic - the effective pay line for a PI under 40 is laughable) just to keep your paycheck coming. Because I can't fund you via a training grant, or an RA/TA line.

Keeping you employed for three years would consume my entire startup package. No travel, no data acquisition, no lab equipment...just you.

I'd like to be able to do all that. I'd also like a unicorn.
Generally in the world of bug bounty programs, the signal-to-noise ratio (SNR) is around 10-20%.

Even at this low rate, it is not too bad. Let's say you receive 10 reports. You can relatively quickly identify the 8-9 noisy reports to find the 1-2 valid ones. Of course, a higher SNR is always better. It saves you time and effort.

On HackerOne, the average SNR across all programs is over 30%. The platform can automatically filter out certain reports that are duplicates or out of scope.

The platform maintains an average signal rating for each hacker (aka security researcher). Companies can limit access to their programs to hackers with a certain signal or higher. This will significantly increase SNR for the program.

Companies can also opt for a HackerOne program with triage included, in which case the SNR rises close to 100%.
I'll don my corporate hat and say: those are completely unacceptable excuses for poor client communication.

I'd perhaps accept 'I was so deep in the code!' once from a very junior developer, as a learning experience.

To the person that reported a bug, that one report makes or breaks their entire opinion of your organisation. We lost customers because of poor communication, and on the other hand made some very happy repeat-customers even when we had to say 'we can't fix that yet' - but they were in the loop for the whole process and understood why.
A quick search about the village, Marottichal, and it's chess obsession will lead you to a lot of other publications about this topic. I found similar articles which included pictures of men and women enjoying chess.

First the observation and subsequently this assumption, perhaps speaks more about how we let stereotypes cloud our thinking and judgement, and less about the people of the village/country themselves.
Could “Second Livestock” Give Chickens a Virtual Free Range?
They should finally acknowledge the existence of typescript and not push everyone to their flow. Second of all: reduce the size of this starter kit. Other than that I really like the features.
Feature Branches and Toggles in a Post-GitHub World
You are forgetting the crappy programmers as well.

I lost count how many times I have reviewed code where a for loop is used instead of System.arrayCopy().

Or the times I have seen code that my CS data structures teacher would probably give a plain 0, even if done in C.
As one who has experience with multiple UI frameworks, and 2 years of SWT i can only say that it is on par with Gtk+/C Gui development experience. It is terrible, with those int constants all around the API, not groupped in any intuitive way, to communicate what should be Or-able with what. The widgets are stupid, as to be native everywhere they usually provide only the common features.

Swing is way better choice, if you are on Java and want nice, feature rich, and somewhat (screen size) responsive UI.

I don't know JavaFx, but it may be worth a try also.
https://en.wikipedia.org/wiki/Bracket
Off topic, but whenever I see an animation of someone writing an import-statement in Javascript by hand I cringe a little.

This stuff costs so much time, use an IDE or some auto-import plugin for eslint.
Exploring Functional Reactive Programming in Python
The idea that science funding at this point is a function of "What ideas are good" is pretty contrary to actual evidence.
Yes exactly!
Or at least they used to. I used to use it all the time on my Bank of America credit card but haven't used it in a few years. I just tried to use it last week and it seems like the option has disappeared. Maybe it's just bad web design, but I can't find it anywhere now.
> quick to build a low-quality implementation, impossible to build a good one.

You just gave me a new quote to use. :)
Bitbucket doesn't prefer Mercurial. Bitbucket Server only supports git.
Here in the UK, the free market capital of Europe, things haven't progressed since the days of state ownership.

In areas of private fibre 200 Mb/s down is available; otherwise you're lucky to get 75 Mb/s down and 35 Mb/s up. For ~$40/month unless you want bandwidth limits or an overloaded provider.

UK speeds & pricing: https://www.thinkbroadband.com/packages
Ten Things That Occurred to Me When the Twitter Turned Off
Why do you need a service worker for caching? I thought the browsers did this by default.
> There are too many sharp edges.

I wasn't thinking they should learn programming as such. More that they should learn some various unix tools (grep/sed/awk/etc), learn how to combine them with pipes and learn how they can save the workflows in a shell script. Maybe some functions and variables but not if statements or loops. Maybe even do that in awk instead of bash.

I really love the blog by the way, any tips for putting one together like that? I'm currently replacing my node based abomination with a similarly minimalist one built with make, a couple of awk scripts and pandoc. I was thinking of going even more minimalist and putting a link to firefox reader mode on the page.