michaelfox + ruby 58
Opens3 by Pablo-Merino
5 weeks ago by michaelfox
OpenS3 is basically a storage server. What it does is provide a JSON API to upload and download files to a specified path. It includes a bucket feature to organize uploads.
Details!
Uses Thin as HTTP server and rack for interacting with it. For uploading, listing and downloading files you'll need a token, which is a SHA512 of a string you choose. You'll also need to set an expiry time for a link when downloading.
backup
s3
cloud
file
server
json
ruby
storage
aws
github
opensource
repo
Details!
Uses Thin as HTTP server and rack for interacting with it. For uploading, listing and downloading files you'll need a token, which is a SHA512 of a string you choose. You'll also need to set an expiry time for a link when downloading.
5 weeks ago by michaelfox
Resources for Getting Started with Ruby on Rails | Engine Yard Ruby on Rails Blog
march 2011 by michaelfox
### Online Tutorials
[Ruby Learning][13]
[Official Ruby on Rails Guides][14]
[Rails Tutorial][15]
[Why's (Poignant) Guide][16] \[Thanks timinman from [HN][17]\]
### Courses
[Engine Yard University][18]
[Blazing Cloud Courses][19]
[Ruby Mendicant University][20]
[Jumpstart Lab Courses][21] \[Thanks Jeff from [twitter][22]\]
### Interactive Tutorials
[Try Ruby][23]
[Hackety Hack][24]
[Ruby Koans][25]
[BitNami][26] \[Thanks Daniel from [comments][27]\]
[Rails for Zombies][28] \[Thanks Gregg from [twitter][29]\]
### Books
[Learn to Program][30]
[Humble Little Ruby Book][31]
[The Rails Way][32]
[The Rails 3 Way][33] \[Thanks Raj from [comments][34]\]
### Blogs
[Ruby Inside][35]
[Ruby Reflector][36]
[Engine Yard Ruby on Rails Blog][10]
[PlanetRubyOnRails][37] \[Thanks jim\_h from [HN][38]\]
### Screencasts
[Railscasts][39]
[PeepCode][40]
[Ruby on Rails 3 Tutorial][41]
[Lynda.com][42] \[Thanks eAlchemist from [comments][43]\]
[Learning Rails][44] \[Thanks eAlchemist from [comments][43]\]
[Learnivore][45] \[Thanks Thibaut from [comments][46]\]
### Podcasts
[Ruby on Rails Podcast][47]
[The Ruby Show][48]
[Teach Me To Code][49]
[Ruby5][50] \[Thanks EppO from [comments][51]\]
[RubyPulse][52] \[Thanks pdelgallego from [HN][53]\]
### Forums
[Rails Forum][54]
[StackOverflow][55]
[Engine Yard Community Site][56]
### Community
[Ruby Meetup Groups][57]
[Ruby on Rails Community][58]
[][58][Confreaks][59] \[Thanks pdelgallego from [HN][53]\]
IRC Channels: [\#ruby][60], [\#ruby-lang][61], [\#rubyonrails][62], [\#jruby][63], [\#rubinius][64]
programming
rails
resources
ruby
rubyonrails
[Ruby Learning][13]
[Official Ruby on Rails Guides][14]
[Rails Tutorial][15]
[Why's (Poignant) Guide][16] \[Thanks timinman from [HN][17]\]
### Courses
[Engine Yard University][18]
[Blazing Cloud Courses][19]
[Ruby Mendicant University][20]
[Jumpstart Lab Courses][21] \[Thanks Jeff from [twitter][22]\]
### Interactive Tutorials
[Try Ruby][23]
[Hackety Hack][24]
[Ruby Koans][25]
[BitNami][26] \[Thanks Daniel from [comments][27]\]
[Rails for Zombies][28] \[Thanks Gregg from [twitter][29]\]
### Books
[Learn to Program][30]
[Humble Little Ruby Book][31]
[The Rails Way][32]
[The Rails 3 Way][33] \[Thanks Raj from [comments][34]\]
### Blogs
[Ruby Inside][35]
[Ruby Reflector][36]
[Engine Yard Ruby on Rails Blog][10]
[PlanetRubyOnRails][37] \[Thanks jim\_h from [HN][38]\]
### Screencasts
[Railscasts][39]
[PeepCode][40]
[Ruby on Rails 3 Tutorial][41]
[Lynda.com][42] \[Thanks eAlchemist from [comments][43]\]
[Learning Rails][44] \[Thanks eAlchemist from [comments][43]\]
[Learnivore][45] \[Thanks Thibaut from [comments][46]\]
### Podcasts
[Ruby on Rails Podcast][47]
[The Ruby Show][48]
[Teach Me To Code][49]
[Ruby5][50] \[Thanks EppO from [comments][51]\]
[RubyPulse][52] \[Thanks pdelgallego from [HN][53]\]
### Forums
[Rails Forum][54]
[StackOverflow][55]
[Engine Yard Community Site][56]
### Community
[Ruby Meetup Groups][57]
[Ruby on Rails Community][58]
[][58][Confreaks][59] \[Thanks pdelgallego from [HN][53]\]
IRC Channels: [\#ruby][60], [\#ruby-lang][61], [\#rubyonrails][62], [\#jruby][63], [\#rubinius][64]
march 2011 by michaelfox
Doc⚡split
march 2011 by michaelfox
Docsplit is a command-line utility and Ruby library for splitting apart documents into their component parts: searchable UTF-8 plain text via OCR if necessary, page images or thumbnails in any format, PDFs, single pages, and document metadata (title, author, number of pages...)
Docsplit is currently at version 0.5.0.
Docsplit is an open-source component of DocumentCloud.
Usage
The Docsplit gem includes both the docsplit command-line utility as well as a Ruby API. The available commands and options are identical in both.
--output or -o can be passed to any command in order to store the generated files in a directory of your choosing.
images--size --format --pages Ruby: extract_images
Generates an image for each page in the document at the specified resolution and format. Pass --pages or -p to choose the specific pages to image. Passing
--size or -s will specify the desired image resolution, and --format or -f will select the format of the final images.
docsplit images example.pdf
docsplit images docs/*.pdf --size 700x,50x50 --format gif --pages 3,10-15,42
Docsplit.extract_images('example.doc', :size => '1000x', :format => [:png, :jpg])
text--pages --ocr --no-ocr --no-clean Ruby: extract_text
Extract the complete UTF-8-encoded plain text of a document to a single file. If you'd like to extract the text for each page separately, pass --pages all. You can use the --ocr and --no-ocr flags to force OCR, or disable it, respectively. By default (if Tesseract is installed) Docsplit will OCR the text of each page for which it fails to extract text directly from the document. Docsplit will also attempt to clean up garbage characters in the OCR'd text — to disable this, pass the --no-clean flag.
docsplit text path/to/doc.pdf --pages all
docs = Dir['storage/originals/*.doc']
Docsplit.extract_text(docs, :ocr => false, :output => 'storage/text')
pages--pages Ruby: extract_pages
Burst apart a document into single-page PDFs. Use --pages to specify the individual pages (or ranges of pages) you'd like to generate.
docsplit pages path/to/doc.pdf --pages 1-10
Docsplit.extract_pages('path/to/presentation.ppt')
Docsplit.extract_pages('doc.pdf', :pages => 1..10)
pdf Ruby: extract_pdf
Convert documents into PDFs. Any type of document that OpenOffice can read may be converted. These include the Microsoft Office formats: doc, docx, ppt, xls and so on, as well as html, odf, rtf, swf, svg, and wpd. The first time that you convert a new file type, OpenOffice will lazy-load the code that processes it — subsequent conversions will be much faster.
docsplit pdf documentation/*.html
Docsplit.extract_pdf('expense_report.xls')
author, date, creator, keywords, producer, subject, title, length
Ruby: extract_...
Retrieve a piece of metadata about the document. The docsplit utility will print to stdout, the Ruby API will return the value.
docsplit title path/to/stooges.pdf
=> Disorder in the Court
Docsplit.extract_length('path/to/stooges.pdf')
=> 36
document
ocr
pdf
ruby
parsing
processing
tools
cli
Docsplit is currently at version 0.5.0.
Docsplit is an open-source component of DocumentCloud.
Usage
The Docsplit gem includes both the docsplit command-line utility as well as a Ruby API. The available commands and options are identical in both.
--output or -o can be passed to any command in order to store the generated files in a directory of your choosing.
images--size --format --pages Ruby: extract_images
Generates an image for each page in the document at the specified resolution and format. Pass --pages or -p to choose the specific pages to image. Passing
--size or -s will specify the desired image resolution, and --format or -f will select the format of the final images.
docsplit images example.pdf
docsplit images docs/*.pdf --size 700x,50x50 --format gif --pages 3,10-15,42
Docsplit.extract_images('example.doc', :size => '1000x', :format => [:png, :jpg])
text--pages --ocr --no-ocr --no-clean Ruby: extract_text
Extract the complete UTF-8-encoded plain text of a document to a single file. If you'd like to extract the text for each page separately, pass --pages all. You can use the --ocr and --no-ocr flags to force OCR, or disable it, respectively. By default (if Tesseract is installed) Docsplit will OCR the text of each page for which it fails to extract text directly from the document. Docsplit will also attempt to clean up garbage characters in the OCR'd text — to disable this, pass the --no-clean flag.
docsplit text path/to/doc.pdf --pages all
docs = Dir['storage/originals/*.doc']
Docsplit.extract_text(docs, :ocr => false, :output => 'storage/text')
pages--pages Ruby: extract_pages
Burst apart a document into single-page PDFs. Use --pages to specify the individual pages (or ranges of pages) you'd like to generate.
docsplit pages path/to/doc.pdf --pages 1-10
Docsplit.extract_pages('path/to/presentation.ppt')
Docsplit.extract_pages('doc.pdf', :pages => 1..10)
pdf Ruby: extract_pdf
Convert documents into PDFs. Any type of document that OpenOffice can read may be converted. These include the Microsoft Office formats: doc, docx, ppt, xls and so on, as well as html, odf, rtf, swf, svg, and wpd. The first time that you convert a new file type, OpenOffice will lazy-load the code that processes it — subsequent conversions will be much faster.
docsplit pdf documentation/*.html
Docsplit.extract_pdf('expense_report.xls')
author, date, creator, keywords, producer, subject, title, length
Ruby: extract_...
Retrieve a piece of metadata about the document. The docsplit utility will print to stdout, the Ruby API will return the value.
docsplit title path/to/stooges.pdf
=> Disorder in the Court
Docsplit.extract_length('path/to/stooges.pdf')
=> 36
march 2011 by michaelfox
Setting up a Rails Development System on Mac OSX Snow Leopard | SpyreStudios
december 2010 by michaelfox
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm
rvm install 1.8.7 --with-arch=x86_64 --enable-shared --with-readline-dir=/usr/local
rvm install 1.9.2 --with-arch=x86_64 --enable-shared --with-readline-dir=/usr/local
rvm --default use 1.9.2
rvm use --create 1.9.2@rails3
gem install sqlite3-ruby
gem install rails
rails
ruby
rvm
osx
environment
setup
install
[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm
rvm install 1.8.7 --with-arch=x86_64 --enable-shared --with-readline-dir=/usr/local
rvm install 1.9.2 --with-arch=x86_64 --enable-shared --with-readline-dir=/usr/local
rvm --default use 1.9.2
rvm use --create 1.9.2@rails3
gem install sqlite3-ruby
gem install rails
december 2010 by michaelfox
Rake Tutorial | Jason Seifer
december 2010 by michaelfox
If you’re developing with Rails you’ve probably encountered rake once or twice. This blog post aims to walk you through where rake came from and an introduction on how to use it effectively in your Rails apps.
A Little Bit of History
Rake is the project of Jim Weirich. It’s a build tool. For a good laugh and an even more in depth history check out the "rational.rdoc" from the Rake documentation. Essentially, rake started as an idea for using Ruby inside of a Makefile. Though Jim doesn’t sound convinced from the tone in that document, it is a good idea.
programming
rails
ruby
tutorial
rake
make
build
tools
howto
A Little Bit of History
Rake is the project of Jim Weirich. It’s a build tool. For a good laugh and an even more in depth history check out the "rational.rdoc" from the Rake documentation. Essentially, rake started as an idea for using Ruby inside of a Makefile. Though Jim doesn’t sound convinced from the tone in that document, it is a good idea.
december 2010 by michaelfox
bleything.net projects » plist
december 2010 by michaelfox
Plist is a library to manipulate Property List files, also known as plists. It can parse plist files into native Ruby data structures as dwell as generating new plist files from your Ruby objects.
gem
ruby
plist
cli
tools
december 2010 by michaelfox
bleything.blog(:stuff) Keeping TextMate Bundles Up To Date with Ruby
december 2010 by michaelfox
Those TextMate powerusers out there are likely familiar with the sheer awesomeness of the Bundle facility. No doubt you’re also aware that you can live on the edge by checking bundles out from subversion.
The problem is, there are a TON of bundles, and I simply don’t care about the majority of them. Having a ton of bundles slows down the application launch and makes the Bundles menu unwieldy. The obvious solution is to only check out those bundles you are interested in… but when that list is close to 50 items long, it gets tedious.
So what’s a hacker to do? Write a script? You bet your boots. In an effort to keep the size of this entry down, I’ve put the script on a separate page, located here.
To use it, edit the bundles array to include the list of bundles you want to keep up-to-date. Put the script in your path, chmod +x it, and run it. If your Bundles directory doesn’t exist, it’ll create it for you. If it sees a bundle it doesn’t know about, it’ll ask you whether you want to delete it. This brings us to a neat thing I discovered. Try this in irb:
puts "whoa!" if gets =~ /^(n|$)/i
I was trying to allow the user to just enter to accept the default (no) answer when it asks if you want to delete. I wasn’t expecting the regex above to actually work, but it does… essentially, if the first character of the line is either ‘n’ or the end of the line, it’s true. Cool, yeah?
Please, go check it out, and use it if it makes your life easier. I’ll gladly take suggestions and improvements as well!
textmate
bundle
mac
ruby
The problem is, there are a TON of bundles, and I simply don’t care about the majority of them. Having a ton of bundles slows down the application launch and makes the Bundles menu unwieldy. The obvious solution is to only check out those bundles you are interested in… but when that list is close to 50 items long, it gets tedious.
So what’s a hacker to do? Write a script? You bet your boots. In an effort to keep the size of this entry down, I’ve put the script on a separate page, located here.
To use it, edit the bundles array to include the list of bundles you want to keep up-to-date. Put the script in your path, chmod +x it, and run it. If your Bundles directory doesn’t exist, it’ll create it for you. If it sees a bundle it doesn’t know about, it’ll ask you whether you want to delete it. This brings us to a neat thing I discovered. Try this in irb:
puts "whoa!" if gets =~ /^(n|$)/i
I was trying to allow the user to just enter to accept the default (no) answer when it asks if you want to delete. I wasn’t expecting the regex above to actually work, but it does… essentially, if the first character of the line is either ‘n’ or the end of the line, it’s true. Cool, yeah?
Please, go check it out, and use it if it makes your life easier. I’ll gladly take suggestions and improvements as well!
december 2010 by michaelfox
Introduction to using vim for Rails development ... - GIANT ROBOTS SMASHING INTO OTHER GIANT ROBOTS
november 2010 by michaelfox
Introduction to using vim for Rails development
Someone recently asked us to do “vim on Rails” screencasts.
So, we’re responding with this experiment. Let us know if this is valuable and we’ll try to improve things like audio quality.
rails
screencast
ide
screencasts
tutorial
ruby
development
editor
vim
linux
howto
video
environment
tools
resources
reference
dotfiles
config
setup
Someone recently asked us to do “vim on Rails” screencasts.
So, we’re responding with this experiment. Let us know if this is valuable and we’ll try to improve things like audio quality.
november 2010 by michaelfox
Cinderella - A Development Environment for Macs
september 2010 by michaelfox
Cinderella is a fully managed development environment for open source hacking on Mac OSX. It's powered by rvm, homebrew and chef. You only need Xcode to get started.
Cinderella builds everything up in ~/Developer. It won't stomp on any of your current installations so you don't have to commit your entire machine immediately. It's simple to rollback if you really want to.
development
environment
mac
mysql
ruby
python
node
redis
memcache
osx
Cinderella builds everything up in ~/Developer. It won't stomp on any of your current installations so you don't have to commit your entire machine immediately. It's simple to rollback if you really want to.
september 2010 by michaelfox
ruby and gems on os-x leopard « Punctuated Productivity
july 2010 by michaelfox
Removing a custom ruby installation (uninstalling)
sudo rm -rf /usr/local/lib/ruby sudo rm /usr/local/bin/ruby sudo rm /usr/local/bin/erb sudo rm /usr/local/bin/irb sudo rm /usr/local/bin/rdoc sudo rm /usr/local/bin/ri sudo rm /usr/local/bin/testrb sudo rm /usr/local/share/man/man1/ruby.1
ruby
mac
osx
rails
uninstall
sudo rm -rf /usr/local/lib/ruby sudo rm /usr/local/bin/ruby sudo rm /usr/local/bin/erb sudo rm /usr/local/bin/irb sudo rm /usr/local/bin/rdoc sudo rm /usr/local/bin/ri sudo rm /usr/local/bin/testrb sudo rm /usr/local/share/man/man1/ruby.1
july 2010 by michaelfox
Ruby Best Practices - Full Book Now Available For Free!
may 2010 by michaelfox
# Chapter 1: Driving Code Through Tests
# Chapter 2: Designing Beautiful APIS / Chapter 3: Mastering the Dynamic Toolkit
# Chapter 4: Text Processing and File Management
# Chapter 5: Functional Programming Techniques
# Chapter 6: When Things Go Wrong
# Chapter 7: Reducing Cultural Barriers
book
pdf
programming
ruby
download
ebooks
# Chapter 2: Designing Beautiful APIS / Chapter 3: Mastering the Dynamic Toolkit
# Chapter 4: Text Processing and File Management
# Chapter 5: Functional Programming Techniques
# Chapter 6: When Things Go Wrong
# Chapter 7: Reducing Cultural Barriers
may 2010 by michaelfox
List of freely available programming books - Stack Overflow
may 2010 by michaelfox
I'm trying to amass a list of programming books with opensource licenses, like Creative Commons, GPL, etc. The books can be about a particular programming language or about computers in general.
books
ebooks
free
reference
programming
development
webdev
resources
list
download
manuals
guides
c
bash
objective-c
php
javascript
java
python
ruby
sql
mysql
svn
git
may 2010 by michaelfox
Ten Recent Episodes of Ruby and Rails Screencasts
may 2010 by michaelfox
Free Ruby and Rails Screencasts
ruby
screencasts
video
tutorial
download
media
may 2010 by michaelfox
related tags
ajax ⊕ antialiasing ⊕ api ⊕ apple ⊕ automation ⊕ aws ⊕ backup ⊕ bash ⊕ binding ⊕ book ⊕ bookmarklets ⊕ books ⊕ brew ⊕ build ⊕ bundle ⊕ c ⊕ capistrano ⊕ cheatsheet ⊕ cli ⊕ cloud ⊕ cms ⊕ cocoa ⊕ code ⊕ codeigniter ⊕ coding ⊕ collection ⊕ compass ⊕ compile ⊕ config ⊕ console ⊕ css ⊕ databases ⊕ date ⊕ delicious ⊕ deployment ⊕ design ⊕ development ⊕ dialog ⊕ django ⊕ document ⊕ documentation ⊕ dotfiles ⊕ download ⊕ ebooks ⊕ editor ⊕ environment ⊕ examples ⊕ fields ⊕ file ⊕ flash ⊕ font ⊕ form ⊕ format ⊕ framework ⊕ free ⊕ gem ⊕ gems ⊕ git ⊕ github ⊕ github-user ⊕ github-user-carlierche ⊕ gui ⊕ guides ⊕ help ⊕ homebrew ⊕ howto ⊕ html ⊕ html5 ⊕ ide ⊕ image ⊕ inspiration ⊕ inspiration:documentation ⊕ install ⊕ iphone ⊕ irb ⊕ irbrc ⊕ java ⊕ javascript ⊕ json ⊕ keyboard ⊕ linux ⊕ list ⊕ mac ⊕ macosx ⊕ macvim ⊕ make ⊕ management ⊕ manuals ⊕ markdown ⊕ media ⊕ memcache ⊕ mongrel ⊕ mysql ⊕ node ⊕ objective-c ⊕ objectivec ⊕ ocr ⊕ omnifocus ⊕ opensource ⊕ organization ⊕ osx ⊕ parsing ⊕ pdf ⊕ perl ⊕ php ⊕ plist ⊕ plugins ⊕ processing ⊕ programming ⊕ prompt ⊕ proxy ⊕ python ⊕ rails ⊕ rake ⊕ redis ⊕ reference ⊕ regex ⊕ repo ⊕ repository ⊕ resources ⊕ rest ⊕ rss ⊕ ruby ⊖ rubycocoa ⊕ rubygems ⊕ rubyonrails ⊕ rvm ⊕ s3 ⊕ sass ⊕ screencast ⊕ screencasts ⊕ scripting ⊕ scripts ⊕ scss ⊕ server ⊕ settings ⊕ setup ⊕ shell ⊕ shortcuts ⊕ snippets ⊕ sourcecode ⊕ sql ⊕ storage ⊕ strftime ⊕ stylesheets ⊕ subversion ⊕ svn ⊕ textmate ⊕ time ⊕ tips ⊕ toolbox ⊕ toolkit ⊕ tools ⊕ tricks ⊕ tutorial ⊕ typography ⊕ uninstall ⊕ unittesting ⊕ versioncontrol ⊕ versioning ⊕ video ⊕ vim ⊕ vimrc ⊕ web ⊕ web2.0 ⊕ webdesign ⊕ webdev ⊕ wiki ⊕ xcode ⊕ xib ⊕ xml ⊕ zsh ⊕Copy this bookmark: