Published

Make a PDF looked like a scanned doc using ImageMagick

You can make a PDF looked like a scanned document using ImageMagick. Useful for all the unfortunate orgs that still don’t accept electronic signatures and such.

First, make sure you have ImageMagick installed. On a Mac, you can run convert -v on the command line and if it’s installed, you should see which version of ImageMagick you have as well as some settings. If you don’t have it installed, check out the ImageMagick download page (will probably need to install it via Homebrew if on a Mac).

Once you’re sure it’s installed, on the command line, you should navigate to the directory that contains the PDF you want to adjust. Next, you’ll run the command below to generate the “scanned” PDF. Be sure to change input.pdf and output.pdf to the filenames you want to use.

convert -density 140 input.pdf -rotate "$([ $((RANDOM % 2)) -eq 1 ] && echo -)0.$(($RANDOM % 4 + 5))" -attenuate 0.1 +noise Multiplicative -flatten -attenuate 0.01 +noise Multiplicative -sharpen 0x1.0 -colorspace Gray output.pdf

Note: this is based on this Gist but with some tweaks to suit my preferences.

Published

Mix-and-match grain salad

I’ve been making a mix-and-match grain salad a ton recently. It’s great for using up leftovers, and it keeps really well in the fridge as long as the greens you use are substantial enough.

All you do is combine a cooked grain of some sort, greens, at least one soft-ish vegetable, at least one crunchier vegetable, and dressing. Things that I’ve found work in most versions of this salad include kale, green onions, grated carrot, thinly sliced onion, small tomatoes, olives, capers, and cucumber. I find that bagged, chopped-up kale keeps for a super long time in the fridge both before it is prepared and after it goes in to the salad.

Bonus additions include toasted seeds or nuts, feta or grilled halloumi, chickpeas or puy lentils, hardboiled eggs, croutons fried up from the leftover heel of a loaf of bread, bacon bits, leftover roast chicken, that sort of thing. It’s best if you leave the cooked grain overnight in the fridge so that it can dry out a little bit, and when you use it in the salad it’s worth breaking up any clumps with your hands first.

These are some decent combos and their dressing counterparts. I’m counting cous cous as a grain since it functions a similar way!

  1. Components — Wild rice + shredded red cabbage + thinly sliced green onions + grated carrot + roasted peanuts
    Dressing — Rice wine vinegar + soy sauce + sesame oil + minced garlic + sugar + ground ginger
  2. Components — Bulgar wheat + massaged kale (stalks removed) + thinly sliced red or white onion massaged with sumac + diced cucumber + fresh mint / dill / parsley / thyme if you have it
    Dressing — Olive oil + honey + lemon juice + a tiny bit of tahini + minced garlic + salt + pepper
  3. Components — Cous cous + massaged kale (stalks removed) + roasted red peppers (jarred is fine) + toasted pine nuts or cashews + fresh oregano / basil / parsley if you have it
    Dressing — Olive oil + balsamic vinegar + salt + pepper
  4. Components — Quinoa + arugula + diced tomatoes (or whole small tomatoes) + thinly sliced onion + chopped olives and / or capers + canned tuna, drained
    Dressing — Olive oil + red wine vinegar + Dijon mustard + salt + pepper

This is the recipe I contributed as part of a recent recipe chain mail. I normally really dislike chain mails but am always happy to participate in a food-based one!

Published

Added layers to my hair

I’ve been growing my hair out for a little while. I loved having it short, but the £££ required to keep it up is not something I’m willing to commit to just yet. I’d like to give long hair a try but get put off when it gets around shoulder length. Not keen on feeling it around my neck and I hate finding long hairs on my sweater, pillow, etc.

It’s at the I-can’t-stand-it point now, looking pretty Basset Hound-y, so time to cut it.

I followed this YouTube tutorial with a few modifications to account for my wavy hair and lack of any straightening options. I skipped the trimming steps since I’m ok with the length right now, it just needs a better shape so that it’s less heavy at the bottom.

These are the basic steps to add layers.

  1. Gather your tools. Make sure you have enough clips + hair ties and a pair of actual hair scissors. I think ours are this pair from Sanguine, about £14.
  2. Assess how much you’re going to take off. Stand in front of the mirror and assess how long you want the shortest layer to be. Do not pull your hair straight to do this. If you have hair that is anything but stick-straight, you need to make sure you account for the loss of length when it is dry. Once you’ve decided, take a small section of hair from the very top of your head in line with your ear, hold it at the length you’d like, and then measure how much you’re planning to take off. Make a mental note or something to remind yourself of how much you’re planning to take off so that you can refer to it when you start cutting.
  3. Assess the angle you’ll use. In one hand, continue to hold the small section of hair that you grabbed in the previous step at the length that you want your shortest layer to be. In the other hand, grab another small section of hair from the same side of your head just behind your ear. The two sections should be directly on top of each other, neither of them should be further towards the back or the front of the head. Pull each section directly away from your head and towards each other. You want to bring the very end of the bottom section up to meet the point at which you’re planning to cut the uppermost layer. On my hair this was a roughly 45 degree angle. If / when my hair gets longer, I might be pulling it more directly upwards like the stylist does in the video. Remember the angle you establish since you’ll use that in a moment.
  4. Section your hair. Separate your hair in to sections by making a centre part from your forehead back to the nape of your neck and then additional top-to-bottom parts on either side of your head. Make sure each of the sections is tightly secured. I separated it in to four parts as he recommends in the tutorial, next time I’ll do six though since it would suit my hair thickness a little better.
  5. Trim the first section. Let down one of the front sections, and then brush it up and out in the angle you established previously. Holding it up at that angle, slide your finger or a comb through from front to back just around the height of your ear, and then let the lower piece down. This is forming a decent base so that you retain the length. If you don’t do this, you might end up getting some shorter layers falling out when you try to put your hair up! Run your brush through again at the required angle to get it smooth, and then put in a hair tie. Slide the hair tie down the hair keeping it at the required angle until it is a few centimetres above the length you’re planning to cut. Bring this loose ponytail slightly forward so that it is easier to see without pulling any of the hairs in the hair tie. Use your fingers in your non-dominant hand to splay the ends out a bit, and then point-cut in to the ends until you have taken off roughly the amount of length you planned to take off. Remember, you can always take off more later. Err on the side of caution.
  6. Trim the remaining sections in the same way you trimmed the first section.

I’m pretty happy with the results. This technique will do for now, but I’ll absolutely head back to a stylist once all of this is over with and we’re settled somewhere. Will miss Dean. 🙁

Related: See this video for what seems to be a decent scissor-over-comb men’s haircut tutorial…

Published

A damn fine margarita

John makes the best margaritas, finally texted him for the ratios. Needs must!

Most recipes online seem to call for about 2 oz tequila + 1 oz triple sec + 1 oz lime juice (2:1:1). This is way too intense IMO, almost feels more like a martini or something (that’s not the right analogy, but you get what I mean). The extra sweetness from additional triple sec balances things out. I’m calling for Cointreau below because that’s John’s recommendation.

Combine 2 parts tequila + 2 parts Cointreau + 1 part fresh lime juice (2:2:1). If you’re making two, 3 oz tequila + 3 oz Cointreau + 1½ oz fresh lime juice works super well (I tried this using an egg cup as an ounce measure due to where we’re at, YMMV). Shake thoroughly with ice, then strain into one or more glasses of fresh ice. Or use a single huge cube of ice if you’re at chez Goods. If it’s your preference, rub a wedge of lime around the rim of the glass and dip in to coarse salt before pouring in the drink.

Published

Instagram be GONE

My old Instagram account has been languishing unused for about two years, finally got round to moving the images and videos over here. Now I’ll be keeping all that content on this site in a photolog. If they open up their API a bit someday then I’ll syndicate from here to there, but I’m not holding my breath.

Note to self: use Handbrake to convert .mov videos to .mp4. The standard “Fast 1080p30” preset (see docs) is fine for now.

Published

San Francisco Art Institute is closing

Facade of the San Francisco Art Institute

SFAI is closing indefinitely. Such sad news. It sounds like the CoViD-19 situation was the nail in the coffin.

I took a painting course there during the summer before my senior year of high school. I lived in the East Bay and took BART or drove over the Bay Bridge every day. It’s the sort of place I’d want to be if I had decided to keep studying art. A place where you could get lost and be left to your own devices, sort of like the old Foulis building at GSA but more labyrinthine.

The school has been around for almost 150 years. Diego Rivera painted a huge mural in the student-directed gallery in the 1930s. The photography department was founded by Ansel Adams. San Francisco’s wild parrots sometimes roost loudly in the loquat tree in the Spanish courtyard. I can’t think of anywhere in SF that offers better views of the city and the bay, for free from the Brutalist ampitheater or for the price of a bagel and a coffee at the cafe.

It’s one of my favourite places. Very sad to see it go.

Loquat tree in the Spanish courtyard at SFAI

Concrete work at SFAI

The cafe and terrace at SFAI