07 Oct 2011, 20:25
Generic-user-small

John Tilghman (1 post)

Hey Adam,

If I understand this shortening correctly. This program should take a URL then hash it. And then display as both the hashed version and the original version with the hashed version also in the cut and paste window.

If that is correct, then when I try to run the code, it works. But if I try to click the hashed URL its bombs.

So i looked at the code and decided to rem out this part:

`
=begin
helpers do
  def base_url
    base = "http://#{Sinatra::Application.bind}"
    port = Sinatra::Application.port == 80 ? base : base << ":#{Sinatra::Application.port}"
  end

  def url(path='')
    [base_url, path].join('/')
  end
end
=end
`

And now it works just fine. Strange.
02 Dec 2011, 05:24
Generic-user-small

dannin (2 posts)

Well, I guess you are right. This program is supposed to hash the URL and afterwards display the hashed as well as original version in the cut and paste window. Anyway, I am quite surprised that you solved the issue you were having by remming out the part the above part.I am looking forward for more information about cloud computing, do we have a thread dedicated to it. I didnt find any!

  You must be logged in to comment