- Hmm, I think I just did something to my [x]. It doesn't feel right.
- Hmm, my [x]
just started hurting. I think that's new. - My [x]
is playing up again. Can you do [y] for me? - My [x]
feels odd. I'll try not to use it for a bit. - Heh. I stood up, and something went wrong. I should sit back down.
Friday, December 24, 2010
Body Pains
Wednesday, December 01, 2010
Scanning With A Camera
We recently came across a bunch of old blueprints for the current house. They are too big to be scanned, but I wanted to be able to look at them on the computer. Taking a photo didn't help very much as the images were grey, uneven, and unclear:
The most obvious solution is to play with "levels" or "curves" and make the lines dark and the paper white. This works well when using a flatbed scanner, but I'm using a digital camera in uneven lighting. The paper corners were darker than the centre lines. I could not find a way to adjust the image contrast that wouldn't lose detail or create dark splotches:
It was then I discovered a neat ability of Gimp, and this is presumably available in Photoshop as well. You can follow these steps to brighten different parts of an image differently, and in proportion to how dark it is. Here's the procedure:
Create a duplicate "layer" of your image. We're going to use this layer as a "light map", showing which parts of the image are bright and which are dark.
Blur this duplicate layer. The amount you blur is up to you, but you basically want to remove all the sharp lines and details. You want the layer just to show where the bright regions of your image are, and where the dark regions are, without details.
Set the blurred layer to "Divide" mode. Technically, this is taking the colour of your "original" image and dividing it by your "blurred" light map. Practically, this is taking every pixel of your "original" image and brightening it by looking at the average pixel colour in that area of the image. We have successfully brightened each pixel in proportion to how dark that area was.- Finally adjust "levels", "curves", "contrast", "brightness", whatever you want to call it. The normal kinds of adjustments you would do to a scanned document which doesn't have enough contrast.
As you can see, the resulting image is much clearer. It isn't perfect and I'm sure some adjustment of these instructions would fix that. But it's a lot better than what we started with, and is more than sufficient for my purposes.
The next step is to try using similar steps for regular photos where one part is way too dark and another part is way too light. Will see what I come up with. :)
UPDATE: I found this photo of me presenting a workshop on Hornby island. I applied a slight variation of the above technique (I had to desaturate and then adjust the levels in the blurred image to avoid division by zero). The end result brightens everything in the image except the projector screen. This way I don't lose that incredibly important screen text, but can still see that I'm wearing a yellow shirt with green shorts...
What was I thinking?!?
Thursday, July 22, 2010
Bedtime Routine
We've been getting into a rhythm with Adelaide at bedtime. The times can vary by up to an hour, but the basic routine is:
- 8:00pm - change from her regular clothes into a sleeper
- 8:00pm to 8:30pm - she's very chatty and enjoys some attention
- 8:30pm to 9:00pm - a bit of feeding to help her get to sleep
- 9:00pm to 10:00pm - she naps while Emily and I play the Wii
- 10:00pm - she wakes up, has another feed, then everyone sleeps until about 1am
Of course this never goes as smoothly as we would want. Tonight, it's past midnight and she's strapped to me because she couldn't seem to fall asleep in her own bed. Emily is exhausted because Adelaide is waking every two hours to feed, so I'm going to write this blog and do some coding.
But whatever happens, Adelaide does know when the bedtime routine is meant to start. A few days ago it was 8:15pm and I was changing Adelaide's diaper. She was happy and still in her regular clothes, so rather than change her into a sleeper I decided to dress her back up. After the first button she was in tears! She got this horrified look on her face and just bawled!
Similar thing again today. Emily and I took her out to see 10pm fireworks, and all is going fine until about 8:45pm. Suddenly Adelaide realises that the sun is going down and she's not in her sleeper. A happy and content baby suddenly turns to tears and sad, sad cries.
I've been told that parents can distinguish between their child's cries. In this case, we definitely can. This crying is not a "I have tummy problems!" scream or a "I'm bored!" protest. It is more like the cry when you realise you left your toddler's favourite teddy bear at the last petrol station. Or when your child is lost in a department store and can't find anyone they know. It's a "They forgot me!" kind of cry. Absolutely adorable, but it also gets you moving quickly. :)
Anyway, I'll get some coding done while Adelaide is still sleeping. I expect her to wake up within the hour for her next feed. Seems like she's not teething as we thought - it's just another growth spurt.
Thursday, July 08, 2010
Our Camping Challenge
We recently took Adelaide on her first camping trip. We mention to this to people afterwards and we get told "That was brave!". I was always told that bravery is "doing something stupid but surviving". :P Maybe if we'd known in advance we wouldn't have tried! :)
The ideal room temp for baby to sleep in is 21c, but the overnight tent temp was 11c (Emily will tell you all about my tent, which is an Australian design and has a lot of mesh walls). A lot of co-sleeping (bed-sharing) was necessary to try and keep everyone warm enough overnight.
We had hesitated to do co-sleeping because Adelaide was so tiny, and I have a tendency to roll with my elbows outwards. In the tent we had no choice, and honestly it worked out far better than I'd hoped. We both got a much better handle on Adelaide's sleeping habits, and I think we all feel a lot more connected as a family. Sharing every waking and sleeping moment does help to feel that connection.
To keep ourselves sane over the course of the trip, we alternated between camping and motels. At one point we ended up at Sunpeaks Resort, a ski-resort which turns into a hiking destination in the summer. Emily just told me that Sunpeaks saved the trip. Without that break, we probably would have given up and headed home. A proper bed, with TV and a microwave, is a very nice break from cold nights and mosquitoes.
And oh yes, there were a lot of mosquitoes no matter where we camped or walked. Emily breaks out in swollen itchy patches after a mosquito bite, but I just bleed from the holes. We couldn't dare to put mosquito repellent on Adelaide, and by proxy we couldn't put any on Emily. So Emily spent a lot of her time inside the tent or car, while I spent a lot of time setting up the tent or lighting a campfire. Not complaining, but it's these little role restrictions that make camping with an infant a little bit harder.
Halfway through the trip we met up with Stella and Timothy at a motel in Clearwater. We spent a few days in Wells Gray Park (awesome waterfalls!), and then made our first attempt to camp as a unified family. Stella had brought a tent and a big outdoor mesh. The mesh was big enough to cover a picnic table with extra chairs, which meant that Emily and Adelaide could spend a lot more time outside. Unfortunately Stella's tent leaked during our first camping night and she and Tim had to head home too soon.
Once Stella and Timothy left, the three of us headed to Kamloops and spent a few nights camping there. The temperature rocketed up to 36c in the daytime, and so we spent parts of our days in malls, the cinema (we were almost the only ones seeing Toy Story 3 in 2D!), or hiking up and down mountains. We will have to return to Kamloops another time. The entire area reminds me of Muswellbrook, except they have sub-alpine meadows nearby... :)
Was it worth it? Well, it was always going to be a challenge. We managed to take Adelaide camping, hiking, to waterfalls, to the movies, to the zoo, with family, in the cold, and in the heat. It was not a comfortable trip, but we got it all done. And that's what made it worth it. :)
Tuesday, May 04, 2010
Adelaide's Birth
Emily's just written up her blog about the birth, so I figured I'd write up my experience. I'll only note down the things she didn't mention much. I remember a few more things as I wasn't the one in all the pain.
- First, my embarrassment. I don't have a driver's license in Canada, and I had just organised all my paperwork to let me do the multiple-choice Knowledge Test. So after we got Emily into hospital, where did I go? Off to do my knowledge test, coming back some time after she was hooked up to all the baby monitoring stuff. That's when my memories start.
- We had to kill time in the hospital somehow. Labour is a long process. We had brought a laptop and started marathoning the modern series of Doctor Who (starting from Season 2). Who knew that we'd look back at those episodes and think "damn, Season 5 is so much better"? Kill Doctor Who and we're back to just talking rubbish to burn up the hours.
- At one point, Emily had setup a tiny portable stereo system to listen to Glee music while having her cucumber-salad lunch. That was early on in the day. It's weird thinking that the same day contained "Emily being excited about cucumber-salad" and "Emily screaming and crying and pushing a baby out". A baby's birth will be a strange day.
- Originally, Emily's mum (Stella) was at the hospital with us. Having her there really helped in the early hours when I wasn't around as much, but with labour approaching we knew things would be getting emotional and stressful soon. We sent Stella home somewhere around lunchtime, though she would drop in every few hours after that with very welcome food relief. :)
- The hospital staff wanted the baby out, and rightfully so. Adelaide had pooped inside and there was a risk of her inhaling some of that. However, Emily was dilating quite quickly on her own. We didn't want to use induction if we could avoid it, so we delayed. In the end, Emily's dilation slowed down and she had to be induced. She was not happy about the IV, but I think she was happy to get labour moving again.
- Labour is enormously painful. And induced labour comes up on the mother very fast. Once you're induced, know that this is going to hurt, and it's going to hurt fast. I'm not sure that I fully understood this, but I did at the end when the hospital staff said "you know, the vast vast majority of women get an epidural when they're induced, you're just incredible".
- As a father and husband, there were a few things that ran through my head during the birth:
- I will never leave her. There is nothing quite like watching a woman go through labour to make your insides shrivel up and make you think "seriously? this woman loves me?".
- Baby's head is showing? Umbilical cord needs cutting? Whoop-dee-doo. Excuse me while I tend to my wife here, ok? And no, I don't want to grab my camera. She's in pain, and I'm not a tourist.
- I wanted to cry at many points through the birth, just watching and hearing how much pain she is in. Absolutely everything is secondary to her pain. If she needs to break a bone to distract herself from the pain, so be it. Bone injures will heal. Birthing pain trumps all concerns today. Yes, seriously, it is that bad.
- I know her better than the staff and can better translate how she's feeling, what she wants, etc. Perhaps that is the most useful thing the husband can do - translating her needs to the hospital staff, and their directions back to her. For example: "Yes, I know a heat-pack makes the most sense for labour pains. But screw that - my wife needs a soothing ice-pack down her back to make her feel better. I don't care if you need to use frozen popsicles, we need something very cold down her back right now." That is your job as husband.
- Adelaide came out in full Hollywood style. Bright pink, breathing, seemingly happy to be out. She had a bit of poop on her but otherwise was all good. Emily was completely wiped out, but happy it was all over.
- Adelaide has been breastfeeding just fine, almost since the very first attempt. She has strong neck muscles, breathes just fine, and has a relatively gentle cry. We could not be happier. In fact, Adelaide and Emily were doing so well they sent us home within 16 hours of the birth.
The whole thing went very very fast. I still can't believe we now have a baby, but I am extremely eager to play with her and watch her grow up. When she opens her eyes and just stares at you, it's beautiful.
Note to Timothy: I know you can't read this, and I know you can't respond, but I want to write this down. You are an uncle now, mate. Maybe you know this because you seemed to know there was a baby in Emily's tummy. We will be bringing the whole family to you soon. I am really looking forward to it. Love you mate. We'll see you soon.