<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>My Blog - Latest Comments</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#forumcomments-4bcc9141" type="application/json"/><link>http://seanb.disqus.com/</link><description></description><atom:link href="http://seanb.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 16 May 2013 14:55:12 -0000</lastBuildDate><item><title>Re: Entity Validation Ideation</title><link>http://lostechies.com/seanbiefeld/2009/02/15/entity-validation-ideation/#comment-899583481</link><description>&lt;p&gt;There are different flavors of validations.  We have garbage validations (ensure we don't allow bad data into a field) and relational validations (ensure a proper multi-model construct where things are properly related in a graph) and business rule validations (ensure we're doing what makes business sense).  Consider during a user session a user will have this interim state where he's building up the transaction data.    During the entire interaction as he moves from start to finish, we are at many times in a broken state violating rules on these three levels.  &lt;/p&gt;

&lt;p&gt;Over what construct are you proposing your proactive validations be run?  Are they being run over the controls or over some data model that is built up behind the controls?&lt;/p&gt;

&lt;p&gt;In a CRM, we have customer records, contact records (emails, phone numbers), address records, and purchase order records which themselves have line item records.  Our business rules state: we never create a customer record until we have their first order and a customer must have at least one point of contact and one address.  For a customer service rep to take a sales call, he has to build up that first transaction.  From a human standpoint there is no way he can enter all these parts simultaneously, so he has to build up that transaction into an acceptable state.  That build up must occur somewhere.  Where? I'm assuming a data model.  I'm assuming we run our validations over that "working" data model before we persist it.&lt;/p&gt;

&lt;p&gt;However, remember that during the build up of the transaction we have partial data that is not ready for a commit.  In my mind that working data model is the source from which we persist.  Are you recommending that we have a clean model that is never in an interim, broken state and a separate working model that may be?  And if so, won't reconciling those two representations pose a huge synchronization mess?  I need a little help in realizing the semantics of how one might implement proactive validations.  I have always allowed the working model (the one being built up in the session) to exist in a broken state.  I just required that the state be fixed before a commit.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mario T. Lanza</dc:creator><pubDate>Thu, 16 May 2013 14:55:12 -0000</pubDate></item><item><title>Re: Simple Async HTTP Module for Appcelerator</title><link>http://lostechies.com/seanbiefeld/2011/11/17/simple-async-http-module-for-appcelerator/#comment-892418449</link><description>&lt;p&gt;perfect! i was able to create an http module for my Alloy project. thx.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Stelly</dc:creator><pubDate>Fri, 10 May 2013 13:33:19 -0000</pubDate></item><item><title>Re: Simple XML to JSON with PHP</title><link>http://lostechies.com/seanbiefeld/2011/10/21/simple-xml-to-json-with-php/#comment-884173967</link><description>&lt;p&gt;this post is pretty decent.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David</dc:creator><pubDate>Sat, 04 May 2013 10:53:41 -0000</pubDate></item><item><title>Re: Simple XML to JSON with PHP</title><link>http://lostechies.com/seanbiefeld/2011/10/21/simple-xml-to-json-with-php/#comment-836246994</link><description>&lt;p&gt;" the web doesn't need more know-it-alls like you"&lt;br&gt;Indeed, its already filled with dont-know-anythings like you and the aforementioned type doesnt help, either. The web will need experts and people who dont buggy / shitty code without understanding the mechanic behind it. It is non-trivial to convert something so fundamentally different like XML and JSON.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Name</dc:creator><pubDate>Wed, 20 Mar 2013 14:43:35 -0000</pubDate></item><item><title>Re: Simple Async HTTP Module for Appcelerator</title><link>http://lostechies.com/seanbiefeld/2011/11/17/simple-async-http-module-for-appcelerator/#comment-825236320</link><description>&lt;p&gt;hi, i have a problem when data retrieves is a XML document :S in&lt;br&gt; the success : function (response) {   section i cant see the response data when i apply JSON.parse, if i dont apply this, the response data come in text format :S &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ludico8</dc:creator><pubDate>Sun, 10 Mar 2013 23:58:52 -0000</pubDate></item><item><title>Re: Making c# lambda expressions more readable</title><link>http://lostechies.com/seanbiefeld/2009/02/20/making-c-lambda-expressions-more-readable/#comment-763657148</link><description>&lt;p&gt;There are two types of lambda expression&lt;/p&gt;

&lt;p&gt;1. expression lambda&lt;br&gt;2. statement lambda&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">.Net Training in Chennai</dc:creator><pubDate>Fri, 11 Jan 2013 07:56:39 -0000</pubDate></item><item><title>Re: Simple XML to JSON with PHP</title><link>http://lostechies.com/seanbiefeld/2011/10/21/simple-xml-to-json-with-php/#comment-742639695</link><description>&lt;p&gt;Nice...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sameer Chourasia</dc:creator><pubDate>Wed, 19 Dec 2012 07:39:32 -0000</pubDate></item><item><title>Re: Configuring Fluent NHibernate with an External NHibernate Config File</title><link>http://lostechies.com/seanbiefeld/2009/07/13/using-fluent-nhibernate-with-and-external-nhibernate-config-file/#comment-735357426</link><description>&lt;p&gt;I keep getting "An exception occurred during configuration of persistence layer." when I use this. Any ideas?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">N.K</dc:creator><pubDate>Thu, 13 Dec 2012 18:09:30 -0000</pubDate></item><item><title>Re: Simple XML to JSON with PHP</title><link>http://lostechies.com/seanbiefeld/2011/10/21/simple-xml-to-json-with-php/#comment-716798002</link><description>&lt;p&gt;Thank you so much...i have had sleepless night when XML responses are returned as a single string variable...but this greatly helped me...thanks.&lt;/p&gt;

&lt;p&gt;my code to further help others :&lt;/p&gt;

&lt;p&gt;$fileContents = file_get_contents($url);&lt;br&gt;$fileContents = trim(str_replace('"', "'", $fileContents));&lt;/p&gt;

&lt;p&gt;$simpleXml = simplexml_load_string($fileContents);&lt;br&gt;$json = json_encode($simpleXml);&lt;br&gt;$json = json_decode($json);&lt;/p&gt;

&lt;p&gt;// then returned $json as array object variable&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jedjhe</dc:creator><pubDate>Thu, 22 Nov 2012 09:33:33 -0000</pubDate></item><item><title>Re: Simple XML to JSON with PHP</title><link>http://lostechies.com/seanbiefeld/2011/10/21/simple-xml-to-json-with-php/#comment-711138510</link><description>&lt;p&gt;How about you take it for what it is.  Read the tutorial, try it out for yourself.  Post any comments for improvement.  Just don't be an asshole @Nahuels, the web doesn't need more know-it-alls like you.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Just a guy</dc:creator><pubDate>Thu, 15 Nov 2012 13:40:40 -0000</pubDate></item><item><title>Re: Simple XML to JSON with PHP</title><link>http://lostechies.com/seanbiefeld/2011/10/21/simple-xml-to-json-with-php/#comment-624104914</link><description>&lt;p&gt;But the function is not "static" to access with that way:&lt;br&gt;   XmlToJson::Parse("&lt;a href="http://www.nfl.com/liveupdate/scorestrip/ss.xml" rel="nofollow"&gt;http://www.nfl.com/liveupdate/...&lt;/a&gt;");&lt;/p&gt;

&lt;p&gt;should be:&lt;br&gt;   XmlToJson-&amp;gt;Parse("&lt;a href="http://www.nfl.com/liveupdate/scorestrip/ss.xml" rel="nofollow"&gt;http://www.nfl.com/liveupdate/...&lt;/a&gt;");&lt;/p&gt;

&lt;p&gt;Or add "static" statement to function :D&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Wrivas</dc:creator><pubDate>Mon, 20 Aug 2012 12:55:35 -0000</pubDate></item><item><title>Re: Making c# lambda expressions more readable</title><link>http://lostechies.com/seanbiefeld/2009/02/20/making-c-lambda-expressions-more-readable/#comment-584136262</link><description>&lt;p&gt;I cannot get why people are using single letters.   Even reading books that introduce Lambda expressions I'm seeing this.&lt;br&gt;Really bizarre... Good post.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Nevill</dc:creator><pubDate>Wed, 11 Jul 2012 09:06:45 -0000</pubDate></item><item><title>Re: Simple XML to JSON with PHP</title><link>http://lostechies.com/seanbiefeld/2011/10/21/simple-xml-to-json-with-php/#comment-555777276</link><description>&lt;p&gt;true! a lot of trash in the web. Please author, resear a little bit before writing a tutorial. Thanks! &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nahuels</dc:creator><pubDate>Tue, 12 Jun 2012 22:46:51 -0000</pubDate></item><item><title>Re: Simple Async HTTP Module for Appcelerator</title><link>http://lostechies.com/seanbiefeld/2011/11/17/simple-async-http-module-for-appcelerator/#comment-517516996</link><description>&lt;p&gt;This is very good snippet!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Palakorn</dc:creator><pubDate>Thu, 03 May 2012 06:53:44 -0000</pubDate></item><item><title>Re: Simple XML to JSON with PHP</title><link>http://lostechies.com/seanbiefeld/2011/10/21/simple-xml-to-json-with-php/#comment-500645716</link><description>&lt;p&gt;Thanks a lot.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Searock Ruzario</dc:creator><pubDate>Wed, 18 Apr 2012 05:59:50 -0000</pubDate></item><item><title>Re: My Visual Studio Twilight theme</title><link>http://lostechies.com/seanbiefeld/2009/03/23/my-visual-studio-twilight-theme/#comment-481687047</link><description>&lt;p&gt;thanks bro!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Zzz</dc:creator><pubDate>Sat, 31 Mar 2012 05:30:31 -0000</pubDate></item><item><title>Re: Simple XML to JSON with PHP</title><link>http://lostechies.com/seanbiefeld/2011/10/21/simple-xml-to-json-with-php/#comment-473644280</link><description>&lt;p&gt;Amazing dude - thanx&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vahid Rajaei</dc:creator><pubDate>Thu, 22 Mar 2012 10:57:58 -0000</pubDate></item><item><title>Re: Simple XML to JSON with PHP</title><link>http://lostechies.com/seanbiefeld/2011/10/21/simple-xml-to-json-with-php/#comment-442909128</link><description>&lt;p&gt;cool man!!! Thanks&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guest</dc:creator><pubDate>Sat, 18 Feb 2012 13:54:49 -0000</pubDate></item><item><title>Re: Simple Async HTTP Module for Appcelerator</title><link>http://lostechies.com/seanbiefeld/2011/11/17/simple-async-http-module-for-appcelerator/#comment-366783774</link><description>&lt;p&gt;It is essentially a wrapper around Appcelerator's mobile httpclient, i dont think you can use straight up XMLHttpRequest or jQuery.ajax for native portions of the mobile API, maybe in the webviews. &lt;br&gt;Ya async is a bit vague, something like asyncHttp might be better.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">seanbiefeld</dc:creator><pubDate>Thu, 17 Nov 2011 12:53:06 -0000</pubDate></item><item><title>Re: Simple Async HTTP Module for Appcelerator</title><link>http://lostechies.com/seanbiefeld/2011/11/17/simple-async-http-module-for-appcelerator/#comment-366685370</link><description>&lt;p&gt;Hi Sean,&lt;/p&gt;

&lt;p&gt;I've been investigating Titanium a bit myself, so this post is definitely interesting. I'm a bit confused as to what this offers over using `XMLHttpRequest` or `jQuery.ajax` though?&lt;/p&gt;

&lt;p&gt;Also, I think the name of the module is pretty misleading: usually when one thinks of "async" what comes to mind is stuff like this: &lt;a href="https://github.com/joyent/node/wiki/modules#wiki-async-flow" rel="nofollow"&gt;https://github.com/joyent/node...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Domenic Denicola</dc:creator><pubDate>Thu, 17 Nov 2011 11:11:54 -0000</pubDate></item><item><title>Re: Making c# lambda expressions more readable</title><link>http://lostechies.com/seanbiefeld/2009/02/20/making-c-lambda-expressions-more-readable/#comment-363464853</link><description>&lt;p&gt;Thanks for the information or tips you provide to us about lambda expression in C#. I have found another nice post  related to this post which also explain nicely, you may check out that post by visiting following link.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.mindstick.com/Blog/181/Lambda%20Expression%20in%20c" rel="nofollow"&gt;http://www.mindstick.com/Blog/...&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;so lastly thanks to everyone for their nice post which help me lot and save my time.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Somesh</dc:creator><pubDate>Tue, 15 Nov 2011 05:49:59 -0000</pubDate></item><item><title>Re: Simple XML to JSON with PHP</title><link>http://lostechies.com/seanbiefeld/2011/10/21/simple-xml-to-json-with-php/#comment-361297778</link><description>&lt;p&gt;This will not work if you have multiple instances of the same tag in your XML, json_encode will end up only serializing the last instance of the tag. Sorry for bursting your bubble ;)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Fri, 11 Nov 2011 15:13:50 -0000</pubDate></item><item><title>Re: Simple XML to JSON with PHP</title><link>http://lostechies.com/seanbiefeld/2011/10/21/simple-xml-to-json-with-php/#comment-347424224</link><description>&lt;p&gt;Do you have any idea on how to do the reverse? JSON -&amp;gt; XML?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ryan</dc:creator><pubDate>Thu, 27 Oct 2011 16:49:09 -0000</pubDate></item><item><title>Re: Simple XML to JSON with PHP</title><link>http://lostechies.com/seanbiefeld/2011/10/21/simple-xml-to-json-with-php/#comment-341596354</link><description>&lt;p&gt;Cool, i'll have to change that.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">seanbiefeld</dc:creator><pubDate>Sat, 22 Oct 2011 16:35:56 -0000</pubDate></item><item><title>Re: Simple XML to JSON with PHP</title><link>http://lostechies.com/seanbiefeld/2011/10/21/simple-xml-to-json-with-php/#comment-341520796</link><description>&lt;p&gt;Interesting. XML specification allows to use double and single quotes. Simple xml parses the xml in your example successfully without any replacements in PHP 5.3.5 .&lt;/p&gt;

&lt;p&gt;I'd also add 'static' keyword to the Parse method declaration, so it won't give a strict error "Non-static method XmlToJson::Parse() should not be called statically"&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">meze</dc:creator><pubDate>Sat, 22 Oct 2011 13:32:36 -0000</pubDate></item></channel></rss>