Morality clauses in domain registration

GoDaddy has received a lot of bad press for their support of the Stop Online Privacy Act (SOPA), which they helped write and from whom they are exempt. However, GoDaddy and many other registrars should be avoided for more simple reasons.

From the GoDaddy Legal Agreement:

Go Daddy may also cancel the registration of a domain name, after thirty (30) days, if that name is being used, as determined by Go Daddy in its sole discretion, in association with spam or morally objectionable activities. Morally objectionable activities will include, but not be limited to:

  • Activities designed to defame, embarrass, harm, abuse, threaten, slander or harass third parties;
  • Activities prohibited by the laws of the United States and/or foreign territories in which you conduct business;
  • Activities designed to encourage unlawful behavior by others, such as hate crimes, terrorism and child pornography;
  • Activities that are tortious, vulgar, obscene, invasive of the privacy of a third party, racially, ethnically, or otherwise objectionable;
  • Activities designed to impersonate the identity of a third party; and
  • Activities designed to harm or use unethically minors in any way.

In response, many are switching to Namecheap. This registrar tends to play contrarian with GoDaddy so fortunately they are against SOPA. However, from the Namecheap Registration Agreement: (Namecheap has removed their morality clause, see below.)

Namecheap may also cancel the registration of a domain name, after thirty (30) days, if that name is being used, as determined by Namecheap in its sole discretion, in association with spam or morally objectionable activities (as well as any activities set forth in Section 4 above). Morally objectionable activities will include, but not be limited to

  • activities designed to defame, embarrass, harm, abuse, threaten, slander or harass third parties;
  • activities prohibited by the laws of the United States and/or foreign territories in which you conduct business;
  • activities designed to encourage unlawful behavior by others, such as hate crimes, terrorism and child pornography;
  • activities that are tortious, vulgar, obscene, invasive of the privacy of a third party, racially, ethnically, or otherwise objectionable; activities designed to impersonate the identity of a third party;
  • and activities designed to harm or use unethically minors in any way. /del>

Both have nearly identical language. These clauses leave a bitter taste in my mouth.

Should I really be held to the backwards laws of “foreign territories in which you conduct business”? Software sales are global, I interact with many customers in very dangerous nations.

Who determines what is “objectionable”? Certainly the test should be legality not questionability. The internet is the backbone of the economy and vital for freedom of expression. Depending upon corporations like this, especially those in violent support of SOPA, leaves wide a huge vulnerability in communication.

Let’s not get started on obscene.

What can you do about it? Support a better registrar. I use Gandi whose motto is “no bullshit”. No morality clause, and easy-to-read legal agreements.

Addendum (2011-12-25): As pointed out in this Hacker News thread, Gandi has a similar clause. Hover (Tucows) doesn’t feature any of these crazy terms. A statement from the GM of Hover discusses why these clauses exist and why they don’t have them:

Generally, most of the power a registrar requires to prevent the bad guys from doing bad things comes from national laws and not all these extra clauses. We (Hover/Tucows) find that all these extra conditions just make it harder for our customers to do business with us and so we’ve left out as much as we can and rely mostly on national laws to get what we need done.

Addendum (2011-12-29): Namecheap has removed their morality clause. I am happy to have effected change on this issue, and it is a move in the right direction. :)


“One Piece” consistently proves itself to be hilarious and full of amazing content and plot lines.

“One Piece” consistently proves itself to be hilarious and full of amazing content and plot lines.


Migrating from Kindle to iBooks

I started off reading eBooks from the Amazon Kindle store. As time has progressed, I’ve found myself using my physical Kindle less and less. Partly because I forget to charge it, and partly because I can never get the lighting in my favorite reading locations quite right. And at night? Forget about it.

So I’ve converted all of my Kindle purchases to ePubs for use in iBooks. I could use the Kindle app for iOS but I’ve found iBooks to be faster at syncing read position, and it feels a lot more natural to use.

Since I went through the effort of converting all of my Kindle documents, I figured I’d write a mini guide to getting it done. I’m specifically focusing on the Mac since that’s all I know; other users will have to venture elsewhere.

Setting up Calibre

Calibre is a Java application which is an eBook management suite. It’s a bit ugly but it does what it says and works sufficiently enough1. Since the Kindle’s eBooks are encrypted2, we need to install a decryption plugin to do the heavy lifting there.

  1. Download and install Calibre.
  2. Download and decompress the DeDRM archive.
  3. Open Calibre’s preferences (⌘,).
  4. Go to “Plugins”.
  5. Click “Load plugin from file”.
  6. Choose the K4MobileDeDRM plugin’s zip file (zip within the main zip; don’t extract).

Getting eBooks

The DeDRM scripts work by understanding Kindle for Mac’s settings files, so to get the eBooks we need use the application. There are scripts to do conversions directly from Kindle hardware’s eBooks, but it’s more effort.

  1. Download Kindle for Mac.
  2. Register it with your account.
  3. Download all of your eBooks (open them from the “Archived Items”).

Converting eBooks

Kindle eBooks are in the MobiPocket format. However, iBooks requires ePub, so we need to both decrypt and convert the files. At this point, we’ve got all we need, so we can use Calibre to do the conversion.

  1. Navigate to ~/Library/Application Support/Kindle/My Kindle Content/
  2. Drag all of the .azw files into the Calibre window.
  3. Select the books in the Calibre window which you wish to export.
  4. Click the “Convert books” toolbar item.
  5. Choose “ePub” as the output format in the top-right of the convert window.
  6. Go to the “Page Setup” item in the left list, and configure the conversion as so:
    1. Select “Kindle” as the input profile.
    2. Select “iPad” as the output profile.
  7. Hit the “OK” button to begin the conversion. It may take a while.

If you have any issues at the decryption step, you should delete your ~/Library/Application Support/Kindle folder and start again.

Enjoy

You can now “Save to disk” from the toolbar item to save the books which you’ve converted, and import them into iTunes for use in iBooks. Calibre is powerful enough to do many other formats if you want to use other devices as well.

Remember, don’t post any of the unencrypted documents anywhere. Just because the DRM is gone doesn’t mean you’re legally authorized to do so. They’re for your personal use only.


  1. At the time of writing this, Calibre crashes if you’re using Growl 1.3. Enable the preference “Disable notifications in system tray” in the Look and Feel section. I love preferences that act as an inverse. 

  2. The encryption used on Kindle books is fairly basic. The decryption key is a product of the serial number for your device, so it’s not difficult to determine. 


I’ve purchased each iPhone since the first one I owned, the iPhone 3G. The experience of pre-ordering online is so significantly better than camping outside the store from the wee-hours of the morning that I can’t even describe. Perhaps a bit less fun, though.

For the first time I’m also leaving AT&T. Although their service is acceptable, their coverage, customer service and increasingly ridiculous pricing plans1 are too much for me to handle. To Verizon I go, where I hope the LTE experience in a subsequent iPhone makes playing the long game here more acceptable.



Not to mention AT&T’s subsidy arrangements are confusing at best. A friend’s availability date with AT&T is 3 months ahead of mine, and her contract begins the day after mine. ↩

I’ve purchased each iPhone since the first one I owned, the iPhone 3G. The experience of pre-ordering online is so significantly better than camping outside the store from the wee-hours of the morning that I can’t even describe. Perhaps a bit less fun, though.

For the first time I’m also leaving AT&T. Although their service is acceptable, their coverage, customer service and increasingly ridiculous pricing plans1 are too much for me to handle. To Verizon I go, where I hope the LTE experience in a subsequent iPhone makes playing the long game here more acceptable.


  1. Not to mention AT&T’s subsidy arrangements are confusing at best. A friend’s availability date with AT&T is 3 months ahead of mine, and her contract begins the day after mine. 


Subler, mp4 remuxer/editor

Subler is an incredibly useful Mac app to manage media files which contain h.264 video and various audio formats. In one sense, Subler is a remuxer: it lets you take the underlying content and put it into whichever format you need, without converting the content like Handbrake would.

What’s really nifty is that it’s also an editor. Subler hooks into thetvdb.com and themoviedb.org to add the relevant metadata (name, episode number, season, summary, etc.) into the file in a format which iTunes can understand. You can add the ‘HD’ tags which iTunes uses, control artwork, and manually edit all of the metadata contained in a file.

It’s GPLv2 (free!), and uses Perian to do some of the heavy lifting. It also has a useful CLI version which can allow you to automate some of its featureset.


I’ve worn a lot of watches in a variety of bands. Metal, plastic, nylon, and leather bands have never felt comfortable.

On a whim a few years ago I tried a Timex Expedition which features a velcro “fast wrap” band. The difference is amazing; my arm is able to rest on surfaces without something digging into it, and it’s significantly easier to take on or off than buckled or metal bands.  The only major downside to the velcro is the breakdown of the soft, micro-loop sides which happens after a decent period of time.

The watches are never more than about $30. They’re varyingly small, comfortable and come in a lot of varieties, including analog versions. Putting on any other watch just feels out of place now.

I’ve worn a lot of watches in a variety of bands. Metal, plastic, nylon, and leather bands have never felt comfortable.

On a whim a few years ago I tried a Timex Expedition which features a velcro “fast wrap” band. The difference is amazing; my arm is able to rest on surfaces without something digging into it, and it’s significantly easier to take on or off than buckled or metal bands. The only major downside to the velcro is the breakdown of the soft, micro-loop sides which happens after a decent period of time.

The watches are never more than about $30. They’re varyingly small, comfortable and come in a lot of varieties, including analog versions. Putting on any other watch just feels out of place now.


Incrementing with a bitmask

Bitmasks are fun. There’s lots of little tricks you can do with them. A common situation is checking for the presence of a flag among elements in a linked list, or some similar data structure. I came across a trick a few years ago that makes it drop-dead simple.

Let’s say we needed to check for AUsefulFlag in the flags element of each node, and total how many elements in the linked list had the flag.

uint64_t count = 0;
for(Node *iter = head; iter != NULL; iter = iter->next)
{
    count += !!(iter->flags & AUsefulFlag);
}

After execution, count is the number of items which have AUsefulFlag set.

Double-not (!!) is one of those useful operations which are especially useful with bitmasks. It may require a double-take at first, but it behaves exactly how you’d think.

!! of 1 is 1. !! of 0 is 0. In fact, !! of any true value evaluates to 1, so we can use it to transform something like 0b00001000 to simply 1 and increment by that value.


Words have an exact meaning

James: What are you after?
Francisco: Money.
James: Don't you have enough?
Francisco: In his lifetime, every one of my ancestors raised the production of d'Anconia Copper by about ten per cent. I intend to raise it by one hundred.
James: What for?
Francisco: When I die, I hope to go to heaven—whatever the hell that is—and I want to be able to afford the price of admission.
James: Virtue is the price of admission.
Francisco: That's what I mean, James. So I want to be prepared to claim the greatest virtue of all–that I was a man who made money.
James: Any grafter can make money.
Francisco: James, you ought to discover some day that words have an exact meaning.