Attempt at producing a HDR image

[Attempt at producing a HDR image]

I decided to experiment with creating a high dynamic range image (HDR).  It is a tecnique for combing a set of photos with different range of exposures.  The idea is that each exposure shows a different range of detail and combining them you can see them all in one picture.  For this test I setup some objects from my apartment and set my camera on a box and turned the braketing on and took three pictures.  The brakenting took three different Exposure Values which gave me what I was looking for.

Posted in HDR, Photo | Leave a comment

Javascript Framework Bookmarklet

Often times I have wondered what Javascript framework a site is using, and when I had time I would check the source of the page to try and determine this, but some sites are crafty or load time conscious and stick the framework inside a non likely named something I would recognize.  Then I found WTFramework which was a nice bookmarklet that helped out.  The one issue I had with it was that pages that had more then one framework would only show one of them.

So I made some changes to add suport for multiple frameworks.  With WTFramework it would only find a single framework, if more then one was discoverable it would still show only one, I now append them all prior to showing.  As an added bonus I added ExtJS as was requested in one of the comments on the post.

Framework Bookmarklet

drag the link to your bookmarks bar and click on it whenever you want to know what frameworks are used.

Posted in Javascript | Leave a comment

jQuery Item Suggest

For a project that I am working on I wanted to make use of a type ahead input box for searching. I found Peter Vulgaris’s jQuery Suggest which worked well. The thing is the results for the suggest that I was returning where not just suggestions but actual results. If the user was to select an item from the suggested list they could skip going to the search page and go to the end page.

If you’ve had enough reading, you can jump to the demo of Item Suggest now.

So I needed a way to pass back the vital information so that I could construct a URL and forward the user there once an item was selected.  The way that jQuery Suggest worked was that it fetched a file that that was then broken apart by a deliminator (default: “\n”) removed empty items, added a class to the matching part of the value and displayed the items as list elements.

I wanted to be able to pass a JSON array back and handle how it got displayed.  So I made some changes to the code and allowed a few more options.  Without specifying any options the plugin behaves the same way that it used to.

usage: suggest(source, options)

source

The location of the file that will generate the response

options
  • delay ( Number ): the length of time to weight before firing off the suggest request (default: 100)
  • resultsClass ( String ): the class to add to the ul holding the suggested items (default:  ‘ac_results’)
  • selectClass ( String ): the class to add to the element of the item that is currently selected (default:  ‘ac_over’)
  • matchClass ( String ): class to add to the segment of the suggestion that matches (default:  ‘ac_match’)
  • minchars ( Number ): How many charecters need to be entered before suggestions start getting made (default: 2)
  • delimiter ( String ):  When a ajax request is returned and createItems is flase the returned text is broken apart by this delimiter (default:  ‘\n’)
  • createItems ( Function(txt) ): This function is called with the resonse from the server passed in as txt, and expects a return of an array with the items in it if this is not specified the delimter is used to break the string into items.
  • formatItem ( Function(item,q) ): For each item in the list this function is called passing in the item and q the query that was preformed. A useful function this.addMatchClass(txt,q) can be used to add a span with the class from match class.  by default the item is wrapped in an li element and passed though addMatchClass.
  • selectItemText ( Function(item) ): This function is called when an Item is selected and expects the return value to be wha to display in input box.  By default the text value of the selected element is used.
  • onSelect ( Function(item) ): This function is called when an item is selected
  • maxCacheSize ( Number ): This controls how much data is stored in the cache (default: 65536)

Making use of the default class values you can start with this style sheet which is used in the demo and is the same used for jquery.suggest.  Here is the source for item-suggest.

Check out the demo.

Posted in Javascript, jQuery | Tagged , | 1 Comment

Bergdorf Goodman Holiday Polar Bears

[Bergdorf Goodman Holiday Polar Bears]

This was one of the best Bergdorf Goodman holiday windows.  Two polar bears boxing, one even had a signed Muhammad Ali set of gloves…

Posted in Manhattan, Photo | Leave a comment

Brussels Sprouts With Pancetta

[Brussels Sprouts With Pancetta]

The Brussels Sprouts were blanched, stuck in the oven, then in the frying pan with the Pancetta.

Posted in Food | Leave a comment

Recapping 2008: Most Popular Movie Genre

Most Popular Movie Genre by Gross in Top 10

The Most Popular Movie Genre as Determined by Weekend Gross for 2008

Data pulled from The Numbers

Also see the 2009 recap post

Posted in Data | 2 Comments

Baguette Dough

[Baguette Dough]

For Christmas my sister got me a book on how to make bread, so today I am attempting baguettes. After working the dough by throwing it on the counter many times and folding it over itself it is time for it to rise.

photo credit: Mary

Posted in Food | Leave a comment

Meat and Potatoes

[Meat and Potatoes]

A little December grilling for gentleman’s night of euchre

Posted in Brooklyn | Leave a comment

Carroll Gardens Street

[Carroll Gardens Street]

I got a new lens today a Nikkor 50mm f/1.8D, I wandered around the neighborhood playing with it.

Posted in Brooklyn | Tagged | 1 Comment

Grouping Friends


Last night I start playing with Processing.  I had previously done a little work on a facebook app to gather what friends of mine were also friends.  I had never taken that data to any sort of useful state, so I decided it was time to try and graph those connections.  I decided to try and use Processing which turned out to be nice in some respects, as it nicely animates the spacing for me.  It also gave me some issues which may just be lack of knowledge, such as I ran into a problem with file size as I was attempting to write all my data into one file.  I then tried to use the loadStrings function which I couldn’t get to load data out of the data directory, so I had to fetch it over the web (well from the web server on my laptop).  After that was all worked out I had to draw everything, which went pretty smoothly but I had to play with my gravity metrics to pull people together that are linked and push people apart that are not.  It’s not perfect but I can see distinct groups (Work, Camp, College, High School).  The way I wrote this I place everyone on the screen in a random spot, and then adjust their position based on the gravity, until sum of the error percent stops decreasing.

Update: here is a new version that seperates a little better and adds blue

Posted in Data, Processing | 3 Comments