Archive for the ‘photos’ Category

HillaryPAC is selling art based on my Creative Commons licensed photos

Tuesday, July 29th, 2014

A SuperPAC is selling t-shirts/paintings based on my 2007/2008 photos of Hillary Clinton that I released under a Creative Commons license. Check them out:

HillaryPAC Iris Scott Fingerpainting Shirts and Museum Quality Prints

HillaryPAC Kimberly Webber Shirts and Museum Quality Prints

They are based upon:

Senator Clinton @ Hampton, NH

and

Hillary Clinton in Nashua, NH

My shipping address is available upon request if someone wants to gift me a print or two…

#photowalk of Nashua

Saturday, June 7th, 2014

Yesterday I was dropped off in Nashua with my camera and took photos of whatever was interesting while walking back to Merrimack. Exercise, Art and fun.

Nashua #photowalk (6-Jun-2014)

Features: The newly dedicated Holocaust Memorial, JFK bust in from of town hall, Bagel Alley, Nashua’s new Riverwalk path by the old Millyard, historic houses, and d’art:

DSC07195

DSC07196 (Modified)

DSC07225 (Modified)

DSC07242 (Modified)

DSC07250

DSC07257 (Modified)

2014-06-06 10.10.47

DSC07330

DSC07405

DSC07377

Panoramas from Maine

Saturday, August 24th, 2013

Created using hugin, a very cool open source tools to create panoramic photos.

The stock version included in Ubuntu 12.04 is a little old. You can get a more recent version here

Install script to CollectiveAccess on a debian Wheezy server

Friday, August 9th, 2013

I’ve been looking at using CollectiveAccess, a very nice GPL’ed cataloguing tool and web-based application for museums, archives and digital collections, to use for a local historical society and surname genealogy group. If you know me IRL, I can set you up with a test account on a CA instance.

The installation is pretty straight forward, but I took the time to automate the installation progress to install it on a stock Debian Wheezy 7.1 image running in hpcloud.com (standard.xsmall)

Download it to the server, and then as root: sh ca-install.sh

ca-install.sh


#!/bin/bash
########################################################################
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
#
########################################################################
#
# This script will install Collectiveaccess Providence & Pawtucket
# v1.3 on a stock Debian Wheezy server.
#
# Scan down for CHANGEME and replace it with whatever you want the
# Collectiveaccess (ca) account's mysql password to be.
#
# I tested this using the "209316 – Debian Wheezy 7.1 Server 64-bit
# 20130701 (b)" base image on http://hpcloud.com
#
# -marc nozell
# marc@nozell.com
# 2013-08-08
#
apt-get update
echo "get more packages"
apt-get install apache2 mysql-server php5 php5-imagick libtiff5 libgd-tools php5-ffmpeg libav-tools ghostscript dcraw poppler-utils abiword mediainfo php-getid3 php5-mysql

echo "update php.ini"
perl -pi -e "s/post_max_size = 8M/post_max_size = 32M/" /etc/php5/apache2/php.ini
perl -pi -e "s/upload_max_filesize = 2M/upload_max_filesize = 2M/" /etc/php5/apache2/php.ini
perl -pi -e "s/memory_limit = 128M/memory_limit = 256M/" /etc/php5/apache2/php.ini
perl -pi -e "s/display_errors = Off/display_errors = On/" /etc/php5/apache2/php.ini

echo "restart apache"
service apache2 restart

echo "configure mysql -- enter the mysql root password:"
mysql -p < < EOF
create database ca;
create user 'ca'@'localhost' identified by 'CHANGEME';
grant all on ca.* to 'ca'@'localhost';
EOF

echo "get providence 1.3 kit"
cd /usr/src/
wget -c http://collectiveaccess.org/downloads/collectiveaccess-providence-1.3.tgz

echo "unpack providence"
cd /var/www/
tar zxvf /usr/src/collectiveaccess-providence-1.3.tgz
mv collectiveaccess-providence-1.3 providence

cd providence

echo "edit providence setup.php"
cp setup.php-dist setup.php

perl -pi -e "s/my_database_user/ca/" setup.php
perl -pi -e "s/my_database_password/CHANGEME/" setup.php
perl -pi -e "s/name_of_my_database/ca/" setup.php
perl -pi -e "s/my_database_user/ca/" setup.php

echo "set some providence directory protections"
cd ..
chmod a+w providence/app/tmp
chmod a+w providence
chmod a+w providence/app/lib/core/Parsers/htmlpurifier/standalone/HTMLPurifier/DefinitionCache

echo "get the pawtucket kit"
cd /usr/src/
wget -c http://collectiveaccess.org/downloads/collectiveaccess-pawtucket-1.3.tgz

echo "unpack pawtucket"
cd /var/www/providence
tar zxvf /usr/src/collectiveaccess-pawtucket-1.3.tgz
mv collectiveaccess-pawtucket-1.3 pawtucket

cd pawtucket

echo "edit pawtucket setup.php"
cp setup.php-dist setup.php

perl -pi -e "s/my_database_user/ca/" setup.php
perl -pi -e "s/my_database_password/CHANGEME/" setup.php
perl -pi -e "s/name_of_my_database/ca/" setup.php
perl -pi -e "s/my_database_user/ca/" setup.php

cd /var/www/providence/pawtucket

echo "create media softlink"
ln -s ../media ./

echo "fix pawtucket directory protections"
chmod a+w /var/www/providence/pawtucket/app/tmp /var/www/providence/pawtucket/app/lib/core/Parsers/htmlpurifier/standalone/HTMLPurifier/DefinitionCache
chmod 777 /var/www/providence/pawtucket/app/lib/core/Parsers/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer

echo "Now go open http://THIS-SERVER/providence/install and complete the setup"

7 hours of engineering pit from New Hampshire GSR FIRST Robotics competition compressed to 83 seconds

Saturday, March 2nd, 2013

As soon as they opened the door at 8am this morning, I put the camera, tripod + arduino hack at the very top of the seating in the Verizon Wireless Center pointing down at the pit where the robots are prepped for competition.


*BEST* GSR (NH) FIRST Robotics time lapse in the pit (10fps)


GSR (NH) FIRST Robotics time lapse in the pit (5fps)


GSR (NH) FIRST Robotics time lapse in the pit (20fps)

After nearly seven hours (the length my camera’s battery lasted taking photos every 30 seconds) there were 835 photos which were converted to an AVI using:

mencoder -nosound -ovc lavc -lavcopts vcodec=mjpeg -o timelapse-10fps.avi -mf type=jpeg:fps=10 mf://*.JPG

and then converted to a much smaller M4V file using ghb aka the very handy Handbrake tool.

Sony Alpha-100 DSLR shutter control using an arduino and reed switches

Saturday, February 9th, 2013

This is a follow up to my “time lapse photography using an arduino to drive a Sony Alpha-100 DSLR” post — basically I fixed it to ‘do it right’ instead of it being a horrible hack.

Here is the improved circuit diagram:

BetterCamera_bb

This uses two Reed Switches from Radio Shack for about $3 each — sure I could have used other types of switches or a transitor, but they use magnetism which is cooler ;-)

  1. Buy a cheap (~$7.00) shutter release cord to sacrifice to the project.
  2. Carefully cut and strip the wires from release cord. Shorting the green and blue wires causes the camera to focus. Shorting the green, blue and red wires after focusing causes the camera to shoot.
  3. Remember that my soldering days are long ago (hey, it was only an EE minor) and have one of the kids at our FIRST Robotics do it for me. Here is the result. Note that blue->white.

    Shutter release cord mapping

  4. Then connected the wires from the shutter release cord to pins as follows: (see the above Fritzing image)
    Green -> First Reed Switch
    Red -> Second Reed Switch
    Blue/White -> shared line with the other side of the switches (not this isn’t tied to ground or anything else)

  5. Now the improved code: I call it BetterCamera.ino


    /*
    * A better camera control for a Sony A-100 DSLR
    * marc@nozell.com
    */

    // Pin 13 has an LED connected on most Arduino boards.
    // give it a name:
    int led = 13;
    int relayA = 2;
    int relayB = 3;

    // the setup routine runs once when you press reset:
    void setup() {

    Serial.begin(9600);

    if (Serial.available() )
    Serial.println("-- Starting ---");

    // initialize the digital pin as an output.
    pinMode(led, OUTPUT);
    pinMode(relayA, OUTPUT);
    pinMode(relayB, OUTPUT);

    }

    // the loop routine runs over and over again forever:
    void loop() {

    Serial.println("-- Focusing ---");

    // first focus -- short white & green

    digitalWrite(relayA, HIGH);
    delay(2000); // 2 sec
    digitalWrite(relayA, LOW);
    delay(1000); // 1 sec

    Serial.println("-- Take Photo ---");

    // then take a photo -- short white, green & red

    digitalWrite(relayA, HIGH);
    digitalWrite(relayB, HIGH);
    delay(1000); // 1 sec
    digitalWrite(relayA, LOW);
    digitalWrite(relayB, LOW);

    Serial.println("-- Sleep for 30s ---");
    delay(23000); // 2 + 1 + 1 + 3 + 23

    for (int i = 0; i < 3; i++) { // 3seconds
    digitalWrite(led, HIGH);
    delay(500);
    digitalWrite(led, LOW);
    delay(500);
    Serial.print(".");
    }
    Serial.println("!");
    }

  6. If you connect the release to the camera while the camera is on, even if here is no power to the arduino, it will take a couple photos. That is the kink. Just connect it up with the camera off and it will be fine.
  7. Consider setting the photo size to ‘standard’ — it saves a lot on disk space.
  8. Now find something interesting to point your camera at and come back later. In my case it was our backyard the day after the Nemo Blizzard of 2013 (we got all the snow overnight, so it isn’t riveting content).
  9. Download all the photos to a directory and use this linux command to convert the JPG images to an AVI file.

    mencoder -nosound -ovc lavc -lavcopts vcodec=mjpeg -o timelapse-30fps.avi -mf type=jpeg:fps=30 mf://*.JPG
  10. Before uploading to youtube, I ran it through Handbrake to knock down the size from 260M to less than 70MB.

time lapse photography using an arduino to drive a Sony Alpha-100 DSLR

Friday, December 28th, 2012

Finally I got around to working out most of the kinks of having the an arduino control the shutter release of a Sony Alpha-100 DSLR camera.

  1. Buy a cheap (~$7.00) shutter release cord to sacrifice to the project.
  2. Carefully cut and strip the wires from release cord. Shorting the green and blue wires causes the camera to focus. Shorting the green, blue and red wires after focusing causes the camera to shoot.
  3. Remember that my soldering days are long ago (hey, was only an EE minor) and have one of the kids at our FIRST Robotics do it for me. Here is the result. Note that blue->white. The blue wires I have all seem to be a bit flakey.

    Shutter release cord mapping

  4. Find someone who has done something similar: http://ujwal.shrestha.me/arduino-intervalometer-for-sony-dslr/ and leverage their code. I’m not sure that is the right solution, but it worked for me. Something with MOSFETs I think, but that was years ago…

  5. Then connected the wires from the shutter release cord to pins as follows:
    Green -> Ground
    Red -> Digital pin 8
    Blue/White -> Digital pin 9

    Ardiuno pin mapping

  6. Now the code. I named it aifs30.ino:

    /*

    Heavily based on:

    http://ujwal.shrestha.me/arduino-intervalometer-for-sony-dslr/

    For complete writeup, see http://nozell.com/blog/

    The shutter release has 3 wires: green, red, blue which I had soldered
    to green, red and white (my blue wires are flakey)

    green - ground
    red - digital 8
    blue/white - digital 9

    green + blue/white => focus
    green + blue/white + red => take photo

    */

    void setup(void)
    {
    Serial.begin(115200);
    }

    void loop() {

    if (Serial.available() )
    Serial.println("VVVVVVVVVV");

    pinMode(8,OUTPUT);
    delay(100);
    pinMode(9,OUTPUT);

    if (Serial.available() )
    Serial.println("Sleep for 1/2 seconds");

    delay(500);

    if (Serial.available() )
    Serial.println("wake up and take photo ");

    pinMode(8,INPUT);

    delay(100);

    pinMode(9,INPUT);

    if (Serial.available() )
    Serial.println("ZZZZZZZZ Sleep for 30s");

    delay(10000);
    delay(10000);
    delay(10000);

    if (Serial.available() )
    Serial.println("^^^^^^^^^^");
    }

  7. If you connect the release to the camera while the camera is on, even if here is no power to the arduino, it will take a couple photos. That is the kink. Just connect it up with the camera off and it will be fine.
  8. Consider setting the photo size to ‘standard’ — it saves a lot on disk space.
  9. Now find something interesting to point your camera at and come back later. In my case it was our backyard chickens.
  10. Download all the photos to a directory and use this linux command to convert the JPG images to an AVI file.

    mencoder -nosound -ovc lavc -lavcopts vcodec=mjpeg -o timelapse-10fps.avi -mf type=jpeg:fps=10 mf://*.JPG
  11. upload to youtube and enjoy the results

Anti-Obama sign does not have the intended effect

Thursday, November 8th, 2012

Whie the sign has been up on Baboosic Lake Rd, Merrimack, NH for a few weeks, it was only on election day I stopped and took a photo. Oddly that was the first time I noticed the typo. Who misspells “YOU” as “YOE”?

IF YOE HATE YOUR GRAND KIDS VOTE OBAMA


Today my wife noticed someone had updated the sign.


I VOTED FOR OBAMA BECAUSE OF THIS SIGN

President Obama (w/ President Clinton) Rally in Concord, NH (2012)

Thursday, November 8th, 2012
Clinton, Lynch, ObamaSeamus the Romney Dog?It was a bit nippy (pre-time change)DSC06504.JPG4 city block line!Veterans for Obama
Crowd photo releaseGene Robinson Patricia J. Lee OFA_NHObama for America NH  Patricia J. Lee NH Senator Jeanne ShaheenNH Governor John Lynch w/ Dr. Susan Lynch
NH Governor John Lynch w/ Dr. Susan LynchNH Governor John Lynch w/ Dr. Susan LynchDSC06572.JPGSecret Service with his violin caseSecret Service with their guitar casesDSC06592.JPG
President ClintonPresident ClintonPresident ClintonPresident ClintonPresident ClintonPresident Clinton

President Obama (w/ President Clinton) Rally in Concord, NH (2012), a set on Flickr.

This was a *huge* rally 2 days before the election. Over 14k people, the largest ever in NH. While Kids #4, #5, #6 & I got there around 6:15am, there was already a long line and we didn’t get a great viewing spot. Before they opened the gates, the line serpentined up and down Main Street four times.

Senators Ayotte, Talent, Thune; Gov Jindal; Congresswoman Blackburn

Thursday, November 8th, 2012
DSC06495.JPGDSC06494.JPGDSC06493.JPGDSC06477.JPGDSC06467.JPGDSC06457.JPG
DSC06422.JPGDSC06414.JPGDSC06403.JPGDSC06394.JPGDSC06388.JPGDSC06385.JPG
DSC06384.JPGDSC06383.JPGDSC06381.JPGDSC06359.JPGDSC06358.JPGDSC06357.JPG
DSC06491.JPGDSC06474.JPGDSC06451.JPGDSC06432.JPGDSC06399.JPGDSC06396.JPG

Senators Ayotte, Talent, Thune; Gov Jindal; Congresswoman Blackburn, a set on Flickr.

It would be a crime *not* to take a look at all the national political figures making their way through NH every four years. Regardless of your political persuasion.

TIL Senator John Thune is really tall.