Dotgeek Free Hosting for Learning Ruby

Hello Everyone,
I was wondering with so many great services as Heroku and Engine Yard
(that offer great services and some free plans) a traditional, SFTP
hosting would be of any interested to these learning Ruby or wanting to
try some webapps quickly.

With my friends at dotgeek we have created a free hosting (totally free,
no upgradable plan, no ads etc.) at http://1.ai with 512 MB of space
(in our solid state drives) and 512MB of MySQL database space (also in
SSD). The hosting supports pretty much all rack frameworks like Sinatra,
Camping, Ramaze etc.

At any rate if anyone is interested just mention this mailing list in
your application (in the about you space that is really there just to
ensure that this remains a learning/convenience space for developers)
and I will approve it soon.

I hope you don't mind this intrusion in the list - I just want to make
you aware about this new free service - which we feel is our way to say
thank you to the open source community !
Best Regards
David

···

--
Posted via http://www.ruby-forum.com/.

Either I'm missing it, or I can't be as clever as I want to be. :wink:

I have some data that I'm evaluating I want to do the opposite of what .match
does. That is something like this:

puts "No Match" if xxx.match(/found/)

That's the easy part, but I actually want to take action if a match isn't found.
While I can do something like:

if xxx.match(/found/)
else
puts "No Match"
end

I was hoping not to do that. Is there a more Ruby like way of doing this? Is
there a 'no match' method I'm overlooking in the docs?

Wayne

You may be looking for "unless".

-a.

···

On 6Sep2012, at 2:42 PM, Wayne Brisette <wbrisett@att.net> wrote:

Either I'm missing it, or I can't be as clever as I want to be. :wink:

I have some data that I'm evaluating I want to do the opposite of what .match
does. That is something like this:

puts "No Match" if xxx.match(/found/)

That's the easy part, but I actually want to take action if a match isn't found.
While I can do something like:

if xxx.match(/found/)
else
puts "No Match"
end

I was hoping not to do that. Is there a more Ruby like way of doing this? Is
there a 'no match' method I'm overlooking in the docs?

Wayne

There's also !~, which is the opposite of !=

1.9.2p290 :001 > "abc" !~ /\d+/
=> true
1.9.2p290 :002 > "123" !~ /\d+/
=> false

Jesus.

···

On Thu, Sep 6, 2012 at 11:42 PM, Wayne Brisette <wbrisett@att.net> wrote:

Either I'm missing it, or I can't be as clever as I want to be. :wink:

I have some data that I'm evaluating I want to do the opposite of what .match
does. That is something like this:

puts "No Match" if xxx.match(/found/)

That's the easy part, but I actually want to take action if a match isn't found.
While I can do something like:

if xxx.match(/found/)
else
puts "No Match"
end

I was hoping not to do that. Is there a more Ruby like way of doing this? Is
there a 'no match' method I'm overlooking in the docs?

Just negate the match condition with an exclamation mark:

   if !xxx.match(/found/)
     puts "No match"
   end

···

On 09/06/2012 11:42 PM, Wayne Brisette wrote:

Either I'm missing it, or I can't be as clever as I want to be. :wink:

I have some data that I'm evaluating I want to do the opposite of what .match
does. That is something like this:

puts "No Match" if xxx.match(/found/)

That's the easy part, but I actually want to take action if a match isn't found.
While I can do something like:

if xxx.match(/found/)
else
puts "No Match"
end

I was hoping not to do that. Is there a more Ruby like way of doing this? Is
there a 'no match' method I'm overlooking in the docs?

--
Lars Haugseth

That's exactly what I was trying to do. I just didn't put the exclamation point at the proper place. Thanks!

···

On Sep 7, 2012, at 2:43 AM, Lars Haugseth wrote:

Just negate the match condition with an exclamation mark:

if !xxx.match(/found/)
   puts "No match"
end