Peter Woo

Results 24 issues of Peter Woo

When blog posts are pulled from eff.org, they are processed so that relative links to other pages on eff.org still work (the link is converted to an absolute url). https://github.com/EFForg/sec/blob/eb86f4bb102a2ac23f9c7d74ade6d16b301e6f8f/app/helpers/blog_helper.rb#L3-L13...

`ContentHelper#preview` is getting a little complex in how it finds a piece of content's html: https://github.com/EFForg/sec/blob/242e1ec95608130f08d13d493da8b6f6434b6e0f/app/helpers/content_helper.rb#L7-L13 Currently articles, blog_posts, lessons, and managed_content use "body" as their main text field, while...

For example, compare the Learning Objectives list to the Prerequisites list on https://sec.eff.org/topics/passwords.

Now that deploys are automatic it would be nice to be able to check what the currently deployed commit is. Even if it were hidden in a comment somewhere.

They could inherit from a base class that takes care of ```ruby storage :file def store_dir "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}" end ```

Should we find an alternative to phantomjs? The maintainer has stepped down.

We shutdown the webkit process by issuing [`Process.kill(3, pid)`](https://github.com/EFForg/phantom-of-the-capitol/blob/master/app/models/congress_member.rb#L353). SIGQUIT does not always have an immediate effect and we don't waitpid to be sure the process has stopped, which makes...