Recent submissions

Comment · 5 years ago
Comment · 6 years ago
Only in the random case. Already sorted in either direction and it's ~10x slower.
Comment · 11 years ago
The bill is not split -- it says they reimburse you for the measured power usage of the device. Nowhere does it say that this only applies when the heat is being directed into your house, that I could see.
Comment · 11 years ago
Apart from the point in the first video when they click on a link and you can still see the smudge of the text column on the newly cleared screen. A close look at the text column while scrolling makes it look dirty compared to the rest of the screen as well.
Comment · 12 years ago
Most of it was readable, but the printf on lines 57--59 made me retch. I see what it's doing, but it's not what I'd call easily maintainable:

  printf("%8.4s", &"LEA ,IMM ,JMP ,JSR ,BZ ,BNZ ,ENT ,ADJ ,LEV ,LI ,LC ,SI ,SC ,PSH ,"
         "OR ,XOR ,AND ,EQ ,NE ,LT ,GT ,LE ,GE ,SHL ,SHR ,ADD ,SUB ,MUL ,DIV ,MOD ,"
         "OPEN,READ,CLOS,PRTF,MALC,MSET,MCMP,EXIT,"[*++le * 5]);
Comment · 12 years ago
Because that's what makes it a unit test -- you only want the unit, the tests and any stubs/mocks in the executable. Anything more and you have an integration test on your hands.

Pulling a single unit out of a legacy codebase can be difficult, especially when you don't want to actually move, copy, or modify the source-files; stubbing out the dependencies and writing mock objects to verify your expectations of what the code should be doing are also very time-consuming.

Those are the hard parts of unit testing C++, and I wonder if anyone has found a good way of doing it (with a framework, or just a technique).

Comment · 12 years ago
It looks like a nice test framework, but it doesn't appear to help at all with the really hard problems you face with testing C++ -- isolating the unit under test for separate compilation, and the development and inclusion of mocks/stubs.

Anyone know of a really good (preferably simple and pragmatic) C++ mocking/stubbing framework to go with this?

Comment · 12 years ago
> Thus - at the same bitrate - higher resolution images might look worse than lower resolution ones.

But the 4K stream is HEVC (H.265) vs H.264 for the other HD streams, so it may not be that simple.

Comment · 13 years ago
Apple did just release online versions of the iWork apps with collaboration (I don't know how well it works in real-time, but then I don't know that for Office either). They also made fun of the MS equivalent in their keynote.

I'm sure that's unrelated :-)

Comment · 13 years ago
This seems specific to image-based fingerprint sensors? Apple's version does not appear to work this way...
Comment · 14 years ago
Average speed checks are awful — I spend more time looking at the speedo than I do the road, as I try to keep close to the limit while not hitting the car in front. And they are always for odd speeds that I find difficult to maintain (just the wrong pedal position).

Perhaps they make sense when everyone has cruise control as standard to rely on, but until then a mass rollout would drive me to public transport. Or is that the point?

Comment · 14 years ago
Milling seems like a better bet (than printing) for home PCBs without the etching. It's cheaper and more accurate, like this one:

http://www.coolcomponents.co.uk/catalog/imodela-milling-mach...

Downside is that there's no solder resist, so SMT parts would be tricky/impossible to solder. Also the above model only handles tiny boards — something that can do a standard 160x100 mm eurocard would be nice.

Comment · 14 years ago
In fairness the TI launchpads are astoundingly cheap -- as far as I have seen, very few of the other competitors have dev boards at that sort of price.

The mbed board is similar to the mini, but with an online IDE (not a fan) and community. There's not much difference in price there, at least not from the mbed suppliers here in the UK vs the kickstarter prices.

Comment · 14 years ago
Just from the descriptions and photos, it looks like the mini will be breadboardable.

The bigger one almost certainly not -- it's arduino compatible and the gap on one side is visibly smaller than the other. Also, it's not clear if the big one will have pins dropping down below the board (just looks like female headers).

Comment · 14 years ago
For developers, I suspect it's less about trust and more about providing something of value to a group of people who are already known to be willing to pay for such things.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton