<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Disqus - Latest Comments for nageshs</title><link>http://disqus.com/by/nageshs/</link><description></description><atom:link href="http://disqus.com/nageshs/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 06 Oct 2010 02:16:30 -0000</lastBuildDate><item><title>Re: Keeping secrets safe with YQL Storage</title><link>http://nagiworld.net/2010/03/keeping-secrets-safe-with-yql-storage#comment-84528982</link><description>&lt;p&gt;Hi Tim,&lt;br&gt;&lt;br&gt;That's indeed a very good question. Query aliases are only shortcuts. Besides that they do not prevent the user from seeing the actual URLs that you used in your query. The user of the alias can add a '&amp;amp;diagnostics=true' and see the entire URL that was used to make the call to the webservice. &lt;br&gt;&lt;br&gt;Let me take the following example:&lt;br&gt;&lt;br&gt;If I declared a query alias, such as &lt;a href="http://query.yahooapis.com/v1/public/yql/nagesh/test2?foo=topstories" rel="nofollow noopener" target="_blank" title="http://query.yahooapis.com/v1/public/yql/nagesh/test2?foo=topstories"&gt;http://query.yahooapis.com/v1/public/yql/nagesh/test2?foo=topstories&lt;/a&gt; which takes in a query parameter named 'foo' and the rest of the URL is hardcoded in my alias, I can simply append &amp;amp;diagnostics=true to see the following which gives away the URL that I used in this case.&lt;br&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;url execution-time="10" &amp;gt;&lt;a href="http://rss.news.yahoo.com/rss/topstories&lt;/url&gt;" rel="nofollow noopener" target="_blank" title="http://rss.news.yahoo.com/rss/topstories&lt;/url&gt;"&gt;http://rss.news.yahoo.com/r...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;br&gt;Using stored secrets going one step ahead by obsuring all URLs that appear in the diagnostics to look something like http://domain... thus ensuring that any secret gives are not divulged to the user.&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nagesh Susarla</dc:creator><pubDate>Wed, 06 Oct 2010 02:16:30 -0000</pubDate></item><item><title>Re: Keeping secrets safe with YQL Storage</title><link>http://nagiworld.net/2010/03/keeping-secrets-safe-with-yql-storage#comment-84363118</link><description>&lt;p&gt;Hi Tim,&lt;/p&gt;&lt;p&gt;One way to accomplish this is by using the uritemplate table which lets you create arbitrary URLs from templates like the one you mention.&lt;/p&gt;&lt;p&gt;example:&lt;/p&gt;&lt;p&gt;select url from uritemplate where template='&lt;a href="http://bungie.net/videos/" rel="nofollow noopener" target="_blank" title="http://bungie.net/videos/"&gt;http://bungie.net/videos/&lt;/a&gt;{BungieAPIKey}/{user}/{page}' and BungieAPIKey='key' and user='foo' and page='bar'&lt;/p&gt;&lt;p&gt;Once you have the URL you can use the JSON table to curl the URL&lt;/p&gt;&lt;p&gt;select * from json where url in (select url from uritemplate where template='&lt;a href="http://bungie.net/videos/" rel="nofollow noopener" target="_blank" title="http://bungie.net/videos/"&gt;http://bungie.net/videos/&lt;/a&gt;{BungieAPIKey}/{user}/{page}' and BungieAPIKey='key' and user='foo' and page='bar')&lt;/p&gt;&lt;p&gt;Now once you have this working, lets look at what needs to be done to make the API key a secret. To do that you could have to create a store table entry which contains the following&lt;/p&gt;&lt;p&gt;"SET BungieAPIKey='secret' on uritemplate;"&lt;/p&gt;&lt;p&gt;Insert this into the &lt;a href="http://yql.storage" rel="nofollow noopener" target="_blank" title="yql.storage"&gt;yql.storage&lt;/a&gt; as described in the docs or the link and use the execute key that is returned to run your query.&lt;/p&gt;&lt;p&gt;&lt;a href="http://developer.yahoo.com/yql/console?env=YOUR_STORE_ENTRY" rel="nofollow noopener" target="_blank" title="http://developer.yahoo.com/yql/console?env=YOUR_STORE_ENTRY"&gt;http://developer.yahoo.com/...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;The query doesn't need the api key anymore so you can run&lt;/p&gt;&lt;p&gt; select * from json where url in (select url from uritemplate where template='&lt;a href="http://bungie.net/videos/" rel="nofollow noopener" target="_blank" title="http://bungie.net/videos/"&gt;http://bungie.net/videos/&lt;/a&gt;{BungieAPIKey}/{user}/{page}'  and user='foo' and page='bar')&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nagesh Susarla</dc:creator><pubDate>Tue, 05 Oct 2010 14:35:15 -0000</pubDate></item><item><title>Re: Maven artifacts need to be more discoverable</title><link>http://www.javarants.com/2010/05/16/maven-artifacts-need-to-be-self-discoverable/#comment-50658495</link><description>&lt;p&gt;I love this idea! It certainly solves the resolution problem implicitly when you point to a URL. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nagesh Susarla</dc:creator><pubDate>Sun, 16 May 2010 23:31:25 -0000</pubDate></item><item><title>Re: Sometimes 140 characters isn't enough - Twnote</title><link>http://www.choip.me/note/agl0d25vdGVhcHByDAsSBlR3bm90ZRg0DA/#comment-38115604</link><description>&lt;p&gt;trying out &lt;a href="http://choip.me" rel="nofollow noopener" target="_blank" title="choip.me"&gt;choip.me&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nagesh Susarla</dc:creator><pubDate>Fri, 05 Mar 2010 01:01:58 -0000</pubDate></item><item><title>Re: Happy Birthday Retweet Rank!</title><link>http://www.saurabhsahni.com/2009/12/happy-birthday-retweet-rank/#comment-29699217</link><description>&lt;p&gt;Congrats Saurabh!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nagesh Susarla</dc:creator><pubDate>Wed, 13 Jan 2010 19:37:09 -0000</pubDate></item><item><title>Re: OAuth-ify this: 2 Legged OAuth service for YQL</title><link>http://nagiworld.net/2008/11/oauth-ify-this-2-legged-oauth-service-for-yql#comment-7451652</link><description>&lt;p&gt;Hi Miki,&lt;/p&gt;&lt;p&gt;You can use the oauth code up at &lt;a href="http://oauth.googlecode.com/svn/code/java/" rel="nofollow noopener" target="_blank" title="http://oauth.googlecode.com/svn/code/java/"&gt;http://oauth.googlecode.com...&lt;/a&gt; to perform the 3 legged OAuth. &lt;br&gt;For Yahoo services we do intend to publish a java SDK which is customized to perform 3 legged OAuth and mirror the features in our PHP SFK. Stay tuned for that. Let me know if that answers your question.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nagesh Susarla</dc:creator><pubDate>Mon, 23 Mar 2009 16:39:01 -0000</pubDate></item><item><title>Re: YQL Social Queries (FAQ)</title><link>http://nagiworld.net/2008/12/yql-social-queries-faq#comment-7386421</link><description>&lt;p&gt;Without Authorization (OAuth) it is not possible to access the social.profile table and hence the guid.  &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nagesh Susarla</dc:creator><pubDate>Fri, 20 Mar 2009 19:23:26 -0000</pubDate></item></channel></rss>