5D Mark II

Those who follow my Twitter and Flickr photostream probably already know that I got a new camera – the Canon EOS 5D Mark II (Amazon link, B&H link). Before last Friday I had been shooting with a 20D, my first dSLR. I’ve had the 20D pretty much since it was released, and I was really happy with it. I never felt the need to upgrade to a newer 1.6 crop factor bodies, I really wanted to go full frame so I had been waiting for the 5D2 probably for more than 2 years. When Amazon got it in stock I JUMPED on it.

My 2 main lenses work a lot better at full frame, the 70-200/2.8L becomes a lot more useful without the crop factor, now I actually shoot in my studio with it pretty often. The 24-70/2.8L becomes a wide angle lens at the short end. The color rendition of the sensor is amazing, Adobe camera profiles in Adobe Camera Raw or Lightroom 2 further bring out the colors in the images. I’ve also started to work in the ProPhoto RGB space for even larger gamut.

Noise performance in high ISO is impressive, with ISO expansion turned on it goes from ISO 50 to ISO 25600. I shot in a pitch dark lounge in ISO 12800 and the results look fine after a little bit of NR and B&W conversion in post-processing. I would say, loosely, the ISO 12800 is the ISO 3200 on my 20D.

Pretty much everything works better on the 5D2, going from the 20D is quite an upgrade for me. One thing I would really like to have is a better AF points pattern, but I guess Canon only put that on the 1D and 1Ds series bodies. The 9-point AF pattern on the 5D doesn’t really make much sense to me, especially if you’re shooting portraits and working with relatively shallow depth of field. I always avoid the “focus-and-recompose” technique, as that easily put things out of focus, it’s simple geometry. The camera has enough resolution to crop, but I generally avoid cropping whenever I can. The AF-on button is very useful, I set it up to do AF-stop, so I can use the shutter half-pressed to focus, and then I can press and hold the AF-On button to prevent the camera from focusing again. The 20D didn’t have such feature so I had to move the switch on the lens to MF.

The video capability of the camera is interesting, I am slowly learning how to use Final Cut Pro to edit and process videos. Shooting videos also require manual focus tracking, which is not something I used to do.

I’ve had the camera for 5 days and I’ve done a couple of casual shoots with it already, I’m at over 1200 frames. I’m doing 3 days of catalog shoots next week with it. I also picked up an extra AlienBees B400 and an octobox from Craigslist. I’ll probably have a lot more to write about the camera a week later. Here are some selected shots I’ve done with it so far…

Quick test shot after I unpacked the camera, lit by available light from ceiling only, ISO 1600, with 24-70/2.8L:
test shot (by Andrew Ng Images)

That night Sherry modeled for me in my studio to test it out, I shot this with a single AlienBees B800 with a softbox on her right, with a silver reflector from her top left for fill and hair, 70-200/2.8L:
test shot II (by Andrew Ng Images)

Drinks at Wish last Saturday night, ISO 12800, NR’ed and duotone conversion in post-processing, image looks pretty clean, the place was almost pitch dark:
Maggie x Ashley x Angela x Sherry @ Wish (by Andrew Ng Images)

Did a shoot with Kourtney for her website last Sunday, this was lit by a 580 EX II on the side triggered by PocketWizards:
Kourtney (by Andrew Ng Images)

Sherry got me an RS-4 R-Strap, and it got here yesterday, so this afternoon I went for a photowalk to test out the strap, I attached it to the D-Ring of my Manfrotto QR plate, which was screwed into the tripod ring of my 70-200/2.8L, after 4 hours of walking my shoulder felt just fine, but then I am pretty used to carrying heavy photography setup. Some images from the photowalk:
photowalk (by Andrew Ng Images)

photowalk (by Andrew Ng Images)

balanced (by Andrew Ng Images)

photowalk (by Andrew Ng Images)

I also shot some video footage and attempted to put it together in Final Cut Pro:

Just added Facebook Connect to this blog

Just added Facebook Connect to this blog 2022 ayn blog
Uploaded with plasq‘s Skitch!

Sociable released a WordPress plugin to link up WordPress blogs to Facebook with Facbeook Connect. I just installed it, took about 5 minutes, and it works great. It allows you to link your FB account to this blog, so you can post comments with your FB identity. Your comments are automatically approved if you posted with fbconnect. You also get to use the familiar fb:multi-friend-selector to invite friends to this blog.

RESTful in-place edit in Rails and jRails/jQuery

I’ve been using jRails in my recent Rails projects, the original Rails in-place editing plugin uses script.aculo.us, there is a jRails version of it, but neither of them is RESTful – they both create extra actions to update the in-place edit fields.

I found janv’s rest_in_place plugin and it uses the default update action to update the field, so no routes modifications are necessary. I had some problems with the plugin at first but after a pull-request correspondence the plugin now works well. Here are the highlights on how to use it, keep in mind that I use HAML.

The plugin’s init.rb doesn’t load anything for you, so you have to go into your application layout and include the js file:

    = javascript_include_tag 'jquery.rest_in_place.js'

If you have CSRF protection on, this plugin also requires you to set a javascript var. If you have jRails it automatically append the token in ajax requests, but then you would have to modify the plugin a bit to get it to work.

:javascript
  rails_authenticity_token = '#{form_authenticity_token}'

In your controller’s show action, handle the javascript response:

  def show
    respond_to do |format|
      format.html # show.html.erb
      format.js   { render :json => @model }
    end
  end

then you can render the helper in the views:

- div_for @model do
  %p
    = label_tag "Name"
    %br
    %span.rest_in_place{ :attribute =>'name' }
      =h @model.name
  %p
    = label_tag "Location"
    %br
    %span.rest_in_place{ :attribute => 'location' }
      =h @model.location

37signals also saw the benefits of AWS

37signals moved TaDaList to run on pretty much the same things I’m using: EC2, EBS, Elastic IPs, Apache, Passenger. They also started from the same Ubuntu Intrepid images. 🙂

Joshua posted more info on their setup in the comments section of the blog post:

Joshua Sierles 28 Nov 08

Matt,

Our custom image is based on the Ubuntu Intrepid images from Alestic. We install useful EC2 gems and base packages, bundle, then provision each instance by role. Working with EC2 is so easy, we don?t see much value in using a third-party provider for our scale.

Yaroslav,

EBS and Elastic IPs were the primary motivation for moving to EC2 . We use EBS extensively: for MySQL data, logs and local repository mirrors. Performance so far is excellent. Snapshotting volumes is a breeze and makes setting up MySQL slaves and staging environments really easy.

[From Ta-da List on Rails 2.2, Passenger And EC2 – (37signals)]

San Francisco from Treasure Island

Treasure Island is a nice spot to shoot the SF skyline, I went there yesterday with the SF Photography Meetup group. That was my first event with them, got there half an hour late and just setup and started shooting, didn’t talk to other members. I think one of the organizers walked by to see if anyone needed help, but I guess I didn’t look like I needed any.

I also shot a few shot of Sherry with 580EX2 tripped with Pocket Wizards, but none of them turned out well enough to post-process. Anyway, some shots:

Bay Bridge from Treasure Island (by a y n)

San Francisco from Treasure Island (by a y n)

San Francisco from Treasure Island (by a y n)

San Francisco from Treasure Island (by a y n)

I tried the included HDR workflow in CS4, but the resulting images didn’t look that great, maybe I just don’t know how to use it. I did auto bracketing on most of the shots so I was hoping I could generate some dope HDR shots. Most of these shots were merged manually with layers and masks with more than 1 shots, but I could’ve easily done the same with a single raw file.

Canon 5D Mark II noise performance at different ISOs

Found this photoset by ttstam from the Flickr 5D Mark II – group. The noise control at high ISOs on the 5D Mark II looks impressive from these images. You really have to go to Flickr and look at the full resolution versions to see the noise performance. He also included reference shots with the 5D and 40D. (not the exact same shots though and they’ve been post-processed and HDR’ed)

Here is the shot at ISO 3200:

5D Mk II test shots - Jose Rizal Bridge @ ISO3200 (by ttstam)

ISO 6400, slightly noisy:

5D Mk II test shots - Jose Rizal Bridge @ ISO6400 (by ttstam)

ISO 12800:

5D Mk II test shots - Jose Rizal Bridge @ ISO H1 (ISO12800) (by ttstam)

ISO 25600, it starts to get noisy even in the downsampled version:

5D Mk II test shots - Jose Rizal Bridge (by ttstam)

from ServerBeach to Amazon AWS/EC2

I’ve had a dedicated server at ServerBeach for about 5 years, overall they were pretty solid, one time the hard drive died but they were able to mount the dead drive in read-only mode so I could recover all my data. After they were acquired by Peer 1, there were some connectivity issues, but after a few tickets it was pretty solid again.

My ServerBeach server was so old that it was one of the EOL (end-of-life) servers, which means they no longer stocked spare parts for them, which is kindda not good. Ray and I have been hosting our Ruby on Rails projects on EC2 for quite a while, OnMyList is also hosted on EC2 with software load-balancing, multiple app and database instances. I had always planned to consolidate things and move my ServerBeach setup to AWS/EC2, but I never got around to it. About a month ago ServerBeach sent me an email saying that they had to reassign the IP addresses on the server, that is a bit of a pain coz I would have to change the DNS on all the domains, so that pretty much gave me enough incentive to move.

Ray and I started with the Intrepid Ubuntu AMI by Eric Hammond. To get a static IP, I allocated an Elastic IP Address, you get one Elastic IP for free per instance, and you can assign it to any instance. We also use Elastic Block Store (EBS) for persistence storage, the entire /home, the MySQL database, and most of the important configuration files in /etc are symlinked to the EBS volume. With EBS you can easily create snapshots for backups by using the ec-create-snapshot command included in the EC2 tools.

To get an Elastic IP, just do:

% ec2-allocate-address
ADDRESS 75.101.xxx.xxx

To associate that address to an instance:

% ec2-associate-address -i i-xxxxxxx 75.101.xxx.xxx
ADDRESS 75.101.xxx.xxx i-xxxxxxx

To create an EBS volume (make sure the zone is the same as that of the instance):

% ec2-create-volume --size 50 -z us-east-1c
VOLUME vol-xxxxxx 50 us-east-1c creating 2008-10-31T18:01:29+0000

To attach the volume to an instance:

% ec2-attach-volume vol-xxxxxxx -i i-xxxxxxx -d /dev/sdh
ATTACHMENT vol-xxxxxxx i-xxxxxxx /dev/sdh attaching
2008-10-31T18:01:46+0000

Now, ssh into the instance and run mkfs, I’m using ext3 but you can do whatever you want:

% yes | mkfs -t ext3 /dev/sdh
mke2fs 1.41.3 (12-Oct-2008)
/dev/sdh is entire device, not just one partition!
Proceed anyway? (y,n) Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
3276800 inodes, 13107200 blocks
655360 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
400 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736,
1605632, 2654208, 4096000, 7962624, 11239424
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 29 mounts or
180 days, whichever comes first. Use tune2fs -c
or -i to override.

After this you can add a line to /etc/fstab to mount the EBS volume to a mountpoint.

Everything on the server was pretty much installed from APT, we went with BIND9 for DNS. Rails apps are hosted with Passenger as usual. God is used for monitoring. We host the primary DNS for all our domains on the instance, and secondary DNS’ are hosted at EditDNS. I chose EditDNS because they support SRV records, and we need that for Jabber. All our domains use Google Apps, there is no reason to run my own mail server when Google provides superb reliability, spam filtering, secure IMAP and SMTP services, the gmail web interface is also way better than any open source webmail package I’ve seen. Pretty much all the hosted domains share the same zone file, which makes DNS management super easy. If you got BIND9 setup but the server ain’t answering remote queries, check to see that the port (53) is enabled, with EC2 you have to manually open up ports, most ec2 setup instructions open up port 22 for SSH and 80 for HTTP, if you need anything else you need to authorize them yourself:

ec2-authorize default -P udp -p 53

For Rails apps we setup a deployer user to make things really simple, the Capistrano recipe is pretty straight forward. We use remote_cache with Git to make deploys very very fast.

To migrate user data over from my old server, I first created the users on the new system manually, I didn’t feel comfortable copying over the /etc/passwd, shadow files, and what not, also I had to get rid of quite a few old accounts. After the users and home directories have been created, I used rsync via SSH to copy everything over, I ran rsync with quite a few exclusions, like I wanted to exclude all the Maildir’s and the spamassassin bayesian database files coz I didn’t need them anymore, and a lot of them were pretty huge. If you run rsync in archive mode (rsync -a) the permissions and ownerships are sync’ed automatically to the users and groups with the same names. I also had to migrate Apache1 virtual host configs to Apache2 ones, but that was pretty straight forward. SSL setup was also pretty trivial in Apache2, I moved the hostname over and was able to reuse my InstantSSL certificate.

To migrate MySQL databases, we just did mysqldump’s and loaded them on the new server. I realize this probably wouldn’t work if you’re migrating a high traffic site, but fortunately we could tolerate a few hours of downtime.

After everything was running smoothly, some of our domains had longer TTL values and people were still going to the old IP. So I setup Pound on the old server to forward all HTTP and HTTPS traffic over to the new IP, worked like a charm. I went with Pound because that was the only one available in APT on the old Debian sarge server. Next time I do a migration like this, I will make sure to lower the TTL of the domains a couple of days pre-migration, but even then I am assuming DNS’ obey the specified TTL’s, and most probably don’t. I use OpenDNS and it was pretty easy to expire their cache manually.

It’s been a few weeks and the instance has been rock solid, amazingly it is much higher performance than the ServerBeach dedicated server, but since the server was over 5 years old, that is not saying much. Cost-wise, the EC2 instance is about $20 cheaper than a dedicated host (I was paying about $90 a month for the server + 2 additional IPs). Ray and I have been using EC2 heavily for over a year, so to scale horizontally with more instances is pretty trivial, and it’s far quicker than getting another dedicated server setup with a hosting provider.