skysight-inc/HackerNews huggingface dataset:
Maybe I am missing some subtleity here, but isn't the whole point of the described proposed feature that you would be able to replicate the Python code pretty much exactly?

fn read_database() -> Result<Document, DatabaseError> {
let db = pgsql.connect(localhost)?
let stmt = db.prepare("INSERT INTO log VALUES(?,?)")?
stmt.execute(("debug", "Note to self: debug logs are noncritical"))?
}

So to have the handling code there as well, wrap it in an outer function (I have no idea if this is anywhere close to actual Rust):

fn read_database() {
fn reader() -> Result<Document, DatabaseError>
let db = pgsql.connect(localhost)?
let stmt = db.prepare("INSERT INTO log VALUES(?,?)")?
stmt.execute(("debug", "Note to self: debug logs are noncritical"))?
}
match reader() {
Document(d) => d,
DatabaseError(err) => println!("Could not write log to database {}", err)
}
}
Programming is hell as it is. Why make it even worse with your smarty pants "advice"? As long as the boss does not mind, their code is good enough.
Programming Elixir, now in print and shipping
I think it could be done with a macro that takes a block as its argument.
Test the New Firefox Hello WebRTC Feature in Firefox Beta
What mobile carriers can do to terminals over the air… and how vulnerable it is [pdf]
Did it last night (german time). Works like a charm.
Note my mention of the too-many-small-functions-with-one-caller(tm) smell. It refers to this solution.
They already know and don't seem to mind a lot. They just disable all VPN traffic, etc during sort of special political periods e.g. Tienanmen square events anniversary.
That's an excellent sci-fi plot but I fear not grounded in any kind of reality.

> We already have bacteria that cannot be killed with most antibiotics.

The spread of which is blocked by even the simplest of cleanliness protocols. Hardly an existential threat.

Although we do already have existential threats to the species - e.g. the potential for a recurrence of the 1918 flu pandemic, for example, is already terrifying the people whose job it is to worry about these things.
meteor.com, https://atmospherejs.com ... meteor apps are single page apps by default, but if you add the "spiderable" package, it spins up a phantomJS instance and renders the site nicely for bots.
That would cause abysmal performance because of the head of line blocking of this approach: If one of the outbound links becomes congested, sooner or later, all of the memory would be occupied by packets destined for that congested link, as all of the packets destined for other links would be transmitted, making room for some more inbound packets, of which again all the packets destined for the uncongested links would be transmitted right away, leaving in the buffer the ones destined for the congested link, ... repeat until the buffer is filled with packets destined for the congested link, thus preventing the flow of any more packets to the uncongested link that might be queued somewhere in the network.

The only solution to avoid that problem would be to have every router keep state for each connection/flow it sees, and managing separate buffers for each flow - but that would mean keeping state for hundreds of millions of flows on backbone routers, all of which essentially would need to be in level 1 cache in order to be able to move packets at line speed, and even that probably would be too slow - there is a reason why those routers use CAMs to be able to keep up even just doing routing table lookups in only about 500000 routes.
I' m someone who hasn't tried rust, yet. Is FromError the same like inner exceptions in C#? I'd like to dive into rust once, but somehow I do not see the elegance in the code shown.

I mostly do not care about the type of error condition and handle the error somewhere really far up the stack (log or messagebox) and provide the ability for a retry. Can i do something like a general try/catch far up the stack? in my opinion, this neatly prevents code from beeing littered with error handling which i very much prefer.
> at the heart of convergence lies the fact that you want to scale across different form factors

I have this feeling one day we'll look back at this and laugh. "Do you remember when they all tried to shove the same interface on all devices? What were they thinking?!"
How can I write good discourse about the programming ecosystem?
I'm one of those people who works in todo lists and brief sentences. There is a lot of information I'd like to share about the programming ecosystem but I have a hard time expounding ideas beyond "X is better than Y because Z". I'm looking for advice on how to flesh out core ideas into prose that flows and gets an idea across with more impact than a series of dot points. Has anyone else been in my situation (i.e. lacking eloquence) and found a way to break through it? What can I do? When I try to convert my personal notes into articles that other people would benefit from it feels like I'm banging my head against a brick wall.
Relevant Reddit discussion (since the rust subreddit seems to be the most active place of rustaceans):

http://www.reddit.com/r/rust/comments/2jgck9/on_error_handli...
What about changing to the original:
"Interview: Thomas Voß of Mir" or maybe
"Interview: Thomas Voß of Mir (Wayland competitor)"
Yesware Review – How to Track Emails and Save Time with Email Templates
Unless he edited, he didn't use the phrase "there are no known health risks"

The phrase used was "no known health detriments", by which I believe he meant a direct causal link, such as with cigarettes and lung cancer.
Hence, lobbying equals corruption. Period.
Market freedom is not necessarily connected with political freedom. One could for instance have an oppressive leader who instituted free market economic policies, such as Pinochet. A free market doesn't necessarily imply democracy (freedom to choose one's political leader), it only implies freedom of exchange (freedom to buy and sell as one wishes, with only minor taxation being applied).
If the cause of the problem is the negative attitude towards women on Turkish side, how is the problem on both sides? Or sexism is something acceptable?
> media who like scandals

Media only likes scandals about foreign enemies. Otherwise they are self-censoring in order not to loose faith in the economy which growth is just based on promise.

See http://en.wikipedia.org/wiki/Manufacturing_Consent
As someone else suggested, they seriously look like something out of an old version of KDE.
I'd be interesting in hearing about others production use case scenarios.
afraid to have some conflicts ... Ready to wait 6 months :)
Bootstrap your directives in seconds Angular.js boilderplate
There's nothing corrupt about it. The voting citizens of Michigan like the auto industry the way it is and they have an understandable fear of disruptive new technologies. It makes good sense that someone representing a state known for producing automobiles would accept campaign contributions from automobile manufacturers. Many of the people he represents are employed by those companies in some way and it's his job to advocate for their interests and work with their lobbyists. It's good that a senator's campaign is funded by the businesses from his or her state, as opposed to being funded by organizations that have nothing to do with the concerns of the state's citizens. The people and their representatives are on the same team.

Representative democracies work the same in the US, the Netherlands and all over. If a majority of the people of Michigan were vocally demanding Tesla dealerships, they would get them. That might be the case in a few years, but all we can do now is let the system work. There's a midterm election coming up soon and all of the Michiganders on hn can vote and convince others to vote for Tesla, but change may take time.
Huh, weird. Don't know why I thought that.
I believe chollida comment, placed 10 hours before yours answers the question how they can sell it:

It's linked with the Intels commercial BLAS, see here:

http://mran.revolutionanalytics.com/documents/rro/open/#inte...
> This is cultural problem on both sides [...]

Why both? And why just a cultural problem?

Did you mean that the Germans could/ought to smack the disrespectful Turkish kids around and that that would make things improve? Otherwise I can't make sense of the idea that there is blame on both sides.
Even if it was fluid ounces, that's still not a problem - A line chart of my account balance would have Euros on the y-axis and months on the x-axis. It's still a meaningful chart though...
We on hacker news knows the difference between mean and median. But there is no need to be anal retentive about it. If someone says they are better than average it means they think they are better than 50% of the population.

Note also that mean and median are approximately equal for large populations given a normal distribution. Most metrics about humans follow a normal distribution with notable exceptions like salary. I don't know if driving skill follows a normal distribution or not, but if I had to bet I know what I would have bet on. :)
Arguably "expect this to fail X% of the time" is a more robust approach - because in-order delivery or zero-loss situations are then simply best cases that "just work".

But you can not make work what you can't test.

So anyone embarking on making their own transport protocol should test how their app works with various amounts of packet loss (1%, 5% and 20% are three reasonable marks to try which may happen in real world - especially in the wireless links case), as well as jitter, and variable delay.

To do such testing, it's handy to use a Linux module called "netem" which allows to simulate the delay, jitter and loss:

http://www.linuxfoundation.org/collaborate/workgroups/networking/netem
https://calomel.org/network_loss_emulation.html
I don't think this is that silly. For example, tiling window managers scale extremely well all the way from a small netbook with 8 or 9 inches to multiple 27 or 30 inch monitors.
Will Agents' Mutual Succeed with OnTheMarket.com?
Why is it that first world countries have the most unaccountable political systems ever seen? Even here in Canada, Rob Ford anyone?

Here too in Canada we've banned Zenn, a Canadian electric car company - http://en.wikipedia.org/wiki/ZENN but we're making prominent bike lanes, go figure.
Still reading, but I too appreciate this long, extensive review that probably took weeks to write.
I find that Spotlight tends to do a complete reindex after an OS update, so that may be the cause of your increased resource usage.
Ret2dir: Rethinking Kernel Isolation [pdf]
Does anyone else get the sense that the Tesla Legal and Public Relations departments are starting to have fun attacking the politicians who push these bills through? The wording feels different than most corporate press releases.
Video and slides available at https://www.usenix.org/conference/usenixsecurity14/technical...
Harsh statements, but no facts from objective sources. Looking for that, I can find stuff from 'the other side' at http://www.legislature.mi.gov/(S(ejuo53qtuul1s2fn2o4sa255))/... where if I reading this right (aside: 'interesting' reuse of "(i)" as both ninth letter of the alphabet and Roman numeral) section i reads

"(1) A manufacturer shall not do any of the following:

(i) Sell any new motor vehicle directly to a retail customer other than through its franchised dealers, unless the retail customer is a nonprofit organization or a federal, state, or local government or agency. This subdivision does not prohibit a manufacturer from providing information to a consumer for the purpose of marketing or facilitating the sale of new motor vehicles or from establishing a program to sell or offer to sell new motor vehicles through the manufacturer's new motor vehicle dealers."

, but that text isn't recent (see the history at the bottom).

What exactly did they change and what were the arguments?
The vortex gave some hype to backup 10 years ago. Was it enough to make backup widespread? Interestingly: no - backup is still under 50% among Mac users. And for those did use TM, it made the thing slower.

So moving on, cloud looks like a safer approach to backup because no friction. Yes, data security, etc. From a public service POV, though, for 99% people out there, I bet the trade off is hugely favorable to cloud stockage vs local disk failure.

So now - is iCloud drive sexy enough to want to use it? Actually that's more like the problem, it's definitely not.
The Debian init system general resolution returns
I don't really want to use wayland or mir. I'd rather keep using the current perfectly fine software.
Do these donors represent the interests of the corporations or the citizens?
Yes, 1080p in the DK2 is worse that i had imagined. But Oculus apparently demoed a device with a 1440p screen which is already a lot better from what i heard. Still 4K and above have a totally valid usecase for VR.
Exactly. I'm a firm believer that if you're doing orchestration/automation on Windows and you're not using .Net based technologies, you'll wish you were eventually(coming from a HEAVY Chef on Windows user). Plus, there's Powershell modules to consider, and Powershell is .Net based.. And just the general ecosystem to consider, especially Azure itself. And etc, and etc. Though some F# wouldn't be a bad choice, I suspect the prevalence of C# will win out.

Just makes this "partnership" a bit more, complicated? Or at least, not what it seems on the surface. If the containers aren't compatible between Linux and Windows, and the tooling will end up .Net in the long run(which I firmly believe), then the only common ground will be some semblance of API compatibility?
"Data-sharing deal will help SpaceX land Falcon 9 on Earth and NASA put humans on Mars"

I find the sub-title a bit ironic as (right now) I'd bet that SpaceX astronauts will beat NASA astronauts to Mars.
> This is a sugar-coated version of errors as return values.

By which you mean that errors as return values are bad, and that they are trying to sugar-coat the fact that they are using errors as return values?
I'm still hoping it won't be long until "Remember when computers had physical interfaces, we didn't just think about what we wanted and had it happen?"...
It seems you really must move it to ~/local or similar as the article points out. Moving to /usr/local.bak seems to still copy the files one by one into recovered items during the last stage of the installation.
I just bought Dragon Dictate two days ago. If someone can verify that it works under Yosemite, I will. I usually upgrade within a couple of days.
There is a proposal to fix this for C++17 http://isocpp.org/files/papers/n4228.pdf
That's crazy. How did they get the people to go there? Did they trick them somehow?
They lack the necessary commercial insurance.
There are always some people who try to circumvent their censorship, and it is not worthy of their time trying to block every one of them, as long as the majority of people are properly confined.

Well, that is my speculation. I never get into any trouble for breaching the firewall.
At the same time, beware of "helpful" lower layer protocols.

Mobile wireless stuff (EDGE/3G) is going to great lengths to avoid dropping packets, so if you get conditions right (moving train in the areas with poor coverage is one place where you can easily see this), you can get the packets "reliably delivered" in 20 seconds and more.
Unsung Geniuses
I think making an assumption that Siracusa doesn't know what's happening in the world of other OS', or hasn't been elsewhere, might be a bit off.
I agree, while 32" makes native 4K useable in terms of desktop real estate, 8K in retina mode (basically viewable 4K) would be the endgame for usable monitors i guess. However since we are already starting with 5K, i don't think we have to wait as long as you imagine.
Thanks, we have already improved it!
Well, expectancy violation/mismatch is a reliable stressor down to the mesolimbic-corticostriatal level[1], so maybe that's that.

In any case, thank you for re-enabling it. I'm sure many future readers would thank you too.

[1] See for instance Box 2 in Proulx et al. 2012 (http://www.michaelinzlicht.com/wp/wp-content/uploads/downloa...).
Hard to say and kind of irrelevant. The ideal scenario is that they both make it. In fact, if China and Russia could do it, that'd be even better.
It depends a bit on what you mean by strength. At the moment, Germany's economy is very dependant on the strong export performance of the economy. But exports don't just depend on the quality of the goods produced, they also depend on customers being able to pay for those goods. If the customers stop being able to pay - something which is outside of Germany's control, then Germany will find itself in real trouble. This is the sense in which it's economy is weak. It's kind of like judo - the economy is out of balance and vulnerable to shocks applied in the right place.
This would potentially allow you to change providers (O2->3, Vodafone->giffgaff) without needing to go to any physical shops. Just get a new contract online, apply it to your sim card. You get to also keep your number without having to fiddle with PAC codes and activation timeframes. I guess.
This isn't relevant to users, it's relevant to developers. Getting rid of X11 is important, and if you don't know why it's not relevant to you.
But the connection between this server and that server is not necessarily encrypted. Not every one uses Gmail, Hotmail or other big email providers that (I hope) properly configures for security.
I think I have the exact same problem with my 2010 MBP. How long ago did you get it replaced?
Interesting, thanks. I guess I'll monitor this over the next day or two.
Details of how Inmarsat analyzed MH370's radio communications to estimate a path
A bit further down the product description:

By our fourth round of prototypes we had created a model
with 64mb memory and a 580mhz CPU. This not only runs the
software well, it flies! At last happy with the board, we
designed a simple, minimalist case in plain white to house
it. The end result is our current model. We decided to name
it the anonabox.

They did not create the board nor did they design the case.
> 80+ million people, fourth largest economy in the world.
Based on what, GDP? Than it'd better be called efficient or sumsuch.
One thing I'd like to point out are OS upgrades, security patches or generally package updates. With docker I just rebuild a new image using the latest ubuntu image (they are updated very frequently), deploy the app, test and then push the new image to production. Upgrading the host OS also is much less of a problem because far fewer packages are installed (i.e. it's just docker and the base install).
Probably real smooth due to the widespread beta and Yosemite being almost entirely visual tweaks and better integration with iOS devices. Those things shouldn't cause trouble.

Apple seems to have given up on core upgrades addressing performance, the ancient filesystem, and needs of power users after 10.6. And there’s still stuff that I could do on a NeXT in the early ‘90s that OS X can’t do.
Router A knows that router B is congested - but this is actually due to congestion in the link between router K and router L. How does it know which of router C or D would be using the same link? It has to have a global understanding of all the routing paths, no?

Routing the packet to Z and telling you that the path to Z is congested are mirror images of each other; it makes sense to use the same mechanism for both.
Unlike some languages, function return values aren't special, they're just normal values, so you can handle the error locally like

match fwrite("aha", f) {
Err(e) => println!("Could not write log to database {}", e),
Ok(_) => { /* no problem */ }
}
Maybe they just resample the image to a higher resolution using interpolation. It will not add addittional information but it may make the image easier to analyse and understand. Sometimes an interpolated image will have less error from the actual phenomena than the low resolution version (in the same way that a compressed mp3 is a better reproduction than an uncompressed version of a similar file size).
Munich sticks with Free Software
X11 has many problems. For example, it has no GUI isolation. Any client connecting to a X server can control other clients.
Ask HN: How to be patient when learning?
Please help me thank you! :)
You have to realize that it really wasn't until recently that you could do BYOD on the networks. They wouldn't give you a discount at all for owning the device outright, even at the end of the 2 year contract. There was no benefit to having paid $750 for a phone, except if you really really wanted that particular phone. The best math then was to upgrade to a new phone as soon as your contract ended. Otherwise, you were paying the built-in $10/mo or whatever for old tech. Far better to shell out $0-$200 for a new phone on contract and lock-in for another 2 years.
CORRECTION: It turns out the nation has only 11 "Ebola beds": the Omaha and NIH wards can only treat 1-2 and 2 patients with something this bad out of the 10 and 7 total beds they have. Which leaves 7 free at the moment.
USA has a larger government compared to GDP than both China and Russia (42% vs 36% and 24%). There are no stats for North Korea. If you want to argue the free-market gospel, then you have to explain why almost all third world countries have small governments and very low taxes.
I don't know if it's the same for everybody, but this page is loading really slowly for me. Here's the Google cache version if you're having trouble: http://webcache.googleusercontent.com/search?q=cache:ouh2mtF...
But we also do have empirical evidence for the harm from cars. Thats what your parent is saying. The scale of harm is very minuscle when compared to car accidents. Even wars are less deadly than cars when just looking at the numbers. The reason you think intoxicated drivers are exceptions or that accidents are unintended consequences is that, in peoples minds accidents cause less emotions than the image of a poor baby with cockroaches with parents on drugs.
The two are not necessarily opposed
Yeah, but that doesn't extend to

match { let f = fopen(); fwrite("aha", f); fclose(f); } {
Err(e) => println("either of fopen, fwrite or fclose failed"),
_ => ()
}

without something like a try! variant that breaks out of a block instead of returning from a function on error.
You also need vary the pattern of packet loss as well as the overall frequency: You could lose 20% of your packets over a short period in roughly even distribution (perhaps due to "constant" background noise), or you could lose a sequence of packets amounting to that much (due to a sudden burst of interference on a particular hop of a route).
I am waiting for someone to pour out the cons here. But why not align incentives with expertise.

Allow companies to test others' products, if they find serious problems then any fines resulting from a resulting FDA investigation are split between the govt and the company that found the issues. With generics there cannot be that much "This is a trade secret" since it is already in the open.

I am sure they would be falling over each other to cripple the competition.

Fire away.
11 Best JQuery Powered Themes for Wordpress
Android for Beginners: Tips and Tricks to Get You Started
> It makes good sense that someone representing a state known for producing automobiles would accept campaign contributions from automobile manufacturers.

Except, you know, that the contributions weren't from automobile manufacturers, but from the dealerships, whose interests are in conflict with the manufacturers (the more one party earns, the less there is for the other).
Upgrading right now.

A note to anybody with additional files in /usr/local: the "About a minute remaining" screen will last for ages as it has to copy over each file from your old /usr/local to the new one. You can hit cmd+l to see the status of this.

This applies to anybody who uses node js, ruby, homebrew, python, postgres, etc.
I suspect it was something like a Caterham:

http://uk.caterhamcars.com/cars