Feed on
Posts
Comments

Textmate is a superb text/code editor for the Mac that makes extensive use of keyboard shortcuts to make your life easier.

One of the most important shortcuts in Textmate is Control-Escape, which opens a “Gear” menu with important context-sensitive functions. However, if you turn on the Screen Sharing or Remote Management features of your Mac, you will find that the Control-Escape key combination no longer works. The remote-access applications hijack this shortcut.

To continue using the default Control-Escape shortcut with Textmate, you have no choice but to turn off all of the remote-access applications.

If this is not an option, you will need to configure Texmate to recognise a new shortcut for the gear menu. Here are the steps to substitute Command-Escape for the Control-Escape shortcut:

  1. Prevent the Command-Escape shortcut from starting Front Row, by opening the Keyboard and Mouse preferences and disabling the first shortcut option: “Hide and show Front Row”
  2. Remap the Gear activation key by setting an application property for Textmate with the following command (all on one line):

defaults write com.macromates.textmate OakBundleItemsPopUpMenuKeyEquivalent "@\033"

Relaunch Textmate, and you should now be able to use the Command-Escape shortcut to access the gear menu.

You can find more information about Textmate shortcut keys and the Control-Escape issue at the following links:

Amazon has announced the availability of two new Elastic Compute Cloud (EC2) instance types with increased CPU processing power, bringing the total number of instance types to five.

The new instances are termed “High-CPU” versions, and they have a focus on raw processing power as measured in EC2 Compute Units (ECUs). The following table puts the new c1.medium and c1.xlarge instances in perspective:

Name ECUs Memory Storage Platform Hourly Price
m1.small 1 1.7 GB 160 GB 32-bit 10¢
c1.medium 5 1.7 GB 350 GB 32-bit 20¢
m1.large 4 7.5 GB 850 GB 64-bit 40¢
c1.xlarge 20 7 GB 1690 GB 64-bit 80¢
m1.xlarge 8 15 GB 1690 GB 64-bit 80¢

For a more detailed overview of the instance types available in EC2, see the Instance Types section in the service’s API documentation.

I have added an article about my PAWS Marketplace example application to the AWS resources site: PAWS Marketplace - A Rails Marketplace Application in the Cloud.

The PAWS Marketplace is a proof-of-concept Ruby on Rails web application that runs entirely on Amazon Web Services. The application’s web site allows anyone with an Amazon Payments account to buy or sell digital products, while the marketplace’s owner earns commissions for the sales it performs. In addition to serving as an example marketplace implementation, this application is interesting because it uses the SimpleDB service to store its data instead of a traditional relational database.

The article describes how to install and run the marketplace web site yourself. It also includes links to the example code, and to a screencast video that demonstrates how to configure and use the marketplace web site.

If you need to compile or run Java programs from the command line, it can be a real hassle to identify all the jar libraries the program requires and include them in your classpath.

Here is a short script that will do this work for you on Unix, Linux or Mac systems. It finds all the jar files in the current directory or its subdirectories, and merges the list into a classpath string delimited by colon (:) characters.

export CP=`find . -name '*.jar' | tr "\n" :`

You can then run your program like so:

java -classpath $CP MyProgram

Amazon has announced beta support for the Copy Object operation in S3. This feature was pre-announced in March.

The copy functionality allows you to copy objects within or between your S3 buckets, and optionally to replace the metadata associated with the object in the process. The single new operation makes it possible to copy, move, and rename your S3 objects, and you can even update an object’s metadata by copying the object in-place.
Continue Reading »

I have added an article about the S3 service’s POST upload feature to the AWS resources site: Browser Uploads to S3 using HTML POST Forms.

The article describes how to create HTML POST forms that allow your web site visitors to upload files into your S3 account using a standard web browser.

« Newer Posts - Older Posts »