Intro to Java Reflection

This entry is part 6 of 13 in the series Intro to Java

Reflection is a very interesting part of Java. It is sometimes considered an advanced topic, but I think it is worth exploring here. There are several practical applications for using reflection, and we will look at a few here.

Sun Trails

Index: http://java.sun.com/docs/books/tutorial/index.html
Link into the Reflections Trail: http://java.sun.com/docs/books/tutorial/reflect/index.html

What is reflection?

Reflection is a little like cheating. It allows you to get access to classes and its methods and variables without accessing them the normal way. We don’t use the new operator to create an instance, and by using reflection we can get access even to private variables and methods. For this reason, we should be careful about using reflection. It is a powerful way of writing programs, but be sure not to overuse it.
Continue reading

New Born and Family Shoot

One the weekend, I got to take pictures of my first newborn. Other than my kids that is. I also got to take pictures of the rest of the family, and use my new LightDome XS. For the whole family shot I used a shoot through umbrella. Things worked out pretty well considering it was the first time with the LightDome, but I think I could have moved my light closer. It wasn’t really a good time to experiment, as I was trying to “get the shot”. Anyway, here are some of the pictures. I took over 200, and felt that 80 were pretty good. Here are just a few.

DSC_7522

DSC_7496

DSC_7479 BW

DSC_7462

DSC_7412 BW

DSC_7353

DSC_7337

mike_kelly_family

Thanks Mike, Kelly, Adilyn and Emma for letting me take your pictures. I had a lot of fun.

If you are in the Minneapolis / St. Paul / Twin Cities area and would like pictures taken of your family, please contact me at photography@cyberward.net.

Think Tank Airport Security

I have been thinking about camera bags… How to get all of your stuff from point A to point B? I don’t travel that much by air, but I do need to get my gear around in cars, and when air travel comes up, you need something to put your stuff into.

My biggest issue right now is the 70-200mm f/2.8. I can just barely get it into my Lowepro FastPack. The only way it will fit is attached to the camera, and then the body is pushing against the door. Not the best. It is a backpack, which I like, but if I am taking everything, it is darn heavy.

I have been starting to hear a lot about Think Tank products. They look very well made, non-descript, and well thought out. A while back Matt Brandon reviwed the Think Tank Airport Security International, and then just recently Scott Kelby reviewed the Think Tank Airport Security V2, it’s slightly bigger cousin. These are very cool looking bags. If you could pick them up for cheap, I would run out now, but quality doesn’t come cheap, and we are looking over $300 for either of these. Yikes. It will take a bit more thought and saving before I bite.

Ok, on the sort of related category: I need to find a bag to hold my lighting gear. I am starting to collect lights, stands, umbrellas and other crap, and need¬† a way to store and transport it. On the weekend, I emptied out my family’s 6 person tent bag and used that. Any better ideas? And, uh, $300 isn’t a round number that will fit this need.

How to use Thickbox

I have had a lot of hits on my How to use Lytebox post, and I thought I might continue it as a series and do something on another of the light box clones. It also looks like lytebox has been discontinued by the author. I have started to use Thickbox. Why you ask? It uses jQuery, and I am starting to really like that library. One of the things that drew me to lytebox was that it had no dependencies. But now, more sites require javascript anyway, and my library of choice is jQuery. So, if I am using jQuery, why not the Thickbox plugin?

If you are not sure about this library, check out this matrix that lists just about every light box type javascript library around.

Continue reading

Dramatic Portrait Contest

We have a winner. I have selected a picture by T.J.Asher as the winner of the dramatic portrait contest.

2008-12-14-IMG_0157.jpg

T.J. will get the ticket to go see David Ziser. Congratulations T.J.

I thought I would pick a couple of runners up, so that they could hit their desk, and say “Shoot, I almost won!”

Here are a couple pictures from Rich Yates, and Jorge Rimblas

Sam4

Sarah

Thanks everyone for entering. Who knows, maybe I will do this again sometime.

Lighting Friday

I have a whole bunch of lighting related stuff to mention today:

starving student kit sx1I got my starving student kit (SX2) from Midwest Photo Exchange. This is a pretty neat kit. If you check out the link you will see all the stuff that is included. The highlights are the stand (fairly compact), a shoot through umbrella, a swivel that connects the stand, the umbrella, the flash, and allows the flash/umbrella to tilt. The umbrella is really compact when folded.

I decided to get the kit to get all the pieces to try it out. They are supportive of the strobist community, and the kit gets a discount. There is some other stuff in the kit that will be fun to play with too. Gells, tape, straws and cinefoil to use to make DIY light shaping tools.

Mpex also has a new all manual flash, the LumoPro LP120  for only $129 that I might look at later.

Photoflex Lightdome

Well, I decided that the umbrella wasn’t enough, I needed to spring for a softbox. We had been using them in the studio lighting class exclusively, and this small LightDome that works on my SB800 was on sale. I head of this gem from Matt Brandon. He¬†posted about¬†using one here and then PhotoFlex was highlighting him.

What makes this kind of funny is that tomorrow I am going to go take pictures of a newborn with this very contraption. Just so happens that friends down the street just had their second baby, and I just happened to get a light box. Coincidence?

This is not the same item, but I will try the same ideas as this strobist post too soon.

Vector

I am also finally going to get to use my new light toy. Well, those other things are really my newest light toys, but at one time this was, and I haven’t used it yet. I need to make sure it is changed up. Heading out with some friends to hit a barn with 2 million¬†watts of light. Actually, 8 million watts of light if we all hit the barn with the lights. Might even be too much light! Anyway, that should be fun.

So, lots of new toys, and I am going to try to use them all this weekend. Everyone always says you shouldn’t buy new shoes the day before the big race, and I probably shouldn’t head to take portraits with¬†new equipment¬†I have never tried before, but hey, what the heck. Pictures to follow.

Within the Frame Why-To Book Preview.

Within The Frame by David duCheminWithin the Frame, David duChemin’s upcoming book¬†is going to print. This looks to be a great book There is a preview of the book out including the chapter on Storytelling. (See the above link to Davids site for the link to the preview) The pictures look great, and the story he wants to tell seems right on with what I was hoping for. His why-to book has some similarities to “The Photographers Eye” by Michael Freeman in his approach to composition, but David’s writing style is less technical and more personal. (That is a book David recommends) I am looking forward to the whole book, which should be out in a month.

Organization in Aperture 2

aperture

There is a post on the Pixelatedimage about organization in Lightroom, and I thought hey! I could do one about using Aperture. Truth be told, they have some similar concepts.

  1. Referenced, or library? I don’t keep all my images in the library. I like to keep them in a file structure on my hard drive. I do this for¬†three¬† reasons. First is for backup. I like to be able to backup my images with simple tools. I run an rsync script to my backup server. (more about backups later)¬†This also allows me to access the raw files directly from Adobe Bridge if I so choose instead of creating an “edit” copy for Photoshop from within Aperture. I like to be able to use Camera Raw on the raw files sometimes. Third, my library file isn’t HUGE. It still get’s plenty big. All the meta data, versions, and edits go into the library. Also, the files aren’t on my machine. I use an external drive to store the masters. More in the backup section.
  2. File Structure. I have created a structure on my hard drive that works for me. Actually, I have redone this a few times. I even started with the files in a library before changing my mind. Aperture will let you move files around with amazing aplumb. So, I have a “Aperture Masters” folder that I then have folders for different years in it, eg 2007, 2008, 2009. Then within this I choose to break it up into family, photography, work. I did it this way partly to make it easier for my family to get to and find the family pictures if they need to, on my computer, or on the backup server. The split of photography and work may not make sense to you. I don’t get much “work”, but I wanted to make it easy to distinguish me out shooting water falls from a client’s photo shoot. I could use tags or colors. I choose folders. To each their own. I may change my mind. Note: you have to actually make these folders in aperture, it wont mirror the file system.
  3. The import process. I usually have enough cards that I wait until I get them to my computer to upload the pictures. Before I upload the pictures, I create a new project. I usually name it something like “Apr 7 – night shots”. It would probably be better to use numbers on the projects so that May sorts before Dec, but I have been doing it this way anyway. I like the having the date and a very shot description to the project. This¬†will also be the name of the folder under the year¬†folder. Next is to make¬†sure that Aperture puts the pictures where you think they are going. On the right of the import screen there is a¬†place to choose library vs referenced, and if you pick referenced, you pick the file location. This highlights¬†a drawback to my system. I have to switch the path every time I switch an import session between family and photography. Yes I have forgotten¬†once or twice. A big pain. You can also select an import preset. I have one created that sticks in my city, my name and copyright as tags with every picture. I wish I had more to say on this. I obviously don’t quite get it, because I spelled my name wrong on the preset and can’t change it! If anyone knows how to manage these, please blog about it and point me to it. Thanks.
  4. Ratings. I rate before keywording.¬†I do a fairly quick pass through with the browser window open at the bottom, and the view window above. I use the number keys to rate the pictures. Aperture supports marking as rejects (9) or 1-5. I don’t really use 1 and 2. First time through I mark stuff as rejects (out of focus, etc), nothing, or 3’s. The 3’s are ones I am pretty sure are some sort of keepers. Now I can filter the browser to only show “*** and above”, or images rated 3 or higher.¬†I then switch to full screen mode. Now I only have one big image in the view window with nothing hiding the image. I then go through all the images and pick ones to promote to 4’s and 5’s. David only has 5’s, why do I have 3, 4, and 5? Partly because he shoots more 5’s than me. I will still keep 3’s that are family pictures, or include some 4’s in flickr. 5’s are ones that I might want in my portfolio at some point.
  5. Keywording. I only keyword my 3 and up rated images. I try to give them location tags too. Not exif data, but I have a hierarchy of location tags that include city names, and then parks or landmarks under them where the picture was taken, or what it was of. For family shots, I have tags for each member of the extended family. I often fail to tag with them, but it is great later on when I get asked if I have any pictures of Alex to go on the yearly family calender my wife is making.
  6. Tweaking. This is the adjustments part of the exercise. I am shooting raw, so the¬†things that I tend to do are white balance, exposure, levels adjustments, increase blacks, and sometimes some vibrance.¬†Saturation tends to go straight for the over the top bin. A little vibrance boost can be nice. I probably do a little more than I should here. I am getting better at nailing my exposure, but I often just use the D90 auto white balance, and it often needs tweaking. Sometimes I will create a new version to try something different. Maybe make a B/W image, or a different crop. These are not copies, just versions of the original that Aperture applies it’s raw recipie to, so they take very little space. Sometimes I am not happy with what I can do in Aperture and I send the file to Photoshop with the open in external editor command.
  7. Folders and Smart Folders. These are special¬†folders (both) that don’t really exist. They are just for orginization in Aperture. I will make special folders to agregate projects, or for just part of a project. It really doesn’t matter how many you make, copies of your images are not created. Just links. I have done with with vacations, or to group different trips to the same landmark. I love smart folders. I have one of 4+ of my kids for example. In Aperture you can create a smart folder just as if you were searching your entire collection, then save it. So I say that I want all images for the year 2008 that are 4+ with keywords Lily or Kate. Sweet. I also do this for flowers and my favorite images. One cool thing is that these smart albums are available to the OS and the iLife apps as if they were just a folder. When I sync my iPhone, I select the smart folders I created like Kate and Lily 2008, and Portraits, and Portfolio, and then they get synced. Sweet. No messing around picking what to take. Every sync they get updated with the latest images.
  8. Uploading. Next comes uploading to various places. If I have family pictures I use the Gallery plugin to send my images to my family website at annieandchris.net. If I have other interesting images, I will send them to my flickr account. First I change the browser filter to 3+, or 4+, then select the images, right click and pick my export plugin. The flickr pictures I first send to BorderFX. This allows me to add a border (funny about that) and put my name in the lower right corner. I export these to a temp folder. I then use FlickrUploader. Why don’t I use the plugin to send directly to flickr? I like to add my name to the images, and recently I have been adding borders to most of the pictures too. It does add an extra step though. I then delete the exported images from the temp folder. If I am planning on printing some images, I use the export versions command. I don’t have a good home printer, so I usually use whcc, or sometimes family pics at shutterfly and pick them up at Target.¬†¬†I export the images as jpegs at full size to a temp folder again, then use the ROES software with whcc. After they are sent, I delete the temp images.
  9. Clean up. This is more a step that I say that I am going to do, more than I do. I do delete all the temp pictures that I create when exporting, but do I really need to keep a bunch of not really good enough pictures. What should I do with the 1’s and 2’s that I didn’t rate. Why am I keeping them? Good question. Chicken I guess. Every once in a while I reject more than usual. But I often end of keeping them. If you don’t want to back up your rejects, you should actually delete them too.
  10. Backup. I don’t have a drobo. Scott Kelby just bought a new one (well, two) maybe I can dumpster dive for the old ones. What I have instead is a home built NAS. Well, actually I have a partial NAS. I am still rebuilding it. You can follow along (and build your own here, hope to have more soon). So the first thing I do, is from my mac, at the command line, I kick it old school (did I just write that?) and do a rsync command. This copies all changes (new files) from my iMac to my NAS. I just realized, I blogged about my backup strategy here last May. I am actually storing all my images on an external drive. I also use rsync to create a mirror to another identical removable drive that I periodically bring home, sync, then store off site. Then there is the library. It contains all the meta data and edits. I use the Aperture vault system and store the vaults on both my backup drives.

Well, thats my system. Or at least my plan. I will be one of the first to admit that I can get in a hurry and not keyword. I have shooting days from earlier this year that I haven’t even rated. My NAS is actually non functional right now (soon I tell ya, soon!!!), and I have had the “off site” drive sitting beside me for a couple of weeks. Sigh. Maybe it is more of a wish…

Digital Photography Outdoors Book Review

digitalphotographyoutdoorsThe full title of this book is Digital Photography Outdoors: A field guide for travel and adventure photographers, Second Edition. Whew, that’s a long title. You can find it at The Mountaineers Books, and Amazon. I didn’t get it from either place, I found it at the Minneapolis public library. You should be able to request to reserve this book to a local library if you live in Minneapolis. (Ok, this has nothing to do with the review, but I hate the library’s site/search system. To be fair, they are trying to merge a few systems and county libraries, but Argg!)

James Martin has one of the better more recent titles at the library. I found this to be a good book, and worth the trip to the library.

James has a pretty good writing style that didn’t bog me down. He uses his own pictures which are quite good. They are used effectively as examples to back up his text. I don’t think I would call it a field guide. I think you could drop the second part of the title. It is about using digital though. He mentions differences from film to digital threw out the book, but you wouldn’t need to know film photography to understand what he is saying. The second edition of the book was published in 2007 and is relatively up to date. File sizes have exploded since the book was published, but it doesn’t sound dated yet, and he mentions thinks like using a Lensbaby and using Lightroom.

I liked the first section the best probably. It is about composition, light, and color. He does a good job of explaining with text and images how to place yourself (or subjects) to get better angles and light. He discusses different times of day and the effect on light, and how to effectively add fill flash.

I figured Chapter 2 on equipment would be a take it or leave it chapter where he would just say use this and this. Not so. James presents how you can effectively use different equipment to take different pictures. Sure, there are some recomendations, but for example, he presents the differences between wide and telephoto lenses and tells you to go out and experiment.

Chapter 3 is more of a “how digital is different” chapter. It talks about how sensors react to light, exposure compensation, white balance, ¬†and even how to clean them.

Chapters 4/5/6 I was not expecting. Guess I didn’t read the table of contents. There were mostly about handling and processing your digital files. There are large book’s on subsections of this topic, but his ideas and tips were specific¬†mostly to landscape photographs. The instructions were pretty good, but a bit brief. With no experience in photoshop, you might get lost. There was some good stuff in here though. I thought the auto align layers came in with CS4, but I found how to do it in CS3 which he used, so that was good to know!

Overall, I give it a thumbs up to take out from the library. To purchase, I give it a maybe. It is not very advanced but if you want a beginning/intermediate book that covers everything in one smallish book, then this is probably worth the dineros. I liked it.