Streams of thought by...

This is the (tumble) log for Innerfusion, I'll post various things about code, design, politics, or whatever is interesting at the moment.

November 18, 2009 at 2:33pm
1 note
reblogged from uptonic
Comments (View)

Millions of copies will be sold of a book written by someone who can’t write, intended for an audience that doesn’t read, about the thoughts of a person who doesn’t think. God is dead.

— http://www.ginandtacos.com/2009/11/17/going-rogue/ (via uptonic)

Posted in: politics
November 17, 2009 at 3:51pm
0 notes
Comments (View)

Get the current branch in a git repo

Ever need to get the current branch name in a ruby app?

b = `git branch`.split("\n").delete_if { |i| i.first != "*" }
b.first.gsub("* ","")

Or maybe you might want to put it into ~/.irbrc:

def branch
   b = `git branch`.split("\n").delete_if { |i| i.first != "*" }
   b.first.gsub("* ","")
end

Posted in: snippets ruby git
November 12, 2009 at 10:59am
0 notes
Comments (View)

info-graphic visualizations of choose your own adventures books →

Amazing visuals by Christian Swinehart, I remember reading these books as a kid, they have a special place in my heart, via Daring Fireball

Posted in: books visuals awesome
November 4, 2009 at 6:49pm
0 notes
Comments (View)

ActionMailer woes with gmail

NOTE: that this only applies to Rails versions less than 2.3 (< 2.2.x), Rails

I’ve been having issues lately working with Gmail’s SMTP servers and older Rails apps. Fortunately I found the fix in the form of a plugin here : http://douglasfshearer.com/blog/gmail-smtp-with-ruby-on-rails-and-actionmailer

However, I was still getting errors in that looked like:

  ArgumentError (wrong number of arguments (3 for 2)):
      /vendor/plugins/action_mailer_optional_tls/lib/smtp_tls.rb:33:in `check_auth_args'
      /vendor/plugins/action_mailer_optional_tls/lib/smtp_tls.rb:33:in `do_tls_start'
      /vendor/plugins/action_mailer_optional_tls/lib/smtp_tls.rb:18:in `send'
      /vendor/plugins/action_mailer_optional_tls/lib/smtp_tls.rb:18:in `start'
      /vendor/plugins/action_mailer_optional_tls/lib/smtp_tls.rb:10:in `start'
      /vendor/plugins/action_mailer_optional_tls/lib/action_mailer_tls.rb:9:in `perform_delivery_smtp'

Browsing through the comments in that link mentioned above reveals that you must update a call to check_auth_args at about line 33, so here’s what you do:

  # go to line 33 and change:
  check_auth_args user, secret, authtype if user or secret
  # to this (remove authtype):
  check_auth_args user, secret if user or secret

It’s a quick hack I know…, but sometimes you just need to get something working so that you can get on with your day :/

Posted in: ruby rails gmail
October 29, 2009 at 11:00am
0 notes
Comments (View)
My life as a graph, as you can see&#8230; productivity kind of goes down on the weekend

My life as a graph, as you can see… productivity kind of goes down on the weekend

Posted in: work graphs
October 23, 2009 at 3:02pm
0 notes
Comments (View)

If they can’t handle it, go home. Or wet your pants. Do whatever you like. But it’s not a question that can be answered.

— Maurice Sendak answering what if parents think Wild Things is too scary via Commentary: ‘Wild Things’ is scary, but so is life - CNN.com

Posted in: movies interviews
October 22, 2009 at 11:40am
0 notes
Comments (View)

Compiling and installing git on centos 5

I recently had to compile the latest version of git on CentOS 5, here’s what worked for me.

  ## Compiling and installing git 1.6.x on Centos5

    # if you need to get dependencies
    sudo yum install curl-devel 
    sudo yum install expat-devel 
    sudo yum install gettext-devel 
    sudo yum install openssl-devel 
    sudo yum install zlib-devel
    sudo yum install wget

    # you are using /usr/local/ right?
    cd /usr/local/src/
    wget http://kernel.org/pub/software/scm/git/git-1.6.5.1.tar.gz
    tar zxvf git-1.6.5.1.tar.gz
    cd git-1.6.5.1
    make configure
    ./configure --prefix=/usr/local
    sudo ./configure --prefix=/usr/local
    sudo make all
    sudo make install

Grab the gist

Posted in: centos git snippets
October 13, 2009 at 4:55pm
0 notes
Comments (View)
Neat tip: you can schedule google calendar events by replying back to SMS reminders

Neat tip: you can schedule google calendar events by replying back to SMS reminders

Posted in: google calendar tips
10:49am
24 notes
reblogged from merlin
Comments (View)

And so, like the goat sacrificers and snake oil salesmen before them, a new breed of con man was born, the Search Engine Optimizer. These scammers claim that they can dance the magic dance that will please the Google Gods and make eyeballs rain down upon you.

Do. Not. Trust. Them.

— Derek, via Mat (via merlin)

Posted in: seo web development
October 9, 2009 at 2:30pm
0 notes
Comments (View)

Obama will donate the roughly $1.4 million award to charity, a White House spokesman said Friday.

— Even if the people view the win as undeserving or too early, it’s never too early to give $1.4 million to charity via Obama’s win unique among presidents - CNN.com

Posted in: politics