# URL Shenanigans (#220)

**URL:** <https://www.ruby-forum.com/t/url-shenanigans-220/175445>\
**Category:** Ruby\
**Created:** [September 14, 2009, 2:59am UTC](https://www.ruby-forum.com/t/url-shenanigans-220/175445 "2009-09-14T02:59:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![danmcb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/13edae/32.png) [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Post date:** [September 14, 2009, 2:59am UTC](https://www.ruby-forum.com/t/url-shenanigans-220/175445/1 "2009-09-14T02:59:06Z")

</div>

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

The three rules of Ruby Q.:

1. Please do not post any solutions or spoiler discussion for this  
quiz until 48 hours have elapsed from the time this message was  
sent.

2. Support Ruby Q. by submitting ideas and responses  
as often as you can!  
Visit: [http://rubyquiz.strd6.com/suggestions](http://rubyquiz.strd6.com/suggestions)

3. Enjoy!

Suggestion: A [QUIZ] in the subject of emails about the problem  
helps everyone on Ruby T. follow the discussion. Please reply to  
the original quiz message, if you can.

RSS Feed: [http://rubyquiz.strd6.com/quizzes.rss](http://rubyquiz.strd6.com/quizzes.rss)

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

## URL Shenanigans (#220)

Wassail Rubyists,

This week’s quiz was submitted by Anonymous.

URL shorteners: love them or hate them, they exist. So why not have  
some fun? The challenge is to use URL shortening services to create  
the longest chain to your favorite web page. Your program should take  
in as parameters the final URL that all the “shorteners” link to, and  
the number of links in the chain. Word to the wise: most services  
refuse “shorten” their own links, so you will probably need to use at  
least two.

Bonus: Create a 1000+ chain of URLs that form a cycle.

Have Fun!

---

<div class="post-metadata">

**Author:** ![danmcb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/13edae/32.png) [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Post date:** [November 1, 2009, 12:00am UTC](https://www.ruby-forum.com/t/url-shenanigans-220/175445/2 "2009-11-01T00:00:48Z")

</div>

There were no solutions for this quiz. The new quizzes are looking  
good though, thanks to reader suggestions:  
[http://rubyquiz.strd6.com/site/suggestions](http://rubyquiz.strd6.com/site/suggestions)
