Sara Trice
Just a programmin', bellydancin', cake bakin' kinda girl

  • RSS-Feed posts
  • RSS-Feed comments

  • gallery
  • livejournal
  • résumé
  • website portfolio

Twitter

Tweets by @saratrice

Pages

  • gallery
  • livejournal
  • résumé
  • website portfolio

Fun Stuff

  • My Amazon Wish List

Webcomics

  • Dark Legacy Comics
  • Erfworld
  • Questionable Content

New Posts

  • DIY syrups!
  • Women’s Olympic Foil 2012
  • Paperclip, Amazon S3 Storage, the Amazon AWS-SDK gem, and Error: “No such file or directory”
  • Indexing users that belong to groups with ancestry and thinking sphinx
  • Avoiding Ruby hash conditionals in Ruby on Rails

Latest Comments

  • 22.05 | David in ImageMagick: "convert: color profile operates on a…
  • 23.04 | Chintan in Using javan/whenever on Engine Yard Cloud
  • 10.04 | saratrice in Using javan/whenever on Engine Yard Cloud
  • 10.04 | Nic Pillinger in Using javan/whenever on Engine Yard Cloud
  • 11.12 | Christian in jsTree: adding Expand All and Collapse All buttons…
July 2010
S M T W T F S
« May   Aug »
 123
45678910
11121314151617
18192021222324
25262728293031
14
Jul

Ruby: how to split a string into equal chunks

“some long test string or other”.scan(/.{15}/)

Snagged from http://snippets.dzone.com/posts/show/5621 and posted here so I can find it later.

by saratrice in tech
no comment

Meta

  • Log in
© 2008 - 2013
Design & CSS by
Freizeitler

Blogroll

    Dark Legacy Comics Yay MMORPGs!
    Erfworld Rob Balder writes this
    My Amazon Wish List Buy me somethin’!
    Questionable Content Am I more like Faye or Dora?