<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Alexander Nyquist - Latest Comments</title><link>http://alexandernyquist.disqus.com/</link><description></description><atom:link href="https://alexandernyquist.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 10 Feb 2015 15:55:44 -0000</lastBuildDate><item><title>Re: Json.NET / Newtonsoft.Json lowercase keys</title><link>http://nyqui.st/json-net-newtonsoft-json-lowercase-keys#comment-1846333891</link><description>&lt;p&gt;Thanks much! This helped me implement a custom ContractResolver converting snake_case to PascalCase!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Robert Swilley</dc:creator><pubDate>Tue, 10 Feb 2015 15:55:44 -0000</pubDate></item><item><title>Re: WAMP and PHP CLI</title><link>http://nyqui.st/wamp-and-php-cli#comment-1089539854</link><description>&lt;p&gt;Thanks a lot, this helped me&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Shiva Kumar</dc:creator><pubDate>Sun, 20 Oct 2013 06:15:21 -0000</pubDate></item><item><title>Re: Firefox 16 Developer Toolbar &amp;#8211; Screenshot</title><link>http://nyqui.st/firefox-16-developer-toolbar-screenshot#comment-936312896</link><description>&lt;p&gt;Test&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alrx</dc:creator><pubDate>Thu, 20 Jun 2013 05:37:43 -0000</pubDate></item><item><title>Re: Parsing HTML in C#</title><link>http://nyqui.st/parsing-html-in-c#comment-934173002</link><description>&lt;p&gt;Hi Alexander,&lt;/p&gt;&lt;p&gt;Many compliments&lt;br&gt;for the Blog and for the idea that is behind the blog itself.&lt;/p&gt;&lt;p&gt;I am using the&lt;br&gt;Html Agility Pack too and I find it very useful.&lt;/p&gt;&lt;p&gt;I came across&lt;br&gt;something that I would like to ask you:&lt;/p&gt;&lt;p&gt;I have written&lt;br&gt;the following piece of code.&lt;/p&gt;&lt;p&gt;          HtmlDocument doc = new&lt;br&gt;HtmlDocument();&lt;/p&gt;&lt;p&gt;            HtmlDocument doctd;&lt;/p&gt;&lt;p&gt;            HtmlNodeCollection HtmlColltd ;&lt;/p&gt;&lt;p&gt;            doc.LoadHtml(strResult);&lt;/p&gt;&lt;p&gt;            Int y = 0;&lt;/p&gt;&lt;p&gt;            HtmlNode TdNode;&lt;/p&gt;&lt;p&gt;            HtmlNodeCollection HtmlColltr =&lt;br&gt;doc.DocumentNode.SelectNodes("//tr");&lt;/p&gt;&lt;p&gt;            foreach (HtmlNode Html in&lt;br&gt;HtmlColltr)&lt;/p&gt;&lt;p&gt;            {&lt;/p&gt;&lt;p&gt;//workaround&lt;br&gt;begin&lt;/p&gt;&lt;p&gt;                HtmlNode tempnode =&lt;br&gt;HtmlColltr[y];&lt;/p&gt;&lt;p&gt;                doctd = new HtmlDocument();&lt;/p&gt;&lt;p&gt;doctd.LoadHtml(tempnode.InnerHtml);&lt;/p&gt;&lt;p&gt;                HtmlColltd =&lt;br&gt;doctd.DocumentNode.SelectNodes("//td");&lt;/p&gt;&lt;p&gt;//workaround end&lt;/p&gt;&lt;p&gt;                foreach (HtmlNode td in&lt;br&gt;HtmlColltd)&lt;/p&gt;&lt;p&gt;                {&lt;/p&gt;&lt;p&gt;                    //code&lt;/p&gt;&lt;p&gt;                }&lt;/p&gt;&lt;p&gt;            }&lt;/p&gt;&lt;p&gt;And I have&lt;br&gt;written in this (workaround) way and not in the following:&lt;/p&gt;&lt;p&gt;HtmlColltr[y].SelectNodes&lt;/p&gt;&lt;p&gt;Because for me&lt;br&gt;was not working.&lt;/p&gt;&lt;p&gt;Do you think I am&lt;br&gt;doing anything wrong ?&lt;/p&gt;&lt;p&gt;Thank you in&lt;br&gt;advance for the answer.&lt;/p&gt;&lt;p&gt;Regards&lt;/p&gt;&lt;p&gt;Massimiliano&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Massimiliano Caranti</dc:creator><pubDate>Tue, 18 Jun 2013 08:15:47 -0000</pubDate></item><item><title>Re: Parsing HTML in C#</title><link>http://nyqui.st/parsing-html-in-c#comment-792918079</link><description>&lt;p&gt;very good ;)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">tadriano.net</dc:creator><pubDate>Fri, 08 Feb 2013 08:32:07 -0000</pubDate></item><item><title>Re: XPath &amp;#8211; Utilities to get them</title><link>http://nyqui.st/get-xpath-queries-using-firebug-and-chrome-developer-tools#comment-686924518</link><description>&lt;p&gt;What's needed now is&lt;/p&gt;&lt;p&gt;XPath in adblock for chromium&lt;/p&gt;&lt;p&gt;CSS selectors alone is insufficient&lt;/p&gt;&lt;p&gt;XPath allows for RANGE of elements&lt;/p&gt;&lt;p&gt;XPath will allow adblocking no matter what elements are named&lt;/p&gt;&lt;p&gt;death to ads raping user privacy!!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Obamamoney</dc:creator><pubDate>Fri, 19 Oct 2012 05:29:46 -0000</pubDate></item><item><title>Re: Json.NET / Newtonsoft.Json lowercase keys</title><link>http://nyqui.st/json-net-newtonsoft-json-lowercase-keys#comment-497876673</link><description>&lt;p&gt;thanks Alexander, this was a time saver!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sasha Cherkasoff</dc:creator><pubDate>Sat, 14 Apr 2012 20:42:34 -0000</pubDate></item><item><title>Re: Massive data access for MySQL</title><link>http://nyqui.st/massive-data-access-for-mysql#comment-368399472</link><description>&lt;p&gt;Hi Rune.&lt;/p&gt;&lt;p&gt;Probably not, I'm afraid. I have been moving away from Massive to Dapper recently.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexander Nyquist</dc:creator><pubDate>Sat, 19 Nov 2011 14:25:45 -0000</pubDate></item><item><title>Re: Massive data access for MySQL</title><link>http://nyqui.st/massive-data-access-for-mysql#comment-363149976</link><description>&lt;p&gt;Found this out a shortly after my last post - thought I would share...&lt;/p&gt;&lt;p&gt;It seems the provider name is hardcoded as var _providerName = "System.Data.SqlClient"; when it should be var _providerName = "MySql.Data.MySqlClient";&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Murray Nicholas</dc:creator><pubDate>Mon, 14 Nov 2011 17:55:44 -0000</pubDate></item><item><title>Re: Massive data access for MySQL</title><link>http://nyqui.st/massive-data-access-for-mysql#comment-362811818</link><description>&lt;p&gt;Will this be kept up to date with newer versions of Massive?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rune Jacobsen</dc:creator><pubDate>Mon, 14 Nov 2011 09:55:17 -0000</pubDate></item><item><title>Re: Massive data access for MySQL</title><link>http://nyqui.st/massive-data-access-for-mysql#comment-321234770</link><description>&lt;p&gt;Hi Alexn,&lt;/p&gt;&lt;p&gt;I'm giving Massive a try with MySQL after installing via NuGet but I'm running into the following issue&lt;/p&gt;&lt;p&gt;Keyword not supported: 'port'.&lt;/p&gt;&lt;p&gt;Here's the offending code&lt;/p&gt;&lt;p&gt;&amp;lt;add name="testCon" connectionstring="server=127.0.0.1;Port=3306;User Id=root;password=XXXXXX;Persist Security Info=True;database=TruckTracker" providername="MySql.Data.MySqlClient"/&amp;gt;    public class Trucks : DynamicModel    {        public Trucks()            : base("testCon")        {            PrimaryKeyField = "Id";        }    }&lt;br&gt;Did you experience any issues with the port in your connection string?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nicholas Murray</dc:creator><pubDate>Tue, 27 Sep 2011 19:10:08 -0000</pubDate></item><item><title>Re: Google Analytics API in C#</title><link>http://nyqui.st/google-analytics-api-in-csharp#comment-280630510</link><description>&lt;p&gt;Hi Andrey,&lt;/p&gt;&lt;p&gt;I'm sorry, it's not implemented yet. As I mentioned above, i'm not happy with the current API. When I get time, i'll spike out a new one.&lt;/p&gt;&lt;p&gt;Hope this helps,&lt;/p&gt;&lt;p&gt;Alexa&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexander Nyquist</dc:creator><pubDate>Mon, 08 Aug 2011 15:17:55 -0000</pubDate></item><item><title>Re: Google Analytics API in C#</title><link>http://nyqui.st/google-analytics-api-in-csharp#comment-280006817</link><description>&lt;p&gt;Hi, &lt;br&gt;How can I use GetTopTrafficSources?&lt;br&gt;Thanks&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andrey Druz</dc:creator><pubDate>Sun, 07 Aug 2011 19:01:58 -0000</pubDate></item><item><title>Re: Google Analytics API in C#</title><link>http://nyqui.st/google-analytics-api-in-csharp#comment-268970456</link><description>&lt;p&gt;p.s.   Thanks for this.  So far it's the only thing I've seen that actually works.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kevin Pirnie</dc:creator><pubDate>Fri, 29 Jul 2011 16:55:04 -0000</pubDate></item><item><title>Re: Google Analytics API in C#</title><link>http://nyqui.st/google-analytics-api-in-csharp#comment-268970019</link><description>&lt;p&gt;:)&lt;br&gt;Honeslty...I don't like it either ;)  It's in c#  i'm a &lt;a href="http://vb.net" rel="nofollow noopener" target="_blank" title="vb.net"&gt;vb.net&lt;/a&gt; guy LMAO&lt;/p&gt;&lt;p&gt;I got #2 cured.  I added another value to the Enum ElementLevel and added a check for it in GetXmlValue, and added another method:&lt;br&gt;        private string GetXmlTopLevelValue(XDocument doc, string path)&lt;br&gt;        {&lt;br&gt;            if (doc.Root == null) return string.Empty;&lt;/p&gt;&lt;p&gt;            var ns = doc.Root.GetDefaultNamespace();&lt;/p&gt;&lt;p&gt;            var node = doc.Descendants(ns + path);&lt;br&gt;            return node.Any() == false ? string.Empty : doc.Descendants(ns + "entry").Descendants(ns + path).First().Value;&lt;br&gt;        }&lt;/p&gt;&lt;p&gt;#1 is the really the issue now.  thanks man!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kevin Pirnie</dc:creator><pubDate>Fri, 29 Jul 2011 16:54:13 -0000</pubDate></item><item><title>Re: Google Analytics API in C#</title><link>http://nyqui.st/google-analytics-api-in-csharp#comment-268924639</link><description>&lt;p&gt;Kevin,&lt;/p&gt;&lt;p&gt;to be honest, i don't like the syntax and usage of this library anymore. I'm going to improve it and give it some more love. In the meantime, let me try to investigate that and come back to you.&lt;/p&gt;&lt;p&gt;Alex&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexander Nyquist</dc:creator><pubDate>Fri, 29 Jul 2011 15:45:37 -0000</pubDate></item><item><title>Re: Google Analytics API in C#</title><link>http://nyqui.st/google-analytics-api-in-csharp#comment-268899196</link><description>&lt;p&gt;Great work on this.  I wonder if you might be able to help me out though.&lt;/p&gt;&lt;p&gt;I am currently testing it with my google account.  I have 3 sites setup under it, but, when trying to pull GetAccounts, #1 I am getting 3 records returned, but they all are equal to the first record.  #2 I am wondering how hard it would be to put in the &amp;lt;title&amp;gt; node for this...  it would be real handy to be able to supply a drop-down with the profile names...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kevin Pirnie</dc:creator><pubDate>Fri, 29 Jul 2011 15:11:10 -0000</pubDate></item><item><title>Re: Google Analytics API in C#</title><link>http://nyqui.st/google-analytics-api-in-csharp#comment-174815665</link><description>&lt;p&gt;Keep up the good work!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kingen</dc:creator><pubDate>Wed, 30 Mar 2011 09:05:44 -0000</pubDate></item><item><title>Re: Wow, let&amp;#8217;s try again</title><link>http://nyqui.st/hello-world#comment-108702118</link><description>&lt;p&gt;Nice&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Foo</dc:creator><pubDate>Wed, 08 Dec 2010 11:18:48 -0000</pubDate></item></channel></rss>