A project in which I attempt to discover whether Nikon or Canon is better.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.htaccess
LICENSE.txt
README.md
SETUP.sql
bacon_ipsum.php
clean_csvs.rb
convert.rb
count.php
db.default.php
delete.php
get.rb
helpers.rb
index.php
resolve_urls.rb
winner.php

README.md

Nikon vs. Canon

The project to end the battle.

WTF, mate?

When looking to upgrade my current Canon Rebel XSi to something newer, I found out that the Canon Rebel T3i body would be the same as purchasing the Nikon D5100 kit. So I embarked on a quest to figure out which camera I preferred based solely on the pictures they took. So I became familiar with the Flickr API, and Flickraw (THE GREATEST THING EVER), and began my journey! Here's the end product, though it isn't finished. I have a short TO-DO list below.

Installation

cd /Library/WebServer/Documents # on a mac, this is your htdocs folder
git clone git://github.com/parkr/Nikon-vs.-Canon.git "nikon-vs-canon"
cd nikon-vs-canon
mysql db_name < SETUP.sql # you may need to specify a username and/or password
cp db.default.php db.php # create the db file. modify.
open http://localhost/nikon-vs-canon/

You'll probably want to make sure you have a MySQL backend installed & that your localhost handles all of this stuff.

Usage

GO CRAZY!! My normal workflow is:

ruby get.rb
ruby convert.rb > new.sql # dump output into sql file
mysql db_name < new.sql # you may need to specify a username and/or password
rm new.sql
ruby clean_csvs.rb
open http://localhost/nikon-vs-canon/

Todo

  1. Allow Ruby to interact with MySQL server directly.
  2. Combine fetch, convert and insert into database into one command.
  3. Add metadata to photos (grab from Flickr) and display photos of a similar tag when comparing

License

Gah, do whatever you like with it! Distributed under the MIT License:

Copyright (C) 2011 by Parker J. Moore

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Bonsoir!