Izikistan

Author Archive

WordPress + IIS = Suck

17th July 2008

I’d heard it’s difficult to get WordPress working well on an IIS host but had never experienced it myself. In my case the install appeared to be working, but then looked like it’d failed on step 2. Browsing to the site, the text was all there, but clearly the style sheet hadn’t been loaded. The internal links were also all messed up, with “?step=2″ thrown in instead of the folder name where I’d installed the blog. A bunch of browsing of the WordPress forums revealed widespread IIS problems and a few proposed solutions. I tried a couple, involving editing wp-settings.php, but without effect.

I thought maybe the fixes I found were specific IIS server setups, but not necessarily mine. So, I looked at my sorry IIS server’s phpinfo() output, which revealed some obvious problems with my wp-settings.php. Apparently IIS/PHP doesn’t set some of the variables that WordPress wants, so WordPress attempts to create those variables, based on variables it supposes IIS/PHP ought to set. But my server’s variables weren’t named quite right for WordPress to suss out the variables it wanted. I changed the variable names in wp-settings.php to match my phpinfo() output and it worked.

I did end up having to delete the database tables for each install attempt. I don’t know how many people run into install issues, but if there are a lot maybe it’d make sense for WordPress to do some sort of post-install sanity check. Even better if that sanity check involved a form where one could hardcode in those problematic server variables.

Update: I should have seen this coming based on what I saw browsing the forums earlier, but the admin emails from WordPress wouldn’t work out of the box. I’d guess that the dear IIS host I’m working with has had issues with spam so they don’t allow PHP to send unauthorized mail. Fortunately, there’s a plugin that lets you manually set WordPress to use an arbitrary SMTP server. There are actually a couple, but WP Mail SMTP is working for me.

Xubuntu on an iBook (nope…)

14th November 2007

Update: Well, I thought I had it working, but after several failed boots I gave up and installed Fedora 8 instead. It worked right out of the box, with the exception of the tap-click thing, right-click emulation, and the eject button. Not too bad.

I’ve got an old 12 inch dual-USB iBook that’s been running various flavors of Linux, most recently Fedora 7. That was working fine, but it seemed a little slow. Rather than upgrade to Fedora 8, I decided to try something allegedly better for older hardware. Xubuntu, a derivative of Ubuntu using the Xfce desktop environment, is supposed to be lighter-weight and faster. This is my little story about getting it running.
Read the rest of this entry »

Comparing a couple of M42 wide-angle lenses

31st October 2007

So, after spending maybe-a-little-too-much time on eBay I’ve got 3 wide-angle M42 screw-mount lenses to choose from. I didn’t intend to get two 28mm lenses, but I bid on a couple of lenses where the descriptions were vague and the photos were out of focus - lucky I didn’t end up with a couple of paperweights I guess. Here they are together with the 35/3.5 Super Takumar I already had, for size comparison:

Read the rest of this entry »

Chili-Cheese Omelet

5th October 2007

I’ve since surpassed even this, but for a couple of weeks this was the Best Breakfast Ever. The title and photo should explain it all, but I’ll provide a quick recipe.

Chili: Normally, I prefer a braised beef chuck chili. I don’t use masa harina, tortilla chips, or any other evil corn product so it turns out a little watery. For this application I think something thicker and drier works better. Lentils thicken and suck up moisture and combine with ground beef for a nice texture. Any type of lentil works fine. I soak mine for a few hours in a lemon juice and water mixture, which I’ve heard reduces gassiness. I rinse the lentils and put them in a pot with water just over them, cover and simmer for 30 minutes or so. Meanwhile, I saute some onions and a maybe some peppers, chopped for consistent texture. Once those are soft I add some ground beef and the herbs and spices. For chili I like ground cumin and coriander, oregano powdered between my fingers, paprika, chili flakes, black pepper, and maybe cayenne or just some hot sauce. Once that’s all melded together and the beef appears cooked I add most of an 8 ounce jar of hot salsa. This is an awesome tip from Good Eats - you get tons of flavor and a bunch of vegetation without having to pick up a knife. There’s really no need for the sauteed onion and pepper earlier with the salsa. Once that’s bubbling along, check the lentils for doneness and dump them in. It’s no problem if there’s extra liquid with the lentils - it’ll cook off. Simmer a while and check the flavor, adding salt, hot sauce, or pepper if needed.

Omelet: I’ve made omelets the “right” way and they’re nice, but I think this way is better. Maybe it’s not even an omelet - I don’t care. You’ll need a small non-stick skillet, hopefully the only non-stick thing in your kitchen, except for maybe a crepe pan. Heat some butter over medium heat. Whisk 2-5 eggs until fluffy, optionally with a bit of creme fraiche. When the butter foams shake it around the pan to evenly coat and pour in the eggs. Turn on your broiler, placing the top rack so your omelet pan will be a couple of inches from the heat. Pretend you’re making scrambled eggs, mixing the eggs as they cook, but stop before they’re all set. Grate on some cheese and place the pan under the broiler. Watch it carefully - when it’s done it’ll be set, puffy, and golden brown and the cheese will be melted.

Pour some hot chili on top of the omelet for the Best Breakfast Ever (for now).

What not to do after a walk in the woods in Maryland…

11th July 2007

About two weeks ago I went camping at Little Bennett Regional Park, mostly to see if motorcycle camping was something for me or not. The camping and motorcycling were great, and I went for a long hike around the park while I was there. If you don’t like crowds and don’t want to drive far from DC, it seemed like a great place to go camping and hiking. There were a few biting flies around, but not enough that I regretted not having bug repellent. My 60 Hikes Within 60 Miles: Washington DC guide book made the horses-allowed parts of the trails sound rough, but it didn’t seem like there were a lot of horse-riders around either.

I hiked in shorts, a t-shirt, and running shoes - appropriate for the 85-ish temperature I thought. Afterwards I changed into my usual motorcycle gear, including extra socks and tall boots, and rode back. When I got back I presume I took off the socks at some point. I found some bug bites on my shin but didn’t notice anything else that day. The next night, at least 24 hours after I’d been walking in the woods, I noticed something on my leg, near my ankle. Assuming it was either dirt or an ingrown hair, I scraped it with a fingernail and pulled it off. Fortunately, I looked at it before flicking it into the trash - and saw it was a tick. It wasn’t black like the ones I’ve seen before, but had some light-colored parts and maybe some brown parts. It wasn’t full of blood and it looked pretty dead. So, I’d had it on me for a very long time, and I’d removed it pretty roughly.

I’d heard of Lyme Disease but I didn’t know what I should be looking for (or how worried to be), so got on the computer and browsed Google’s results for something that sounded trustworthy, like the CDC. The message seemed to be to watch for a circular rash for about 30 days after suspected exposure. Well, Monday when a rash appeared on my leg it took me about 6 hours to remember the tick - guess I should have tattooed a circle around it or something. Here’s what it looked like when I went to my doctor yesterday:

I felt a little like The Elephant Man as she invited an intern, another doctor, and I think a physician’s assistant in to take a look. I was a little unnerved that she based her diagnosis on a single photo in a book of some sort, which showed what the rash might look like maybe a week after it first appears - a circle with healing in the middle. Shouldn’t it show three or four photos of how the rash changes over the course of a week or two? On the other hand, that site the CDC links to appears to only show rashes at about my stage, not the later bullseye thing. Anyway, I’ve got some antibiotics and based on what she said and what I’ve read, I shouldn’t have any long-term problems.

From now on I’ll probably wear pants and a long-sleeved shirt while hiking. Maybe I’ll tuck the pants into my socks. Bug repellent might help, but I hate using it. I’ll certainly check myself a little more closely once I get back from a hike. Given how easily I could have missed seeing the tick at all, I guess I’ll also just watch for the rash after going hiking from now on.

Update… The rash is mostly gone now, but here’s a shot of it a few days ago, when it looked more like a bullseye: