28 Mar '12, 11am

Unicode in Regex - Ruby Forum:

> Regular expressions for all character work would be a *terribly* slow > way to get things done. If you want to get the nth character, should you > do a match for n-1 characters and a group to grab the nth? Or would it > be better if you could just index into the string and have it do the Ok, I'm not very familiar with the internal working of strings in 1.9, but it seems to me that for character sets with variable byte size, it is logically *impossible* to directly index into the string. Unless there's some trick I'm unaware of, you *have* to count from the beginning of the string for utf8 strings. > right thing? How about if you want to iterate over all characters in a > string? Should the iterating code have to know about the encoding? > Should you use a regex to peel off one character at a time? That is certainly one possible way of doing things... string.scan(/./){ |c...

Full article: http://www.ruby-forum.com/topic/133538

Tweets

@joshbuddy in case you didn't see it. cc: @nesq...

engineyard.com 28 Mar '12, 8pm

Engine Yard, Inc. Log in Login to Engine Yard Cloud Login to Orchestra PHP Cloud Products Engine Yard Cloud Engine Yard Ma...

Oldie but I enjoy this post on Ruby's inject me...

blog.jayfields.com 28 Mar '12, 8pm

I find the inject solution less readable than something like: a = [1,2,3,4,5,6].map{|x| x.to_s if 0 == x % 2}.compact or a...

WATCH: Forrester analyst @johnrrymer to learn h...

engineyard.com 30 Mar '12, 11pm

In this video, Forrester VP and Principal Analyst John Rymer argues that companies need to include cloud as a strategic re...

Yay! Myself and a few coworkers are on this wee...

engineyard.com 30 Mar '12, 10pm

Load Podcast S02E12: Engine Yard Support Featuring Adam Holt Erik Jones James Paterni John Yerhot Tasha Drew Published: Ma...

Ruby Best Practices - Code Blocks: Ruby's Swiss...

blog.rubybestpractices.com 29 Mar '12, 10pm

So even if we label all methods that accept a block as iterators, we know the story runs deeper than that. With this in mi...

Ruby Certification: Ruby Study Notes - Best Rub...

rubylearning.com 04 Apr '12, 8am

The Ruby Association Certified Ruby Programmer examinations are intended for such people as engineers who design, develop,...

Numbers in Ruby: Ruby Study Notes - Best Ruby Guide, Ruby Tutorial:

Numbers in Ruby: Ruby Study Notes - Best Ruby G...

rubylearning.com 09 Apr '12, 10pm

Let's play with Numbers. In Ruby, numbers without decimal points are called integers, and numbers with decimal points are ...

@addy_mcg @greenhouse_eco @jonbently90 Me too &...

aecb.net 02 Apr '12, 1pm

Find the useful threads. Find the most pressing topics using a referanced index. Moderators: Tahir , Mark Siddall Child Bo...

Sam Ruby: Hacked

intertwingly.net 02 Apr '12, 12pm

Hacked Mon 02 Apr 2012 at 11:16 This site was hacked. A reader of the site noted that Google’s index of this site had been...

Finally tracked down the "An error occurred"-bu...

pivotallabs.com 28 Mar '12, 3pm

My pair and I were recently working on an app that asynchronously loaded the Facebook Javascript SDK but synchronously loa...