PageRenderTime 75ms CodeModel.GetById 35ms RepoModel.GetById 1ms app.codeStats 0ms

/src/Amptools/Public/labels/JSON.aspx

https://github.com/pvencill/amptools
ASP.NET | 500 lines | 374 code | 126 blank | 0 comment | 23 complexity | d3f73ea903c9209452923563c0aca304 MD5 | raw file
  1. <%@ Page Title="amptools.net" Language="C#" MasterPageFile="~/App/Views/Layouts/Site.Master" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="System.Web.Mvc.ViewPage" %>
  2. <asp:Content ID="Content2" ContentPlaceHolderID="Head" runat="server">
  3. <link href='/Content/default/css/syntax-highlighter.css' rel="stylesheet" type="text/css" />
  4. <link rel="alternate" type="application/rss+xml" title="amptools.net - RSS" href="http://feeds.feedburner.com/amptoolsnet" />
  5. <link rel="service.post" type="application/atom+xml" title="amptools.net - Atom" href="http://www.blogger.com/feeds/7043853799247804655/posts/default" />
  6. <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.blogger.com/rsd.g?blogID=7043853799247804655" />
  7. <style type="text/css">
  8. @import url("http://www.blogger.com/css/blog_controls.css");
  9. @import url("http://www.blogger.com/dyn-css/authorization.css?targetBlogID=7043853799247804655");
  10. </style>
  11. <script type="text/javascript" src="http://www.blogger.com/js/backlink.js"></script>
  12. <script type="text/javascript" src="http://www.blogger.com/js/backlink_control.js"></script>
  13. <script type="text/javascript">var BL_backlinkURL = "http://www.blogger.com/dyn-js/backlink_count.js";var BL_blogId = "7043853799247804655";</script>
  14. </asp:Content>
  15. <asp:Content ID="Content3" ContentPlaceHolderID="Javascript" runat="server">
  16. <script type="text/javascript" src="~/javascripts/prototype.js"></script>
  17. <script type="text/javascript" src="~/javascripts/syntax-highlighter/shCore.js"></script>
  18. <script type="text/javascript" src="~/javascripts/syntax-highlighter/shBrushCSharp.js"></script>
  19. <script type="text/javascript" src="~/javascripts/syntax-highlighter/shBrushRuby.js"></script>
  20. <script type="text/javascript" src="~/javascripts/syntax-highlighter/shBrushJScript.js"></script>
  21. <script type="text/javascript" src="~/javascripts/syntax-highlighter/shBrushCss.js"></script>
  22. <script type="text/javascript" src="~/javascripts/syntax-highlighter/shBrushSql.js"></script>
  23. <script type="text/javascript" src="~/javascripts/syntax-highlighter/shBrushXml.js"></script>
  24. <script type="text/javascript">
  25. //<[CDATA[
  26. dp.SyntaxHighlighter.HighlightAll('code');
  27. //]]>
  28. </script>
  29. </asp:Content>
  30. <asp:Content ID="Content1" ContentPlaceHolderID="main" runat="server">
  31. <div class="left">
  32. <h2 class="silver">
  33. &quot;Working on the complexity that is always indirectly implied by simpilicity.&quot;
  34. </h2>
  35. <h2 class="blog-title"><a name="458120713693871790"></a>
  36. Amplify&#39;s WCF Twitter API Client Library v0.2
  37. <span class="blog-byline">
  38. by: michael herndon, at: 7/28/2008 12:33:00 AM
  39. </span>
  40. </h2>
  41. <div class="blog-content">
  42. <p>After some playing around with WCF and Flickr, I decided to move everything internally for the twitter library to use WCF with it's <a href="http://msdn.microsoft.com/en-us/library/system.servicemodel.servicecontractattribute.aspx">ServiceContract</a>.&#160; It was more of a pain that initially thought it would be. WCF is amazingly customizable but still has a couple of downfalls thanks to REST and people not writing their API for all technologies.&#160; </p> <p>The biggest issue is that Twitter throws an Http 403 unknown exception when you call a page and something is incorrect in the url.&#160; Well with WCF, it throws a <a href="http://msdn.microsoft.com/en-us/library/system.servicemodel.security.messagesecurityexception.aspx">System.ServiceModel.Security.MessageSecurityException</a>, due to the url returning a status code other than 200, and it wraps the inner exceptions inside of that. </p> <p>I'm sure there is a better way to get around this, but each proxy call is now wrapped by a try/catch in the client class methods in order to check for the <a href="http://msdn.microsoft.com/en-us/library/system.servicemodel.security.messagesecurityexception.aspx">MessageSecurityException</a>, then it checks the inner exception and determines if twitter sent back a response error message. If it does the library now throws a twitter exception with error information, otherwise you would only see the WCF exception that would mask the real issue.&#160; </p> <p>Also I renamed the &quot;Service&quot; classes to &quot;Client&quot; seeing that is the proper term for them.&#160; The tests are now updated as well to reflect the changes.&#160; The tests are a good way of seeing of how to use the library. Last but not least, methods now return arrays instead of lists in order to be more REST friendly. </p> <p></p> <pre class="code csharp">using Amplify.Twitter;
  43. using System.Security;
  44. // ... stuff
  45. public void Test()
  46. {
  47. try {
  48. string temp = &quot;password&quot;;
  49. Twitter.SetCredentials(&quot;Username&quot;, temp);
  50. StatusClient client = Twitter.CreateStatusClient();
  51. // or StatusClient client = new StatusClient(&quot;Username&quot;, temp);
  52. Status[] tweets = service.GetUserTimeline();
  53. } catch (TwitterException ex) {
  54. Log.Write(ex.ToString()); // write the twitter rest error.
  55. }
  56. }</pre> <p class="blogger-labels">Labels: <a rel='tag' href="http://www.amptools.net/labels/Amplify.aspx">Amplify</a>, <a rel='tag' href="http://www.amptools.net/labels/BHAG.aspx">BHAG</a>, <a rel='tag' href="http://www.amptools.net/labels/C#.aspx">C#</a>, <a rel='tag' href="http://www.amptools.net/labels/Code.aspx">Code</a>, <a rel='tag' href="http://www.amptools.net/labels/CSharp.aspx">CSharp</a>, <a rel='tag' href="http://www.amptools.net/labels/JSON.aspx">JSON</a>, <a rel='tag' href="http://www.amptools.net/labels/REST.aspx">REST</a>, <a rel='tag' href="http://www.amptools.net/labels/Twitter.aspx">Twitter</a>, <a rel='tag' href="http://www.amptools.net/labels/WCF.aspx">WCF</a></p>
  57. </div>
  58. <div class="blog-footer">
  59. <a class="comment-link" href="https://www.blogger.com/comment.g?blogID=7043853799247804655&postID=458120713693871790"location.href=https://www.blogger.com/comment.g?blogID=7043853799247804655&postID=458120713693871790;><span style="text-transform:lowercase">2 Comments</span></a>
  60. <a class="comment-link" href="http://www.amptools.net/2008/07/amplify-wcf-twitter-api-client-library.aspx#links"><span style="text-transform:lowercase">Links to this post</span></a>
  61. <span class="item-action"><a href="http://www.blogger.com/email-post.g?blogID=7043853799247804655&postID=458120713693871790" title="Email Post"><img class="icon-action" alt="" src="http://www.blogger.com:80/img/icon18_email.gif" height="13" width="18"/></a></span>
  62. <script type="text/javascript" src="http://w.sharethis.com/widget/?tabs=web%2Cemail&amp;charset=utf-8&amp;services=reddit%2Cdigg%2Cfacebook%2Cmyspace%2Cdelicious%2Cstumbleupon%2Ctechnorati%2Cpropeller%2Cblinklist%2Cmixx%2Cnewsvine%2Cgoogle_bmarks%2Cyahoo_myweb%2Cwindows_live%2Cfurl&amp;style=rotate&amp;publisher=baa2824f-9291-46c0-87b4-6d5a72508a05&amp;headerbg=%23dddddd&amp;inactivebg=%231bb601&amp;inactivefg=%2370eb00%09&amp;linkfg=%231bb601"></script>
  63. </div>
  64. <h2 class="blog-title"><a name="8164722880411458481"></a>
  65. Using WCF to access the Flickr JSON API
  66. <span class="blog-byline">
  67. by: michael herndon, at: 7/17/2008 06:40:00 AM
  68. </span>
  69. </h2>
  70. <div class="blog-content">
  71. <p>Even though there are quite a few opensource .Net libraries REST API out there, and a really impressive one for Flickr, they tend to never evolve or fork to use the newer framework technologies.&#160; I think its great that they support 1.0, 2.0, and mono, but why not fork and support WCF?&#160; I think part of the problem that .Net 3.5 use is not wide spread as it should be is not only information overload and bad naming for extension libraries, but also lack of opensource support to provide libraries and basis for current technology.&#160; </p> <p>Flickr tends to be a little more tricky to use when calling it than some other REST APIs. WCF is a cool technology, but needs to be massaged when using it with Flickr due to a couple of gotchas and not so obvious things about WCF. In order to use Flickr, you need to register for an api_key and a shared secret code which is used to create an MD5 hash. You also need to create that MD5 each time you call a method, using the url parameters in a certain way. </p> <p>There are also a few not so obvious factors about using the JSON part of Flickr. All of the .Net libraries I've seen so far, use XML. While C# is king of parsing&#160; XML, JSON tends to be more compact, which means less expense over the wire, though it might mean more time parsing once on the developers end point. So there are tradeoffs to using it. </p> <p>When I created the classes needed to use WCF to call Flickr, I have the actual &quot;DataContract&quot; object (DTO, Data Transfer Object), A Hash (Dictionary&lt;string, object&gt;) for adding the parameters to create the MD5 signature, A base class for creating the WCF proxy, a custom &quot;WebContentTypeMapper&quot;, The &quot;ServiceContract&quot; interface, the actual &quot;Client class&quot;, and a mixins class for creating the MD5. </p> <p>Here are some of the gotchas that I ran into while getting WCF to work with Flickr. </p> <p></p> <ol> <li>Flickr makes you create a md5 hash to send with every call for ALL parameters in alphabetical order using your &quot;Shared Secret&quot; Code as part of the md5.&#160;&#160; </li> <li>Flickr's Json response &quot;Content-Type&quot; header is sent not as &quot;application/json&quot; but as &quot;text/plain&quot; which equates to &quot;Raw&quot; in WCF lingo.&#160; </li> <li>The response object is wrapped and not obvious when it comes to json how the DataContract object should be formed.&#160; </li> <li>Flickr will wrap the json response in a javascript function unless you pass in the parameter &quot;nojsoncallback=1&quot; </li> </ol> <p>To get around number one, I created an extension method that takes a Hash (Dictionary&lt;string, object&gt;) and adds method that converts the parameters into a MD5 string. </p> <pre class="code csharp">namespace Amplify.Linq
  72. {
  73. using System;
  74. using System.Collections.Generic;
  75. using System.Linq;
  76. using System.Text;
  77. #if STANDALONE
  78. public class Hash : Dictionary&lt;string, object&gt;
  79. {
  80. }
  81. #endif
  82. }
  83. // different file
  84. namespace Amplify.Linq
  85. {
  86. using System;
  87. using System.Collections.Generic;
  88. using System.Linq;
  89. using System.Security.Cryptography;
  90. using System.Text;
  91. using Amplify.Linq;
  92. public static class Mixins
  93. {
  94. public static string ToMD5(this Hash obj, string secret)
  95. {
  96. var query = from item in obj
  97. orderby item.Key ascending
  98. select item.Key + item.Value.ToString();
  99. StringBuilder builder = new StringBuilder(secret, 2048);
  100. foreach (string item in query)
  101. builder.Append(item);
  102. MD5CryptoServiceProvider crypto = new MD5CryptoServiceProvider();
  103. byte[] bytes = Encoding.UTF8.GetBytes(builder.ToString());
  104. byte[] hashedBytes = crypto.ComputeHash(bytes, 0, bytes.Length);
  105. return BitConverter.ToString(hashedBytes).Replace(&quot;-&quot;, &quot;&quot;).ToLower();
  106. }
  107. }
  108. }</pre>
  109. <p>Well Gotcha number two, took a bit of research to figure it out. The error I got was that it was looking for Json or XML but could not do anything with &quot;Raw&quot;. So the solution is to create a custom binding with a custom WebContentTypeManager. </p>
  110. <pre class="code csharp">namespace Amplify.Flickr
  111. {
  112. using System.ServiceModel;
  113. using System.ServiceModel.Channels;
  114. using System.Runtime.Serialization;
  115. using System.ServiceModel.Web;
  116. public class JsonContentMapper : WebContentTypeMapper
  117. {
  118. public override WebContentFormat GetMessageFormatForContentType(string contentType)
  119. {
  120. return WebContentFormat.Json;
  121. }
  122. }
  123. }
  124. // different file
  125. namespace Amplify.Flickr
  126. {
  127. using System;
  128. using System.Collections.Generic;
  129. using System.Linq;
  130. using System.Text;
  131. using System.ServiceModel;
  132. using System.ServiceModel.Channels;
  133. using System.ServiceModel.Description;
  134. using System.ServiceModel.Web;
  135. using Amplify.Linq;
  136. public class FlickrClient&lt;T&gt;
  137. {
  138. protected string Secret { get; set; }
  139. protected string Key { get; set; }
  140. protected string Token { get; set; }
  141. protected string Url { get; set; }
  142. protected T Proxy { get; set; }
  143. public FlickrClient(string key, string secret)
  144. {
  145. this.Key = key;
  146. this.Secret = secret;
  147. this.Url = &quot;http://api.flickr.com/services/rest&quot;;
  148. this.Proxy = this.InitializeProxy();
  149. }
  150. public FlickrClient(string key, string secret, string token)
  151. :this(key, secret)
  152. {
  153. this.Token = token;
  154. }
  155. protected virtual T InitializeProxy()
  156. {
  157. // using custom wrapper
  158. CustomBinding binding = new CustomBinding(new WebHttpBinding());
  159. WebMessageEncodingBindingElement property = binding.Elements.Find&lt;WebMessageEncodingBindingElement&gt;();
  160. property.ContentTypeMapper = new JsonContentMapper();
  161. ChannelFactory&lt;T&gt; channel = new ChannelFactory&lt;T&gt;(
  162. binding, this.Url);
  163. channel.Endpoint.Behaviors.Add( new WebHttpBehavior());
  164. return channel.CreateChannel();
  165. }
  166. }
  167. }</pre>
  168. <p>The 3rd issue, to know that all objects are wrapped in a &quot;Response&quot; object. To create a DataContract for the getFrob method on flickr, it took looking at the json to see what it was returning. The object below is the basic form of the Json object that is returned, it also includes the properties in case an error object is returned. </p>
  169. <pre class="code csharp"> using System;
  170. using System.Collections.Generic;
  171. using System.Linq;
  172. using System.Text;
  173. using System.Runtime.Serialization;
  174. [DataContract]
  175. public class FrobResponse
  176. {
  177. [DataMember(Name = &quot;frob&quot;)]
  178. public JsonObject Frob { get; set; }
  179. [DataContract(Name = &quot;frob&quot;)]
  180. public class JsonObject
  181. {
  182. [DataMember(Name = &quot;_content&quot;)]
  183. public string Content { get; set; }
  184. }
  185. [DataMember(Name = &quot;stat&quot;)]
  186. public string Status { get; set; }
  187. [DataMember(Name = &quot;code&quot;)]
  188. public int Code { get; set; }
  189. [DataMember(Name = &quot;message&quot;)]
  190. public string Message { get; set; }
  191. }
  192. // different file
  193. using System;
  194. using System.Collections.Generic;
  195. using System.Linq;
  196. using System.Text;
  197. using System.ServiceModel;
  198. using System.ServiceModel.Web;
  199. [ServiceContract]
  200. public interface IAuthClient
  201. {
  202. [OperationContract,
  203. WebInvoke(
  204. UriTemplate = &quot;/?method=flickr.auth.getFrob&amp;format=json&amp;nojsoncallback=1&amp;api_key={key}&amp;api_sig={signature}&quot;,
  205. ResponseFormat = WebMessageFormat.Json,
  206. BodyStyle = WebMessageBodyStyle.Bare)]
  207. FrobResponse GetFrob(string signature, string key);
  208. [OperationContract,
  209. WebInvoke(
  210. UriTemplate = &quot;/?method=flickr.auth.getToken&amp;format=json&amp;nojsoncallback=1&amp;api_key={key}&amp;frob={frob}&amp;api_sig={signature}&quot;,
  211. ResponseFormat = WebMessageFormat.Json,
  212. BodyStyle = WebMessageBodyStyle.WrappedResponse)]
  213. Auth GetToken(string signature, string key, string frob);
  214. }
  215. // the actual client class.
  216. using System;
  217. using System.Collections.Generic;
  218. using System.Linq;
  219. using System.Text;
  220. using Amplify.Linq;
  221. public class AuthClient : FlickrClient&lt;IAuthClient&gt;
  222. {
  223. public AuthClient(string key, string secret)
  224. :base(key, secret)
  225. { }
  226. public AuthClient(string key, string secret, string token)
  227. :base(key, secret, token)
  228. { }
  229. public string GetFrob()
  230. {
  231. string md5 = new Hash() {
  232. {&quot;api_key&quot;, this.Key},
  233. {&quot;format&quot;, &quot;json&quot;},
  234. {&quot;method&quot;, &quot;flickr.auth.getFrob&quot;},
  235. {&quot;nojsoncallback&quot;, 1}
  236. }.ToMD5(this.Secret);
  237. FrobResponse response = this.Proxy.GetFrob(md5, this.Key);
  238. if (response.Code &gt; 0)
  239. throw new Exception(response.Message);
  240. return response.Frob.Content;
  241. }
  242. }</pre> <p class="blogger-labels">Labels: <a rel='tag' href="http://www.amptools.net/labels/Amplify.aspx">Amplify</a>, <a rel='tag' href="http://www.amptools.net/labels/C#.aspx">C#</a>, <a rel='tag' href="http://www.amptools.net/labels/Code.aspx">Code</a>, <a rel='tag' href="http://www.amptools.net/labels/CSharp.aspx">CSharp</a>, <a rel='tag' href="http://www.amptools.net/labels/Flickr.aspx">Flickr</a>, <a rel='tag' href="http://www.amptools.net/labels/JSON.aspx">JSON</a>, <a rel='tag' href="http://www.amptools.net/labels/REST.aspx">REST</a>, <a rel='tag' href="http://www.amptools.net/labels/WCF.aspx">WCF</a></p>
  243. </div>
  244. <div class="blog-footer">
  245. <a class="comment-link" href="https://www.blogger.com/comment.g?blogID=7043853799247804655&postID=8164722880411458481"location.href=https://www.blogger.com/comment.g?blogID=7043853799247804655&postID=8164722880411458481;><span style="text-transform:lowercase">0 Comments</span></a>
  246. <a class="comment-link" href="http://www.amptools.net/2008/07/using-wcf-to-access-flickr-json-api.aspx#links"><span style="text-transform:lowercase">Links to this post</span></a>
  247. <span class="item-action"><a href="http://www.blogger.com/email-post.g?blogID=7043853799247804655&postID=8164722880411458481" title="Email Post"><img class="icon-action" alt="" src="http://www.blogger.com:80/img/icon18_email.gif" height="13" width="18"/></a></span>
  248. <script type="text/javascript" src="http://w.sharethis.com/widget/?tabs=web%2Cemail&amp;charset=utf-8&amp;services=reddit%2Cdigg%2Cfacebook%2Cmyspace%2Cdelicious%2Cstumbleupon%2Ctechnorati%2Cpropeller%2Cblinklist%2Cmixx%2Cnewsvine%2Cgoogle_bmarks%2Cyahoo_myweb%2Cwindows_live%2Cfurl&amp;style=rotate&amp;publisher=baa2824f-9291-46c0-87b4-6d5a72508a05&amp;headerbg=%23dddddd&amp;inactivebg=%231bb601&amp;inactivefg=%2370eb00%09&amp;linkfg=%231bb601"></script>
  249. </div>
  250. <h2 class="blog-title"><a name="3907268195622759157"></a>
  251. Amplify&#39;s TwitterN, Yet Another C# Twitter REST API Library
  252. <span class="blog-byline">
  253. by: michael herndon, at: 7/13/2008 03:08:00 PM
  254. </span>
  255. </h2>
  256. <div class="blog-content">
  257. <p><a href="http://code.google.com/p/twittern">http://code.google.com/p/twittern</a></p> <p>I put together a C# twitter library that uses WCF's <a href="http://msdn.microsoft.com/en-us/library/system.runtime.serialization.datacontractattribute.aspx">DataContract</a> &amp; <a href="http://msdn.microsoft.com/en-us/library/system.runtime.serialization.datamemberattribute.aspx">DataMembers</a> and .Net 3.5's <a href="http://msdn.microsoft.com/en-us/library/system.runtime.serialization.json.datacontractjsonserializer.aspx">DataContractJsonSerializer</a>.&#160; Its currently in alpha stage, as I need to finish writing the tests, documentation and make a simple WPF client for twitter.&#160; I needed a twitter library for a personal &quot;secret&quot; project of mine and found that most twitter libraries do not keep up with the twitter API and break when using them. Plus they tend to go to great lengths when parsing the xml.&#160; Unfortunately I do not know if this will work on mono yet. It seems that they have &quot;<a href="http://www.mono-project.com/WCF">Olive</a>&quot;, which is mono's version of WCF and I've seen where they have a path for the &quot;DataContractJsonSerializer&quot;.&#160; If there are any one familiar enough with mono, please by all means use the code, join the project.&#160; </p> <p>One design decision that I made was to use Json rather than xml as its more compact and less data to transfer.&#160; I used WCF because with DataContract &amp; DataMembers you can parse Json and you can name your properties the property way with Pascal Case properties and then tell wcf what attributes of json they represent. This way you don't have properties that look like ruby like &quot;screen_name&quot; or&#160; &quot;profile_sidebar_border_color&quot; in your <a href="http://martinfowler.com/eaaCatalog/dataTransferObject.html">Data Transfer Object</a> in order to deserialize the Json response from twitter. </p> <p>&#160;</p> <p>A basic sample of how to use the library is below. </p> <pre class="code csharp">
  258. using Amplify.Twitter;
  259. using System.Security;
  260. // ... stuff
  261. public void Test()
  262. {
  263. SecureString password = new SecureString();
  264. string temp = "password";
  265. for (var i = 0; i &lt; temp.Length; i++)
  266. password.AppendChar(temp[i]);
  267. password.MakeReadOnly();
  268. Twitter.SetCredentials("Username", password);
  269. StatusService service = Twitter.CreateStatusService();
  270. // or StatusService service = new StatusService("Username", password);
  271. List&lt;Status&gt; tweets = service.GetUserTimeline("MichaelHerndon");
  272. }
  273. </pre> <p class="blogger-labels">Labels: <a rel='tag' href="http://www.amptools.net/labels/Amplify.aspx">Amplify</a>, <a rel='tag' href="http://www.amptools.net/labels/C#.aspx">C#</a>, <a rel='tag' href="http://www.amptools.net/labels/CSharp.aspx">CSharp</a>, <a rel='tag' href="http://www.amptools.net/labels/DataContractJsonSerializer.aspx">DataContractJsonSerializer</a>, <a rel='tag' href="http://www.amptools.net/labels/JSON.aspx">JSON</a>, <a rel='tag' href="http://www.amptools.net/labels/REST.aspx">REST</a>, <a rel='tag' href="http://www.amptools.net/labels/Twitter.aspx">Twitter</a>, <a rel='tag' href="http://www.amptools.net/labels/WCF.aspx">WCF</a></p>
  274. </div>
  275. <div class="blog-footer">
  276. <a class="comment-link" href="https://www.blogger.com/comment.g?blogID=7043853799247804655&postID=3907268195622759157"location.href=https://www.blogger.com/comment.g?blogID=7043853799247804655&postID=3907268195622759157;><span style="text-transform:lowercase">3 Comments</span></a>
  277. <a class="comment-link" href="http://www.amptools.net/2008/07/amplify-twittern-yet-another-c-twitter.aspx#links"><span style="text-transform:lowercase">Links to this post</span></a>
  278. <span class="item-action"><a href="http://www.blogger.com/email-post.g?blogID=7043853799247804655&postID=3907268195622759157" title="Email Post"><img class="icon-action" alt="" src="http://www.blogger.com:80/img/icon18_email.gif" height="13" width="18"/></a></span>
  279. <script type="text/javascript" src="http://w.sharethis.com/widget/?tabs=web%2Cemail&amp;charset=utf-8&amp;services=reddit%2Cdigg%2Cfacebook%2Cmyspace%2Cdelicious%2Cstumbleupon%2Ctechnorati%2Cpropeller%2Cblinklist%2Cmixx%2Cnewsvine%2Cgoogle_bmarks%2Cyahoo_myweb%2Cwindows_live%2Cfurl&amp;style=rotate&amp;publisher=baa2824f-9291-46c0-87b4-6d5a72508a05&amp;headerbg=%23dddddd&amp;inactivebg=%231bb601&amp;inactivefg=%2370eb00%09&amp;linkfg=%231bb601"></script>
  280. </div>
  281. </div>
  282. <div class="right">
  283. <h3>
  284. Connect
  285. </h3>
  286. <ul>
  287. <li>
  288. <a href="http://www.twitter.com/michaelherndon">
  289. <img src="/content/images/twitter-badge.png" alt="Twitter badge" />
  290. </a>
  291. </li>
  292. <li>
  293. <a href="http://www.facebook.com/profile.php?id=824905532">
  294. <img src="/content/images/facebook-badge.png" alt="Facebook badge" />
  295. </a>
  296. </li>
  297. <li>
  298. <a href="skype:michaelherndon?add">
  299. <img src="http://download.skype.com/share/skypebuttons/buttons/add_green_transparent_118x23.png" alt="Add me to Skype" />
  300. </a>
  301. </li>
  302. </ul>
  303. <h3>
  304. <a href="http://feeds.feedburner.com/amptoolsnet" rel="alternate" type="application/rss+xml">
  305. Subscribe in a reader <img src="http://www.feedburner.com/fb/images/pub/feed-icon32x32.png" style="vertical-align:middle" alt="" />
  306. </a>
  307. </h3>
  308. <ul>
  309. <li>
  310. </li>
  311. <li>
  312. <a href="http://feeds.feedburner.com/amptoolsnet">
  313. <img src="http://feeds.feedburner.com/~fc/amptoolsnet?bg=990066&amp;fg=CCCCCC&amp;anim=0" alt="" />
  314. </a>
  315. </li>
  316. <li>
  317. <a href="http://add.my.yahoo.com/rss?url=http://feeds.feedburner.com/amptoolsnet" title="amptools.net">
  318. <img src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif" alt="" />
  319. </a>
  320. </li>
  321. <li>
  322. <a href="http://fusion.google.com/add?feedurl=http://feeds.feedburner.com/amptoolsnet">
  323. <img src="http://buttons.googlesyndication.com/fusion/add.gif" alt="Add to Google Reader or Homepage"/>
  324. </a>
  325. </li>
  326. <li>
  327. <a href="http://www.pageflakes.com/subscribe.aspx?url=http://feeds.feedburner.com/amptoolsnet" title="Add to Pageflakes">
  328. <img src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif" alt="Add to Pageflakes"/>
  329. </a>
  330. </li>
  331. <li>
  332. <a href="http://www.bloglines.com/sub/http://feeds.feedburner.com/amptoolsnet" title="amptools.net" type="application/rss+xml">
  333. <img src="http://www.bloglines.com/images/sub_modern11.gif" alt="Subscribe in Bloglines" />
  334. </a>
  335. </li>
  336. <li>
  337. <a href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http://feeds.feedburner.com/amptoolsnet" title="amptools.net">
  338. <img src="http://www.newsgator.com/images/ngsub1.gif" alt="Subscribe in NewsGator Online" />
  339. </a>
  340. </li>
  341. </ul>
  342. <h3 class="sidebar-title">
  343. Previous Posts
  344. </h3>
  345. <ul id="recently">
  346. <li><a href="http://www.amptools.net/2008/11/simple-log-in-amplify.aspx">Simple Log in Amplify </a></li>
  347. <li><a href="http://www.amptools.net/2008/10/gallio-and-mb-unit-release-v304.aspx">Gallio and Mb-Unit release v3.0.4</a></li>
  348. <li><a href="http://www.amptools.net/2008/10/moving-amplify-to-git-hub.aspx">Moving Amplify To Git Hub...</a></li>
  349. <li><a href="http://www.amptools.net/2008/08/getting-datadirectory-folder-in-c-sharp.aspx">Getting the |DataDirectory| folder in C sharp</a></li>
  350. <li><a href="http://www.amptools.net/2008/08/ampliy-fusion-javascript-libraries.aspx">Amplify-Fusion, JavaScript libraries compatibility...</a></li>
  351. <li><a href="http://www.amptools.net/2008/07/amplify-wcf-twitter-api-client-library.aspx">Amplify&#39;s WCF Twitter API Client Library v0.2</a></li>
  352. <li><a href="http://www.amptools.net/2008/07/use-c-to-determine-where-and-what.aspx">Use C# to determine where and what version of java...</a></li>
  353. <li><a href="http://www.amptools.net/2008/07/using-wcf-to-access-flickr-json-api.aspx">Using WCF to access the Flickr JSON API</a></li>
  354. <li><a href="http://www.amptools.net/2008/07/sample-mixins-for-httprequestbase-to.aspx">Sample Mixins for HttpRequestBase to use with Asp....</a></li>
  355. <li><a href="http://www.amptools.net/2008/07/amplify-twittern-yet-another-c-twitter.aspx">Amplify&#39;s TwitterN, Yet Another C# Twitter REST AP...</a></li>
  356. </ul>
  357. <h3 class="sidebar-title">
  358. Archives
  359. </h3>
  360. <ul class="archive-list">
  361. <li><a href="http://www.amptools.net/blogs/michaelherndon/archives/2008_03_30_index.aspx">03.30.2008</a></li>
  362. <li><a href="http://www.amptools.net/blogs/michaelherndon/archives/2008_04_06_index.aspx">04.06.2008</a></li>
  363. <li><a href="http://www.amptools.net/blogs/michaelherndon/archives/2008_06_08_index.aspx">06.08.2008</a></li>
  364. <li><a href="http://www.amptools.net/blogs/michaelherndon/archives/2008_07_06_index.aspx">07.06.2008</a></li>
  365. <li><a href="http://www.amptools.net/blogs/michaelherndon/archives/2008_07_13_index.aspx">07.13.2008</a></li>
  366. <li><a href="http://www.amptools.net/blogs/michaelherndon/archives/2008_07_20_index.aspx">07.20.2008</a></li>
  367. <li><a href="http://www.amptools.net/blogs/michaelherndon/archives/2008_07_27_index.aspx">07.27.2008</a></li>
  368. <li><a href="http://www.amptools.net/blogs/michaelherndon/archives/2008_08_03_index.aspx">08.03.2008</a></li>
  369. <li><a href="http://www.amptools.net/blogs/michaelherndon/archives/2008_08_10_index.aspx">08.10.2008</a></li>
  370. <li><a href="http://www.amptools.net/blogs/michaelherndon/archives/2008_10_26_index.aspx">10.26.2008</a></li>
  371. <li><a href="http://www.amptools.net/blogs/michaelherndon/archives/2008_11_02_index.aspx">11.02.2008</a></li>
  372. </ul>
  373. </div>
  374. </asp:Content>