Skip to content

Instantly share code, notes, and snippets.

View alicebartlett's full-sized avatar

Alice Bartlett alicebartlett

View GitHub Profile
@alicebartlett
alicebartlett / Fontforge problems.md
Last active November 10, 2015 10:29
Trying to use fontforge to create an icon font from svgs
  1. Installed fontforge using the instructions on http://fontforge.github.io/en-US/.
  2. Instlalled other dependencies outlined in https://github.com/Financial-Times/o-ft-icons/edit/master/README.md
  3. Fontforge just opens and then immediately crashes again as documented in this bug: fontforge/fontforge#2497
  4. I install font forge from HEAD using this link: http://fuuko.libferris.com/osx/packages/FontForge_latest-HEAD.app.dmg
  5. This seems to work without error
  6. I do obt install
  7. I do grunt
  8. The webfonts task (which uses fontforge) fails with (something like) fontforge is not installed please ensure you have all dependencies installed
  9. I decide to use homebrew instead
  10. I do brew install fontforge which appears to work
ruby-prof dump of: https://github.com/alphagov/frontend/blob/132be26332d2bc2bee1759028faf8f654704197e/app/controllers/search_controller.rb#L32-L37
After code was fixed:
16:12:11 frontend.1 | 0.00 0.000 0.000 0.000 0.000 1 GovernmentResult#government_name
16:12:11 frontend.1 | 0.00 0.000 0.000 0.000 0.000 1 ActionView::LookupContext#registered_details
16:12:11 frontend.1 | 0.00 0.000 0.000 0.000 0.000 1 GovernmentResult#historic?
16:12:11 frontend.1 | 0.00 0.000 0.000 0.000 0.000 1 AbstractController::Layouts#action_has_layout?
16:12:11 frontend.1 | 0.00 0.000 0.000 0.000 0.000 1 ActionView::Base#assign
16:12:11 frontend.1 | 0.00 0.000 0.000 0.000 0.000 2 Hash#fetch
@alicebartlett
alicebartlett / Hiring-links.md
Last active November 26, 2018 03:41
A while ago I asked twitter for resources on hiring, here are some links: