skysight-inc/HackerNews huggingface dataset:
I prefer the use of iterators, instead of generating a whole collection. An example of a permutation iterator in C++ is:

class Permutations
{
public:
Permutations(int val_n) : n(val_n), _more(true)
{
a = new int[n];
for (int i = 0; i < n; i++)
a[i] = i;
}
~Permutations()
{
delete []a;
}
bool more() { return _more; }
void next()
{
_more = false;
for (int i = n-2; i >= 0; i--)
if (a[i] < a[i+1])
{
_more = true;
for (int j = n-1; j > i; j--)
if (a[j] > a[i])
{
swap(a[j], a[i]);
break;
}
i++;
for (int j = n-1; j > i; j--, i++)
swap(a[j], a[i]);
break;
}
}
int operator[](int i) { return a[i]; }

int n;
private:
void swap(int &x, int &y)
{
int h = x;
x = y;
y = h;
}
bool _more;
int *a;
};
That's archaic and not true anymore.
The idea of this watch is confounding.

Presumably, a person that is interested in having their watch tell them what day Easter falls on would be a follower of and believer in Jesus. From what I know about Jesus, he probably wouldn't be impressed by somebody spending millions of dollars on this.

What watch would Jesus wear?

Or maybe I'm looking at it wrong. Maybe it's just a great piece of art in the form of a clock.
Centuries? More like days or weeks. As deplorable as his comments were, Donald Sterling's personal communications were made public and the invasion of privacy was an afterthought.
Just about what I was hoping to see in the comments, was the expected format of the input.

May I suggest including in the readme.md, a sample line of the Pocket export format/your input format?

Thanks for publishing!
So, would using something like this eliminate most of the issues of 'not using Slack for FOSS'?

is closed source

has only one client

is a walled garden
Beautifully written article, important to remember as developers that we'll only ever be able to capture the chaos and complexity of the real world as a rough model no matter how intricate the engineering.
I can see the value of the standup but I find daily to be too often.

The best teams I've worked with have staggered them to either M-W-F or T-R, primarily because the work we do require more than a day. And depending how one works, a daily standup every morning makes it tough to get a good night's work in.

I often point people to PG's relevant essay during discussions about this: http://www.paulgraham.com/makersschedule.html
Ask HN: Best way to scrape web content?
What is your go to library or framework that you use to scrape web content?

I am looking to scrape from content that may or may not have JavaScript in the page, and I am looking for something with good documentation that does not have a steep learning curve.
My reflex initial actions are to block unwanted stuff on Web pages (which is good for speed and security also) with NoScript and your browser's anti-tracking support at least, and have your mail client ask you before downloading large items (~100kB, which are often malicious also).

And turn off any applications that may be chattering in the background without telling you.
An Open Letter to the JCP Executive Committee
> It was in about the third hour of using the new BlackBerry KeyOne, available for preorder now for $549 unlocked, that I started to question my longtime preference for touchscreen keyboards.

I'm surprised it took that long. Bret Victor explained it best:

I call this technology Pictures Under Glass. Pictures Under Glass sacrifice all the tactile richness of working with our hands, offering instead a hokey visual facade. Is that so bad, to dump the tactile for the visual?

Try this: close your eyes and tie your shoelaces. No problem at all, right? Now, how well do you think you could tie your shoes if your arm was asleep? Or even if your fingers were numb? When working with our hands, touch does the driving, and vision helps out from the back seat.

Pictures Under Glass is an interaction paradigm of permanent numbness. It's a Novocaine drip to the wrist. It denies our hands what they do best. And yet, it's the star player in every Vision Of The Future.

http://worrydream.com/ABriefRantOnTheFutureOfInteractionDesi...

I really hope this is the start of a trend
Kind of amazing that a single guy put in the effort to rev-eng such a complex implementation. Brilliant paper that, thanks :)
to be more exact, many people here seem to be incapable to tell right/wrong from legal/illegal or taking the easy/hard choice.

these are all different from each other. and more importantly, orthogonal to each other.

by orthogonal I mean that given a choice, deciding whether it is right, should be done independently of whether it's legal or easier/harder. think about it. even if you had the power to change law, making something legal won't make it any more right, and vice versa.

it seems to me that this guy made his choice of returning the CD vs releasing the code on the basis that the former is legal and doing the latter (somewhat securely) is harder.

not so much on whether preserving the code, in light of the cultural historical importance is right or wrong.

(you don't need to agree with me, but I'd love to hear a solid argument why the latter would be wrong, that doesn't conflate right/wrong with legal/illegal)

and even then, it's not entirely indefensible to base your actions just on what's legal or easiest. ethics is hard and especially the law provides a nice shortcut if you don't like to think for yourself too much. Just, don't go pat yourself on the back for doing the right thing. You don't get to do that. He does get a ticket and goodies from Blizzard, though. Sweet. Shouldn't taste bitter at all, at least for a while.
"the basic rule for Easter is that it falls on the first Sunday after the first full moon of Spring (that is, the first full moon after the Spring Equinox)"

Given that the watch knows all these parameters (i.e. day of the week, moon phase and date (Mar 21 = Spring equinox), would it be possible to construct a mechanical complication that calculates the Easter date?
This patent would have expired in any case in 2014, wouldn't it? It was filed in 92, and issued in 97, so the term would have been 17 years, I believe.
Infected developer published on Play Store all apps infected with Windows Virus
I remember using Totaljs (the framework) for a pet project a couple of years ago when I was willing to check out the nodejs hype for myself. Websocket support was nice.

I should have probably gone for something more "traditional" like Express (to learn proper node), but I have to say that coming from Java/Spring, I felt quite at home with it. Also, learnt a lot about callback hell.

Nice to see they went on with the project and built some stuff on it. Open source looks like the way to go for them, which is a good thing for everyone.
You should let people see what other people submitted although it's pretty easy by fiddling with the URL. I like seeing the word patterns but I really wonder how well it can detect true sentiment, not an easy thing to do. https://www.crealdo.com/story/movie-sentiment/movies/13
For many classes of software, sure. But there are plenty of reasons to isolate the entire OS. And Linux containers (not docker per se) are very inexpensive. Being able to compose using off the shelf packages and binaries and use userspace effectively provides a wonderful space to build solutions. I can use any language I want, any tools I want.
TLDR: Dates and times are hard
I do understand the the amount of work, but that wasn't the only argument presented. It was also presented as making it harder to accept patches. Since one of the goals of LibreSSL is to start applying security best practices, and one of the reasons for its existence is the poor quality and recurrent problems with OpenSSL, keeping compatibility with OpenSSL to make it easier to accept patches should be very low on the list of priorities.

Put another way, if you forked because upstream was crap, not changing because it makes it easier to accept upstream patches is a poor reason not to change something that might benefit from it.
If you want a fidget toy to actually be upset about, try the "Fidget Cube" of recent kickstarter fame. Knockoffs beat the genuine product to market.

https://medium.com/@jobosapien/real-vs-fake-the-infamous-cas...
SQLite, LMDB and RocksDB are all popular and embedded. They're not really web-centric though so don't get as much exposure on HN and its ilk.

Edit: Sorry if I sound like "that guy," just offering up some names in case people aren't familiar with them.
My experience has been that when it comes to the job market _knowing_ stuff is extremely valuable, but _having learnt_ stuff isn't very valuable, unless you have an excellent degree from a top tier university. What this implies is that you should select online study options based on how they contribute to your actual knowledge, rather than how they will appear to employers (in most cases, they will appear like nothing). Once you know enough, build a portfolio of projects to show what you know and look for a job based on that - if you really know how to get stuff done in the field you'll have many options to choose from.
Couldn't agree more with what you are saying here. Daily stand ups, if done right are very helpful especially for remote teams. I did daily stand ups at my previous company and they took on average an hour and were unfocused, meandering and generally pointless. I dreaded them and the whole team felt the same. By contrast, my current team is much larger but keeps the daily stand up to 15 minutes. It's focused and everyone is on page about tabling longer discussions for post stand up with the relevant stakeholders. While I won't ever say I'm looking forward to it, I see the tangible benefits. We are a remote team across multiple time zones and are able to effectively work together with ease. The daily stand up is a big part of that.
“Big nudging” is scary, but we should use it
Interesting article. One note...

"[...] the whole structure of astronomical mechanical complications – whether in the Strasbourg cathedral clock, or in watches like Caliber 89 – is a manifestation of a world view."

The idea of a "clockwork universe" is a mechanistic, modern, Enlightenment-era idea. Astronomical clocks predate that worldview by quite some time.
How to Start a Wordpress Blog (in Just 5 Minutes) :-)
> no reason why containerization can't be pushed right down to the language level

I started my reply by listing a plethora of reasons why this wouldn't work. (For one, this would work because it does work, right now in Erlang.) But they all came down to that it seems like you're missing some of the problems that containerization solves. You can wrap up almost any service -- regardless of language or versions or runtimes or how it interacts with the filesystem or what versions of libraries it depends on or what global configs it expects or anything -- and ship it as a self-contained normalized service that can run right alongside any other number of other self-contained normalized services that require their own global configs and libraries etc etc even if they're incompatible and whoever is deploying them doesn't even need to care.

Everyone has their own language and toolset that they're comfortable with and productive in. That will never change. Containerization abstracts over all of them and normalizes their deployment. You can never get that with a solution at the language level.
In a post-fact world, evidently it's the bullshit that pays the bills:

"The Guardian’s independent, investigative journalism takes a lot of time, money and hard work to produce."

Thanks but no thanks, Guardian.
In Java there are libraries for this (as with most things): https://github.com/tomgibara/permute
I was speaking in context of the company i work for. You're right but we're getting there.
No.

20 years ago, there was the same scream about Redhat going to destroy Linux when switching from bsdinit to SysV init, or from libc5 to glibc2.

Here we are today. Redhat is going to destroy Linux again. This time by switching from SysV init (or whatever).
There are possible reputational effects if they're linked to your current identity somehow.
The left has an unfortunate willingness to expend more energy on fighting each other than the people that they truly oppose.
Elon Musk laughs off the idea of Apple buying Tesla
Depends on what degree of certainty you require, and how antagonistic a relationship you have with your employees. (You seem pretty hostile.)

Providing career development opportunities isn't a revolutionary idea. Lots of companies will pay for external coursework at community colleges and what have you. The main distinction here is that Stripe is doing the education in-house.
> Just because a government orders you to do something privately doesn't mean it isn't compelled speech.

As I said earlier, the standard for illegal compelled​speech was defined in Wooley v. Maynard, prior to which there was no such thing as illegal compelled speech. Do you actually have an argument about why forcing the writing of unreleased software is illegal compelled speech, or are you going to keep saying it as a truism?
Sounds like a sweet gig
I started calling my extensions Uber* before Uber came in my country.
paywall, does anyone have a link?
Does anybody know how it compares to mattermost?
> Breaking the law

What percentage of laws in the US do you think it is reasonable to break? Unless you answer 0% you should justify your comment by explaining why the laws that Uber broke are just and important.

The laws Uber broke to evade regulators are laws that were put in place at the behest of the corrupt taxi industry to protect it from competition.
Makes sense, some neighbors in the Midwest have been heating their homes, driveways, etc. with geothermal heat pumps. Same principle, I suppose.
Ask HN: Render Open Street Map Data Offline, on MacOS
Hi Guys,

so I am basically looking for an mac OS app which is able to render open street map data, just like many iOS Apps are doing (MAPS.ME, HERE Maps, etc.).

Does anyone have a clue how to achieve this?

Best Regards
With all the data mishaps these days, I never heard about WebMD. Care to elaborate? A search for WebMD+Leak does not give me results I would choose to click if I didn't have to.

Coincidentally enough, most people(even in tech) didn't hear about the Experian leak, perhaps that was because

1)The data was sold "legally" to the actor

2-∞)...[reasons].

http://krebsonsecurity.com/2014/03/experian-lapse-allowed-id...
Ha! You nearly made me spew my cheap, Maxwell House office coffee all over my keyboard. Not that I'm wasting time on HN at work, I would never do that...
> In my opinion standups are mood killers.

I came to the same conclusion - standups are placebo for managers and nocebo for (at least some) engineers. Meaning, they have no observable effect whatsoever, they only make managers feel better and engineers feel worse.

Unfortunately, SCRUM (and many other methodologies) is not based on scientific method. If it was, then all placebos and nocebos would be weeded out during empirical testing.
YouTube channel tries swapping hosts
> Are your developers children who won't work together unless they are micromanaged by a lead?

This is black and white thinking. It depends on the personality type, but many developers have a tendency to go down research rabbit-holes or to think only about the tech and not about the business.

Therefore, a more frequent calibration to business goals may be necessary.
Not sure it would help ;)

https://plus.google.com/+LennartPoetteringTheOneAndOnly/post...
Show HN: Omg-img – insert icons directly into the HTML code
Started listening and I recall having heard most of this one in the car. Great story.
> Teresa May might have a front-line political career of 15 to 20 years. A senior civil servant is just starting his rise to power by then.

I've suspected for years that Americans would understand our government better if we had a domestic version of Yes, Minister. Not House of Cards or The West Wing (though that came closer), but something that captures the petty pressures and intransigence of an entrenched civil service.
Both of these, and the strange discrepancy between them, can in some part be explained by the archaic first-past-the-post election system.

Apparently many of their loses to the conservative party were caused by a last minute rush of voters to labour. In a three-way contest that had the perverse effect of sending things in the opposite political direction.
Heisenberg on act and potency (2009)
To hit a target, first you have to see it clearly. The term "Data Science" covers a broad collection of jobs, from statistician to machine learning/pattern recognition/AI expert to DBA to business analyst to visualization/animation expert to cloud/cluster/Hadoop expert to general data wrangler.

The skills required for each DS role vary a lot. I wouldn't expect a cloud expert to have learned about the Hadoop stack or HPC workflows in school, at least not to a useful degree. The same goes for DBA or business analyst or data wrangler.

But statistics and ML lie at the other end of the spectrum. These roles require a hierarchy of formal skills that are rarely mastered outside of college. They're expected to keep up with the research literature or formal techniques, which almost always requires the math skills of an engineer or mathematician.

Remember, HR everywhere is technically clueless. If management doesn't tell them the precise set of skills needed for the job, they'll minimize risk and ask for more expertise and experience than is needed -- usually in the form of excess degrees or prestige or buzzwords. The best cure for this is to bypass HR and go straight to a technical manager who knows what s/he wants. That's hardest at large corporations, who tend to outsource their HR needs to the lowest bidder.

At a smaller company, a lack of degree will matter less. If you can convince them you know what they need RIGHT NOW and can learn future material quickly, that's what they want to hear. (That's probably what the bosses of the startup did).

Or if you're targeting a specific project, then if you can show (e.g. via Kaggle or an online portfolio) that you clearly have the needed skills and you're not just a script kiddie, that speaks a lot louder than a mere degree (especially if it's over a decade old).
My team is working on an big application with 100k+ users, worldwide, generating a couple hundred mill in revenue/year. Native apps on multiple mobile platforms, heavy enterprise stuff.

Tried it without stand-ups - doesn't work.

Once you need to coordinate heavily, care about speed and quality at the same time, working in code bases others have written you try to align with others as much as possible.

We do 2-3 stand-ups per week, depending on team preference. M-W-F or T-T.

It works, far less trial and error, far less issues found late in QA.

Daily is too much, that we learned. No structured stand-up at all doesn't work either, humans are not disciplined enough across large teams.

YMMV.
I use python selenium with Firefox in headless mode.

It can render or not the javascript.
Examine.com absolutely gives study quality, impact factor, etc consideration.

Perhaps your superficial look was the problem.
> But, if so, it's like the reverse of Americans talking about their "fanny pack" while in England.

There was a (funny) local news story in Australia when comedian Will Ferrell accidentally made an off-color "fanny" joke not knowing what the word meant abroad. Shows how slight differences in the same language can mean worlds of difference.
May I ask which degree was that?
tbh the prizes are well below par. :/

also their us government tie... this is just a coded message for me that i am not welcome because i am too arabic. at least at first glance. probably its not but this is my experience of trying to do anything involving america in the last several years (i can't speak about the trump administration - but i doubt they are more arab friendly given the bad press).
> Or I'm not asking it the right way?

Did you frame the conversation in advance with the new hire? Tell them - I want you to make a critical assesment of everything we do. We'll meet again in a month's time. I'll be looking for specific, actionable ideas on how we can do things faster/better/smarter. What would it take to grow 10%?

If new ideas your desired outcome-- formalize the process with a Quarterly Brainstorm/Review pulling together thoughts from the entire team. Then select the top 2-3 to work on. The process helps foster a culture of strategic thinking and innovation.
Maybe if you get information about cut frequency you could identify parts that are more actionish / exciting than others.
> It would harm shorters, but since those ones are wishing harm to the company, it still seems fair.

No, it isn't fair; this notion that shorters are somehow bad guys is bigotry. Shorters are just as important as those who go long in keeping prices accurate, they are not bad in any way and thinking it's "fair" to fuck them is a symptom you don't understand the market. Shorters don't wish harm on companies, rather they see companies are irrationally overvalued or see the company is doing something to risky or behaving badly and expect the stock price to fall. Don't be a bigot against trading one directly over the other, they're both the same.

And no, no insider trading at all, it's always stealing; you can't come up with a way to justify stealing. It's not ok to steal from investors to make up for being treated unfairly by your company.
Christians generally don't follow Jesus' teachings literally. Selflessness is an ideal rather than a way of life.
Reminds me that Samsung have been offering a keyboard cover of sorts for their recent high end models.

http://www.samsung.com/us/mobile/mobile-accessories/phones/g...

Apparently it is not simply a passive device, but one the firmware is aware of when placed above the screen, as the screen actually shrink to account for the area covered by the keyboard.

Edit: That said, i can't help feel the world lost something when the leading light in phone design moved from Europe to USA, and in the process turning every phone into a flat piece of glass.
> Regardless, I hear 'handy' used in the US as an adjective meaning convenient quite often.

Yes, as an adjective. As a noun (which is what is being discussed here) there's only one commonly known meaning, and it's that one.
Impraise (YC S14) Is Hiring a Systems Engineer in Amsterdam
It's a show-off piece by master craftsmen at the pinnacle of engineering.

Patek does not make these pieces to make a profit, but to position themselves at the top of the pile when it comes to engineering as their customers want "the best", and are willing to pay a huge markup for it over "the next best".

It sounds crass to call such a beautiful thing "marketing", but it is - these show-off pieces are what sells the rest of the line (cheap at $20k starting price).
The Merging of Economics with Physics
stand up has to be the one good thing about scrum. the rest is just boring meetings which cost too much time entirely. but 5 minutes i can spare each day. the daily accountability it brings keeps managers from firing me (i have been fired way too many times often in the first week) as they know what i'm doing and therefore dont think i lack motivation. it also motivates me to perform even better.

i dont think standup is bad at all and i think managers should be present for it. it may not be for some kind of idealistic 'for the team' thing or even the original intent, but... standups are a good thing. even if you're not doing agile, standups can still be useful to keep managers informed if you are a larger team (>3 people).
Judging people by appearance is very much a soft skill.
The system in Canada is a bit of a hodge podge managed by each province independently, and in some cases with private partnerships. The David Foster foundation has been the main force behind introducing opt out donation in Canada but I haven't seen any traction.