Better HN
topnewbestaskshowjobs
Log inSign up

asuffield

1,633 karma · joined Jun 7, 2013 (13y ago) · 413 submissions

Submissions

comment 12y ago · link · parent

Print out a recovery code and keep it somewhere safe.

comment 12y ago · link · parent

You should be able to remove less secure authentication mechanisms via accounts.google.com, after setting up a security key

comment 12y ago · link · parent

Welcome to the chocolate factory. You're going to find this a very interesting experience.

comment 12y ago · link · parent

https://www.yubico.com/products/yubikey-hardware/

It's a little pricier, but the Neo-N here will sit in a USB port and be more or less flush with the side.

comment 12y ago · link · parent

They're asking for two years of experience - a fresh graduate, in other words. Do you want to work for a company that hires a graduate as their lead engineer? No? Don't need to pay attention to the rest of it then.

I've seen lots of ads from people who don't understand software but want to hire engineers. They're universally awful. Fortunately it's quick to spot them and move on.

comment 12y ago · link · parent

Why would it be an extra API layer? This appears to be building an HTTP API directly onto postgres, so that instead of:

app <- http -> web middleware <-> libpq <-> postgres

You would just have:

app <- http -> postgres

HTTP is also pretty secure, compact, and bug-free, and has the added advantages of being the universal firewall tunnelling protocol and implementing every authentication mechanism ever invented. It also does compression-on-the-wire, which postgres still doesn't have for its byte-packed protocol, and you don't need as much extra code to interact with it because everybody has an http client already.

What is the reasoning for using the postgres protocol? I'm not really seeing any advantages compared to HTTP.

comment 12y ago · link · parent

I'm not sure that this particular example can ever use some_string outside the if without hitting a type error, but I see what you mean.

That seems like a reasonable case to raise a type error. That defines the cases quite neatly: if it's temporary on both branches then it can work, and if it has different lifetimes then the values can't be merged and should be rejected. If the programmer really meant for this to work then they need to copy the global, and copies should be written explicitly.

comment 12y ago · link · parent

Consider this:

On a two-way if statement, then a given storage location is either set on zero, one or both branches. If it is set on neither branch then the if statement is irrelevant and can be ignored. If it is set on one branch, then either it had an original value and hence can be treated as being set on both branches, or it must be destroyed within the branch of the if (no null pointers - think about it until it is clear that the type system guarantees this). Hence we are only interested in cases which are isomorphic with the location being set on both branches.

We can treat this as a phi node following the if: there is one output value, which has been created in one of two different ways. In this case we don't know statically which value has been constructed, but we do know statically how and when to destroy it regardless of which one we get, because both branches have the same type and storage location. We don't actually need to know where it came from.

Any obvious problems? I think it works...

comment 12y ago · link · parent

Ah yes, that RFC is roughly what I had in mind, thanks.

I believe that it's safe to promote through an if, although obviously not through a general loop.

comment 12y ago · link · parent

This appears to be a general objection to inference algorithms in languages? Personally I find type inference to be immensely valuable.

comment 12y ago · link · parent

The obviously "safe" thing to do is to push it out as far as the containing function, and no further. That would be sufficient for this scenario and probably all the ones where you would ever want this to happen.

comment 12y ago · link · parent

There's an obvious extension here for lifetime inference - the example given doesn't need to be an error, it could compile correctly by increasing the object lifetime to the outer block. I don't know offhand whether there is a universally correct inference algorithm for that (if every other language feature was static then unification would solve it easily, but the other language features are not static and I don't know how it would interact with rust type inference).

comment 12y ago · link · parent

I was particularly impressed by this detail further down the conversation:

Let A1 = 1, A2 = blank, A3 = 3

PRODUCT(A1:A3) is 1

A1 * A2 * A3 is 0

comment 12y ago · link · parent

"Pro government" is maybe a little strong. The BBC is funded by the government under an "arms length" arrangement with license fees; it is (understandably) nervous about doing anything that annoys the government enough to make it reconsider this status.

That doesn't mean that the BBC actively endorses the government of the time, but rather that it tends to prefer not to rock the boat too hard. It's never been - and never will be - a hotbed of edgy, controversial content. You could describe its objective as "quality content that isn't going to be hated by too many people".

comment 12y ago · link · parent

I do not feel that it is a good idea to further encourage or embed a precedent in this direction. We've had too many cases going in that direction already. I would far rather see cases establish a precedent that, if no harm is otherwise caused, then the act of confirming a security flaw is not unlawful in its own right.

comment 12y ago · link · parent

So we have a pretty good guess of how they did it, and while their affidavit doesn't give a lot of important details, ultimately they were just interacting with a web service in the way it is supposed to be interacted with - by sending it http requests - and the buggy site revealed itself to them because the guy who wrote it wasn't a very good web developer.

I can understand why they wouldn't want to give more details than they have to; it makes the prosecution's work harder. But I and many others have been arguing for years that there's nothing illegal about sending messages to a server and looking at the responses, if you aren't trying to damage anything. I can't see any reason why it would be less legal for the FBI to do it.

comment 12y ago · link · parent

Or "Enhanced Scala Compiler System"?

comment 12y ago · link · parent

More than anything else, plastic is light for comparable strength. This is important for something that you're going to be pushing around a lot.

I had a Miele cylinder before this one. The experience of using it was that I dragged it around the flat and needed both hands to manage it. This Dyson model, I point at things, with one hand. It seems to be a combination of low weight, and the ease of pivoting on the ball that means it's rolling everywhere, but the difference is huge.

comment 12y ago · link · parent

It appears that you are placing a very high value on how shiny things are and their presentation. In that case Dyson is probably not for you; they are fundamentally an industrial engineering organisation.

I own that model of vacuum you have photographed, and it's just.... good. Lightweight, easy to push around tight corners, and sucks up everything in my flat in under 10 minutes without ever having to fight it. It makes it very clear that ever other model I've ever used was not very well-designed.

It is not the kind of status symbol that you appear to be seeking. Kirby makes those and I think you'd be a lot happier with their products.

comment 12y ago · link · parent

I would not be surprised by seeing a Tory split (into the nationalist and libertarian factions), but it would take years - there's a lot of money holding the two halves of their party together. I wouldn't like this outcome much though - it would mean Cameron was the representative of the "nicer party" in British politics.

comment 12y ago · link · parent

The "bias" in the BBC is primarily to "favor" the current government of the time by not running highly controversial stories until they have become mainstream. They also avoid running purely political stories outside their politics section, like "the privatisation of the NHS" (which is a Labour party press release, not a thing that has happened to report on).

What they don't do is run directly biased stories; they're "neutral" in the content they put out, and any perceived bias is the result of their tendency to hold off on running boat-rocking stories. You could easily argue that this is a bias in itself, but it's not a partisan bias and it's hard to see how they could do this differently; it comes from their entirely legitimate fear that if they annoy any current government too much then they might lose the license fee advantage.

comment 12y ago · link · parent

Here's some irony for you: the Tories, who are the people the "independence movement" is complaining about, would gleefully sign off on Scottish independence because it would give them complete and permanent dominance over the rest of the UK - without the Scottish MPs there is no possibility of any other party controlling the UK government. (Post-independence Scotland would likely have a very unhappy experience negotiating with a permanent Tory government)

LDs will back the outcome of the referendum whatever happens. Labour are the only party that might attempt to ignore the referendum because Scottish independence will end their existence.

comment 12y ago · link · parent

This referendum is not binding in any sense. The government in Westminster will make the decision, and it will not be made by the current government (there isn't enough time before the general election). If the next government is formed of different people, then under British sovereignty traditions it will feel no obligation to pay any attention to the referendum run by its predecessor.

In practical terms: if Labour gets into power in 2015 then Scottish independence will not happen regardless of the outcome of this referendum, because Scottish independence would eliminate Labour as a political force in the UK (Tories would win all UK elections, SNP would win all Scottish elections).

It's not over yet.

comment 12y ago · link · parent

The rate required to stop experienced developers from leaving. That's quite easy to measure. Enough of the people will leave will tell you what offer they got, and you adjust up until the rate of turnover is acceptably low.

comment 12y ago · link · parent

I've done this a lot in my career. My strategy is simple: start by finding a trivial bug, and fix it. Then find a slightly less trivial bug. Do this four or five times. Don't ask anybody about anything unless I'm really lost, just chase the thread and let the bugs lead me through the active code paths.

After doing a few of these I've got a fair understanding of the structure of the code and can figure out where to go next.

comment 12y ago · link · parent

(Dis)claimer: I do real-world, boots-on-the-ground, ministers-in-government politics.

If solving poverty and unemployment was really popular, we'd have done it already. It's not, in the population. It is popular with a vocal minority of wealthy middle-class people who occasionally vote.

If you go to voters with a plan for this stuff and start knocking on random doors, I can tell you what you'll find because we find it all the time: "Where are they going to live? Not near me I hope."

I wish I could fix this, but we have to run the campaigns that people will vote for. That's democracy, and in our democracy, people are far more interested in voting against things they don't like than in voting for ideas to make society better.

comment 12y ago · link · parent

Agreed. The core thing that any business has to do is make a product that people will pay for at a price that at least breaks even. You can't sell salvation to a person that doesn't have any spare cash.

This sort of thing is the role of governments, not businesses. The core problem you have in the US is that your government is one of those incumbent inefficient dinosaurs that doesn't really do much of anything useful any more but is so big that it's hard to topple.

Any solutions to the problems discussed in this article is inevitably going to look like politics, not business. This is a problem because in the US, it's "cool" to say "pfft, politics, it's awful why bother?" which means that competent people are driven into business instead.

comment 12y ago · link · parent

Having worked with FreeBSD before in a Real Product, I'd have to say that the main reason FreeBSD doesn't have a problem with this is because most of it hasn't changed since the 1980s. Not even because it's particularly good, but just because nobody wants to work on large tracts of the codebase. The normal feeling is "bwah, this is complicated and ugly. I'll just leave it alone..."

comment 12y ago · link · parent

The problem with "application bundles" is that a lot of libraries are involved in interactions between programs. Can libgnome from 3.10 interact with libgnome from 3.12? What happens when you try? How about when you've got 20+ applications each using a different version? I'm not sure anybody really knows the answer to these questions, because we normally go to great lengths to avoid finding out.

OSX "solves" this problem by not having it: all the major libraries are supplied by Apple and are part of the system, not part of the bundle. So in practical terms, OSX does it the same way as the linux distros: on the vendor's timetable, and upstream authors have to follow along.

You can bundle things like zlib, which have a very well-defined API and never really change... but then you have a horrible mess when there is a security flaw in zlib and you need to update every application installed everywhere. But stable libraries like zlib are exactly the sort of thing that regular shared libraries work great for, and it's the fast-moving unstable APIs like libgnome that cause all the grief.

comment 12y ago · link · parent

> So the proposal is another layer of indirection, à la namespaces, à la where-have-I-seen-this-before.

Every year or two another group of people gets it into their heads that there is "something wrong" with the way distributions do things, and they have "the answer". (Often the answer involves a lot of new names for things.) These groups always make a lot of noise, launch a bunch of new projects to reinvent a lot of wheels "the right way", and draw a bunch of media attention.

All of the users who like this sort of thing immediately desert the previous group and leap to this new one. Last year's group somehow manages to become even louder as their userbase dwindles.

Meanwhile, the established distros dig into what this latest group is doing, and finally manage to cut away enough of the rhetoric to identify what real advantages it has. This usually boils down to a couple of features buried behind several gigabytes of blogs, mailing lists, wikis, and enthusiastic-but-content-free rants. The established distros usually say "yeah, that could be handy" and implement these new features, without rewriting the world.

Sound familiar?

This one looks like some folks decided docker wasn't complicated enough and renaming everything would let them make a new thing. If you look through their summary proposal, it's a list of things which you can already do, albeit without there being any single distro you can install today which has all of them working out of the box (largely because cryptographic verification and docker are still works-in-progress - they'll get there).

1
1011121314