Recent Favorites

Taking Drupal Mobile with Domain Module

I've been playing around with the idea of a mobile site for awhile now. This evening I've created the very basic beginning of JosiahRitchie.mobi. I used the Domain Access module for Drupal to create a second domain for JosiahRitchie.com that has the same content. Using the Domain Theme module that comes with Domain Access, I can then provide a handheld theme. My current one is pretty much the Zen STARTERKIT theme with a few things stripped out of the page.tpl.php. I'll look to improve it in the future.


Changing the Wording of "Submitted by" for Drupal Pages

I've found myself wanting to change the wording of "Submitted By" in a drupal blog and pages for a church site. When you only have one or two authors and the primary point of the site isn't blogging or writing, then "submitted" seems like a somewhat awkward term. Changing this is really quite simple. Here's a quick tutorial.

  1. The first thing you'll want to do is turn on the Theme Developer module. It is one of the ones in the Dev Module.
  2. Then click the little button in the lower-left to activate it.
  3. Select "Submitted by" and check out the dark grey box that appears. You'll notice that it identifies a function that is providing this. It also identifies a number of other function names it looks for to provide this.
  4. You should click on that to take you to a Drupal site that will show you the function.
  5. Copy this function into your own theme's template.php file. This is a hook so rename the first part of the function to the name of your theme. The function name will look something like themename_node_submitted(). It should be one of the candidates in the grey box you originally found the first function name in.
  6. Inside the code you pasted into template.php, you'll notice the words "Submitted by". Simply change that to your preferred wording. Mine was "Written by".
  7. Then you just need get drupal to recognize this new function by emptying your cache by going to the Admin-> Site Configuration -> Performance page.

A Church Drupal Installation Profile

I've been thinking an Installation Profile for churches would not only be helpful to me, but also many others so I spent some time yesterday playing around with the idea and made some progress. I haven't figured everything out, but I started with the phpedu_profile-6.x-1.1-beta1. (As you can see my efforts are directed at Drupal 6.) phpedu_profile was far more complicated than I expect to need so I cut out a lot, most of it even. Then I exported content types from a church site I've done and used their code to import. I also have views, but haven't yet figured out how to import them.



Linux saves Mac and Windows from themselves

I had an interesting day yesterday. Circumstances led to a rush job at a clients house. I had to pull the backup data out of a Time Capsule from Time Machine backups without the Mac it backed up from and then restore these files to a Windows XP based machine.

In order to do the recovery I acquired another Mac to connect to the Time Capsule's Mac formatted partition and pulled the recovery out over the air. Due to the clutter on the disk, and not being able to use Time Machine, it took me awhile to find what I wanted. I pulled it down onto an external HD to transfer to the Windows machine. This HD turned out to be formatted for the Mac so windows couldn't read it.

No problem! I called my wife and asked her to drop off one of my Ubuntu Linux LiveCDs, booted into Linux, mounted the Mac partitioned External hard drive and the Windows NTFS partitioned internal hard drive and got busy moving things. I simply copied the files across. Linux became the glue and solved the problem quickly for my needs.

My wife reminded me of how frequently I need that Linux CD and encouraged me to keep one around. She knows right where I keep them because I ask for them somewhat regularly, so today I went out and purchased an 8Gb USB memory key to install this LiveCD on. It is a lot easier to carry around. I followed the directions provided by USB Pen Drive Linux called USB Ubuntu 8.04.1 Persistent install from Linux. They were very well written. I was so pleased with what they put out that I even spent some time checking out the websites for the ads on the site, hopefully giving something back to them.

I think my wife intends to see that a few of these disks end up in the glove compartment, just in case.


Mollom - The Bullet Proof Vest

I can remember the good old days when blog spammers were as bad or worse than email spammers. I've mananged to quelch the noise of my email spam through the Google's Email service. It's nice to hear myself think again when I open my inbox. Now I'm deluged mostly by stuff I ask for.

Protection from blog and web form spam has been another issue entirely. Things have come along, but they all have required my attention. I haven't been deleting thousands of comment spams a week on my blog for a long time, but the methods for protection were always a nasty necessity. I wanted my noble readers to be able to participate in the discussion immediately. Having to wait for me to wake up and realize that they have commented and then letting their comment through the net slowed thing downs in a fast world.


Churches and Drupal

Churches are increasingly turning to Drupal for their websites. Sometimes built by web guys who are related to the church, sometimes built by pastors who see the need and then sometimes built by people with experience dealing with Drupal. I'd be glad to share with you how Drupal can make your church website sing. A list of other churches and religious organizations using Drupal for their websites can be found here.

Since elementary school, I've had the opinion that you can tell a lot about a person by their shoes. I would watch shoes as I stood in the lunch line. Now I say you can tell a lot about a church by their website. I rejected this for awhile, but our latest church search simply confirmed it for me despite my desire not to believe it.

You may enjoy flipping through some and learning about the churches based on the information on the site, the quality of the writing, the quality of the design and the overall care taken in developing the site. Also, watch for who the audience of the website is. This will tell you a lot about who this church serves best. Some churches are better at discipleship and strengthening Christians. Others are stronger in evangelism and reaching outside their walls. Enjoy this casual study, should you choose to accept it!


SAN/NAS/DAS and VMware

While the technology company I work at has both a EMC CLARiiON CX3 20 and a Dell NAS running Windows 2003 Storage Server, which are rock solid, lately we have been testing a three unit cluster of LeftHand NSM 2060 and some of LeftHand's VSA machines on our ESX cluster.

Most people are probably familiar with the CLARiiON and the Dell NAS but I doubt many have heard of LeftHand Networks. Their NSM 2060 is a rebranded Dell 2950 running a custom Linux distro that they call SanIQ. While it is one of those classic arguments (re: Microsoft/Apple/Linux) where people feel irrationally passionate I personally do not have strong feelings about iSCSI networks versus fibre channel. I prefer iSCSI though because of the reduced complexity and cost in setting it up. (Our CLARiiON is actually connected by iSCSI to our ESX cluster) What excites me about the LeftHand SANs is the ability to leverage iSCSI to slowly build up a SAN.

A SAN from EMC, depending on options, costs in the $100,000 range while an equivalent SAN from LeftHand will cost between $45,000-$75,000. This is accomplished because of the relative cheapness of the hardware and the lack of fibre channel support. The SAN/IQ software allows you the ability to add more units to a cluster on the fly and will automatically restripe and add the additional storage to the pool. Rather than having to completely dump your SAN when need more space this allows you to continue to add machines as you need them.

One of the biggest arguments for fibre channel against iSCSI is the speed advantage it has. This is a very valid argument but one of the neat things about building a SAN with LeftHand or Dell's EqualLogic is that every time you add another machine to the SAN cluster it increases in speed because you are adding more iSCSI ports. After working at a college where money for IT was often non-existent I am always interested in inexpensive solutions. As interesting as LeftHand's NSM appliances are they are still out of the price range for most small businesses/ministries. In a later post I will elaborate on, what I think is much more powerful for them, LeftHand's VSA machines.


ESXi

One of the exciting developments in the VM world is VMware releasing ESXi for free.

ESXi is Vmware's 32 megabyte (yes megabyte) hypervisor that allows bare metal VMs to be run on a server. VMware server, which has been available for a few years as free, is different in that it runs as a process or service on a host system.

There are some pretty important differences that should be noted between the two systems. VMware was able to reduce ESXi to its tiny 32 megabytes because it has had all the management stuff that ESX has eliminated from it. This means that you can not SSH into it like VMware server or ESX 3.5. It also means a lot of ESXi's abilities only come available when you use VirtualCenter. ESXi also has a pretty limited number of servers it can run on. The big advantage over ESXi has over VMware Server is the ability to run many more VMs because of the lack of host OS. You also are able to connect it to iSCSI luns for shared storage and the VM "drives" are SCSI not IDE. One of the reasons why I would opt for ESXi over VMware server is for the simple fact that whenever you update the host operating system you may have to reboot the machine and taking a half dozen VMs off simultaneously. VMware server is more suited though if you are using a lot of appliances or want to be able to use VMware workstation.

For now until I can afford to buy a Foundation pack I will probably be running both types of machines. ESXi for any new machines I am bringing online and VMware server for the rest.


Intro: Jason Stroup

I'm excited to announce a guest author at this blog. Jason Stroup, a friend and very smart guy, will be adding some of his thoughts about VMWare's virtualization technology and perhaps other things in the future.

Having worked with Jason for several years, I know he is always coming up with exciting ways to push the technology around him to achieve goals more effectively and efficiently. His thoughts are one of the driving forces that helped shape my own view of the need for simplicity in technology.

He has been playing with virtualization since VMWare started making waves. I think you'll enjoy his thoughts about changing the way IT infrastructure works as a result of the new found flexibility that this technology brings.

Some of the other fun projects he has experience in include:

  • Replacing Exchange with Google Apps
  • Building Cisco based wireless networks
  • Recovering Active Directory from a masted AD controller failure

I've been particularly interested in the recent opening ESXi provides. Having gone to a free model, good and proper virtualization within my budget has become a lot more doable and the trade-off of one cost for another may just be the ticket for greater stability without significant cost.

Stay tuned. :-)