Better HN
topnewbestaskshowjobs
Log inSign up

bcoates

5,109 karma · joined Jun 27, 2012 (14y ago) · 1,639 submissions

ben blueskylabs com
Submissions

comment 12y ago · link · parent

The city I live in has a large population of UK citizens and isn't part of the EU either, is there something I should know?

comment 12y ago · link · parent

People can, and have, made reasonably serviceable tanks in their garage and then terrorized cities, supervillain-style. If this doesn't result fearmongering about basic construction tools, why is everyone worried about less practical biological terrorism?

comment 12y ago · link · parent

Please don't use or implement this "work in progress", it is terrible.

For starters, the fundamental idea is backwards. People don't evade port enumeration to hide from attackers, they evade it to hide from auditors. Thinking that makes you safer is equivalent to assuming the world goes away when you close your eyes. The defenders need to find every hole, the attackers need to find one. If you want a secure (and functional!) network, you want to make network service discovery easier, not harder.

They even admit it themselves:

  Thus, it is increasingly important to minimize the visible footprint
  of services on Internet hosts, thereby reducing the attack surface.
They think reducing the visible footprint results in a reduction of the attack surface, that is, they think concealment is cover.

Secondly, the non-technical portions are extremely misleading, for example:

  [A]dversaries may be able to observe all traffic of an Internet host
  and perform man-in-the-middle attacks on traffic originating from
  specific clients.
This is a quote from a proposal that does not work at all to conceal traffic from passive listeners, let alone man-in-the middle attackers. You still know exactly what services are running if you can listen in, you don't need to port scan! Furthermore, if you can see selective response to a sufficient (smallish) number of these ISN tokens, you can start trying to guess the secret. No advice on appropriate shared secret selection or necessary secret length to mitigate this is given -- they claim the secret is 1024 bits, but give a test vector much shorter than that.

PS: I'm pretty sure this breaks if you use DNAT

comment 12y ago · link · parent

Why not SNMP? It seems to be the protocol everyone loves to hate but there's a ton of ecosystem around it and it directly solves the status/discovery case

comment 12y ago · link · parent

I think the advantage of the "We don't have to share any infrastructure" mindset is that standardization is a process, not a destination. A living system will always have some diversity of libraries, versions, languages, etc. While it's important to keep it under control, a system that is robust to being half written in PHP and half in $goodlanguage is much more consistent with the messy reality than a plan of "Step 1, port everything to Ruby, Step 2, write a single set of SOA tools, Step 3, profit"

comment 12y ago · link · parent

That article makes the same conflation of "health-care workers" and "people who know they're dealing with ebola patients and are following bloodborne pathogen protocol" that VLM is.

There are tons of healthcare workers and sick people in the regions affected, most patients don't have ebola and most workers probably don't have training and equipment to deal with it, so undiagnosed ebola patients with generic flu symptoms infect unwitting workers.

comment 12y ago · link · parent

If you double-click it, it closes the application. It was converted from a picture of a spacebar to the application's icon, but still functions the same way.

comment 12y ago · link · parent

It would be pretty easy to assign any image an arbitrary value. Compare the image's current (unquantized) DCT values to the desired ones, find the value that differs from the target but is closest to being quantized as the desired bit, and apply a filter that just barely flips it. Each time you do this you reduce the Hamming distance score between the image and the target by 1.

If getting close enough results in unsightly blotches on the image, reduce the power of the low frequency luminance channel across the board, which will mask the changes by making the unmodified high frequency components more noticeable. That looks like what's being done in the catdog image, at least.

You could increase the saturation as well, as this fingerprinting system ignores color.

comment 12y ago · link · parent

I've used this technique before for image searching, here's some tips:

The algorithm presented here can be summarized as "Take the low-frequency DCT components of the luminance channel, quantized down to one bit". Hashing is a very misleading term for what you get from it: In particular, it doesn't have anything like the uniform coverage of the output space you would expect from a hash function, as almost all encountered images exist in a very small range of hashes. Also, the bits in the hash are not all created equal; assuming you encode them in a zig-zag pattern truncation is equivalent to a low-pass filter, so if you want to make the hash different sizes while matching on the same image elements you'll want to alter the quantization amount, not the output DCT size (this is directly equivalent to what JPEG does, which uses a fixed DCT size but lossily quantizes the information in it to varying degrees for different compression quality settings). Experiment with different quantization techniques; you don't have to treat every bit in the output the same.

This technique is only suitable for a small subset of the image files that you will encounter in the real world: it's mostly unsuitable for anything but photographs and photograph-like images (3d renders, paintings, etc.) Many classes of image have no useful distinguishing information in the low-frequency luminance space, such as screenshots, pictures of text, line drawings, many forms of graph and diagram, most "clip art" style drawings, pictures that include layout elements in the image file (like most of the meme/sucessories/demotivator format pictures you'll see on imageboards). Of course, an image with a flat or heavily compressed luminance channel will yield no information at all.

You don't have to do anything special to match flipped images, as you should be using (iirc) DCT-II that has the same output for a mirror image. It's insensitive to scaling and mild translation.

For debugging purposes, note that the transformation performed is lossy but easily reversible: you can undo all the steps but quantization to generate a 'stereotype' image of a particular hash value and its neighbors. There is no more information available to the matching algorithm than you can see with your own eyes with the round-trip conversion, so if the round-tripped image preserves important distinguishing detail the matching will work and if it turns the image into a meaningless grey smear you'll get tons of false positive matches.

comment 12y ago · link · parent

You had me until "Duplicate dependencies are bad". The reason every package manager except npm and Apple's bundles are a piece of shit is because they attempt to install random dependent garbage globally and by default.

comment 12y ago · link · parent

If I understand right (I may not):

In Python, the (complex, generic) iter() protocol is how every container provides a method to iterate itself, and reduce is a trivial application of a reducer (like your add function) to a container by using the iter protocol.

In Clojure, it's the opposite: there is a reduce() protocol and every reducible container knows how to reduce itself. the traditional reduce function just takes a reducer and a reducible and performs the reduce protocol on it.

As there's a bunch of different kinds of containers with different rules, the best way to implement the reduce protocol on them is different for each, and there might be weird specialized reducers that are parallel or asynchronous or lazy or whatever.

Transducers allow you to composibly transform reducers into different reducers, which can then be handed to the reduce protocol. As it turns out, most (all?) normal container->container operations, like map and filter, have corresponding transducers.

Here's the good part: if you have a reduce protocol and a complete set of tranducers, containers don't need to be mappable. The map(fn, iterable) function needs to know how to iterate; mapping(fn) doesn't care about containers at all, and is fully general to mapping any reducible for free. So you can write a transducer to produce the effect of any map or filter-like operation without touching iter().

As an added bonus, the code is more efficient:

  reduce( add, map( lambda x: x + 1, xrange(10**9) ), 0 )
eagerly builds a gigantic mapped list (barring sophisticated laziness or loop-fusion optimizations), but

  reduce( mapping( lambda x: x + 1 )(add), xrange(10**9), 0 )
is equivalent and trivially runs in O(1) space on one element of xrange at a time.

PS: python translation of mapping from http://clojure.com/blog/2012/05/15/anatomy-of-reducer.html converted to named functions to be more pythonic:

  def mapping( transformation ):
    def transducer( reducer ):
      def new_reducer( accum, next ):
        return reducer(accum, transformation(next) )
      return new_reducer
    return transducer

comment 12y ago · link · parent

You realize that two out of three of those issues are archtype culture war distraction issues, right? Political types call them 'squirrels'. They're a great way to get people to watch your network, vote for your candidate, or kill an inconvenient web browser.

comment 12y ago · link · parent

I suspect this is an industry-specific thing -- I don't see a lot of public hate for Fortune 100 CEOs Marillyn Hewson or Phebe Novakovic, both leaders of companies much more significant than Yahoo.

comment 12y ago · link · parent

That's a nice, subtle way of fucking with someone: spoofing messages that trip these pedo-sensors won't result in an obvious mistaken raid, because the police will want something more solid to go on (like the case in the OP) -- the victim will just show up as 'pedophile, we just can't prove it yet' in a bunch of police databases/background checks/opposition research, and won't know why the random searches randomly choose them every time.

comment 12y ago · link · parent

if the drive is propelling something to get tens of µN, you could float strips of thin plastic film across the supposed path of reaction matter and it'd be visibly accelerated by collisions with that something, at least if my math is right.

comment 12y ago · link · parent

Of course, but there's still a lot of things consistent with the experiment that are less improbable than reactionless thrust.

This is still an important experiment, though -- if your testing methods are discovering 'impossible' effects, they are discovering effects that are possible but wrong, too. This is something worth getting to the bottom of. Every contradiction is a discovery, even if it's not the discovery you want.

comment 12y ago · link · parent

  “The important fact is that this man’s DNA is the same as
  the DNA found on Yara,” he said, noting that the odds of
  anyone else sharing the same genetic profile was “one
  person out of two billion of billions of billions” or
  practically nonexistent.
This fundamental misunderstanding of statistics really doesn't increase confidence in this investigation. When you go on a fishing expedition across 22,000 suspects, the odds of getting a false positive from one cause or another is nearly one.

comment 12y ago · link · parent

There are many more glyphs than there are codepoints -- a font contains a ton of information that would be needed to reproduce a script that is not present in unicode tables.

comment 12y ago · link · parent

At-least-once[1] queues are sound under bounded partitioning and can withstand any specified amount of data loss[2]. Uncorrected data corruption errors cause whole-system failure in non-distributed systems as well as distributed ones and the solutions are the same in both.

You're not just throwing a bunch of queues at the problem and hoping they stick. Your queue based system is in one of two states: it has a specified amount of fault tolerance based on its design, or it is defective (see the 'call me maybe' posts.) If you have a defective distributed system adding more nodes makes it worse, so it is vitally important to know which one you have and design accordingly.

[1] Calling them zero or more times queues is profoundly bullshit in that it conflates faults (multiple delivery) and failures (non-delivery), which is reliability 101. Failures are expected to propagate; faults must not, and a design which attempts to work around failure instead of just faults is almost certainly a sign of deep confusion.

[2] This doesn't violate CAP because a client must write to enough nodes that it can be certain that it is not part of a doomed partition (potential loss of availability), or pretend the write succeeded without that guarantee (potential loss of consistency).

comment 12y ago · link · parent

I'm not sure I understand the issue here: If you have an at-least-once queue, it might still be reasonable for the application to directly write to a transaction log somewhere that can be reconciled for auditing, but that audit should always pass (even under fault conditions): there is either a design flaw in the system or malicious insider tampering if the queue does not deliver the message. Is it necessary to audit for that sort of thing on a sub-day level?

It doesn't seem like an appropriate place to put a wait-and-retry loop -- it absolutely breaks the entire point of queueing if the sender does not consider the task completed and flush all of its state once the message has been successfully enqueued.

comment 12y ago · link · parent

If someone lies about the things you can check, you should automatically assume the things you can't check are lies too.

comment 12y ago · link · parent

I think they mis-adjusted their ranges and it's probably a fat-tailed power law distribution. When you survey people there's going to be a peak around "smoke weed every day" but there's a gigantic range of usage between "I take a puff or two off my pipe every afternoon" and "I spend all of my free time stoned out of my mind".

comment 12y ago · link · parent

Ah, there it is: https://twitter.com/search?q="so+hype"

Looks like that one can apply to both someone's emotional state in general and the thing they are hyped about without the negative connotation.

comment 12y ago · link · parent

264 million joints worth, enough to give one RAND Corporation standard 460mg joint to each adult in the US.

comment 12y ago · link · parent

The areas around Colorado are almost entirely unpopulated, most people going to 'heavily visited mountain communities' are either local to Colorado or travelling in from a long distance.

comment 12y ago · link · parent

It is good for a person to be hyped about a thing, to hype something (≈ to trick other people into being hyped about it) is bad.

comment 12y ago · link · parent

How does Snabb Switch compare to the Linux kernel's openvswitch/openflow combination? Are there any advantages to Snabb for forwarding/counting appliances or is it just for packet-consuming applications?
1
232425
55