spatten's comments

spatten | 10 years ago | on: Org-Mode for Writing: Structure and Focus

I used org-mode for about a year, but then switched to Vim and none of the vim org-mode plugins looked great.

So I thought about what I used it for, and realized it was mostly cycling items between TODO and DONE with a keystroke and text folding.

So I forked vim-markdown and added syntax highlighting for TODO and DONE on header lines, and a mapping to cycle between TODO and DONE. Been using it for a couple of months now and I'm reasonably happy.

If you want to give it a shot, code is here: https://github.com/spatten/vim-markdown

spatten | 10 years ago | on: Why Airbnb is dead to me

If you both review, then the reviews show up immediately. If only one of you reviews, then the review shows up after a waiting period (I think it's ~2 weeks). So presumably the negative review will show up soon.

spatten | 10 years ago | on: The Shazam Effect (2014)

> ...it has been downloaded more than 500 million times and used to identify some 30 million songs ...

That doesn't sound right. On average one identification for every 16 downloads? I'm guessing that second million should be a billion.

spatten | 11 years ago | on: Why Your Brain Hates Slowpokes

Maybe I'm just rationalizing it because I want to think of myself as a calm, non-ragey person, but to me it feels like something else.

I agree with others that it feels rude when someone else takes up the whole sidewalk.

But it's also that I walk a lot, and use it as a form of transportation. I go twice as fast as a lot of people on the sidewalk, and it seems like if people just sped up a bit they'd find walking more useful, which would make them drive less, which is a good thing, and it drives me crazy that this isn't obvious to them.

Like I said, I'm probably just rationalizing :)

spatten | 11 years ago | on: The Freak Attack SSL/TLS Vulnerability

If you're using AWS Elastic Load Balancer, then the quick fix is:

1) Select the load balancer you want to edit 2) Click the "Listeners" tab 3) Click "change" under the "Cipher" column for the HTTPS row 4) Select the most recent pre-defined security policy, from 2015-02.

This should get you an A on SSL Lab's test[1]

https://www.ssllabs.com/ssltest/

spatten | 11 years ago | on: Why Canada's anti-terror bill is unnecessary and dangerous

I'm confused by the caption under the photo (and I live in Vancouver, right next door to Victoria):

> Victoria MP Murray Rankin: "I heard 10 gunshots at least and huddled with colleagues under a desk."

It feels like a mistake. Anyone know what this refers to?

spatten | 11 years ago | on: Chernobyl’s Hot Mess, “the Elephant’s Foot,” Is Still Lethal (2013)

I did a bit more reading, and found this crazy and scary graph. It's under "Uranium-232 Series Activity" near the bottom of this paper[1]. It shows that gamma ray output from U-238 increases > 5x a year after U-238 is first refined, and stays higher than originally was for >100 years.

It's due to the decay products of U-238 (and their decay products) all producing radiation that adds up to more than the original's.

I never would have guessed that.

[1]: http://www.wise-uranium.org/rup.html

spatten | 11 years ago | on: Chernobyl’s Hot Mess, “the Elephant’s Foot,” Is Still Lethal (2013)

So it's now almost 30 years after Chernobyl, so if I read this naively:

> When this photo was taken, 10 years after the disaster, the Elephant’s Foot was only emitting one-tenth of the radiation it once had.

the Elephant's foot will currently have 1/1000th of the original radioactivity it had right after the disaster, and 10 years from now it will be down to 1/10,000th. At that rate it would be indistinguishable from background radiation within a century or so (just guesstimating here, but that's a lot of powers of 10 -- I'm probably being pessimistic).

I'm guessing that this is wrong, though, and that the radioactivity from longer half-life radionuclides will eventually start to dominate and the "effective half-life" will be much longer.

Does anyone have any idea how long it will be until Chernobyl blends into the background radiation?

spatten | 11 years ago | on: Minesweeper Fanfiction

We (mostly my cofounder at Leanpub, Peter, but I've done it once or twice) do the same thing when talking about "the rise of serial fiction via fanfiction" to a publishing audience.

We show them the "books" page of fanfiction.net[1] and then note that the numbers there are the number of stories written in each book's universe, not the number of readers or views or anything like that. Go look if you haven't seen it, it's amazing.

[1]: https://www.fanfiction.net/book/

spatten | 11 years ago | on: Making a Guitar Tuner with HTML5

True, and cool (I hadn't heard of zero-crossing before, thanks!) but an FFT gives you the ability to do interesting things like chord recognition.

I may have to play around with the code here and see if I can get it to pick out multiple notes being played simultaneously, and maybe get it to measure how fast I can do chord changes (like Justin Sandercoe's "1 minute changes" practice method[1]).

[1]: http://justinguitar.com/en/BC-115-1MinuteChanges.php

spatten | 11 years ago | on: When Theft Was Worse Than Murder

Interesting. My take on it is slightly different: it feels like a necessary condition of economic progress is that you trust that you will get to keep the fruits of your labours.

The way this happened in our history (I'm assuming that it's not the only way) is through institutions like The Old Bailey and the codification of laws and the visibility into the not always completely fair, but always getting fairer, application of those laws that they provided.

spatten | 11 years ago | on: When Theft Was Worse Than Murder

If you're interested in the main thesis of this article -- that the reason that our attitudes to violence declined steadily was due to a feedback loop "feeding the output of the Old Bailey the day before to the input of the Old Bailey the day after.", I highly recommend "The Better Angels of our Nature" by Steven Pinker.

spatten | 11 years ago | on: George Ellis Knocks Physicists for Knocking Philosophy, Falsification, Free Will

The end of physics has been predicted many times. I remember reading an article in Sci Am about the end of physics a few months before starting my physics undergrad in the late 80s.

The exciting thing is that it has often been followed by huge breakthroughs -- if I remember correctly, the last time it was widely believed that we had it all figured out was at the turn of the 20th century, just before Quantum Physics and General Relativity were discovered.

I'm still patiently waiting for string theory to die and us to start working on something that we can actually do experiments on.

spatten | 11 years ago | on: Static site generators focus on the wrong thing

No, it definitely doesn't do that. I use the `limit_posts` option when I'm writing a single blog post, and then have a "rake deploy" task that re-generates the site fully (without the `limit_posts` option) before rsyncing it up to the server.

I guess I should put the full Rakefile up on that post. Here are the relevant parts:

    desc "generate and deploy"
    task :deploy => ['jekyll:generate', 'deploy:deploy']
    
    namespace :deploy do 
      task :deploy do
        `rsync -r _site/ #{USER}@#{HOST}:#{DEPLOY_DIR}/`
      end
    end
    
    namespace :jekyll do
      desc "start the jekyll server in auto mode"
      task :server, :num_posts do |t, args|
        num_posts = args[:num_posts]
        cmd = "jekyll --auto --server --pygments"
        cmd += " --limit_posts #{num_posts}" if num_posts
        puts "running #{cmd}"
        exec(cmd)
      end
    
      desc "generate the site one time"
      task :generate => :clean do
        `jekyll --no-auto --pygments`
      end
    
      desc "remove the generated site"
      task :clean do
        `rm -rf _site`
      end
    end
page 2