• @robertcuadra
  • RSS
  • Archive

Robert Cuadra

I write code.

  • Photo
    LAME!!!

keithwj:

This is really kind of amazing. Clearly stepping over the ‘journalism’ line to use illustrations of reality to sell papers. I’m glad choices like this were off limits when I worked there!
lookhigh:

Breathtaking But Fake
Leading today’s Washington Post print edition (you remember those, don’t you?) is this beautiful photo by Bill O’Leary of the 14th Street bridge, accompanying coverage of the 30th anniversary of the Air Florida disaster. But competing for interest with the image itself is the lengthy explanation in the caption that what you see isn’t entirely real: 

A jetliner flies high over a tranquil scene at the 14th Street bridge, where 30 years ago winter weather and human error conspired to bring down Air Florida Flight 90 in a disaster that claimed 78 lives. This image is a composite created by taking several photos and combining them with computer software to transcend the visual limitations of standard photography.

It’s not exactly moving the pyramids, and the disclosure is front and center, but does it bother you that this is going on in the mainstream press?

    17th January 2012

    LAME!!!

    keithwj:

    This is really kind of amazing. Clearly stepping over the ‘journalism’ line to use illustrations of reality to sell papers. I’m glad choices like this were off limits when I worked there!

    lookhigh:

    Breathtaking But Fake

    Leading today’s Washington Post print edition (you remember those, don’t you?) is this beautiful photo by Bill O’Leary of the 14th Street bridge, accompanying coverage of the 30th anniversary of the Air Florida disaster. But competing for interest with the image itself is the lengthy explanation in the caption that what you see isn’t entirely real: 

    A jetliner flies high over a tranquil scene at the 14th Street bridge, where 30 years ago winter weather and human error conspired to bring down Air Florida Flight 90 in a disaster that claimed 78 lives. This image is a composite created by taking several photos and combining them with computer software to transcend the visual limitations of standard photography.

    It’s not exactly moving the pyramids, and the disclosure is front and center, but does it bother you that this is going on in the mainstream press?

    (via nprradiopictures)

  • Link

    2nd December 2011

    Imagine - Unified PHP 5.3 API for GD2, ImageMagick, GraphicsMagick

    Love this!

    thechangelog:

    Imagine is a nice looking image manipulation library for PHP 5.3+ that supports GD2, ImageMagick, and GraphicsMagick in a clean, chainable API from Bulat Shakirzyanov:

    <?php
    
    $imagine = new Imagine\Gd\Imagine();
    // or
    $imagine = new Imagine\Imagick\Imagine();
    // or
    $imagine = new Imagine\Gmagick\Imagine();
    
    $size    = new Imagine\Image\Box(40, 40);
    
    $mode    = Imagine\Image\ImageInterface::THUMBNAIL_INSET;
    // or
    $mode    = Imagine\Image\ImageInterface::THUMBNAIL_OUTBOUND;
    
    $imagine->open('/path/to/large_image.jpg')
        ->thumbnail($size, $mode)
        ->save('/path/to/thumbnail.png')
    ;
    

    Check out the extremely detailed project docs and examples for advanced usage.

  • Note

    22nd November 2011

    git diff for archived changesets

    git diff deployment

    Every once in a while I come across someone who either doesn’t have a github account and/or doesn’t know how to use git but I still need a way to get files to them. The easy-for-me way is to just download the tarball using github’s handy download links in the repo, but after a while that will not work due to bloat. Nobody wants an email with a 20mb file attached ;)

    The solution: git + diff + tar.

    git diff —name-only 123abcd HEAD | tar -T - -cvjf changes.tar.bz2

    where ‘123abcd’ is the revision id before you started your edits. Nice thing about this is it also maintains directory structure.

  • Photo
    Poor Juan Uribe :&#8217;(

    22nd November 2011

    Poor Juan Uribe :’(

    (Source: emojuanuribe)

  • Link

    16th November 2011

    Tumblr Censors Our Dashboards In Opposition To SOPA

    sopa-info150.jpgThe Internet is rising up to oppose the Stop Online Piracy Act, which is just a noble name wrapped around a dangerous package. It’s an overreaching bill being pushed in the name of Homeland Security, even going so far as to target Mozilla specifically for refusing to comply with past requests.

    Today is American Censorship Day, and it happens to coincide with a hearing in the U.S. House about this censorship bill. To raise awareness of the importance of stopping SOPA, Tumblr has artfully censored everyone’s blog dashboards and linked to a petition form at the top of the page under the heading, “Stop The Law That Will Censor The Internet!”

  • Photo

    14th November 2011

    (Source: christinsanity, via memewhore)

  • Link

    14th November 2011

    I swapped my MacBook for an iPad+Linode

    I would love to do this. I think i’m gonna have to give it a shot in the coming weeks. Maybe on a short week like thanksgiving.

  • Note

    1st September 2011

    Apache name based virtual hosting for development on OS X

    apache osx

    This is here more for my own reference, but in the hopes it will help someone else.

    For my dev environment I set up virtual hosts for each project/app/site I’m working on. I set them up using the domain for the site with a subdomain of ‘local’, eg local.example.com. In the past I would use something like example.local but have since found it to be problematic when integrating with APIs that need need a callback or return URL for some operations.

    Assumptions

    • I store all my work in a projects folder at the root level, ‘/projects’. Anytime you see ‘/projects’ you can substitute for your own path.
    • I use Textmate’s ‘mate’ command to edit my files. You can substitute any commands starting with ‘mate’ with ‘vi’.

    Prerequisites

    • A working Apache 2 install

    How-to:

    Pop open the main Apache conf file:

    mate /usr/local/apache2/conf/httpd.conf
    

    Uncomment the virtual host config file include:

    # Virtual hosts
    Include conf/extra/httpd-vhosts.conf
    

    Now to add your virtual hosts, open the vhost conf file:

    mate /usr/local/apache2/conf/extra/httpd-vhosts.conf
    

    Replace the contents with the following:

    NameVirtualHost *:80

    <VirtualHost *:80>
        ServerName local.example.com
        ServerAlias local.dev.example.com
        DocumentRoot “/projects/example”
        ErrorLog “logs/local.example.com-error_log”
        CustomLog “logs/local.example.com-access_log” common
    </VirtualHost>
    view raw gistfile1.txt This Gist brought to you by GitHub.

    Lastly you’ll want to add an entry to your host file and restart apache:

    sudo echo '127.0.0.1 local.example.com' >> /etc/hosts
    sudo apachectl restart
    

    Fire up your browser and visit local.example.com and you should see your index page served!

  • Quote

    1st September 2011

    “As if a device can function if it has no style. As if a device can be called stylish that does not function superbly… yes, beauty matters. Boy, does it matter. It is not surface, it is not an extra, it is the thing itself.”

    ~ Stephen Fry (via alanajoy)

  • Note

    31st August 2011

    Installing Apache 2 on OS X

    apache osx

    How I installed Apache 2.2.20 with shared objects, SSL, Proxy, and Rewrite on OS X 10.6.8.

    I am well aware OS X comes with Apache, but sometimes you just need to compile your own for security or other reasons. This is here more for my reference, but if it helps others then double win!

    Prerequisites:

    • Xcode
    • wget (or brew install wget)

    In terminal:

    # gotta be in the right place
    cd /usr/local/src

    # dl
    wget http://mirror.atlanticmetro.net/apache//httpd/httpd-2.2.20.tar.bz2

    # extract
    tar xvjf httpd-2.2.20.tar.bz2

    # build
    cd httpd-2.2.20
    ./configure —prefix /usr/local/apache2 —enable-so —enable-ssl —enable-proxy —enable-rewrite
    make
    make install

    # start
    sudo /usr/local/apache/bin/apachectl start
    view raw gistfile1.txt This Gist brought to you by GitHub.

    Pop open your browser and go to http://localhost and/or http://127.0.0.1 and you should see a page like the one below.

    Apache - It Works!

    That’s it! 

    Optionally, you can setup Apache to autoload at startup by adding it to launchd:

    /usr/local/apache2/bin/apachectl stop

    cd ~/Library/LaunchAgents

    wget http://dl.dropbox.com/u/6997719/tumblr/apache/org.apache.httpd.plist

    launchctl load -w org.apache.httpd.plist
    view raw gistfile1.txt This Gist brought to you by GitHub.
Next

Tumblr Themes created by Obox

Edited by me.