Category: misc


Tuesday, I took Jason to the oral surgeon’s to have all four of his wisdom teeth pulled. The surgery itself took about 45 minutes. It turned out there was a lot of infection back there, and as the doctor put it “it was messy”. The anesthesia made Jason really funny, and he took direction very well, which was nice for a bit.

However, the bleeding didn’t stop the way it should have. After a few hours of constant, continuous, copious bleeding, I called the doctor’s office again, and they had us go back in. They gave him two more stitches, and Jason finally clotted, after losing about 2 pints of blood.

We came home, and I got Jason to drink a bit of milkshake, and managed to keep him conscious until the fear of actually losing him passed.

He’s still incredibly weak and tired – mostly due to the blood loss.

- My wife’s account of it

The oral surgeon wasn’t aware of how much blood was lost, neither myself or my wife were in any condition to think clearly Tuesday. I should have received a transfusion.

Nearly a week later and even though my mouth is doing fine, I’m quite low on red blood cells. Made it into the office today (wife drove) and am leaving early because the room is spinning nearly nonstop and I’m fighting to stay conscious. Going to try to see a doc today/tomorrow … maybe I’ll get some blood. If not, give me a blinkin’ straw and I”ll do it myself… Who’s A Positive around here?

Yeah, it’s Who Better Than Me by Phil Collins with the Turk and Tarzan names changed but it covers just about any two closely aged siblings IMHO:

Miriam
You’re one of a kind, I can’t explain it.
You’re kind of cool, in a wonderful way.
Though you’re weird, you can make it.
And who better than me to teach you.
Who better then me to set you on your way. (Mhm)

This could take some hangin’ in there
Though with persuasion I can take you on up
Make you grow up, beside the others
And who better than me to lead you
Who better than me to take you all the way (Hey hey hey yeah)

Asher & Miriam
Struggling along for years and years

Miriam
Until I came along for you
Now its all comin’ together

Asher & Miriam
And together will see this through
You for me and me for you


Asher
I can learn, I can listen
I know there’s something
Deep inside but
I need assistance to go the distance

Miriam
And who better than me

Asher
To teach me

Miriam
Who better than me

Asher
To tell me all you know

Miriam

Who better than me

Asher
You reach me

Miriam
Who better than me

Asher & Miriam
To show them all we know!

When I purchased Foundations of Qt Development (Expert’s Voice in Open Source) by Johan Thelin a few months back, I hoped to get to it right away but work and life diverted my attention. Today at lunch I dived into it. Even though I’m still going through chapter 1, I think I can give a hint of it:

Foundations of Qt® Development (Expert’s Voice in Open Source) is well written. He assumes that you have a little bit of C++ knowledge, avoiding into the trap that so many other authors do. You wouldn’t believe how many technical books I have where the first half or more of the book is simply a rehash of the basics. Forget that!

What I really like is that when he shows you an example of code, he explains why you would want to write it this way and how it differs from the Standard Template Language (STL – see C++ Programming Language, The (3rd Edition)). Where there are performance gains or penalties of using Qt instead of STL, he demonstrates it.

I never realized just how easy it is to write C++ using the Qt framework! Just the Signals and Slots alone make it very very powerful and that’s just the beginning. I’m completely blown away :)

When my bought the Sony MEXBT2700 CD Receiver with Bluetooth Hands-Free with Integrated Microphone (Black), I was thrilled. It seems to be a nice little radio with bluetooth and all the whiz bang that I needed.

We purchased the wiring adapter and the harness so that it fits well and looks nice in my Saturn 2000 SL2 sedan for an extra $44. Not bad. The problem was that while the colored wiring diagram provided by the adapter was correct, it had me put the power wire from the ignition in the wrong pin slot as the casing was reversed! Argh! It needed to go into pin 6 but it was on the wrong side. I figured it out after taking a good look at the plug on the old stock radio.

No, I couldn’t find my multimeter which is in a box somewhere in the house. head*desk

Once I moved the wire to the correct pin hole, the radio came alive.

Lesson learned when installing a car radio: make sure you have your multimeter (or some other way of determining if the power pin is hot).

I’ve been wracking my brains over this for the past few weeks and it finally struck me how to create an m4b audiobook with chapters that is compatible with your iPod, iTunes, VLC, etc.  It was very simple once I figured it out:

Step 1:

encode the mp3 files to “aac” (mpeg4) using your favorite converter (I use ffmpeg):

ffmpeg -i "track1.mp3" -y -vn -acodec libfaac -ab 128k -ar 44100 -threads 3 -f mp4 track1.aac

Step 2:

Create a chapters file so that MP4Box can understand it:

* Common syntax : CHAPTERX=h:m:s[:ms or .ms] on one line and CHAPTERXNAME=name on the other – the order is not important but chapter lines MUST be declared sequencially (same X value expected for 2 consecutive lines).

$ cat track1.chapters
CHAPTER1=00:00:00.000
CHAPTER1NAME=Chapter 001
CHAPTER2=00:30:00.139
CHAPTER2NAME=Chapter 002
CHAPTER3=01:00:00.728
CHAPTER3NAME=Chapter 003
CHAPTER4=01:30:01.269
CHAPTER4NAME=Chapter 004
CHAPTER5=02:00:01.858
CHAPTER5NAME=Chapter 005
CHAPTER6=02:30:02.375
CHAPTER6NAME=Chapter 006
CHAPTER7=03:00:02.964
CHAPTER7NAME=Chapter 007
CHAPTER8=03:30:03.553
CHAPTER8NAME=Chapter 008
CHAPTER9=04:00:04.094
CHAPTER9NAME=Chapter 009
CHAPTER10=04:30:04.683
CHAPTER10NAME=Chapter 010
CHAPTER11=05:00:05.224
CHAPTER11NAME=Chapter 011
CHAPTER12=05:30:05.765
CHAPTER12NAME=Chapter 012
CHAPTER13=05:46:14.106
CHAPTER13NAME=Chapter 013
CHAPTER14=06:16:14.143
CHAPTER14NAME=Chapter 014
CHAPTER15=06:46:14.732
CHAPTER15NAME=Chapter 015
CHAPTER16=07:16:15.249
CHAPTER16NAME=Chapter 016
CHAPTER17=07:46:15.790
CHAPTER17NAME=Chapter 017
CHAPTER18=08:16:16.331
CHAPTER18NAME=Chapter 018
CHAPTER19=08:46:16.920
CHAPTER19NAME=Chapter 019
CHAPTER20=09:16:17.460
CHAPTER20NAME=Chapter 020
CHAPTER21=09:46:18.050
CHAPTER21NAME=Chapter 021
CHAPTER22=10:16:18.639
CHAPTER22NAME=Chapter 022

Step 3:

Add the chapters to the audio file (creates Nero format chapter markers):

MP4Box -add track1.aac -chap track1.chapters test.mp4

Step 4:

Convert the Nero chapter markers to Quicktime chapter markers using mp4chaps from the mp4v2 project (you will want v1.9.1 or higher):

mp4chaps –convert –chapter-qt test.mp4
converting chapters in file "test.mp4" from Nero to QuickTime

Step 5:

Rename the file from .mp4 to .m4b extension so iTunes will see it as an audiobook:

mv test.mp4 test.m4b

Proof that it works:

and VLC showing the chapters:

Of course, we aren’t putting in any tags such as “author” or “genre” in this example. Use your favorite tags editor to do so.