Drupal satisfaction

It’s been almost two weeks since I switched MacMegasite to Drupal and I’m very pleased with the results. I also used Drupal to create a community site for my condo last week.

Posting news items is a lot easier with Drupal than it was with PHP-Nuke. When people submitted news items to the Nuke site, they almost always entered the entire article in ‘story text’, which meant I had to copy and paste most of it to ‘extended text’ so the whole thing wouldn’t appear on the front page. Since Drupal automatically splits posts at an appropriate place, it’s no longer necessary to split them manually and people who submit news don’t have to know any special formatting. Unlike Nuke, Drupal automatically recognizes URLs in the text and converts them to clickable links.

Drupal’s user management is also a lot better than PHP-Nuke. I hated the way Nuke had separate user & administrator logins and you couldn’t really have different levels of user access. With Drupal, I can set up several different user levels from full administrative access to editors & authors who can manage certain content. For the condo site, I created a ‘staff’ role which allows posting articles but doesn’t let them do anything potentially dangerous, since the staff members are not techies, while regular authenticated users can only post to the forums or comment on articles.

I don’t even want to get into PHP-Nuke’s security holes. It’s the only piece of software that’s less secure than Windows. Drupal, on the other hand, is well written with security in mind.

CodeWarrior to XCode

I’ve spent the last week trying to get a CodeWarrior project that uses PowerPlant converted to XCode. I finally got it working today! I used XCode’s importer, but I also had to make a few changes to the PowerPlant code as well as change some of my own headers.

DirecTV at last

DirecTV sent someone else today and they were able to install it. The system works great, except they left an exposed junction box and some ugly exposed wire outside my building.

DMB Selling Albums Online, but not in iTMS

nancies.org:

DMB has been selling their albums digitally, through their website, as Windows Media files for some weeks now. For $10, any of their studio albums can be downloaded in this DRMed format, or at full CD quality for $13, one dollar less than getting the CD itself. Unlike most bands, however, their digital audio is available only through their website, and not through services like Apple’s iTunes Music Store. This unusual step is the equivalent of not selling their CDs in stores, but only through their website — somewhat more profitable, but perhaps a little commercially anti-social. The band and their management has historically preferred to do things their own way, business-wise, but it looks like they may be folding on this one. Industry newsletter Digital Music News reports that DMB intends to start selling their albums through on-line music services, but that they are, unusually, not considering iTunes Music Store. This is presumably because Apple requires the sale of each track individually, which conflicts with the band’s belief that each album is a work unto itself, and not to be broken up.

Someone should tell them that it IS possible to sell albums only in iTMS. Furthermore, I often listen to a car mix CD I burned with my favorite tracks from all of DMB’s studio albums.

Hack attempt

I see someone’s still trying to hack MacMegasite. I love checking Drupal’s error log – any attempt shows up there. I just saw someone attempt to access admin.php attempting to add a new administrator. Of course it failed since I’m no longer running PHP-Nuke. Even though his attempts are futile, I’ve blocked his IP address.

I also see someone else, most likely a spammer, is looking for formmail.cgi and a few other common CGI scripts for sending email. None of them are present.

No DirecTV

I ordered DirecTV and made an appointment to have it installed today. When the guy got here, he told me it couldn’t be installed because there are too many trees and/or there was no place to mount it. They’re sending someone Monday for a second opinion. Several other buildings here have dishes, including one of my friends who just got it installed last Friday. I was told that it needs to be installed at the highest point on the parapet wall by the condo management, which i relayed to the installation guy.

Diet Update – Phase two

Phase two of the South Beach diet is very easy, although I’ve been going very slowly and only adding one new food a day and limiting carbs to only one or two meals. When I weighed myself this morning I was down to 180. I now have to lose only 5 more pounds.

Orrin Hatch criminalizes the iPod

Orrin Hatch criminalizes the iPod: “With Orrin Hatch’s nation-destroying Inducing Infringement of Copyrights Act headed for law, EFF has decided to create a real example of just what kind of “piracy” Hatch is targetting. Here’s EFF’s hypothetical complaint against Apple (for making the iPod) C|Net (for reviewing the iPod), and Toshiba (for supplying hard drives for iPods). All three of these activities fall within the scope of activity that Hatch’s bill seeks to end:

As detailed further in Professor Expert’s report, the iPod would have been much less attractive to consumers had it been incompatible with the music files downloaded from P2P networks and had it not allowed consumer-to-consumer transfers. Professor Expert’s report also makes it clear that the iPod, in turn, enhanced the attractiveness of P2P networks by offering iPod owners expansive storage capability and lightning-fast data transfer, allowing them to listen to any number of infringing music files when away from the computer.

Surveys conducted by Professor Expert establish that a majority of iPod owners have used at least some significant portion of their iPods to store and play infringing music files, whether derived from P2P networks or promiscuous hand-to-hand copying. Upon information and belief, Apple was certainly aware of this fact from its own internal marketing research.

Link

(Thanks, Jason (and good work!))”

(Via Boing Boing Blog.)

Preserving links when converting from PHP-Nuke to Drupal

When I converted MacMegasite to Drupal it broke all of the old article links. It seems that a lot of people were still using old URLs, probably from pages cached at search engines. The first thing I did was redirect article links, which was easy since the story IDs remained the same. The rule I added converted a URL containing sid=nnn to a URL of the form ?q=node/view/nnn. I originally had it test specifically for name=News and the full article URL, but I found that a lot of queries broke it. I finally settled on the most liberal rule which looks for any query containing ‘&sid=’.

Checking my access logs I found that a lot of people were using direct links to reviews, downloads, or polls. Since the IDs have changed and reviews are now an article topic, I simply redirect any URL to the home page for that content type.

Here’s the final set of rules I’m using now:

  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{QUERY_STRING} ^.*&sid=([^&]+)
  RewriteRule modules.php index.php?q=node/view/%1 [L]

  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{QUERY_STRING} ^name=Forums
  RewriteRule modules.php index.php?q=forum [L]

  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{QUERY_STRING} ^name=Downloads
  RewriteRule modules.php index.php?q=filestore2 [L]

  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{QUERY_STRING} ^name=Reviews
  RewriteRule modules.php index.php?q=article/reviews [L]

  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{QUERY_STRING} ^name=Surveys
  RewriteRule modules.php index.php?q=poll [L]

More RAM

I just ordered 512M of RAM for my PowerBook G4. I find that with only 512M of RAM, it can get extremely slow when I’m compiling something big. Top shows only 5M of free memory when I have lots of stuff running. Unfortunately the current configuration is two 256M DIMMs, so I’ll only have 512M with the upgrade. I will probably replace the other DIMM with a 512M or larger one later.