Ads by TechWords

See your link here
Receive the latest technology news and information.
Computerworld Daily News (First Look and Wrap-Up)
Computerworld Blogs Newsletter
The Weekly Top 10
Cloud Computing
View all newsletters




Privacy Policy
 

STFW, fix Pipes, and repair Mac disks; voila!

November 4, 2009 08:46 PM ET

Network World - The next time someone asks you a question and you know they haven't bothered to do the obvious, to wit, look it up on Google, send them a link to Let Me Google That For You. For example, if someone were to write to me and ask if there's an archive of Gearhead columns, I might reply with "Try this link: http://tinyurl.com/yfg33ty". Voila!

Anyway, last week I was discussing my trials and tribulations attempting to get a list of numbers randomized (exactly why I wanted to do this is too complex to go into).

My solution was to use Yahoo Pipes to grab the random sequence from the service random.org using an HTTP proxy on my own server.

The reason for this labyrinthine methodology was that Pipes, being the good citizen it is, will not access remote content blocked by a robots.txt access control file -- exactly what random.org has. My proxy hasn't got a robots.txt file so when Pipes looks for the robots.txt file it won't see one: Problem solved.

Now here's an interesting thing: When I finally got my pipe working it tested fine. In the development interface I could monitor the RSS feed output and whenever I refreshed the monitor I could see a new sequence being returned. Foolishly I concluded that it was working correctly.

It turns out that Pipes has a caching algorithm that is only used when you request the pipe be run from the Internet; requests made from within the Yahoo Pipes site are always honored. It took me a goodly time to figure this out because, of course, I assumed that the problem lay with everything other than Yahoo Pipes.

Thus, should you externally request the output of a pipe more than once during an unspecified and undocumented time period set by Yahoo, only the result of the first request is returned. There have been quite a few support questions about this raised in both the Pipes forum and other places, but apparently Yahoo doesn't care to explain what's going on.

For all of you (countless thousands I suspect) struggling with this issue, there's a simple solution: When you define the arguments for the pipe's URL, add another argument that the pipe will do nothing with.

For example, let’s name this additional argument "fudge". When you call the pipe, just make the value of this additional argument something such as the time; thus: "fudge=10:33:45".

The format of the value doesn't matter as long you change it for each request. Now, when Yahoo Pipes gets a request for your pipe it will always assume that it is a new request and therefore run the pipe rather than pull the previous results from cache. Voila encore!


Originally published on www.networkworld.com. Click here to read the original story.

Jump to comments

Software

Additional Resources

EFD vs. HDD - What You Need to Know
WHITE PAPER
Enterprise flash drives provide a new Tier 0 storage layer capable of delivering high I/O performance at a very low latency. Proper use of EFDs in an Oracle environment can deliver increased performance compared to fibre channel drives. Read the recommendations for identification of the best DB components for EFDs.
Gartner Research Report: Magic Quadrant for Application Delivery Controllers, 2009
WHITE PAPER
The market for products to improve the delivery of application software over networks remains dynamic and innovative. Vendors focused on solving enterprises' most-pressing application problems have become the top players.
Eight Criteria for Server Load Balancing
WHITE PAPER
Server load balancers are a simple yet highly effective means to scale an application environment while ensuring its availability. Today's solutions should also address application performance and security. Read about the top eight criteria you should consider when choosing a server load balancer and how Citrix NetScaler meets those requirements.

What People Are Saying

Featured Zone
Strategic Content Management
Learn how the right Enterprise Content Management (ECM) solution can start saving you money within a week and pay for itself in as little as three months. These case studies and white papers provide practical information on how to go from theory to reality - to help you put together a plan that will achieve your content management and process automation goals.
Enter the Strategic Content Management Zone now


IT Jobs