Category Archives: General

iPhone Field Test Mode

This came across a mailing list I’m on:

Inside the iPhone field test mode – Blog – WirelessInfo.com

Basically if you dial:

*3001#12345#*

Then you get dumped into a menu which allows you to read out all sorts of interesting details about your phone and its connection to AT&T’s network. Note: I did this on my phone, it seems harmless enough, but don’t come crying to me if something bad happens.

Addendum: DOH! I inadvertently left out the 5 above when I first posted this.

[tags]iPhone,iPhone Field Test[/tags]

Eating your own food…

I love food. I mean I really love it. I love the culture. I love the taste. I love the social aspects of food. I love the different cultures. The spice. The flavor. Flames. Ovens. Bread. Meats. Fruits. It’s all good, baby.

I really enjoyed working on Ratatouille, but it did have one negative effect on my life: I simply didn’t have the time to cook for myself very often, and I got out of the habit. Net result: more fast food, and I put on twenty pounds. Sigh.

On the way home today, I thought I should cook up a dish which was high in vegetables (it does actually qualify as vegan) and yet satisfying and which shouldn’t take a huge amount of time to make. And so, I thought I’d try making a ratatouille. It’s difficult, because while I have enjoyed cuisines from all over the world, I must admit that I’m pretty darned ignorant when it comes to French food. It just wasn’t part of the wide variety I had when growing up, and I never bothered to pick it up.

I had read a bunch of recipes for Ratatouille lately, and just decided to wing it. I’m not a bad cook overall, and have some experience, so I bet that if I just cooked the ingredients in a reasonably sane way, I’d come up with something reasonably tasty. As far as I could tell from reading recipes, I needed:

  • Eggplant. I’m not a big fan of eggplant, but it is growing on me. I used the little chinese ones, which were available and looked better. I use these when I make eggplant with garlic sauce, so I know what they are like. I took a pound of them, scrubbed them, cut into 3 inch lengths, and then sliced into planks about 1/4 inch thick.
  • Zucchini. Same thing: experience tells me to use the smaller ones. Again, about a pound. Scrubbed and sliced slightly thinner than the eggplant. My experience is that they are firmer than the eggplant, and I wanted the sizes to be about the same, so I started these thinner.
  • One yellow onion. Coarse dice. I like yellow ones, but not the sweet ones, which are often too sweet.
  • One green pepper. Coarse dice.
  • One big can of diced tomatoes in juice. In the best of all possible worlds, you’d probably seed your own fresh tomatoes, but most tomatoes you get in the supermarket are tasteless. Good canned tomatoes are much better than bad fresh ones.

So… winging it, I remember that the ratatouille should have relatively little liquid when complete, so controlling liquid is important. I tossed the eggplant and the zucchini in a bit of olive oil, sprinkled them with a little kosher salt, and spread them onto a baking sheet. I popped them into a 400 degree oven, then started to work on the onions. I heated a big fry pan, added a little olive oil and then dumped in the green pepper and the onions. I let this go for maybe ten minutes on medium heat. I wasn’t trying to brown the onions and peppers, but merely to get them cooked and soft. Once that was accomplished, I added three cloves of crushed garlic, a little fresh ground black pepper, but no more salt (the tomatoes are salty, I didn’t want to make the overall dish too salty). After cooking the garlic for 30 seconds, I drained the juice off the tomatoes (we are trying to keep the liquid out after all) and dumped in the tomatoes. They will seem pretty dry for a couple of minutes, then will begin to sweat out more liquid. When that is nearly evaporated, I turned off the heat, and pulled the mixture off the burner.

By then, the zucchini and the eggplant both looked nicely cooked, a little limp, with a tiny bit of color around the edges, but still a little bit firm. I took a 9″ square pyrex pan (I need to get a good casserole someday), spread about a third of the tomato mixture in the bottom, then added half of the eggplant and zucchini in a layer. I then added the rest of the tomatoes, and then stacked the rest of the eggplant and zucchini on top. Back into the 400 degree oven for ten minutes uncovered. I pulled the dish out, took some of the liquid out, and basted the top. There wasn’t much at this time, so I added a couple of tablespoons of the tomato liquid on top as well. Back into the oven for fifteen minutes. The liquids were then bubbling in the side, which i thought was bad (too wet), but I wasn’t going to screw with it more. I turned the oven off, and let it sit for a few minutes (my wife came home ten minutes later). After sitting on the counter for a couple of minutes, most of the liquids had been reabsorbed by the cooling vegetables, and I was relatively pleased with the overall texture and moisture.

I served it in bowls, and topped it with a little more fresh ground black pepper (I like pepper) and some fresh chopped parsley.

I don’t know what ratatouille is supposed to taste like, but this was really good! It was a nice mix between the texture of the squash and eggplant, the acidity of the tomatoes (which were still chunky), the onions, green pepper (subtly sweet, basically hard to pick out by itself, but there) and the mild flavor of garlic. I bet you this dish would be even better the next day reheated, as the flavors meld together. I had two bowls. If I had the time to make some home baked bread, that would have been incredible.

This dish wasn’t quite what Thomas Keller designed for our movie, but I can see why it is a classic. Natural flavors, seasoned appropriately, cooked appropriately, melding together in a warm, filling dish. It may not send you back to your childhood (my grandmother’s kosher garlic dill pickles, pork roast, or my great aunts pies would do that), but it was a damned good dish, worthy of your consideration. It is nearly ideal in terms of my philosophy of food: use good ingredients, and let their natural flavors come through in interesting combinations. It’s also a pretty damned good dish, with lots of bulk but fairly low in calories.

Give it a try.

[tags]Ratatouille,Recipes,Food,Cooking[/tags]

My List of Ten Improvements Needed for the iPhone

Okay, I bought one. I’ve had it for 24 hours, and I really like it. It’s slick. It’s got lots of cool features. And it is just damned shiny and screams cool. But to demonstrate that I’m not a total fanboy, I present for your consideration a list of ten things which I think should change to make it an even cooler device.

  1. Flash. Don’t get me wrong, I mostly hate flash, but it has become nearly universal, and is actually just about the easiest and least painful way to get video onto a webpage in a way that most browsers can do. My Windows PC can watch them. My Macbook can watch them. My Wii and my PSP can watch them (at least, certain versions of it). My spiffy new iphone should do them too.
  2. ssh I need Secure Shell. You gave me something with a keyboard I might actually want to type on, how about giving me the ability to remotely login to my machines and execute simple shell commands?
  3. VNC Okay, the shell access was nice, but I really need to graphical type stuff once in a blue moon. You gave me ssh, how about a VNC client?
  4. Audio/Video recording I used to record my old podcasts with my Dell Axim x50v. Originally, I used an app that just did uncompressed wav recording. Later, I bought an app that would do mp3 recording. Both were cool and useful. Oh, and my old LG CU500? It could record video too. Sure, it was pretty lo resolution and crappy, but it was partly a function of the camera. The iPhone’s camera is (at least marginally) better, why can’t I do some little video recording?
  5. The Camera App isn’t very impressive. You can’t adjust pictures brightness, contrast or size. It’s kind of slow. The only way to trigger the picture taking is by hitting the small onscreen button. How about having it count down ala Photo Booth, so you can resteady your camera before it snaps the picture?
  6. Better bookmarks By default, it simply synchronizes bookmarks from your Safari setup on your desktop machine. There doesn’t appear to be anyway to reorganize or reorder them very easily once they are on your iPhone. Being able to create a shortcut button on the main page would also be an excellent idea.
  7. Unified mail handling, with better notifications. I love my Macbook and the Mail app. I have four different email accounts, but they are all accessible as a Inbox. On the iPhone, this brilliant idea isn’t implemented: i have four separate email inboxes that I have to scan when the little buzz indicates that I have a new message.
  8. Bluetooth support I was shocked to find that while the iPhone supports Bluetooth headsets, you basically can’t do anything else via Bluetooth. Not just modem support, but you can’t even transfer files to the device. Heck, even my old LG phone could do that.
  9. Instant messaging It simply must happen. AIM, Jabber, IRC, whatever. Not silly web gateways either, real applications. Yes, it will make AT&T cross because they won’t have so many SMS messages. We don’t care. It is ridiculous to give us unlimited data connectivity and then charge us an extra $10 a month for 1000 more 120 byte messages, just because they are sent via a different, less efficient network. It’s also silly to deprive us of instant messaging when we are often not even on your network, using Wifi.
  10. Lastly, 3rd party applications. You can either fight it, or embrace it. If the experience of the PSP should teach you anything, it’s that sufficiently talented and motivated people will work to subvert the restrictions that you place on the device. You could either continue to waste time and energy trying to convince them that they don’t want what you aren’t giving them, or you could give them what they want.

What about the rest of you? What do you want to see software-wise on your iPhone?

[tags]Apple,iPhone[/tags]

Web Development for iPhone

Here’s Apple’s documentation for developing web stuff for the iPhone. It’s not all that surprising mostly, but it is good to keep a link to this hanging around.

Apple Developer Connection – Web Development for iPhone

Addendum: Josh, if you are looking for info on which codecs, bitrate etc to use for the iPhone, here it is: on a subpage of the above link.. Basically:

The Movie to MPEG-4 exporter with the following settings prepares movies for Wi-Fi.
In the H.264 video options, make sure you restrict the encoder to use the Baseline profile, and select “Faster encode (Single-pass)” encoding in the Video Options dialog.
Video settings: 900 kbit/sec, H.264, 480 x 360; frame rate: current; preserve aspect ratio using: Fit within size
Audio settings: 128 kbit, AAC-LC
.mp4 file
The Movie to 3G exporter with the following settings prepares movies for EDGE.
Video settings: 64 kbit, H.264, 176 x 144; frame rate: 10 or 15; preserve aspect ratio using: Letterbox or Crop
Audio settings: 16 kbit, AAC-LC
.3gp file

Addendum: I’ve had no luck getting my video-conversion Swiss Army knife, ffmpeg to generate H264 video. Normal MP4 video with the WiFi bitrate settings works fine. I had some difficulty with making 3gp files, but MP4 files at the lower bitrates work well too. I’ll post links to some examples after I’ve tweaked them a bit more.

EFF receives documents on FBI abuses

The EFF filed a request for documents pertaining to invesigations within the FBI on abuses of National Security Letters. They replied with over 1100 pages of information. I haven’t had a chance to delve too deeply into this, but it seems clear that when government agenceies are granted liberties with our rights, they take them. It also appears that U.S. District Attorney Gonzales might have some more harsh questions heading his way.

EFF: DeepLinks

OpenMoko

Open MokoIt seems only fair that I give a link to a new telephone product that has more of my ideals in mind: witness openmoko.com, which you can now apparently order for the first time.

It’s an entirely open Linux based phone, with some pretty nifty features. Their first model is the Neo1973. It’s specs read out as:

  • 120.7 x 62 x 18.5 (mm)
  • 2.8″ VGA (480×640) TFT Screen
  • Samsung s3c2410 SoC @ 266 MHz
  • Global Locate AGPS chip
  • Ti GPRS (2.5G not EDGE)
  • Unpowered USB 1.1
  • Touchscreen
  • micro-sd slot
  • 2.5mm audio jack
  • 2 additional buttons
  • 1200 mAh battery (charged over USB)
  • 128 MB SDRAM
  • 64 MB NAND Flash
  • Bluetooth (2.0)

Here’s a little youtube video describing some of features:

If I had any guts, this would be my next phone, rather than the iPhone. I must admit, I’m kind of waiting for some units to actually get into people’s hands before I strongly consider it though. It also lacks a camera, which is very nearly a deal breaker for me, although one is supposed to be available in the next revision hardware (maybe?). Still, I’m keeping an eye on this project.

Addendum: Here’s another perspective.
[tags]iPhone,OpenMoko[/tags]

Are 80 Columns Enough?

Slashdot asks the question “Are 80 Columns Enough?” Luckily, we have several hundred years of “best practice” in trying to typeset material for maximum legibility to guide us.

Typography guidelines normally limit line lengths to fifty to seventy characters per line, often in narrow columns. The reasons are fairly well understood: your eyes have a fairly narrow range of acute focus (about three inches wide, and having long lines means that you have to have larger amounts of eye motion. You also have a tendency to lose track of where the next line begins when you shift back to the left when lines are long relative to the size of the type you are using.

It is true that most programming languages result in text which is considerably less dense than most prose. It is considered good form to make use of indenting to illustrate the basic blocks of your program, and to break programs into a series of modules which can be fairly easily assimilated by themselves. This by necessity creates a large proportion of white space which one might reasonably deduce softens the effects of long lines, but I know of no research which actually suggests that is true. Anyone?

In the end, I’m guided by a principle that I first heard from Tom Duff: good programs can be read like prose, starting at the top, going to the bottom. Anything which causes you to leap your attention up and down or interrupts your ability to read the code should be viewed as stylistically and structurally questionable. I think that long lines certainly qualify. Often they are used to justify long and confusing combinations of boolean conditions, or to simple cram more operations in a single line. Neither practice enhances legibility, and therefore the reasons for having long lines is on pretty tenuous grounds.

There’s my two cents.

[tags]Rants and Raves,Programming[/tags]

Brainwagon Radio

Brainwagon RadioFor those relative newcomers to my blog, it might shock them to find that I actually used to record a rather geeky podcast. After recording 98 episodes, many using my Dell Axim x50v in my car, I decided that I was working too hard at it, and decided to fold my tents. As part of my reconstruction of my website this week, I realized that all the links to these audio files are currently broken. That’s probably not a great tragedy to anyone but myself, but I think I’ll spend some time this week fixing that, and going back through them all, retagging them and making them available for download once again.

Stay tuned for an update! Okay, now I’ve got them all uniformly named, with sequential tags, and fixed a few of the broken titles that I had. I haven’t yet gotten all the broken links rewired, but you can check out the master list on this permanent page.

[tags]Podcast[/tags]

50 Dollar Paint Job

I’ve seen some bad paint jobs on cars recently. One guy had some kind of Franken-car that looked like half Gremlin, half Honda, lowered, with huge rims and a body that looked like it was made poorly from paper mache. But as I have often suspected, it’s often just the craftsman that makes the difference. Witness the nifty paint job on this Corvair:

50 Dollar Paint

The trick? It’s done with Rustoleum and rollers. Lots of coats. Lots of wet sanding and buffing. Very neat. If I had some beater to paint, I might even think about doing it this way. Maybe some future robotics project will benefit from this knowledge…

Transformers on the Wii: It Blows

I felt like I needed a new game. I was at Best Buy. I saw the new Transformers game on the shelf. I thought it might be fun. I plunked down my hard earned money without consulting a review.

I made a mistake.

It blows. It’s not the graphics, the sound, or the repetitive gameplay. It’s the stupid camera.

It’s one of those games where you’d imagine that having a camera follow along behind you would just work, and be simple and reasonable. After all, Mario 64 had this kind of a camera interface, and it worked rather well. Transformers has a camera which seems pathologically committed to viewing your robot from precisely the wrong angle. It seems almost designed to make it impossible to see where you are going and what is attacking you at all times.

I’d give it a 2/10. Don’t waste your time or money. Not even worth a rental.

[tags]Wii,Transformers[/tags]

Weekly Geekshow Podcast

I’ve been listening to some new podcasts today. A particularly nice podcast dealing with geeky topics such as video games, and showing particularly insightful comments on movies starring rat chefs is the Weekly Geek Podcast:

Podcast for 07-02-07 | A Peasant Dish – Video Game Podcast and Blog | The Weekly Geek

They have almost enticed me into getting an Xbox 360. Thanks Chris, Collette, and The Geek. I’ll be checking out your podcast more regularly.

[tags]Podcast,Ratatouille[/tags]

Happy Independence Day!

In between cookouts, fireworks, going to see movies about giant robots or rat chefs, I hope that some of you will take a moment and consider the meaning of the day off and contemplate these documents which lately have faded into history as only of historical importance:

The Declaration of Independence
The United States Constitution

If you are feeling less skeptical than I, consider Dick Cheney’s recent claim that he’s part of the legislative branch, rather than part of the executive. Further consider that he’s trying to execute executive privilege, which, well, doesn’t exist for legislators.

Or just have a hot-dog and a soda, and go see a movie. We all need a day off. Here’s a little flash video of some fireworks I did a couple of years ago.

Ongoing Construction…

Well, I shook up the blog a little bit, and as is typical, a few things broke. Most notably, my feedburner feed was screwed for a few hours, I’m hoping that it is back and functional again. Expect a few more rough bits as we head toward nirvana.

One of the reasons that I’m doing this is so that I can use the new widgetized plugins that WordPress 2.2 has begun to support. I’m going to be back porting some of my own modifications to my old themes into a widgetized format (notably, my plugin that gives baseball player birthdays) and have used them to create a few new items, such as an “on this date” entry that shows postings from the same date in previous years (thanks Steve!).

Yes, I know the layout is a bit ugly right now. I’ll be tweaking it as time goes forward.