Working with different time zones? in_time_zone can help!

    >> d = Time.now
    => Fri Dec 04 23:12:59 -0200 2009
    >> d.in_time_zone("Buenos Aires")
    => Fri, 04 Dec 2009 22:12:59 ART -03:00

    Using Rails and SQLite and this error is showed:
    uninitialized constant Encoding

    So you have the wrong sqlite3 GEM installed. Please run: gem uninstall sqlite3
    gem install sqlite3-ruby

    — Retrospectiva / Ticket #731

    Async Observer →

    If you need talk with beanstalk… :-)

    Prefiro morrer de pé que viver sempre ajoelhado.

    — Che Guevara

    Getting RMagick, Leopard-Style
    sudo port install tiff -macosx #disables the linkage with Apple’s open gl
    sudo port install ImageMagick
    sudo gem install rmagick

    — How to build ImageMagick and install RMagick with MacPorts on Mac OS X Leopard | Educate. Liberate.

    HandBrake - Convert video to your iPhone/iPod →

    How do I upload an image with Sinatra (like Paperclip)? - Ruby Forum →

      post '/upload' do
        unless params[:file] &&
               (tmpfile = params[:file][:tempfile]) &&
               (name = params[:file][:filename])
          @error = "No file selected"
          return haml(:upload)
        end
        STDERR.puts "Uploading file, original name #{name.inspect}"
        while blk = tmpfile.read(65536)
          # here you would write it to its final location
          STDERR.puts blk.inspect
        end
        "Upload complete"
      end
    
    ---------
      %h1 Upload
    
      %form{:action=>"/upload",:method=>"post",:enctype=>"multipart/form-data"}
        %input{:type=>"file",:name=>"file"}
        %input{:type=>"submit",:value=>"Upload"}

    iClarified - Where To Download iPhone Firmware Files From →

    Thanks to @caffo for the tip.

    Configure Phusion Passenger to test Rails asset_host in development environment - tjhanley.com →

    Deployment Script Spring Cleaning - GitHub →

    Working with Rails ⋅  GitHub ⋅  Twitter ⋅  Linked In ⋅  Facebook ⋅  Powered by tumblr
    Fork me on GitHub