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
My thinking is that, if trusted to output a library that matches the API spec, there is no need to test that API. However, that does require that Alpaca is well-tested enough to be trusted - would you be happy with tests in Alpaca itself, or should it generate tests too?
comment 12y ago · link · parent
comment 12y ago · link · parent
He was caught because they probably assumed the threat was an internal hoax, checked the logs and found only one or a few internal users on Tor at the right time, then got a police officer to ask each of them if they had done anything wrong [1]. One confessed, and there you go.
Morale of the story: don't do illegal things, and if you do want to do illegal things, have a cover story and don't admit things based on inferences from investigators.
[1] In fact, they probably overrepresented the evidence and then left him to talk himself into being convicted.
comment 12y ago · link · parent
comment 13y ago · link · parent
Also, the example of giving out Gmail access via OAuth is a little inaccurate since OAuth is more auditable and revokable than sharing your username and password with a third party, which is what Intro requires (even if they promise not to look.)
comment 13y ago · link · parent
The point of the article is that the world is relational, and because Mongo isn't, it'll bite you in the ass eventual. Sure, that's a specialisation of what you said, but still a useful one, as it allows you to immediately know you shouldn't use Mongo (unless your data is all truly non-relational, and you know you'll never integrate it with any relational data, which, without a crystal ball, you can't know, so don't use it.)
comment 13y ago · link · parent
No-one appreciates a bad generalist, but a good generalist, who can pick up any piece of code or system you happen to have lying around or need to work with (e.g. can use tcpdump to debug a problem connecting to a client's server, or write a useful shell script, or do some C# coding for an integrated version of your Ruby app) is worth their weight in bitcoins.
comment 13y ago · link · parent
Choosing a good price is a) hard, because of the due diligence, and b) expensive, because if you chose wrongly, you lose money (in an auction, this is called the winner's curse.) So the cost of estimating the price before the shares are on the market needs to be priced in to the initial sale price.
Probably doesn't explain a 100% jump though, but in regard to the rich supposedly supporting free markets, I will remark that people's ability to be for things when they are applied to other people, and against them when applied to themselves, never ceases to amaze me.
553.
MongoHQ security breach incident report(updates.intercom.io ↗)
2 points · by Robin_Message · 13y ago · discuss
comment 13y ago · link · parent
Considering how many deaths there have been at Le Mans (closest comparable organised race I can think of), this is certainly irresponsible. I wonder if they went through a jurisdiction where the minute by minute trace from the tracking company would be enough to prove they broke the law.
comment 13y ago · link · parent
TL;DR: Because we count reversed, when the table shrinks (shrinking is done live, so the old table sticks around for a while) we will continue to iterate only from the position in the sequence where all of the masked bit combinations (those bits of the hash that are ignored in the smaller table) have already been explored. If we counted normally, then on a shrink we would end up skipping parts of the old table. Lines https://github.com/antirez/redis/blob/unstable/src/dict.c#L7... explain it perfectly, now I understand it.
Looking at the code, the increment works as follows:
counter |= ~mask;
counter = reverse(counter);
counter++;
counter = reverse(counter);
The mask is the size of the hash table, minus one, so it always looks something like 0b00001111.So the first step sets all the unimportant high bits. This means that, after the reverse, all of the unimportant low bits are set, which means an increment will set all of the unimportant bits to zero, and increment the important part of the reversed counter.
So this could be rewritten as:
counter = reverse(counter);
counter += (1 << (32-log_size));
counter = reverse(counter);
Sometimes a collection is made up of two tables, one larger, one smaller. There is an extra loop in each iteration to go through all of the elements of the larger table that share a hash prefix with the counter.Now, why the reversed counter? If the table stays the same size, it doesn't matter what order you iterate. If the table grows, the prefix system still works, so that can't be it. So, by process of elimination, it must be necessary for collections that shrink.
Say we have an 8 element collection, and have iterated 000 and 100, and next is 010. Then it starts shrinking to a 4 element collection. So next is 010 (which is interpreted as 10 in the new, smaller table, and 010 and 110 in the old table), then 01 (01, 001, 101), then 11 (11, 011, 111), then done.
Well, that worked (we visited all 8 places in the old table). Let's try a non-reverse increment.
000, 001. Next is 010.
Switch to size 4, and then visit (10,010,110), (11,011,111), done. We missed 100 and 101.
Okay, I'm happy. It sort of makes intuitive sense that if the shrink is what's important, and the high end is lost during the shrink, then incrementing from the high end will work better because throwing away the high end will still cover the whole range, as long as you still look at every bit in the thrown away section. Whereas incrementing from the low end will result in gaps.
Go from size 256 to 4 to really show it:
0,128,64,192|2,1,3,0
vs 0,1,2,3|0 (which examines only the top quarter of the old hash table)
Or to put it another way, look at this sequence: size 8: 0,4,2,6,1,5,3,7. The bottom bit is set only after all of the possiblities with the bottom bit reset have been explored. So if remove some of the top bits, either the bottom bits will not be set, or every combination of top bits with those bottom bits set will already have been explored.comment 13y ago · link · parent
comment 13y ago · link · parent
The whole point of what Schneider has spent years writing and talking to the media about is security theatre etc. He is constantly trying to explain and encourage people to make risk decisions rationally, not emotionally.
Characturing slightly, he is the opposite of the national-security loving ideologue who sounds sincere and caring, but really wants people to be more scared, because that gives them more power (consciously or not).
Or do you think a more empathetic presentation is what is needed? For example, should he be saying something more like "A loud bang is undoubtedly scary in an airport, but there was no actual threat to life and the existing security systems caught the person, so I am personally very relaxed about this non-issue, and I feel others should be too."
I could definitely see more empathy being helpful in his presentation, but his core message is good.
comment 13y ago · link · parent
In general, if you have to jump into every method call to understand a method that calls other methods, the names are bad – probably too short and don't state intention.
comment 13y ago · link · parent
Any ideas which?
comment 13y ago · link · parent
comment 13y ago · link · parent
- If you have more money (wealth, the key), you are freer, because you don't have to earn a wage for longer (with enough money, you are retired and don't ever have to earn a wage again.)
- If you have lower costs (lifestyle, the chains), you are freer, because any wage you earn can be lower, and you have more spare money to put towards your wealth.
You don't need to chose between being a wage-slave or a hippy. Investing a good fraction (say 10-80%) of your income is something most middle-class westerners can afford, attacks both ends of the problem, and leads reliably to freedom.
comment 13y ago · link · parent
What is EDID I hear you ask? Well, it's extended display identification data. Physically, it's provided by an EEPROM on the I2C bus of the DVI port at address 0x50.
Could it be as simple as only AMD providing adapters that accurately portray themselves as HDMI devices?
EDIT TO ENTIRELY REVERSE IMPLICATION OF ABOVE QUESTION: No, it sounds like said EEPROM is necessary to make the video part of such an adapter work at all.
It seems AMD additionally identify if it is a blessed adapter and only send audio packets if that is the case. Definitely annoying, but fair given that there is no actual standard. People would definitely moan more if AMD cards blew up non-AMD adapters/monitors connected via non-AMD adapters.
comment 13y ago · link · parent
The shady part is doing the pivot without doing another opt-in. It's a classic bait ("Subscribe to get access to videos") and switch ("Continue paying to get access to a community and the promise of plans to make said videos in the future").
comment 13y ago · link · parent
So this would still be a dark pattern even with an opt-in, since people will mentally start rationalising ("It's a good service for smart entrepreneurs like me to learn from each other") instead of assessing it from scratch ("It's an online startup community I pay to belong to. Is that worth $30 a month? Hacker News is free...").
It's a shame, because if the thing people had paid for had been delivered this would have probably been okay, but as it is, it seems pretty unethical.
[1] http://en.wikipedia.org/wiki/Foot-in-the-door_technique [2] Can't find a good reference, but basically avoiding http://en.wikipedia.org/wiki/Cognitive_dissonance
comment 13y ago · link · parent
They would back the position that wind turbines are safer than coal, so you're not wrong that they might be biased to imply coal is more dangerous than it is.
[1] http://en.wikipedia.org/wiki/Sinking_of_the_Rainbow_Warrior
[2] http://www.greenpeace.org/international/en/campaigns/nuclear...