skysight-inc/HackerNews huggingface dataset:
Three days is not a whole lot of time to learn enough of CS to convince your interviewer that you know CS. I would recommend rather than learning something new, just brush up what you already know. Since you say that you rely on libray-provided abstractions it would be good to be able to describe and defend your choices rather than be able to actually implement them -- for example: you should know the complexity of python data structures, if you are going to tell your interviewer you trust the sort method of python's lists:

https://wiki.python.org/moin/TimeComplexity

Here are some resources that might help you do a focused revision/study:

https://www.interviewcake.com/

http://www.thecshandbook.com/

https://codility.com/programmers/lessons/

Don't sweat it if you get stuck on something, just move on ahead and revisit the problem later.

Once you've finished the interview though, I would recommend studying things deeply, reading a whole lot of real code and coding as much as possible.
Talks for software leaders resource
Misleading the public doesn't solve the issue. I live inside the medieval walls of a historic French town and we are 'overrun' with tourists. However, despite some of them being rather inconvienient, it isn't like I have the right to shut down the street in front of my house to prevent the intrusive traffic that makes it difficult to even exit my garage. I knew about this 'issue' when I bought the house. And, even if I didn't, I don't own the city. It's a shared resource. It's the reason we elect local governments -- to prevent special interests from dominating an issue. Government isn't always effective, but in cases like these, it exactly the purpose of government.

So instead of blocking a tourist 'trail,' folks on my little goat-path of a street appealed to the city to assist with enforcement of existing parking regulations. They even erected some barriers to prevent blocking my garage. However the tourists still have the freedom of access while still making it workable enough for residents.

But blocking the street, breaking GPS or any other vigilante response wouldn't be appropriate because there are more interests in this town than just my own.

The key is to work together to balance interests in a way that is reasonably harmonious.

These Hollywood residents, blaming stuff such as a dog being squashed by a car on tourists are being a bit ridiculous. The dog was in the street. The fact that it was (allegedly) a tourist car that did it is irrelevant and is really just a cheap propaganda play. If the cars prevent fire trucks from access, that is something that could be handled at a city planning level and not by some residents that seem to think they are traffic engineers.
Just include a dictionary that is word-complete - i.e. does not contain any word or symbol that it doesn't also define.
>>if you could verify the crucial piece of information, you wouldn't be torturing him in the first place.

This is not true. There are many things easy to verify but difficult to discover. For example a place the money is kept in a big house.
I wrote a post on reddit with some code to generate diagrams with generalized divisibility testing the last time I saw this idea (about two years ago): https://www.reddit.com/r/math/comments/1p9g8t/start_at_the_b...

Copied here for the lazy:

I wrote a small python script to generate DOT code for graphviz so that you can just input the base and the number to check division and automatically draw the graph. (The resulting graphs aren't as pretty as one made by a human, but it's kind of fun to poke around with it.)

Here's the script:

base = 10
divby = 7

print "digraph {"
print " 0 [shape=doublecircle]"

for i in xrange(0, divby):
print " ", i, "->", (i+1)%divby
print " ", i, "->", (base*i)%divby, "[arrowhead=empty]"

print "}"

Save it to a file such as `make_graph.py`. Then, as long as you have the graphviz binaries on path, you can render an image like:

python make_graph.py > graph.dot
dot -Tpng graph.dot -o out.png

Here are some sample outputs:

- [base = 3, divby = 11](http://imgur.com/cwUmnME)

- [base = 10, divby = 7](http://imgur.com/O7GYw17)

- [base = 10, divby = 10](http://imgur.com/k6xC0CQ)

- [base = 10, divby = 11](http://imgur.com/1SSXKcK)

- [base = 16, divby = 7](http://imgur.com/QZzSyva)

Not all the edges are actually reachable -- e.g. base 10, divby 10 has a black edge from 9 to 0 even though you can't ever wrap around to 0 since `(10 * anything)%10` is zero -- so the biggest you can get to is 9, then when you follow the white edge for 9x you start over at zero... There may also be other edge cases I haven't thought of ;)
I've done this during survival training. I think that it's illegal in some places, because it works so well.

I got the impression that the fish thinks that your fingers are vegetation. When you're in the right position, you can grab the gills and tail at the same time and throw it onto the shore where a helper can dispatch it.
So, four years in, the reliability of your Toyota is exactly the same as it was with the Kia? No problem?
yes, because coding style can be reduced to charset and indentation choice
FAR Manager on Windows has these in the form of Ctrl+1 ... Ctrl+0 shortcuts (set with Shift+Ctrl+1 ... Shift+Ctrl+0).

Does Midnight Commander? It's one of the features I have been missing on Linux.
Crystal Palace mengklaim kemenangan 2-1
NIMBY psychology strikes again?
All I hear is someone complaining that the articles they wrote about themselves and their friend (for self-promotion purposes) got removed because they didn't even glance at the introductory guide to writing articles.

> Do not create pages about yourself, your company, your band, or your friends; pages that advertise; personal essays; or other articles you would not find in an encyclopedia.

https://en.wikipedia.org/wiki/Wikipedia:Your_first_article

> Publication in a reliable source is not always good evidence of notability: Wikipedia is not a promotional medium. Self-promotion, autobiography, product placement and most paid material are not valid routes to an encyclopedia article. The barometer of notability is whether people independent of the topic itself (or of its manufacturer, creator, author, inventor, or vendor) have actually considered the topic notable enough that they have written and published non-trivial works of their own that focus upon it—without incentive, promotion, or other influence by people connected to the topic matter.

https://en.wikipedia.org/wiki/Wikipedia:Notability#Self-prom...

He further makes ridiculous claims going to the extreme opposite of deletionism, not recognizing at all the benefits of only having notable content on Wikipedia.

> When pages on Wikipedia are nominated for removal, Deletionpedia automatically pulls the page and adds it to their wiki. Brilliant. It stands to reason, given enough time, Deletionpedia will surpass Wikipedia in usefulness and Wikipedia will die.

Don't get me wrong, I'm all for inclusionism but I don't like it when you write articles about yourself and your friends for self-promotion.
Uh. Are you suggesting that Medium should never publish anything critical of a tech company because they're part of the tech industry? Because that sounds very sinister to me.
You guys do realize that most `find` implementations support both the `-ls` and the `-name` flags, right?

find ~/Documents -name somefile -ls
I don't really understand this. Why use grep? You can just use `find ~/Documents -name somefileiwant -ls`. You can use -regex or -path if you need to use regular expressions to describe a filename or path, respectively.

Alternatively, if you really wanted to use find and grep together, there is no need for any file I/O. You can just use `find ~/Documents -exec ls -l {} + | grep somefileiwant`.
Because they are angry people.

Angry!
Chunk Up Marketing – The Art of Finding Your Angle
That cab driver is probably still making around the same amount of money, and she's probably working 12x7 rather than 8x5.
Yes, you just need to work your hands into position and then grab it. I don't think that it's a good idea to do it if you aren't going to eat the fish, because I remember having to grab it very forcefully in the gills to be sure that it wouldn't slip away.
Abbreviated, shortened, clipped, etc., would probably be more accurate. Ellipses are not typically used to indicated this so much as "the text continues".
I think most sane human beings would consider torture in situations where the information obtained could save many lives (for example during the war).
What's the password (2001)
I asked a Beijing-based Uber driver why there is so much more availability now than there was a month ago. He said that there are currently some special incentives, one of which is a 1000RMB 金牌 (gold medal) for any driver who exceeds a certain # rides in a week, with an average rating of 4.8 or more.
Lowering blood pressure below current targets benefits a wide range of patients
Out with the Old, in with the New: Telescope Mirrors Get New Shape
Wow. His "proof" that auto companies have conspired to stop fuel efficiency improvements is that they didn't continue to grow at an increasing rate for all time. Oh, and he doesn't even start the Y-axis at zero, probably because it'd make his extrapolation look even more absurd. He's extrapolated an increase from 18 MPG to 28 MPG to claim we "should" be at 75 MPG right now if the car industry hadn't conspired to stop it.

Oh, and I'm pretty sure the time period he chose to extrapolate from is right when electronic fuel injection became economically and technically viable.
It's a problem of scale, not a problem of technology per-se. Life could be abundant on an absolute scale but tiny on a relative one. We could easily miss it for centuries before accidentally running into some evidence. Imagine the opposite, the aliens looking for us. They'd have to be within ~100 lightyears to be able to detect our radio transmissions. Otherwise they'd have to have a biochemistry enough like ours (or a very vivid imagination) to be able to even recognize that earth can support life.

Just like we are always looking for 'earth-like' planets.
A closed silo seems like a distinct step backwards compared to a stack you can maintain yourself.
You might like mlocate.
Yay! Another new project that pisses all over xdg config dir specifications.
>>Even if it is working, would that make it ok?
What about rape? Should it be criminalized? Is that worth a scientific study from nature?

If raping someone could potentially be used to save a lot of lives then we would have that debate. It doesn't though so. Everyone agrees that torture is bad in itself, the problem arise when not applying it would lead to even worse things happening.

If torture works it's immoral to not use it in those situations, that's why there is a debate.
OpenTSDB may be broken in the same way, but Prometheus isn't.
Location based SDK for iOS developers
iOS developers: To have a better understanding of your users for both targeting and reporting purpose - we have built an SDK.

With the user's consent; the SDK can work even when the app is brought to background or killed.

Along side - we've developed an very simple associated dashboard for visualization and analysis.

We're currently in the crowdfunding stage - will charge developers $19/month to start of with .. when the website will be ready, new users will end up paying around $39/month.

Please let us know if you are keen and we can chat on skype etc. thanks heaps for your help!

Regards, Ankit
The UI leaves a lot to be desired; there could be better tooling surrounding metrics selection (maybe like XPath?) for making rollup dashboards. Also, saving/editing the dashboard could use a better UI, but that's only like 10% of the time I put into the software.
This is what happened when Uber launched in Auckland as well. In NZ taxis are already pretty lightly regulated - no medallion system etc - so most of the uber drivers were taxi drivers who were using Uber, Zoomy (local hailing app) or normal taxi fares.
Such barbaric methods makes almost no difference for the victims who will probably die. The difference is the effect on population. If the purpose was to get information, I think there are more effective ways: chemistry or hypnosis for example.
I don't understand what you mean. Regex minimization is in PSPACE, so take any PSPACE complete problem, eg Q-Sat, do the reduction and apply the algorithm. Q-Sat can be solved by recursively enumerating all possibilities. So there is a method for minimizing regular expressions. It just takes a long time to run. If you have time you can probably think of an algorithm that works directly on the regex problem without doing the Q-Sat thing. It might even be faster.

Heck, there might be an algorithm that works really well in practice. People who do model checking and verification laugh PSPACE completeness in the face and are not even really concerned with undecidability.
> What does a modern metrics stack look like? There are so many words... Graphfana, Kibana, StatsD, Graphite, Prometheus etc. Which bits should I choose and attach together?
"Italy" as in Genoa and Venice we're big players in Mediterranean sea trade from 1100 to about 1600. During that time they developed banking, private companies, big amount of technology and took part in developing scientific method.

Power shifts, Spanish empire got upper hand in Atlantic trade. But they could capitalize on already superior technology of Europe against their colonial vassals. So no such pressure for innovation.
In this case, the police were all but certain they had the right man. There was video footage of him stealing the car. He had valuables from the car in his pockets. Likewise, the police were pretty sure the baby was still alive. It had only been 20 minutes since the car had been stolen. Based on these likelihoods, they thought beating information out of this man was worthwhile. I can't fault their judgement.

We deal with the same sort of uncertainty when sending people to prison. We accept that at some point, the likelihood of guilt is high enough to warrant imprisonment. Set this threshold too high, many criminals go free. Set this threshold too low, many innocent people go to prison. Because determining guilt or innocence is noisy, you're always going to false positives and false negatives. It's a trade-off; you pick a threshold that does the most good.
Your comment shows a profound misunderstanding of History, as Stalin was born 90 years after the French Revolution (and Karl Marx 30 years). Even while Stalin was alive, few if any French scientists were Stalinists, as by the time he rose to power France was diplomatically closer to the US than they were to the USSR.

During the Revolution, and preceding it, it turns out that many scientists were involved or even instrumental in the social progress that occurred. The simple act of imposing the metric system was meant as a way to eradicate the imperial in "imperial system". The Enlightenment caused the rise of many ideas of equality that can be said to have triggered the Revolution.

Of course, the extremes of the Terror also caused some scientists that were not deemed invested enough to lose their head, such as Lavoisier, the man that proved the conservation of mass. It should be noted that the government apologised a year or so later.
That's assuming the code-base was still saved as a representation rather than a syntax tree that can be viewed in whatever way a given developer prefer. There's no reason that has to be the case. In fact intuitively i'd be inclined to say its probably easier to write a VCS for a syntax tree than a free text string?
I've deleted my G+ account and I'm still kind of confused over what works or not. It's even designed so that you can no longer save clips to a list of yours (including "Favorites" or "Watch later") from the video clip page itself -- this brings up the "Join Google+" page.

But! Since your lists and their contents are still accessible, it made me wonder...

And it was shown that if you click on the upper left "hamburger" icon, scroll to the "Playlists" section, pick a playlist... Well, then the list is shown along with a fully functioning "Add video clip" button, which adds a video clip to the selected list on your disconnected account. Uuugh. I can only imagine it is to push users (back) to Google+...

So, AFAIK, you get to keep your YouTube account which can still store which clips you like and dislike, you can save them to default or custom playlists after jumping through some hoops, but you can't comment, your channel seems to be gone, and you can't upload new clips. All those "can'ts" bring up the "Join Google+" page for me now.

So in essence, if you are a creator, you seem to need a Google+ account. If you are a consumer and OK with not commenting, you don't need Google+.
> We know the oldest segment of the internet doesn’t block ads very much. By contrast, the rate will skyrocket for a younger, more tech-savvy crowd.

That's so contrary to my own experience, I wonder what evidence they used for that.

It's also interesting that they see the 'kind' of ads as a problem, rather than the industry and its way of applying technology as a whole. Ads are a bunch of payload requiring bandwidth (sometimes in short supply), cpu power (and so reduce battery life), waste the recipients time, have been used to spread malware and viruses and are used to track people and build profiles on them. None of those factors have anything at all to do with the content or the format of the ads, and each of those by itself is a very valid reason to install an adblocker, combined the decision is an absolute no-brainer.

For a day or so I used chrome (where I normally use firefox but that browser is currently occupied with a rather long running macro) and my chrome install does not have an adblocker. It's absolutely incredible how much worse the situation has gotten since I started using adblockers.

The advertising industry is the problem, not the ads themselves and I fail to see how they're going to get us out of this mess short of running into a very solid wall.

The fact that the largest advertising company on the planet makes a browser is telling, that may be in the long run the only way ads will survive, by being tied directly to a browser manufacturer which presumably will give them some way to force ads onto your screen. Personally I can't wait for the implosion of the advertising industry, sooner is better. Then we can go back to a web that 'just works' instead of this continuous barrage of commercial junk.

If the web were a radio station we'd be listening to 10 second music fragments interrupted with 12 minute advertising blocks.
Seems less like tickling and more like gentle massaging. And if you're lucky, you may end up with a happy ending.
> more than eight out of ten admitted using an ad blocker

As if we should feel guilty about it.
You appear to be jumping from 'the article is missing some details' to 'the article must be completely wrong'. Impressive!
Windows 10 Too Hard to Crack? Adoption in China Unbelievably Slow
Very true, but I wouldn't blame the utilities for understanding the basics of the US.

This model is really the US standard to screw lower social classes that plays out elsewhere, i.e. credit cards as the national payment system instead of payer initiated direct transfer like in most(all?) of Europe.

Richer people will tend to have strategies and resources (i.e. the money and rights to modify their residence, control over their work schedule, etc) to pay bellow average which will make them richer. People under stress will have to pay whatever the spot rates are.

This is the only defensible position for businesses as the ones with resources and time to invest in organization are the ones who have the resources to use the political system as a tool against anyone who would have them pay their full share.
You're right, I didn't read the article carefully enough. In my defense, it has things like "rate of change: -134 billion metric tons per year" and "Antarctica is still losing hundreds of billions of tons of ice per year" and "if Antarctica was actually gaining ice" and so on ... when what it means is, Antarctica is still (net) gaining ice, but it's also losing ice more rapidly, and in the near future the loss will outpace the gain.
I see no reason why computers getting better would fundamentally change the economy. They make everything more efficient, sure. But it's still about humans trying to gain resources at the individual level. And humans distributing resources to other humans at systemic level.

Slave trade didn't fundamentally change economy. Except for slaves themselves. So until human is more intelligent than computer, things should remain the same.
Chronos: Adhesive disk that can make almost any watch more like an Apple Watch
I also noticed the limited set of rules.

Does anyone on HN have suggestions for code style guides with cross IDE support? Ideally I would like something similar to Google's code style guidelines with settings to import into IntelliJ and Eclipse for Java, html/css, sass, JavaScript, maybe even frameworks such angular. The Google guidelines only appear to have IDE settings for Java (in this list).
The only mainstream Japanese clothing brand in the USA is Uniqlo which is H&M quality....Denim gets sold online but that's about it. We could use some more Muji!
I think it's poison for a developer. I work(ed) for two companies with open floor plans as a freelancer and I try to minimize my onsite time as much as possible. Either I get close to zero work done or I have a splitting headache at the end of the day. Phones ringing, people talking, people walking, music playing - it's distracting as heck.

In my home office, which is a couple of miles outside the city, all I hear is birds chirping and rustling tree leaves. I guest I'm a bit spoiled in that way but it's a great working environment.

In my opinon, open floor plans serve only two purposes: lowering the costs of building and maintaining an office and keeping the staff monitored.

> Facebook now has a 2800 person room in its headquarters [...]

That sounds like a complete nightmare to me.
Sexual selection makes female songbirds drab
I use uBlock because it does more for my security than my antivirus suite. Fix that problem and we can talk about everything else.
What's the point? This is what makes open source projects awesome and most authors will obviously be glad that their projects are being picked up and expanded by more people.
No, but ignoring these basic project conventions can lead to issues when another developer tries to work with the file, specifically around charset and line endings.
Likely the difference can be explained away somewhat by the difference in testing. The EPA testing is much more stringent, the same exact configuration showing much better mileage in European testing than US testing. The difference between US and Japan are even worse. The rest of the difference is simply vehicle preference, the US having more sales in the truck category.
I am not talking about French scientists being Stalinist during the French revolution but being Stalinist under Stalin and until the 70s.
DevContact – The Ultimate Customer Experience
perfectionism, you can play it as it is now tho.
Japan used to outsource a lot of production to Korea or do co-manufacturing.

Quality varies depending on the product.
The modern/popular way is to run a format tool before you commit. (gofmt, clang-format, etc)

A VCS for syntax trees means you need the One True Data Format(tm) for syntax trees in any language. Finding consensus on formatting per project is easier than unifying all syntax tree representations globally.
Результаты+поединков.+Шоу+Голос+4+2015+»
23 Time Management Tools That Every Busy Person Needs
editorconfig only defines the following properties:

charset
indent_style
indent_size
tab_width
end_of_line
trim_trailing_whitespace
insert_final_newline

These are all sensible things to enforce (with the exception of tab_width, which is actually a display preference). Subjectively, other things are mostly flexible.