skysight-inc/HackerNews huggingface dataset:
https://github.com/search?q=86400&type=Code&utf8=✓ A quick search on GitHub finds more than two million examples of people assuming 1 day is 86400 seconds. Every single one of those is a bug. Not a critical one (in most cases), but still an example of code that could fail unexpectedly.

In the most basic case, code to fetch a date n days ahead that naively assumes fixed length days will return a date n-1 days ahead instead if it runs at exactly midnight eg date("Y-m-d", mktime()+($days*86400)) will return a date $days-1 in the future if it runs on leap second day. An edge case certainly, but if you're adding millions of records a day something you ought to consider.
It would be interesting to see how much of that military gear will be requisitioned last minute by the police in the days leading up to the ban.
I agree. TAI is simpler and seems better suited to be the fundamental time counting mechanism at the OS level.

There was an interesting HN thread along these lines back when the current impending leap second was announced: https://news.ycombinator.com/item?id=8840440
imo, if containers are the future ( very plausible ), then, things like Aws lambda are just as plausible if only just a bit further out.

I think this is the case due to granularity of workloads and what apears to be a continuum in the workload container from metal > vm > containers > lambdas (as first class workloads).

fun stuff
Well I've not looked into it myself yet, but apparently payments are a nightmare to implement in Japan. As they were in the US/Europe before Stripe/Braintree etc came along.

My opinion of what Stripe brings to the table in general is not so much that it is way better for the customer, but that it is way better for the retailer/developer.

I have never heard people focusing on the customer side for payment providers etc.
In that regard you are right, which customer cares about who/what is behind a payment form?

But startups do care about simple painless payment integrations.
Scandal: Portia de Rossi reconduite au casting de la série
I'm not clear what your last sentence means at all. You write the best code you can at the time, but a dogmatic approach - even the one that you think will save so much time in the long run, will likely be completely useless within a few years. It sucks, but that's what happens. This has a positive spin, too - you will be much less likely to adopt flavor-of-the-month programming tactics until you really vet them, unless it's incredibly obvious as an improvement.

This is usually one of the fastest ways in an interview to tell how experienced someone is. Younger, less experienced programmers are dogmatic, but their view is extremely limited - they believe defiantly in the current coding practices, but haven't yet learned that their dogma is just the latest, and will be replaced in short order.

Hey, I was once one of those dogmatic kids, too.
It seems nice, and has interesting points, but also kinda appears to have the same problem as e.g. Bookman has for me: it's trying so hard to be readable, moderate, and inoffensive that my eyes kind of glaze over.... the text sort of dissolves into a sea of constant grey. I think a font for text (like ebooks) needs more texture for your eyes to latch onto.

Maybe it would look better in print where the natural roughness of the paper and printing process for e.g. paperbacks adds some texture and interest... I've noticed a lot of typefaces don't look nearly as good on a high-resolution display as they do on cheap paper.
i have the same question. i wish i knew.
It amuses me that Professor Brewer is now working for Larry.
Pretty sure Prof Brewer isn't exactly tiptoeing around Larry. He can work ANYWHERE.
Postgres perfectly supports indexing attributes within JSON fields, whether stored as the native JSON type, or using the hstore extension. I just created a couple of indexes on our DML audit logging archive table this afternoon, which stores old and new row state in hstore fields.
I've been involved in this for the last 3 years and what works for me is building Proof of Concepts.

Neo4j sells an empty database. What I do is take the problem the customer is trying to solve, find the boiled down essence of it, spend about a week building a solution to that problem, and have it ready to show off to upper management by Friday.

It brings the risk WAY DOWN to see that in such a short time I can solve the problem. They know that if they spend the next 3 months building the "real software" from what they learned from the POC, they will be successful.

It's the best job I've ever had. You get 1 day or so to learn "the business", another day to come up with model and create sample data, a day or 2 to write the queries that solve the problem and finally a day to show it all off.

At the end, all the customer cares about is that their problem is solved.
currently practicing from keybr. its awesome.
Load of BS!

This means we need more people dead (considering autopsy is done on every body), so that we get a chance to look at more bodies and hopefully reduce the death rate in the future!!??. Is it not same as having less people die now?
I've tried a few online courses for touch typing and they all want me to place my hand in a super awkward position that just seems to be an obvious way of aquirering wrist pain.

I think the notion that touch typing is adult is fucking stupid and condescending. I glance at the keyboard while typing, but I don't search and peck. I use all fingers and type fast enough. It's not typing speed that dictates how much code I write. I fail to see what is wrong with looking at what you're doing.
The discussion will likely bring to light facts that some in the discussion didn't know. Even with no immediate change accomplished, people get a feeling for another, a chance to formulate opinions that may have been tenuous before, and the past informs the future.

As to whether my actions were pointless, there decidedly were not. I enjoyed putting my opinions down, and thinking about the matter, so in that manner it entertained me for a while. An upvote received leads me to believe someone found some merit in what I said, whether it be a reinforcement of their existing views, a fresh look at something they hadn't thought much about, or some other reason. Your thoughts on how pointless it was for me are, to put it bluntly, irrelevant. To some degree, so are my own thoughts. We don't control how important something is, we simply strive to steer it to our desired level of influence. How much control do you truly have over whether you remember this exchange a year from now?
From what I heard Sony PSN uses Cassandra and EA uses it for many of their online services.

It really is the easiest database by far to scale that I've worked with.
Wow, I didn't expect the Red Bend hypervisor. This seems like a total disaster from a security and privacy perspective.

I really don't understand why this makes sense to do. What is so special and secret about the baseband that makes it worth the effort of running a hypervisor on such an underpowered phone?
Indian Startup Funding and Investment Chart (2015)
Facebook's Instant Articles, Lily Drone Camera, and More Tech News
Write blog posts about how you (or others) used the tool to solve some problem you were having.

Maybe present it at developer conferences? Just make it about solving the problem, less about the product.
I think your intuition, that game engines are a poor comparison to a virtual machine and GUI targeting general purpose computing, is fundamentally correct, since they have mostly different design and technological constraints. Your detailed rationales are a bit off though. The parsing and image processing bit should involve only preprocessing of data and not runtime performance, and should not take that long anyhow.

The visible stuff a web browser does should not take exhaustive resources to get running nice and smooth. Also, since web is now most of all a UI tech in a sane world it should have the explicit design constraint of helping developers write fluid interfaces.

I'm not sure what the root cause of the slowness of web tech in general but I'm guessing there is a megaton of accidental complexity in the standards and implementing them is probably a small hell in itself.

From purely user facing side, and estimating intuitively the intrinsic complexity of the stuff a browser does, I would compare the experience just to the experience one gets on a modern desktop.
One thing that helped my typing substantially - though I was already fair at it - was to pop the keys off my keyboard and rearrange them. Contrary to a simple blank keyboard, this meant looking at my hands not only didn't help but actually hurt - with rather immediate feedback. I knew I'd been looking at the keyboard some, but was surprised by just how much, and was quickly stripped of the habit entirely.

Some caveats:
1) I've no idea if it's appropriate to your current skill level.

2) Works much better with an ordinary desktop keyboard than a laptop or funky ergonomic thing.

3) Leave the F and J keys in their original position, so you can find home.

If you want to play around with this, it might be worth buying an extra external keyboard to mix up, so you have something to go back to when you need to get work done in a hurry while you're still learning.
I didn't find it misleading because in my mind memory means storage.

For example: I use the terms flash memory and flash storage interchangeably. The other way round, RAM can be thought of as temporary storage that is lost when the device is powered off.
Massdrop – Professional Wireless AC Access Points Vote (Ubiquiti, Cisco, Etc.)
When citizens disobey – MIT News
try gtypist(shell) or ratatype
http://www.ratatype.com/
Because cars happen to be a very convenient way to travel between an arbitrary number of relatively small population centers spread out over a wide area, which makes sense given the geography and economics of North America during that period.
I've found rearranging the keys to be much more effective than just obscuring them.
When the Brain Can't Make Its Own Maps – The Atlantic
Question: how much force would you need to apply to break the surface of lava with a steak? I feel like "dip" is the wrong word.
I don't see how using GPS receivers for a time index is "a kludge". It seems like an extremely sensible and practical solution to the problem. Hey, turns out we've already got this satellite constellation broadcasting an extremely accurate time signal!

It's a hack, in all the positive senses of the word.
I know they should be doing their best to roll out internationally as soon as possible. But in Brazil everybody is fed up with all the existing payment solutions.

Please Stripe, come take our money. (I'm not joking).
It's actually quite different how all the browsers handle the Punycode domains in different places: http://blog.dubbelboer.com/2015/05/10/unicode-domain-support...
> Japanese people often tell me that Japanese don't like to use credit cards. But ask them, do they have one? (of course! they say), do they use it online? (of course! they say). So it's true in real life, not just in this report.

Existing online services don't generally give you a lot of choice for payment.

"No other choice" != "Like".

Credit cards and bank transfers (which in Japan are very simple) have different strengths, but the one that sticks out for me is that a bank transfer keeps more control with the buyer, and exposes the buyer to less long-term risk: The service provider can steal your money by not providing the service, but they don't have any info they can use to steal money in the future.
Because this is hackernews, and this is a really cool CSS hack.
Show HN: Dallas County automated appraisal check
Behind Apple’s Move to Shelve TV Plans
Why wouldn't you just transfer your money offshore? Are capital controls part of the policy as well?

If it were me I'd start hoarding euros.
Brusturele PLANTA MEDICINALA
Mildly disappointed that AWS isn't giving Google credit for coming up with the idea of "time smearing", which they're using here:

http://googleblog.blogspot.com.au/2011/09/time-technology-an...
"Every single one of those is a bug."

The one place I know I've assumed a day is 86400 seconds I also assumed a month was 30 days and a year 365, because it only needed to be an approximate gauge of how much time had passed, didn't need any relation to actual calendar time, and would be dropping far more precision elsewhere. I think it's incorrect to call that a bug, even a non-critical one.
Louis Vuitton Outlet Store 2015 Cheap for Sale
If they can't write a page without useless frills, they can't write a shell without useless frills.

Useless frills are buggy and slow.
Well from the article it sounds like this means they don't need a separate cpu or ram to run the baseband software. less components = cheaper phone.
Great technical outlook on a fantastic game (whose ending totally, unforgivingly sucked in so many ways. First you give me levels of perfect urban cyberpunk adventure and then in the end just * and *.)
What is a DNS leak and why should I care?
From the article, which you apparently didn't read:

In the United States, we usually don’t autopsy people unless the cause of death is mysterious or foul play is suspected. In fact, we autopsy less than 5 percent of all deaths.
There are other developer-friendly options that handle offline payment methods in Japan (bank transfer, konbini, payeasy), e.g. Komoju: https://stackoverflow.com/questions/27368278/payment-gateway...
The article points out that you can use their ISJSON function as a check constraint on your column, guarding it from malformed data:

> ISJSON( jsonText ) that checks is the NVARCHAR text input properly formatted according to the JSON specification. You can use this function the create check constraints on NVARCHAR columns that contain JSON text.
[library] Material Library v1.1.1 – Backport Material Components to Pre-Lolipop
There are some invisible companies in China. Some are quit big. For example there's a mobile phone company called TRANSSION HOLDING in Shenzhen. In Feb it's mobile phone production is No.2 in China, next to Huawei, more than Xiaomi which is No.4. It's brand is even unknown inside China. How such a company is unknown even within China while producing so many phones? Because its market is in Africa. Its brand, Tecno, is the No.1 mobile phone in Africa
As I mentioned, DE:HR/DX3 is a very good game for itself. But as it is the third part of a game series, the game press and players compare it to its predecessors. And all the great stuff that was in DE:HR was already even a notch better in part 1. So it's not an evolution, but a bit bitter sweet comeback.

Unfortunately many players haven't played the first two games or played them later when the graphics already looked dated.
I'll stick with my precompiled logic assertion. How many AAA games ship with a fully dynamic language like JS? Of those, how many then expose low-level APIs to those languages instead of just an operating environment suitable only for scripting? At any point, do those games allow trivial fetching of new code from the network from an unspecified source, parsing and executing that code in or out of a sandbox?

As for "goofy image formats"--I'm going to be somewhat surprised if you aren't doing a preprocessing step to normalize your textures and images into either an atlas or at least some standard format (with texture compression or whatnot). I know that across the entire space of game engines there are bajillions of formats, but again, when you're building a custom engine for a game, I'm willing to bet that you can pick your battles in ways that browsers simply can't.

The "malformed XML" isn't a simple matter of just "Oh, a missing closing tag!". It's "quirks" mode. It's supporting weird old behavior, bug-for-bug, across browser versions (thank you Microsoft).

"The web is absolutely 100% less efficient than a commercial game engine and does far far less."

See, from a performance standpoint, I wouldn't hesitate to agree that the web engines are less efficient. Similarly, I wouldn't claim that a gas turbine is less efficient than piston engine. However, piston engines are a lot more common because they're more flexible, easier to make, and can put up with a lot more nonsense.

You lost me, though, when you said that the web does "far far less" than the specialized work a game engine does.

"Come on, is there even a comparison?"

Look at the spec:

http://www.w3.org/TR/html5/rendering.html#rendering

You're absolutely right--there's no comparison. Show me a modern game engine whose rendering pipeline is one tenth as complicated or well-specified!

Sure, bang around about your scene-management structures for visibility tests. I'm sure that'll impress your friend at GDC who similarly rediscovering techniques already mined out twenty years ago--better than thirty in the case of octress.

At the end of the day, game engines (from a display standpoint), are just rendering lots of triangles, with optional intermediary targets clever shading tricks. There may be some animation, there may be some physics, but all of that is relatively straightforward in implementation compared with the downright byzantine rules for, say, CSS:

http://www.w3.org/TR/css-2010/

I'm not saying that game engines aren't impressive feats of engineering--they are in no way, however, near as complicated from anything other than a technical perspective when compared with a modern web browser.
What if I disable ntpd a minute before leap second is injected and restart it a minute later?
Thank you for taking the time to state this. I read what you wrote, then what OP wrote, and realized that you were very correct in my case. Have an upvote for both of you :).

@Michael - I suspect the downvoting is a reaction to your tone. The certainty with which you prevented your statement, along with its (on-the-surface) appearance of being unrelated to the conversation made it appear as if you had an axe to grind. The downvotes (I hope) were a (misguided) attempt to rectify this behavior.

I bet that a lot of people who downvoted you would have supported your comment if your words were changed a little so the tone came across more clearly. Something like, "I wish there had been an autopsy done on my father, who died of renal failure. He had been advised to take XYZ medication, much of which contained acetaminophen. His autopsy could have supported science that brought awareness of cumulative acetaminophen ingestion."

I am sorry for your loss. Thank you for sharing your experience -- it led me to research acetaminophen toxicity, where I found out that the deaths caused may be greatly underreported due to a variety of factors. (http://www.propublica.org/article/tylenol-mcneil-fda-behind-...)

Better post-mortem data from autopsies in cases like your fathers would go a long ways towards understanding the scope of the problem.
That's a good point. The criminals will always find a way around it. They'll do business in stacks of euros or dollars.

You can get rid of the official currency, but there will always be people using some kind of currency. Currency from some other country, drugs, precious metals. Even favors.

The only people who will be completely locked in are the 9-5 types.
Israel-based Redbend claims to be the market leader (~70% share / 2B devices) in smartphone OTA updates (http://www.redbend.com/data/upl/whitepapers/from_hardware_ma...) and is expanding into automotive OTA updates, http://www.redbend.com/en/company/news-and-events/in-the-new...
We are exploring this direction but don't have anything firm yet. We don't aim to enter the hardware business ourselves so we're happy to partner with anyone building hardware. :)

Sandstorm is limited to x86_64 for probably the same reason Docker is -- our app packages contain binaries and we don't want to burden developers with supporting multiple architectures, at least for now.

I'm biased, obviously, but Docker on Synology strikes me as an odd fit. Docker is optimized for massive SaaS-scale deployments of stateless servers, not so much one-off small-scale stateful app deployments.
No, not every single one of those is a bug. "This cookie lasts a day", "This DNS entry lasts a day", and so forth. These aren't issues that require down-to-the-second accuracy. DNS expires a second early? Oh well, go poll upstream. It would be unusual to see an application that relies on something like a DNS entry being exactly 1 day's worth of seconds. The first page of results in that link are mostly cache timeouts rather than functional definitions.
The Technology Transhumanists Want in Their Kids
> ^R is more powerful, though; it matches at any point in previous commands, not just at the beginning.

That's how it works in Fish as well.

user@system ~> echo wow
wow
user@system ~> echo something
something
user@system ~> wow█

...press the up arrow and the current line becomes...

user@system ~> echo wow█
If you're going to create a dedicated signal-handling thread as the author recommends (which is one of the best ways to handle signals in a pthreads application), you don't need to use signal handlers at all; you should just mask the signal(s) and have the signal-handling thread loop around sigwaitinfo().

To his broader point, the mistake is to assume you will be able to get one signal delivered per signal raised. That's just not how (classic) UNIX signals work (POSIX realtime signals are different, and are queued) - they fundamentally need to be treated as level-triggered, not edge-triggered. For the SIGCHLD example, when a SIGCHLD is recieved (no matter whether through signal handler, self-pipe trick, signalfd() or sigwaitinfo()) you need to loop around waitpid() with the WNOHANG flag until it stops returning child PID statuses.
See also his website/blog, where he often writes about time-travel-related ideas: http://qntm.org/
We want your money. We're coming for it.
There's a lot of back and forth between "we applaud Facebook for this initiative" and "But that's not the right way to do it" in this piece. I usually find EFF articles well written but this one was particularly painful to read and not really insightful either.
I hear people try and describe this Internet.org in terms of how Facebook will have control over what information huge numbers of people can access.

Thats a distortion of the the way Zuckerberg presents the effort though. He seems to really want to give the impression that this is about helping people— and not about the power of being the filter through which all information and commerce has to flow. The poor in India etc will almost surely have the option of giving up their free plan and paying for the Internet, and then Facebook will have just served as a stepping stone and aid along the way to 'full' Internet access.
According to the mount_unionfs(8) man page:

> THIS FILE SYSTEM TYPE IS NOT YET FULLY SUPPORTED (READ: IT	DOESN'T	WORK) AND USING IT MAY, IN FACT, DESTROY DATA ON	YOUR SYSTEM.
Show HN: Esell.io – Sell your products directly on social media sites and blogs
How Silicon Valley will reinvent the auto industry
SaaS mobile payment gateway
>One place where the inconsistency gets weird is when you use signalfd with epoll. The epoll will flag events on the signalfd based on the process where the signalfd was registered with epoll, not the process where the epoll is being used. One case where this can be surprising is if you set up a signalfd and an epoll and then fork() for the purpose of daemonizing -- now you will find that your epoll mysteriously doesn't deliver any events for the signalfd despite the signalfd otherwise appearing to function as expected. That took me a day or two to debug.

Is this what libuv does? I'm pretty sure it reads signals using epoll on linux, so in theory - if it does it this way - this bug could be be underlying all of node.js.
Lower manufacturing cost, I bet.
Not to nitpick. But you want this validation to be default. In this case which it can't be.

Question is what stopped MS to just wrap this NVARCHAR with json validation and json access and give it as json type. May be native json type will be added in future versions. I think just they wanted to ball to rolling.