Skip to content
This repository has been archived by the owner on Jun 22, 2020. It is now read-only.
/ Nikon-vs.-Canon Public archive

A project in which I attempt to discover whether Nikon or Canon is better.

License

Notifications You must be signed in to change notification settings

parkr/Nikon-vs.-Canon

Repository files navigation

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!

About

A project in which I attempt to discover whether Nikon or Canon is better.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published