This gallery contains 3 photos.
Photographer: David Archambault / Hair+Makeup: Lindsay Stovall / ©2012 David Archambault These images were taken of Alizabeth Louise and myself by friend and photographer David Archambault. They will be used to make posters for this year’s short film festival at Tunxis.
Nasty but gets it done:
$delim = ','; $enc = '"'; $line = "\n";
foreach( str_getcsv ( file_get_contents( $tmpname ), $line ) as $row ) $csv = str_getcsv( $row, $delim, $enc ); // print_r( $csv );
or, if you want to be even more crazy, in 1 (note, config options are inline but I left the assignments so they are findable):
foreach( str_getcsv ( file_get_contents( $tmpname ), $line = "\n" ) as $row ) $csv = str_getcsv( $row, $delim = ',', $enc = '"' ); // print_r( $csv );
or, if you want it to be one expression, but more readable:
str_getcsv ( file_get_contents( $tmpname ), $line = "\n" )
$csv = str_getcsv( $row, $delim = ',', $enc = '"' );
// print_r( $csv );
In the examples above, I’m assuming you already know the temporary name of the uploaded file. In regular PHP, you could prepend this code with
In CakePHP, you might just replace $tmpname with $this->data['Whatever']['csv']['tmp_name'];
This kind of assumes you had done something like this on the form page:
This gallery contains 29 photos.
We rode, we drank, we all like cannolis with-fucking-out chocolate chips – we are the Bulgarian Racing Team.
This gallery contains 45 photos.
Pictures from the WD2010 MidAtlantic Day 2 Race.
I’ll let the pictures speak for themselves.
Sharry and I found the best place to run the JATO – amidst mountain of mulch, right near the DMV in Winsted! Mulch is great for many reasons. First, it’s got plenty of little bumps and humps to make driving fun and challenging. If you wipe out, it’s not as abrasive on the car as pavement or stone or even dirt. Speaking of dirt, it also doesn’t get into every little nook in the car and saturate your air filter – a major plus. Cleaning was easy today.
I have a few pics to post from after the bashing and a cleanup.
, but unfortunately, I can’t post the videos yet because they were shot with an iPhone in a vertical orientation, and rotating them doesn’t seem to be working. I do have a video from a few days ago right after I added the hop-up parts that I can add right away.
Vimeo is smart enough to rotate iPhone movies that were shot vertically. Sorry for the weird orientation. We’ll shoot it wide next time.
Yesterday, I had the pleasure of picking up a like-new Traxxas JATO 3.3. My JATO had somehow gotten rusted over the winter in my barn. Lesson learned. However, the aluminum hop-up parts I’d bought were still almost mint. They needed a buffing and I cleverly thought to throw a couple coats of clear enamel on them after they were shining again.
The results are really pleasing.
Most of the kudos go to Javier who kept it up so well and painted a nice custom body for it. The only change I made were the aluminum bumper, aluminum wheelie bar, a fuel line bumper on the heat-sink for the inevitable rollover, clear-coat enamel on the underside for a tiny bit of protection against dirt and scraping.
Go ahead and give it a shot. You will not win. Not even if you take a running start up to the thing. Not even if you take a running start up to the tree on a downhill. Not even if you take a running start up to the tree on a downhill and you’re going at least 10mph on your bike, run into a log that flips you over the handlebars and you do a ninja somersault before impact – you will still not beat the tree unless it is super tiny.
Here was my “plan.”
1) Ride down a hill and crash into a log so you begin the flipping action.
2) After flying over handle bars, throw shoulder down into the ground to begin the ninja somersault across the 10 foot space between log and tree.
3) After you head-butt the tree (hopefully you did wear a helmet – I did), you will probably need to hunt around for pieces that flew off you or the bike.
4) Take a moment to look back on how you might have handled that log better, but acknowledge you still won’t beat the tree.