Category Access 0.5.3 Released

June 19th, 2006

I’ve released a new version of the Category Access Wordpress 2 plugin. This plugin allows the blog maintainer to restrict access to posts belonging to particular categories on a user-by-user basis.

New changes:

  • Fixed a problem where per-user category settings still weren’t being set properly. Hopefully it’s fixed for good now.
  • Fixed a problem where pages would be hidden if the default category was hidden.

Download it on my code page.

Christopher’s Cochlear Implant Surgery

June 16th, 2006

Yesterday Christopher had his cochlear implant surgery. The short story is that it went really well.

We drove to Charlottesville on Wednesday to have our pre-op meeting with the surgeon, Dr. Hashasaki. Afterwards we stayed at Dorothy’s parents house. Christopher did pretty well with not being able to eat the day of the surgery… better than he did before when he had to go under anesthesia for the CT scan.

The morning of the operation, we dressed Christopher in his gown, and met with the nurses, anesthesiologist, and Dr. H.’s resident doctors. Overall we were impressed that there wasn’t much waiting around. By 11:00 they took him for the 11:30 surgery.

We waited until about 3:00, and Dr. Hashasaki gave us a call in the waiting lounge. He reported that the surgery went well, and that it only took 2 hours. Unfortunately, Christopher has so much baby fat that it took them a long time to get an IV into him. The good news is that they had him on gas so that he was knocked out and didn’t have to feel them poking him like a pincushion.

He also said that they tested the device in the operating room, and the Christopher’s brain was responding to the signals given to the implant. (We can’t really say that he could “hear sounds”, since they gave him electrical stimulation, and he was unconscious.)

We then went to the recovery room to sit with Christopher as he woke up. We wasn’t hardly a happy camper. He was swollen from the IV fluids they gave him, and woozy from being under the anesthesia. After about two hours we finally got our prescriptions and paperwork and were discharged.

On the way home he mostly slept, but he did wake up around Williamsburg. He was pretty groggy but I did get a little giggle from him. He pretty quickly found out that he had a headband and ear cup on. He slept most of the night, waking up around 6:30 this morning.

Today he’s still a little swollen looking in the face, but seems to feel just fine. His balance is a little shaky, but he’s still walking around a little. But as he woke up this morning he definitely didn’t want to have anything on his head. We ended up taking off the head gear, which Dr. H. said would be okay.

His incision looks clean. Apparently the stitches are inside… How they keep the outside of the skin together is a mystery to me… (glue?) The site of the surgery is a little swollen, and I think I can see where the magnet is under the skin. This is all good–I heard from some parents that their kid’s face is bruised, and their eyes swollen shut. Christopher just looks like Rocky Balboa the day after a fight.

Here are some pictures. WARNING: the last few are of the surgery site.

So the bionic baby is doing great!

Walking more

June 12th, 2006

Christopher lately has been taking a few steps on his own. This usually ends with him going into a crawl, but at least he’s trying. He can stand on his own pretty well now.

Category Access 0.5.2 Released

June 12th, 2006

I’ve released a new version of the Category Access Wordpress 2 plugin. This plugin allows the blog maintainer to restrict access to posts belonging to particular categories on a user-by-user basis.

New changes:

  • Fixed a PHP warning created by changes in the last release.

Download it on my code page.

Category Access 0.5.1 Released

June 8th, 2006

I’ve released a new version of the Category Access Wordpress 2 plugin. This plugin allows the blog maintainer to restrict access to posts belonging to particular categories on a user-by-user basis.

New changes:

  • Fixed a bug where changes to category access on a per-user basis would sometimes not be reflected in the updated page.
  • Added support for preventing comments for hidden posts from showing up in the comments RSS.

Download it on my code page.

My Mac Customizations

June 7th, 2006

Moving from the Windows world to the Mac world, I encountered a number of annoyances while trying to make my Mac comfortable. Below is a list of software and tweaks I’ve made to get things “just right”.

Good software that is free:

  • Adium: IM Client with more protocol support than iChat (works with Google Talk, AIM, MSN, etc.) Unfortunately there is no video support, unlike iChat.
  • AutoPano Pro: Simply the best way to create panoramas from individual photos.
  • CubicConvertor: Make Quicktime VR from panoramas.
  • Gallery Remote: For uploading photos to my gallery.
  • iStumbler: Find open wireless networks
  • Spark: global hotkeys for iTunes
  • Quicksilver: Keyboard-oriented application launcher
  • MenuCalendarClock: To get the date along with the time in the menu bar
  • Thunderbird: For reading news and mail.
  • Eclipse Java Development Environment (XCode isn’t cross-platform)
  • Fink Commander: For all those good 3rd party unix tools
  • Firefox: A good browser. I would use Safari, but I can’t live with my plugins: Adblock Plus, All-in-One Gestures, Always Remember Password, Clone Window, CustomizeGoogle, Download Statusbar, Google Toolbar, IE View, InfoLister, Mimetype Editor, Open Java Console, Regular Expression Find, Sort Extensions and Themes, Tab Mix Plus, TargetAlert, Web Develoepr, SwitchProxy.
  • Fugu: SCP Client for secure file transfers
  • GraphicConverter: Free upgrades to pre-installed version
  • GraphViz: Native Mac version of graph layout tool is awesome
  • VLC, RealPlayer, MPlayer: Play media
  • Chicken of the VNC: A client for the popular VNC remote desktop protocol
  • MS Remote Desktop
  • MS Internet Explorer: For websites still in the dark ages
  • Apple OS X Developer tools: For gcc 3.3 and stuff. Link the /Developer/Applications directory to /Applications/Developer for easier access.
  • Apple X11, with the quartz-wm window manager. See http://www.chemistry.ucsc.edu/~wgscott/xtal/page1.html for info on how to get rid of the dock icon.
  • FileMerge from the Apple Developer Tools: File merge that is better than WinMerge. I also created a script called “fdiff” with the following:
    #!/bin/sh
    /Developer/Applications/Utilities/FileMerge.app/Contents/MacOS/FileMerge -left $1 -right $2 -merge $2 2>/dev/null &
  • startupsound.prefpane: Silence the loud startup sound
  • TinkerTool: Advanced tweaking of options, such as not creating .DS_Store folders on Windows mounted drives
  • Pacifist: For looking inside packages on the Mac install disk. I’ve needed this once or twice to retrieve a file.
  • Growl: Notifications for Quicksilver, Adium, and other apps
  • MenuMeters: CPU, network, and disk monitors in the menu
  • Sightspeed: For video camera chats with Windows users.

Good software that is not free:

  • Quicktime Full
  • Synk: folder synchronization for backups. Free for academics
  • Compost: Manage the trash better, namely wipe oldest files first as necessary.
  • Missing Sync: For syncing my Palm with the Mac. Works better than the buggy Palm Hotsync.
  • Adobe Acrobat: Needed to edit PDF files
  • iView MediaPro 3: The best photo management software I’ve found. More powerful than iPhoto, although the image editor is less user friendly.
  • Adobe Photoshop: For when iPhoto doesn’t cut it
  • Norton Anti-Virus
  • Parallels: For running Windows inside Mac OS X.

Unsolved Problems:

I’d appreciate any help on fixing the following issues.

  • When you copy a folder and one already exists, why does it replace the entire folder? Can I get it to add the contents, overwriting or skipping existing files in the folders?
  • How do I lengthen a window without accidentally changing its width?
  • How do I remove context menu items for uninstalled programs?

Can’t be fixed:

  • Icon spacing is too wide. How can I narrow it?
  • In the terminal, why does “mv a A” prompt to overwrite? The file system is not case-sensitive, although it is “faked”. The solution is to “mv a temp; mv temp A”
  • How can I drag something into folder enclosing the current one? You can’t. Pathfinder has a dock/shelf for this, as well as other options.

Solutions to Annoyances:

  • What’s a good Visio-like drawing program?: OmniGraffle
  • How do I kill an unruly program? You can try command-option-esc. If the program isn’t listed, use the activity monitor.
  • Where is the right-Del key? (Right delete): Fn-Delete
  • How do I run apps like X11 on boot?: Sys Prefs, Users, Startup
  • http://www.cs.ecu.edu/~collins/rm/rm.html: Can I get the rm command to move the file to the trash instead? (For undelete…)
  • Where is ctrl-c? Use command-c
  • How can I get the function keys to work as function keys instead of volume etc? Use fn-f5, for example.
  • How come the desktop doesn’t refresh after downloading a file, and having Stuffit automatically unpack it? (I have to click the desktop for it to refresh.): That’s just the way it’s implemented. (Haven’t seen this problem in a while–maybe it was fixed.)
  • How can I add “Open with Vim” to the context menu of every file?: Zingg, also /User/coppit/Library/Contextual Items
  • How do I make the terminal window close automatically after running a .command? (It says [Process Completed]): Save As in terminal allows you to specify a command to run.
  • How can I open a terminal at the current finder location?: http://www.entropy.ch/software/applescript/welcome.html
  • How do I extract a single file from an archive?: http://www.charlessoft.com/
  • CPAN module doesn’t do command history and stuff: There’s a bug in XCode 1.5’s version of gcc. Need to roll back cc1plus to the version from XCode 1.2 (http://perso.wanadoo.fr/costabel/cc1plus_12). Update fink, then do an Update-All

Good resources:

  • osxfaq.com
  • http://www.entropy.ch/software/macosx/docs/customization/
  • macvim.org

Dominic James Coppit

June 1st, 2006

Congrats go out to Steven, Tammy, and Diego on the new addition to their family, Dominic James Coppit. My dad now has another grandchild, and this time one that shares his name! He was born early this morning, at around 4 am at a weight of 6 pounds 9 ounces. Pictures:

What’s wrong with single sanction punishment?

May 31st, 2006

This is a post about politics. But first I have to describe the old honor system at the University of Virginia. (I say “old” because it’s in the process of being revised.)

UVa’s honor system was originally concieved as a single sanction system, meaning that any student proven to have lied, cheated, or stolen would be expelled. Expulsion was the only recourse, and violations were investigated by the accused student’s peers.

On its surface, the policy seems to be a strong deterrent against such dishonorable behavior. But the problem is that the punishment is too strong in the sense that students are reticent to impose it for minor infractions. Indeed, convicted students have sued the University and the honor committee, and the president has overturned the decision of the committee.

Given the risk of being sued, and having the results of a trial overturned, it’s no wonder that students and faculty at UVa are both reticent to turn someone in for honor violations. When I was a graduate student there, the prevailing attitude was “Why bother? It’s not worth the hassle.” A recent survey is illuminating.

What does any of this have to do with politics? Well, consider this: What recourse does the populace have if the president violates the law? Only one: impeachment.

In cases such as that of Nixon, where it is clear that the president has abused his power, impeachment is clearly warranted. But what about cases where a small violation has occurred, but not “high crimes and misdemeanors”? Or cases where the violation is not clearly for political gain?

For example, President Bush has claimed that he does not need to follow the FISA law when acting in defense of the nation. But this law was enacted precisely to give judicial oversight to wiretaps in such national defense situations!

Also consider that the president has issued “signing statements” when singing bills into law. Some of these statements indicate that the president wants the executive branch to ignore some details of the laws. For example, Bush signed a law banning torture, but his signing statement says that he has sole authority over the matter.

Bush has never vetoed a law. This is particularly curious for a president that believes in a strong executive. These signing statements explain why: he intends to ignore the law, rather than veto it and force the congress to explictly override him. If one compares the laws to his statements, the differences are quite surprising.

In my view, the president is taking advantage of the single sanction problem just as cheating students at UVa have. By ignoring the law, the president forces the congress to carefully consider whether the president has done enough to warrant such a serious punishment. By claiming “intelligence failures”, “misunderstood authorization”, etc., the president has plausible deniability against charges of “high crimes and misdemeanors”. Without a smoking gun, congress is unlikely to impeach.

Former congresswoman Elizabeth Holtzman has written an article comparing the impeachment of Richard Nixon to current calls for impeachment of George W. Bush. She cites Bush’s record on wiretaps, torture, and the case for war in Iraq. Will it happen? Not unless there is clear evidence that Bush intentionally violated his oath of office.

What options does congress have? It can censure the president, but I don’t consider this a real sanction as it has no associated consequences beyond bad publicity. It can block the president’s legislative agenda, but they won’t do that for fear of appearing obstructionist. Cutting funding for the war in Iraq is another option, but then they’ll be painted as unpatriotic.

So impeachment remains the only effective sanction for the president, and just like the UVa honor system, allows a myriad of lesser crimes to go unpunished. Given that the Republican-controlled congress is unlikely to galvanize to punish the president’s excesses of power, I think we can expect the president’s power to grow under the cover of a “war” on terrorism that will never end.

Back from Colorado

May 19th, 2006

We’re back from Colorado. Everyone went out to see Gabrielle and Joshua graduate. We also stayed a couple extra days as a bit of a vacation. It was really nice–Dorothy rented a house in Estes Park, which is in the Rockies and 15 minutes from Rocky Mountain National Park. We saw lots of Elk and Mule Deer. (Differentiating the two was the source of much discussion.)

Joshua’s Graduation:

Joshua's Graduation

Gabrielle’s graduation:

Gabrielle's Graduation

Pictures from Golden, Colorado Springs, Estes Park, and Denver:

Colorado

At least it’s not cigarettes

May 19th, 2006

After the penny-swallowing incident, you’d think that I would be in the bad parent doghouse. I was, but it was short-lived. Check out this photo:

IMG_3074.JPG

Look carefully at Christopher in the background. It looks like he’s eating something. It turns out it was a cigarette! He is biting off the ashes–yuk. So any time Dorothy brings up the penny, I can bring up the cigarette. :)

Make your next laptop a Mac

May 17th, 2006

Recently Apple switched from PowerPC to Intel chips. This is a great move, because Intel chips run both faster and more efficiently. It also means that Macs can run Windows alongside Apple’s OS X more easily, with very little performance loss.

Mac laptops come in two flavors: the smaller MacBook and the more powerful MacBook Pro. Macs are easier to use, safer from the nastiness that plagues PCs, and just better engineered all around. If you look at the new series of Apple ads, they hit all the high points. I compared Dell’s prices to Apple’s and they are very close. Even if Apple prices were higher, I would say it’s worth it. (Would you prefer to buy a Ford or a Toyota? Pay the extra and you’ll avoid the hassles.)
However, one thing the ads don’t talk about is the fact that the new Macs can run Windows very well. (When the MacBook Pros came out, they were actually the fastest laptops to run Windows!) You can configure your Mac to boot into either Windows or OS X, but the Parallels company is going to be releasing software that allows you to run Windows inside of OS X. This means you can still run all the software that you already have. But to tell you the truth, there’s nothing I miss from the Windows world–I can get Acrobat, Microsoft Office, Firefox, and other software for the Mac.

MacBooks start at about $1200, and MacBook Pros at about $2200. If you are sick of dealing with Windows-based PCs that work fine for 3 months then start breaking down or running slow, I suggest you switch to Mac now. There’s really no reason not to. If you already have a monitor, keyboard and mouse, you can even buy a Mac Mini for $600. Apple has a nice laptop comparison chart.

First Swallowed Penny

May 4th, 2006

Check out this x-ray:

xray1.jpg

Dorothy says it’s proof that I’m not careful enough with him. In my defense, when he was chewing I did retrieve a little plastic label. Tricksie boy must have had more than one thing in his cheeks. Besides, the fact that the doctor said just to wait a day or so and it will pass vindicates my position that kids are pretty tough.

New Date

May 2nd, 2006

Okay, the new surgery date for Christopher is June 21st, three days after his birthday. It’s only a few weeks after the original date, but the delay really sucks. Lately he’s been waving to us a lot, so clearly he’s ready to communicate…

Connexin 26

April 28th, 2006

Well, we found out the cause of Christopher’s deafness today. It seems that he has the so-called “Connexin 26″ cause. Actually, he inherited two recessive mutations from us.

Click the “more” link for the full report. On the one hand this news is comforting in that we now know the cause, and it wasn’t because we anything we did. It also means that our future kids are more likely to be deaf as well, although I don’t know how much more likely. So, if you’re related to either me or Dorothy, answer “yes” to the question about a family history of deafness.

Read the rest of this entry »

Early operation: DENIED

April 28th, 2006

Anthem of Virginia has denied our request to have Christopher’s operation done 3 weeks shy of his first birthday. I suppose it’s because the FDA recommends cochlear implant surgery as 12 months of age.

Oh well… The surgeon’s assistant said they would try to work us in the day after his 1 year birthday.

Spotlight

April 22nd, 2006

The last few weeks I’m been spending all my non-teaching time implementing the next version of Spotlight. Spotlight is a plugin for Eclipse that implements the notion of software plans.

Software has been traditionally implemented in one view, compared to the multi-view representations used to represent designs in other disciplines. Source code is a lot like cubist art–every perspective in one representation. My research has tried to provide multiple views of code, thereby more naturally representing concerns of interest separate from irrelevant concerns.

The new implementation is coming along nicely, and hopefully will be ready for public consumption soon.

Category Order 1.9.3 Released

April 6th, 2006

I’ve released a new version of the Category Order Wordpress 2 plugin. This plugin allows the blog administrator to set an explicit ordering, spacing, and indentation of categories in the category list that appears in the sidebar. The administrator specifies the ordering in the new “Category Order” management page. There is also an option for placing the category post count inside the link.

New changes:

  • If categories are filtered out in wp_list_cats, empty list elements will now not be created.
  • Instructions now make it clear that the plugin directory must be “category-order”.
  • Added a message when the category list HTML cannot be parsed.
  • Fixed the error some users have reported about the management page being included twice.
  • Fixed a bug that would cause the buttons on the management page not to work.
  • Fixed a problem where images would not show up if the blog was hosted on a non-standard port like http://myblog.example.com:85/

Many thanks to David Lucash for his help on this release.
A screenshot shows the management page. Download it on my code page.

Category Access 0.5.0 Released

April 6th, 2006

I’ve released a new version of the Category Access Wordpress 2 plugin. This plugin allows the blog maintainer to restrict access to posts belonging to particular categories on a user-by-user basis.

New changes:

  • People with the category management capability (typically Editors and Administrators) now have access to all categories regardless of visibility settings.
  • New option to show a post if the user can view any of the categories, rather than all of them.
  • A post will now be hidden if its category, OR ANY PARENT CATEGORY is protected.
  • Fixed a major bug where multiple categories could not be excluded–just one.
  • If a person selects categories that they do not have access to when editing or writing a post, these categories are removed. If no categories remain, the post is put into the uncategorized category and not published.
  • Added check all and uncheck all buttons to the categories checkboxes on the options page.

Many thanks to Paul Magnowski, Pierre Lauvergnier, and David Katz for their work and input on this release.

Download it on my code page.

Cutest Movie Ever

March 20th, 2006

Here’s a super-cute video of Christopher. I took it in the hotel room during my recent trip to Delaware. Christopher is in a playpen for the night, but he’s obviously not ready to go to sleep just yet.

Dan’s Birthday

March 20th, 2006

Saturday Daniel, Carmen and Maryanne came to celebrate Dan’s birthday. We all went to Christiana Campbell’s for dinner. They think we were put in the same room that they were in two decades ago when Daniel was visiting schools.

Christopher was good a dinner as usual. We just had to limit what he could reach. It’s good that he can eat bread now. We gave him some of our “drop” rolls, and they also brought him some applesauce, which was nice.

Afterward we walked up to the capitol building, but we came back because it was starting to get cold.

Daniel's Birthday