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

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

CSS note-to-self: `position:fixed;` is not respected within transformed block elements

Note to self: position:fixed; is not respected if the fixed element is within a transformed element.

See a very old meyerweb.com article on the topic. Apparently this is expected behaviour, not a bug, hence why people are still encountering this funkiness nine years after Eric Meyer’s article. As he suggests, it’s a little counter-intuitive!

In my case, it related to a fixed element within a <div> that was being transitioned from off screen to on the screen. I was able to get around it by reversing the transform so that when the element needed to be fixed, I set the containing element to transform: none;. That wouldn’t work in every case though, so YMMV.

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

New neighbours

We were due to move out of London on the 31st, and then we were going to live in West Yorkshire with Sam’s family for two weeks before leaving for the US. Obviously, that plan was shot to pieces.

We were still planning to move out on time until late Wednesday night when we realised that a lockdown in London could easily mean being stuck with nowhere to go. At around 5am on Thursday, we woke up and started packing. Sam got one of the last vans at Enterprise and we Tetris-ed things in to it until about 7pm when it was filled to the brim. We said goodbye to our home for the last 4+ years, and then he drove north while I failed to stay awake in the passenger seat. We listened to a few episodes of Answer Me This and The Mythos Suite, ended up rolling in to our destination around 1am.

Meet our new neighbours.

Brown hens in a back gardens in West Yorkshire

We’ll be staying in a few AirBnBs until things calm down a little bit and it makes sense to move to the US. It’s pretty good so far. We have already worked remotely for so long, we don’t have to make any major adjustments there. And it’s a beautiful part of the world, should be able to do a lot of walking.

Part of me feels really guilty about leaving, particularly when I think about what happened with the lockdown exodus in Italy and after reading this Guardian article. We don’t want to contribute to any problems, but we couldn’t stay.

We decided on Yorkshire because it was pretty much our original plan, though we’ll probably be here longer than we had planned and will rarely see family. We’re trying to stay as distant as possible. Living in a state of flux.

Published

packing, selling, dissolving

Drawing of a dracaena

We’ve been slowly packing up for the past month, preparing to move thousands of miles away. It was exciting up until about two weeks ago. We knew it would be sad to leave the people we love, pack away our books, sell so many of our things. But we were looking forward to a big change.

Now it feels untethering. Reality feels very thin at the moment, and the process of moving amplifies that feeling. Home should be a grounding place, but it’s shifting under our feet. We’ve disassembled our workspaces, we’ve given away the chairs and sold the monitors. The umbrella plant that I got at the flower market when I first moved here, the dracaena I brought back from the dead, the lovely coffee table we’ve had since we first started living together. They’ll all be gone by tomorrow.

Drawing of a mid-century coffee table

I really don’t mind the downscaling. They’re just objects, and all of them are going to great homes. And we’re still going to move even if it gets delayed by current events, so it doesn’t make sense to hoard things for the sake of a few more weeks. But the *timing*. Things are dissolving and will be fluid for quite some time. I could really do with some solidity.

The worst part is that we may not get to say goodbye. We were planning to celebrate with the people we love. There’s an outside chance we’ll still be able to, but we don’t want to put friends in an uncomfortable or dangerous position.

What will happen will happen. And we’re pretty fortunate. It’s just sad, that’s all.

Published

drastic nostalgia

pink ice plant flowers, a bee, concrete breeze blocks painted white, bromeliads, air plants, glue sticks, wicker chair back, lemons, limes, my blanket, sea hare, cut strawberries, mud, asphalt, flaking kick ball backboard, eucalyptus, AYSO jersey patterns, Vons ice cream, sand, marine layer, gross beige rug, 70s beach blanket, sunscreen, Xacto knife, vorco board, bright blue sweatshirt, jelly pens, unopened peonies, rope, bird wallpaper, food dye in water, pancake batter drips, continuous form paper, chain link fence, shiny brass, plastic oscillating fan, dirty terrazzo flooring

wanting to do something drastic to yourself
tattoos, shaving your head, suicide
out of all the good, where does this feeling come from? what frustration are we trying to embody?

also, nostalgia
it’s masochistic, purposefully reliving unreal events that will always feel superior to the present day, real life

we forget so much
oblivious viciousness of childhood

glass-block walls, stucco of all sorts, white wrought iron, fake wood panelling, ivy, guppies, anenomies, four square, gloved hands, twisted hair wraps, clover, tadpoles, blue pools, mustard, Pleiades, *big* spider, unshaven legs, long hair, freckles, sheets in the sun, wisteria, terracotta tiles, reflective glossy black, ceramic bear, brick wall, water pump

***

Found in one of the old notebooks that I’m slowly de-cluttering.

Published

Overheard on the 73, “it’s just one of those things”

I’m not going to lie, when I get a few drinks in me… I’m a little nasty to her. But it’s just one of those things.

Overheard on 10 April 2013 while sitting on the the upper deck of the 73 bus between Euston Station and King’s Cross, headed towards Stoke Newington. Said by a middle-aged businessman with a blue tie and London accent talking on a mobile.

Seems particularly awful since obviously there is self-awareness. He just doesn’t care enough to act differently.

***

Found in one of my old notebooks that I’m slowly de-cluttering.