Great tips!

Posted by & filed under Uncategorized.

http://www.ted.com/talks/lang/en/shawn_achor_the_happy_secret_to_better_work.html

Especially near the end.

 

Thanks Zoe!

 

 

Trying Ruby with Dropbox

Posted by & filed under Uncategorized.

Tvongaza has a nice looking readme….

 

But gem install dropbox-sdk is recomended by the dropbox developer site.

Very easy to add secrets to the included cli_example.rb so I can now do this….  yay!

Matt-Paynes-MacBook-Pro:MattPayneOrgRubyToy mgpayne$ ./script.sh
Enter a command or ‘help’ or ‘exit’
> already logged in!
You are logged in. Your access token key is bamb2zzf234nco2 your secret is uwfcsx56sdtc7hu
> {“revision”=>68167233,
“rev”=>”41026410007b82f”,
“thumb_exists”=>false,
“bytes”=>33,
“modified”=>”Mon, 20 Feb 2012 01:14:06 +0000″,
“path”=>”/Backups/foo”,
“is_dir”=>false,
“icon”=>”page_white”,
“root”=>”dropbox”,
“mime_type”=>”application/octet-stream”,
“size”=>”33 bytes”}
> goodbye
Matt-Paynes-MacBook-Pro:MattPayneOrgRubyToy mgpayne$ cat script.sh
ruby cli_example.rb <<EOF
login
put foo Backups/foo
exit
EOF
Matt-Paynes-MacBook-Pro:MattPayneOrgRubyToy mgpayne$

 



					
						

Hello world!

Posted by & filed under Uncategorized.

I plan to:

  1. Start blogging again
  2. Reconnect with people
  3. Reconnect with computer programming