skysight-inc/HackerNews huggingface dataset:
> For example, suppose you want to test a scheduler, or any mechanism that places a timeout on an operation. You could abstract away the entire timing mechanism, but that is exactly what you're trying to test: maybe the developer used some system function wrong, and is now waiting 5 seconds instead of 5 milliseconds?

Time is an IO effect, so it's true that mocking it away removes that test. I'd treat that kind of "do I understand the API?" issue as an integration test, and split the problem up a little:

- "Mock" the timeout calls, to allow as many tests as possible to run outside IO

- Write tests where the operation always succeeds (eg. "Just x")

- Write tests where the operation always times out (eg. "Nothing")

- Write tests which do a combination of success/timeout and a bunch of different interleavings (QuickCheck would probably be useful here)

- Write some small integration tests, eg. give a timeout of "5" to a process that sleeps for 5 seconds, it should time out; give a timeout of "5" to a process that sleeps for 4 seconds, it should succeed; and so on.

> Mocking (or IO isolating as you call it in Haskell) ends up producing really good unit-tests, but often the more important tests span more than one small unit, and making those non-flaky is very hard.

Haskell's IO isolation causes the vast majority of a program to be defined outside IO. You're right that the trickiest parts are often in IO, but at least those are pretty much separate from any complex calculation/logic.
>The company prefers to sell itself on being an employee friendly place to work.

You can sell your company however you like, but at the end of the day, you're offering to pay me money for my time. It's an important part of my assessment of your job offer that I know how much. Sending out CV's is stressful, and I have to prep for interviews on a per-job basis.

If you won't tell me how much you pay until after the interview, your job offer gets put on the "too coy to be worth dealing with" pile, along with all the people who only let you contact them via webform.
Meh, if you did all that stuff and didn't buy anything and took coach flights and rented a little boat for the yacht stuff it would probably cost maybe about $50k a year (probably a heck of a lot less actually). The hard part, of course, is getting invited to the billionaire parties. That would make a really hilarious travel blog: The relatively poor guy going to all the rich people events.
Plenty

Poderosa, Terraterm

among others
Yes, I know about Nagios, Zabbix, Munin, etc. But all of them like star ships control panel – has too many options for my needs.

Maybe, it is good way to use one of them, but it so hard to find day for configuration of all of this =)
Cognitive Scientist Donald Hoffman: Do we see reality as it is? [video]
One theory is that the wp interface is off-putting to most women and some men, which leads to a gender imbalance.

That gender imbalance leads to odd situations. Many wp arguments are won by the people who have the time to outlast their opponents. So, for a long time some rape scenes in films were described as sex scenes, and the rape word was being removed. That's pretty hostile.
I’ve been thinking about “earning to give,” my rationale was that you shouldn’t leave the corporate job to join a nonprofit, if you left, it’d add competition for the nonprofit job, which is already competitive, and leave an empty slot that might be filled by a not so charitable “next person”. Also, by staying in the for profit job, you can influence your corp and peers, driving more donations and engagement. But if you can launch a new nonprofit, then by all means, do that.

Something not mentioned in the article, if you are wondering why they use smartphone technology to track the mosquito nets, it’s to try to stop people from selling the very same net that can save their lives.
I looked through his comment history and I really can't agree with you, this one comment is funny given the speed of todays consoles (when in the past I could easily keep up). Maybe you're confusing him/her with some other user?
I've probably had only one job in my life where I honestly thought "I wouldn't stay here NO MATTER WHAT they pay me!"

What was this job?
IANAL, but the only reason anyone would attempt to trace feedback in the manner you're describing would be the result of a legal action like a frivolous discrimination lawsuit. The point of not providing feedback from their side is to avoid such lawsuits altogether.
Sub-divide one taller bin with labels. Then you can't just toss any sized thing in there.
When 1-1s become the weekly status report, your manager has failed you. Your manager should know what's up because he is around, uses the team's tools, and asks questions.

You should definitely take charge of 1-1s. Maybe try bringing a list of non-status related issues and hand them over. The problems you see, ideas you have, off-topic things. Make it clear to your boss that things aren't working.
Extremely Reduced Instruction Set Computer.

Or is it a Ridiculous Instruction Set ?
Awesome, UX feedback:

1. Hitting back button should hide the overlay.
2. The left side of the overlay needs to scroll as the screen scrolls, otherwise you're not able to see the picture you hover over in the gallery.
While it is trivial to find a single solution to the problem presented at the end of this article, does anyone have a nice general one? Please share if so.
I was going to say it's constructive but apparently the wording matters.

this version is nonconstructive: assume you have all primes -> multiply, add one -> contradiction

this version is constructive: you have n primes -> multiply plus one is always a new prime
Nearly everything i care about in a great programmer is way less well measurable than "ship feature X on time". I like your sentiment but I think real good work (for any office job, really) is very hard to measure.
Just jumping in here to back you up jpmoral. In fact, I said in my original comment that I am not trying to tell anyone how to spend money and its these peoples' own lives and they can do what they want, right in the last paragraph. So I hope nobody was offended here.

On the other hand, the first reply above actually answers the question. Notice that, while cloaked as a rebuttal to my initial comment, it was actually a string of defenses as to how the author rationalizes spending money for himself, others, or both, which was precisely what I asked for. Let's take a look at the points made:

- I earned this money so I can spend it how I want

- I should not hold back on spending money because it's my personal freedom

- Do you give away 100% of your money? If not, you are no better than me so who are you to suggest this?

- We have tried to solve worldwide poverty problems and failed many times, so it won't make a difference if I donate

- The money I spend on luxurious things is helping society as it creates jobs and trickles down the supply chain, so anything I spend is actually good for the world

- It's none of your business how I spend my money

Pretty decent answer actually, when it comes down to it. The answer is simply that people come up with a relatively consistent number of ways that they can rationalize themselves spending excessively, and from these rationalizations build their psychological defense. In fact, many of the points in his answer are exactly the same as the ones from the quora threads linked in my edit above.

Now, my next question is whether any of these defenses are valid. My preliminary research indicates that a resounding "no" is the answer, however, I'm going to continue researching and do a separate writeup on this topic, as it's fairly extensive. If anyone from here is interested at all let me know on twitter or something (@jescalan) and I'll link you when it's done. This thread is fairly buried by now though so I assume not.
Not really, but when you are held responsible for their "productivity" (or more accurately lack of productivity) you have all the responsibility and none of the resources to manage.
What if all your time is spent cleaning up after the cowboys? Or talking to the other team members about the problems they are stuck working on? A mission critical 2-line bugfix can take months. There aren't objective measures of performance. Any metric you come up with, employees will find a way to thwart it. Shipping a product on time? Easy. Just don't mention the bugs. Surely you don't believe it's possible to create bug-free software, do you? When all the team members have their performance tied to them, they'll all collude to game metrics. Don't even get me started on SLOC. Speaking from experience here, sorry if it's too cynical / bitter.
Administrator used to be no big deal. Users got a small number of extra tools to help them do the work.

Now adminship is a big deal. Getting adminship is hard and has caused some editors to make sub-optimal choices. (See vandal patrol or the various admin-wannabe schemes.)
You might want to double check the spelling of your email in the deck.
It is most definitely not an experience you want. The best you can do is flow with it. The thing that gets tiring very quickly is having to do their work as well as your own because otherwise innocent people get harmed.
I have trouble with Chrome's back button and every character I type into the search box.
> "Commune" businesses would be relatively generalized and have employees as their primary customers.

Aren't those called "communities", i.e. towns and cities? More specifically, ones before the advent of railroads and cars, where trade was geographically limited to the immediate surroundings. Except in your "commune" version, everyone in the town works for the mayor, and they have to apply for membership before they can move in. Sounds like some form of distributed communism.
Exactly. My experience is from within the university system where nobody can be fired for non-performance. You get people that are just waiting to retire and don't care about anyone other than themselves.
How big a factor is luck in SaaS success stories?
Each of them has advantages and disadvantages.

Want to change the pointer using GLFW to one of the standard X11 pointers like the busy hour glass. Good luck, it can't be done as far as I know.
This constructive version doesn't work, though. The "new prime" 2×3×5×7×11×13 + 1 actually equals 59×509.
This article resonates with me. It perfectly matches both how I view my own startup, and how I feel when I read about other startups online (the vast majority of which happen to be in the US). I'm Aussie; maybe it is a cultural thing?
In The Netherlands we have paper, garden and plastic bins. Glass, oil and batteries are collected at shopping centers. PET bottles and most beer bottles include a deposit and are collected in supermarkets.

Electrics must be taken to the dump.

No idea how metals are handled.

We burn most of our waste and use it to power heating.
Help us choose the right on-boarding process for our startup
Network Virtualization in Multi-Tenant Datacenters [video]
What makes you think your CEO's income is a guarantee for job security?
Looking for an identity
https://twitter.com/ID_AA_Carmack/status/577877590070919168
Depending on your jurisdiction that is a criminal offence that carries a prison sentence.
I think this is where the mission driven bit comes in. If you don't care what the company is doing and their only mission seems to be to make the founders really rich then they've probably screwed up.
Obama's former CIO: govt will regulate the algorithms in apps like Uber and Lyft
If we are talking about Kindle - digital reading here - how does a "page"/ "page flip" be defined with varying factors like -

X devices a kindle app can be consumed on: A page can be of different word length on a mobile than of a tablet?!

X What if I bump up the font size to max on my device? Could it still count as a single page flip, if I flip the page?

==> Well the above is answered by Amazon with "Kindle Edition Normalized Page Count (KENPC)" @ https://kdp.amazon.com/help?topicId=A156OS90J7RDN

-> Academic textbooks/ reference books/tech. books etc are not page turners. Are the authors of this kind at a disadvantage with the new model?
An Add for a private jet company masquerading as a nytimes article.
> Is it not possible that there are natural forces and cycles at work, far larger than we can comprehend or control?
True possible, but where does that theory lead us?

http://lesswrong.com/lw/iu/mysterious_answers_to_mysterious_...

Also, http://lesswrong.com/lw/iv/the_futility_of_emergence/ .
Simons foundation - yes thats Jim Simons of Ren Tech. Great video.
So your language is not turing complete?
We have a very different idea of what a success or 'winning' as you put it means.
>> Define success clearly and don’t flip-flop on the definition without new information.

Does anyone have an example for this?
There are a lot better ways of ensuring that that than working yourself silly. Ensuring you have significant savings, skills, connections, being prepared to switch jobs, and being good at negotiations will result in far better results. All of which require time outside of work.

Theres nothing wrong fullfilling your agreed work hours, with a reasonable expected work amout and spending time with family.
Why are fake IDs criminal when the business is not legally required to check for identity? Is it because it's a government document? I'm just curious.
Civil face to face relations and at the same time "uncivil" communication via email.

I've lately been experiencing this at my work place.

Face to face, people are all really civil to each other, assertive, giving objective feedback and collaborating really well to get work done.

However when things move to the written form (email mostly) things can quickly escalate into finger pointing and the blame game.

Anyone got thoughts on what would pressure us to act this way?
The tone of the list seemed to draw a line between the "manager" and the "managed".

Personally I think the best way to manage a team is to draw a line between the "team" (including management) and the "objectives".

The seemingly tough part with doing things this way is to be able to draw a line between individuals and the rest of the team if someone isn't holding up their weight.

It sounds tough, but I think it doesn't have to be as tough as it sounds. If people are given enough independence and individual responsibilities, but in a collaborative setting, it will become obvious to the entire team when individuals are not carrying their weight.

Keep in mind that once a person becomes a member of your team you're in it for the long haul. Every once in a while a team needs to rally to achieve objectives, since it's almost impossible to give perfectly equal distribution of work in a project. Every once in a while individuals need to be propped up by the rest of the team if they're having difficulties with their individual responsibilities.

It should only become a problem when the same individuals, over the course of an extended period of time, fail to meet their objectives. And even then if the company is large enough they should be given an opportunity to move laterally within the company to move to another team. If individuals fail regularly within multiple teams at that point it becomes obvious they may need to be let go.

With all that said, different projects / companies have different budgets and so they may need to cut corners. That's why it's important to be careful to select people you are in it for the long haul with, and are willing to put the time and energy into that person as an investment for the betterment of the company.

Sudden turnover is one of the worst things for morale in any company. Avoid it at just about any cost, except in extraordinary circumstances.
Did you not read the article? It says there is a standard font size etc, etc
Doxa Uses Data to Rate Startups on Gender Equality
"Kindle Edition Normalized Page Count (KENPC)" @ https://kdp.amazon.com/help?topicId=A156OS90J7RDN
Ask HN: Browser extension for limiting bandwidth (feature request)
I'm looking for a browser extension (ideally for Firefox, but Chrome could work too) that would limit the bandwidth to a user defined value.
Especially for uploads, so that I could upload a file in the browser at, say, 50kB/s.

There's an old Firefox extension called "Firefox Throttle" that does this, but it only works with Firefox 3.6 (which is obsolete and doesn't work with many new sites).

I'm not a programmer, so excuse my ignorance, but in case something like this is easy to make, I'd be grateful and I know a few other people would appreciate it as well.
I don't need a GUI, a setting in about:config would work just fine.

(Oh and I know there are some other solutions, but it needs to be a browser extension.)
Can State not be considered as an immutable infinite list, indexed by time ?

Does Haskell have a forgettable concept ?

State could then be a forgettable infinite list rather than a side/effect.
What Becoming a Stay at Home Dad Taught Him About Gender Roles
The other problem other people aren't mentioning is that you will have been excluded from all searches where the job hunter put in a minimum salary.

I have no idea how common it is, but I certainly used that option when I looked for jobs. Otherwise you have to wade through all the shitty jobs.
In Switzerland trash is expensive (very expensive). Ever bag must have one or more stickers or you need to buy special bags.

This forces people to recycle but we don't have a blue bin to just dump recyclables in.

In most places bags may also not be left on the street but put into underground trash collection bins or large metal trash containers. (http://www.direkt-einkauf.ch/cgi-bin/resize?tab=23&col=7&id=... or http://files.newsnetz.ch/story/3/0/1/30114820/6/topelement.j...)

Every neighborhood has a recycling station within walking distance. The consist of containers for the different types of glass, metal and plastic (PET). (http://static.panoramio.com/photos/large/10116873.jpg)

Paper is picked up for free but must be correctly bundled and it is only picked up one a month. Same with cardboard which is picked up on a different day. (http://www.stadt.sg.ch/home/raum-umwelt/abfall-entsorgung/pr...)

Many people also have a compost in their yard.

For electronics there is a law that any retailer that sells electronics must also take them for recycling even if you didn't buy it there.
http://cloudstats.me/server-monitoring/ almost ideal, but has several pitfalls: closed source, $5 for server, and doesn't have package manager monitoring.
Companies like Atlassian have shown what can be accomplished in Australia. When it comes to funding, Australia is one of the richest countries on earth, with a median adult net worth higher than the US, Japan and Germany combined, and twice that of Norway and Switzerland.

Obviously the VC funds are different, and nowhere near the scale that they are in the US or China right now. Still, there is a lot of wealth in Australia seeking investment opportunities.

It would seem to make perfect sense to stay domestic and contribute to building up the tech scene there.

There are problems with the generalizations in the article though. The author talks about American entrepreneurs being, basically, obsessed with get rich quick schemes, and that outcomes are more binary in the US - that's mostly a Silicon Valley cultural thing. There are tens of thousands of successful tech companies all over the US that have grown themselves slowly, are great businesses, but are not unicorns, and are not an all-or-nothing proposition. Why didn't the author look at other tech start-up cultures in the US as an alternative? Alternatives exist in every major city. I get that, in that scenario, it makes as much sense to stay in Australia - so then why mess with Silicon Valley at all, by now it's pretty blatant what it's all about. That contradiction left me confused.
How Secure and Quick is QUIC? Provable Security and Performance Analyses
This is basically the overengineered iteration of the current v1: "put the thing in the toilet and flush it"
As well as general waste and recycling, many (most?) have separate garden-waste and kitchen-waste bins/bags, which get composted or incinerated.
Well, based in the content of this link http://wiki.scipy.org/PerformancePython, now I believe there is not that much difference in performance, but I still would like to try the Matlab code
Choosing a Vocation
Lua has an alternative to Regex which is an extension of the C patterns (used in printf etc).

http://lua-users.org/wiki/PatternsTutorial

At first I found it a bit confusion but they're actually pretty great. For me at least 90% of the tasks I want to do with regex can be done with scanf, and Lua's little extension covers the remaining 10% quite well.

I know lots of people often say that it would be nicer to use functional composition for regex instead of strings because strings are too confusing, but I disagree with this. The confusion of regex to me is not from the string representation, it is that some characters are "special" while others are "normal" (including whitespace). At first it appears that most characters are "normal" and so you can start from some example and generalize the string until it matches all the things you want - but once you start putting parenthesis and such in you start to realize that most of the string wont be matched "normally" and it is better to start thinking like a grammar and write it from scratch. This double thinking is pretty annoying.

For this reason, to me the Lua patterns are really the only alternative I've come across to regex that I've liked. They've got nice compact expressive syntax, can really easily do most of the matching tasks I need due to the scanf base, (almost) all the "special" characters begin with %, and the complex cases can still be matched.
Depends what you mean by motivation?

I don't see anything wrong in working agreed work hours, and completing a reasonable expected work amout and that's it. I think that's just recognising you have family and other responsibilities.

A lot of companies think your not motivated if your not doing 80+ hour weeks, for little added gain. Your not a founder, or have little or no equity and so have a limited upside. I don't why companies expect founder level commitment for non founder level upside.

In this case your biggest duty is probably to your loved ones and family. And not sacrificing that over some misplaced sense of duty. I'm sure a lot companies would not do the same if the positions where reversed. They'd probably fire you pretty fast, if you had issues effecting work. Keep that in mind.
Also of interest is that the inventor, John Alexander, submitted a patent application (US5866902), then withdrew the application. Perhaps this was done to establish prior art in the USPTO's database, and prevent someone else from patenting it?
That's a reasonable theory, but it doesn't correspond with the stats about "labor quality" problem.
This is the situation in Germany AFAIK:

If you are issued a document and then manipulate that document (especially if you do so with fraudulent intent and then pass it on as authentic), you are committing Urkundenfälschung ("forgery of documents") which can be punished with up to five years of prison or a monetary fine.

This applies to everything from government-issued identification to sick notes. The exact punishment likely depends on the intent and the type of document in question but forging government IDs is almost certainly a crime.

OTOH Facebook would have to obey certain laws if they want to check your ID, especially as they ask you to send you a full unredacted copy. Germany has a law book called the "Personalausweisgesetz" which defines who may ask for ID and how it has to be handled. That's aside from the privacy laws which already define rules for companies that handle or store personally identifiable information.