News for hackers. Stuff that matters.

socketpuppet

Re:Immutable Infrastructure: No SSH on Monday July 13, 2015 @06:13AM (#9877213)
We do something similar with Nix (https://www.nixos.org). We have a CI server (Hydra) which creates a closure containing our software and all its dependencies, which we then upload to a network of AWS machines that are created with a few python scripts.

This works fairly well, but from experience we do need to keep an SSH setup on the machines. Just last week we had a load spike on a production server which was caused by a software bug, triggered by a usage pattern that was unexpected and not covered in our tests. If we did not have SSH (and access to the CLI tools on that machine) we would not have been able to debug this unexpected problem. I guess what I'm saying is that as long as software has bugs and hardware has glitches, we'll sometimes need access to low-level tools which can help us figure out the cause of these unexpected scenarios.

Re:Why HTTP Streaming? on Monday April 18, 2011 @04:01PM (#2460396)
There isn't really much benefit of using chunked encoding for streaming video, if you're not generating the video on the fly server-side.

If you are simply streaming a stored video, you can just get the file size, use that as the content-length, and send the video. If the content is in a streamable format the client can just read/play the data as it is received. Chunked encoding will in fact add a little overhead to just sending as is.

Chunked encoding is more apt for situations where you don't know beforehand how much data you are going to send.

Re:The polynomial algorithm for 3-SAT problem (or P=NP) on Wednesday January 19, 2011 @07:11PM (#2121912)
How so?

1) One time pads are provably secure albeit impractical

2) Integer factorization is BQP, but not necessarily NP-complete.

Re:Three Design Hacks from Apple on Friday January 14, 2011 @06:30PM (#2105855)
It's just a section sign, used simply to refer to various sections in a document. See http://en.wikipedia.org/wiki/Section_sign for a little more info.
Re:Unit Testing in C++ and Objective-C just got easier on Tuesday December 28, 2010 @08:14AM (#2045357)
> Most require you to build libraries. This can be a turn off to anyone who wants to get up and running quickly - especially if you just want to try something out. This is especially true of exploratory TDD coding.

This is absolutely true, and especially painful/noticeable if you target multiple platforms. To work around this problem, I've started using the stand-alone version of the Boost Unit Test framework:

    #include <boost/test/included/unit_test.hpp>
The problem with including that, like many other Boost header-only libraries, is that they wreck havoc on compile time :/.
Re:Microsoft release a Firefox plugin enabling H.264 support on Tuesday December 21, 2010 @07:17PM (#2029978)
Microsoft is a H.264 licensor, with one or more patens in the H.264/AVC patent pool. Having H.264 become the standard for publishing video on the Web will benefit them directly in terms of licensing fees.