3,901 karma · joined May 23, 2008 (18y ago) · 1,250 submissions
Director at Lambda Cambridge (https://lambdacambridge.com)
I offer software contracting and technical consulting services.
I am especially proficient in Javascript, Java, C#, Python and Ruby, but have completed projects in pretty much every modern commercial language as well as many academic ones.
I can also offer technical and team consulting, where I can help your developers with design and architecture, as well as process, tools, and how you work, either on a one-off or recurring basis.
Previously:
Head of Technology at Firefly – http://fireflylearning.com
Head of Development at Unifyo
PhD in Computer Science at the University of Cambridge, UK
Intern at Google London working on Swiffy, the mad but
cool Flash-to-HTML5 converter
Experience in a wide variety of languages and environments,
including low-level networking, web development,
hardware design, and security.comment 12y ago · link · parent
A better example would be a Honda car (or Ford, or whoever makes boring cars these days). Say you go to the factory, provide the raw materials and pay the workers to do one extra car which you then drive off in. And suppose otherwise you wouldn't have bothered buying a car at all.
Does Honda have something to complain about?
comment 12y ago · link · parent
They say they are hashing the MAC address (presumably on the device). However, they can't be salting the hash (else they wouldn't be able to match across different stores).
Since there is no salt (or a fixed salt), it is trivial to de-anonymise a specific MAC address (just hash it and see if any server has it).
Worse, there are only 46 bits that are variable in a MAC address, and there is structure in there (3 bytes manufacturer, 3 bytes serial), so a complete mapping from MACs to the hashed MAC is very doable.
A secret per-device key for a HMAC would preserve privacy much better, but would stop them doing the cool stuff they plan — the usual trade off.
comment 12y ago · link · parent
comment 12y ago · link · parent
Someone else can do the proof, but I'm pretty sure the total number of tanks is inversely proportional to the smallest difference between two observed HMACs (or between the highest observed HMAC and the highest possible HMAC).
EDIT: Actually, scratch that. That only works if you see all the tanks...
comment 12y ago · link · parent
comment 12y ago · link · parent
And a founder saying "VC B has given us a term sheet", when no such term sheet exists and in fact they said "Normally we don't say no, but for you, we're going to make an exception. Don't call us again!" is okay and the right of the founder.
Could you explain why those two (separate) things should be like that? As a practical first thought, it seemed to me if investors couldn't fact check, and founders could lie freely, gathering social proof would be harder, not easier, which might make it harder to get investment.
comment 12y ago · link · parent
A = X + (1 - X) / 2
So to calculate X, given A, 2A = 2X + 1 - X = X + 1
X = 2A - 1
The author implied the formula X = A - 0.5
which is not correct. In particular, assume everyone got the answer right (X=A=1). Then the assertion that half of the answers are correct guesses is absurd.The correct lucky guess fraction (amount of the right answers to discard) is:
A - X = A - (2A - 1) = 1 - A
If A is near to 0.5 (which we would expect if our model is accurate and few people know the answer, the 50% approximation the author used is about right.)comment 12y ago · link · parent
comment 12y ago · link · parent
> Coinbase must be the sole bitcoin payment method included in the app.
So, is it a hackathon to make something cool with bitcoin, or to make something cool with Coinbase?
Anything anyone does to make bitcoin bigger, better, and more mainstream, will benefit Coinbase in the long run. So it might be a bit short-sighted to restrict this unless there is a really good reason.
comment 12y ago · link · parent
In my naivety (but laudable desire for code reuse and simple implementation(!)), I parsed the brackets using eval. Without sanitisation.
Parameter parsing using eval. Who would do that?!
Fortunately no-one ever passed foo[42][system("rm -rf .")]=whoops and really ruined our day...
And the worst thing is, this was only noticed by someone in their job interview, when we asked them a question based on our production code. They got the job :)
comment 12y ago · link · parent
Union seniority rules (where pay increases with time of employment, and the cushiest jobs go to the most "senior") are one of the worse parts of unions IMHO, and discredit what should be a positive force for more reasonable, equitable workplaces.
> Also, senior pilots by definition have a limited amount of time left in their career (thanks to mandatory retirement age), the big paychecks don't last too many years.
I'm guessing large pensions for retired senior pilots are also part of the problem.
comment 12y ago · link · parent
comment 12y ago · link · parent
On the one hand, I don't think the law should be heavy-handed about this. Nothing wrong with variety, and smaller companies should be able to try things.
On the other, its not people's choice to be allergic to something, and maybe that shouldn't prevent them from taking employment where they are otherwise a good fit. And what about if an employee develops a dog allergy? Do they have to quit, or does the company ban all dogs?
A tribunal to sort out these issues seems like a really good idea, and hopefully will find a way through these issues that preserves the culture. Kudos to Sparkfun for trying!
comment 12y ago · link · parent
(i.e. if you change your major version, start a new branch. if you change your minor version, start a new branch but continue to update the old one also. Actually, without tool support, that's going to get painful, but the idea is sound and requires only local tooling.)
comment 12y ago · link · parent
It seems like believing you are vaccinated would increase risky behaviour. This is bad in itself. It is also bad if the vaccine is only partially effective, since the risk effect might balance the vaccine effect.
With a placebo, knowing you only have a 50/50 chance of getting the actual trial vaccine might also help mitigate the risk effect.
Anyway, just wondering how all this works. Finding an effective vaccine would be fantastic; keep up the good work!
comment 12y ago · link · parent
Definitely apply for a job in the U.K. It's like the U.S., only smaller, nearer, and entirely straightforward for an Italian to get a job here (I assume you are Italian living in Italy. Otherwise, maybe its no easier).
Also, don't despair! You've got plenty of time. If you get a good job that is too easy, then focus on enjoying your passions, then finding ways to get paid for them.
English university: I wouldn't bother. If you've got a degree that's enough. Getting more coding experience and knowing what you're interested in will make a master's more interesting and useful if you do decide to get one.
comment 12y ago · link · parent
Of course, the correct answer is not to use the deserializer that can instantiate arbitrary classes when you have a well-defined list of classes that can be instantiated.
comment 12y ago · link · parent
It has a split in the bus, so there are two RCDs, one on the left with a couple of breakers and one on the right with the rest of the breakers, and a separator in the middle.
Like:
supply in -> R-B-B | B-B-B-B-B-R <- supply in
C R R | R-R R R R C
neutral -> D-K-K | K-K-K-K-K-D <- neutral
[1] The quirk of our board is that the left hand breaker is driven by a separate supply cable from the meter, which is only turned on between midnight and 7am. In this way, we get cheaper electricity at night which is used for storage heaters and immersion water heater. However, we no longer have the storage heaters, so it doesn't really make sense. This set up is called Economy 7 (http://en.wikipedia.org/wiki/Economy_7).Also, @alextingle, I didn't know that you were meant to have two separate circuits, although that makes sense. Lots of things are required to be RCD protected in the UK, so as you say, it makes sense just to put everything behind an RCD. We don't get any nuisance trips, which I attribute to a generally higher standard of wiring, earthing etc. in the UK, although that could just be jingoism :) (I did once live in the US and some of the literally fraying wiring connected to two pin sockets with no earthing in the house I lived in scared me.)
comment 12y ago · link · parent
"No one runs faster than Mr Heckler and Koch."
(Heckler and Koch are a German gun manufacturer. If you are heavily armed and armoured, you don't really need to run after or away from your enemies.)
comment 12y ago · link · parent
Generally the wiring goes: mains input -> 1 or more RCDs -> several circuit breakers -> several outlets -> fuse in plug -> appliance.
So a grounding fault can take out many circuits, and many-lots of sockets.
comment 12y ago · link · parent
I do agree that "considering attacking" does sound slightly weasely and like a thought-crime; hopefully they were seriously considering it.
comment 12y ago · link · parent
Stock market index funds seemed to be a good answer in the past. By owning them, you share in the economic growth and income of your country (or another country or set of countries) as a whole. Although, the spectre of Japanese-style stagflation for most of the West makes this less appealing at the moment (although even with the flat growth of the past 13 years, there are still dividend returns.)
Property is popular because everyone has to live somewhere, the old "buy land, they don't make it any more" proverb, and the funemplyoment nature of buying, improving, renting, and selling property.
comment 12y ago · link · parent
What did he say that relates to a basic income and where can I read more?
(All I, and I suspect many people, know about him is that he is supposedly the correct answer to economics, promulgated all over the internet by crackpot^H^H^H^H^H^H^H idealistic libertarians.)