Solid Food Tales

I have to start by asking how baby cereal started being called solid food, as it is anything but solid. In fact, even if you mix it so it’s fairly thick, the long you leave it sitting, the thinner it becomes.

Anyway, a good friend was among the sources to suggest that starting Elizabeth on cereal would help her sleep through the night. Of course as parents of an infant, sleeping through the night is one of our most fervent desires these days. I used to assume most babies were breast-fed, but now I know it’s actually quite rare. I’m now pretty sure one of the reasons is that breast milk doesn’t fill a baby’s tummy up like cereal, so they’re likely to get hungry sooner.

Sleep patterns and their relation to diet are an interesting topic to me lately, but today I focus on diaper contents.

Since we introduced her to cereal, little Elizabeth has had several monumental diapers. Diapers which smell and soil so badly they demand immediate attention. I haven’t worked up the courage to take a picture of one of these diapers or her clothes after she fills one of these diapers, but she did have one yesterday that was very convenient for getting a look at her mobile changing table, i.e. the trunk of Andrea’s car.

Tagged , | Comments Off on Solid Food Tales

Available light, so much nicer than flash!

I got a nice 50mm lens for my Nikon for Christmas. It goes down to f1.8, a lot lower than the 3.5 of my zoom lens. The only problem with it is indoor shots in small rooms, it’s hard to back up far enough to get a group picture because of the 1.5x crop factor of the D70.

Maybe one of these is a good solution? It’s a lot bigger than the diminutive 50mm, but would easily fit in my nice new camera bag. There’s also a much smaller Nikkor lens, but its’ widest is f2.8. Sigma Super Wide Angle 20mm f/1.8 EX Aspherical DG DF RF Autofocus Lens for Nikon AF-D.

Of course that still leaves me without a long telephoto, and this is all hypothetical anyway, since I need to save quite a few pennies before getting anything else. The 50mm is GREAT for close-ups in my house, and I’m sure will work very well outside, so it should tide me over for a while.

Tagged | Comments Off on Available light, so much nicer than flash!

What is the difference between a cafe and a coffee shop?

Last week when I dropped by my occasional morning coffee stop, I was rudely reminded that they consider themselves a cafe. They’re changing their earliest opening hours to 10 AM! During the week! I’m crushed. What am I supposed to do, admit I live in the deep south and stop at the gas station for weak coffee? No! I want my morning espresso!

Tagged | Comments Off on What is the difference between a cafe and a coffee shop?

Christmas!

It’s still nearly two weeks until Elizabeth’s first christmas, and we’ve already started in with the pictures. What, you expected us to wait? At least we waited until a few weeks after Thanksgiving, unlike the retailers all trying to get their books back in the black for the year!

Andrea asked me to take a picture of us to put in with our Christmas cards. I’m really lucky she remembers things like Christmas cards, because that’s the kind of thing I would either forget or put off until it’s far too late.

We had a feline interloper today during our attempt at homemade Christmas portraits:
girlsByTheTree.jpg

Tagged | Comments Off on Christmas!

Java3D on Mac OS X

Here goes with my first seriously geeky blog. This would be a great use for categories!

There are several annoying things I can’t figure out with Java3D on 10.3. What’s even worse than not being able to figure something out at all is when you actually have figured it out, but so far the solution only works on Windows. Ugh!

My application uses a lot of very large images. Several of them are loaded from disk and are meshed together to form yet another large image, which is then applied as sub-image textures, one per terrain object.

The first problem relates to BufferedImages. ImageIO seems like the easiest way to load images in Java programatically and without relying on View-type components, but it returns only BufferedImages. BufferedImages on the mac seem to use direct memory buffers of some sort, which are apparently in limited supply, because I can’t run my app if my original images that go in to the mesh are BufferedImages. It complains about running out of direct buffered memory. I’ve read about this problem on the Apple java-dev mailing list, but the only workaround I saw was to use Images instead.

Images are the second problem. I’ve read in more than one place that Java3D uses lots of threads to do its work, and that faster and multi-processor machines often can experience strange app behavior due to threading issues. The methods I’ve tried to load Images, such as Toolkit.createImage(), are asynchronous, and some of the mac-specific behavior makes me suspect the image data isn’t all finished loading before the texture mesh is created. For example, the terrain tile that is textured with the first portion of the image to load shows up correctly, but the rest of the tiles show up with empty textures. I know it’s related to the meshed textures, because I can apply repeated small test images over all the terrain tiles, and they show up just as you would expect.

The problem with these asynchronous Images is their methods provided for listening for the image loading to complete, such as ImageListener() and MediaTracker, only seem to work when they’re used in subclasses of java.awt.Component. So I’m loading these images in a model portion of my application, and I’m trying to figure out a clean way to hand them over to some UI component to make sure they’re completely loaded before I hand them back to the model to be meshed. Yuck!

One possible solution I keep thinking of is to migrate to JAI, but I’ve heard its performance can actually be worse than javas, and the application was certainly not designed with JAI’s image source and sink model in mind. If you know of a really good JAI tutorial that’ll tell me how to load images into JAI, create a large tiled image out of them, and also how to mesh images together in JAI, please let me know. Seems like the learning curve on that API is pretty steep.

More than enough geeking for one day! I’d love some hints or even outright solutions to these, so send ’em if you got ’em!

Tagged | Comments Off on Java3D on Mac OS X