<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6001.18385" name=GENERATOR>
<STYLE>
<!--
font-face
        {font-family:"Cambria Math";}
font-face
        {font-family:Calibri;}
font-face
        {font-family:Tahoma;}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {
        color:purple;
        text-decoration:underline;}
span.emailstyle17
        {
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle19
        {
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {
        font-size:10.0pt;}
div.Section1
        {page:Section1;}
-->
</STYLE>
</HEAD>
<BODY lang=EN-GB vLink=purple link=blue>
<DIV id=idOWAReplyText72144 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>can you save the snoopy results to a file, to see what snoopy returns?</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk on behalf of RonM<BR><B>Sent:</B> Wed 10/03/2010 22:59<BR><B>To:</B> 'Xerte discussion list'<BR><B>Subject:</B> RE: [Xerte] debugging misc > rss page?<BR></FONT><BR></DIV>
<DIV>
<DIV class=Section1>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">Hi Pat</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">The var $agent in my snoopy was an empty string. I’ve just tried the following:</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">var $agent="Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.2) Gecko/20121223 Ubuntu/9.25 (jaunty) Firefox/3.8"; <A name=_MailEndCompose></A></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"></SPAN> </P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">But it hasn’t fixed the problem – I still get undefined with the twitter feed but works fine with your Notts feed with or without the user agent defined. I’m still using these two links:</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"></SPAN> </P>
<P class=MsoNormal><A href="http://search.twitter.com/search.atom?lang=en&q=xerte&rpp=50">http://search.twitter.com/search.atom?lang=en&q=xerte&rpp=50</A></P>
<P class=MsoNormal> </P>
<P class=MsoNormal><A href="http://www.nottingham.ac.uk/xerte/rss/rssfeed.xml">http://www.nottingham.ac.uk/xerte/rss/rssfeed.xml</A> </P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"></SPAN> </P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">Any ideas?</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">Cheers</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">Ron</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"></SPAN> </P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"></SPAN> </P>
<DIV>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=MsoNormal><B><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>RonM<BR><B>Sent:</B> 10 March 2010 22:05<BR><B>To:</B> 'Xerte discussion list'<BR><B>Subject:</B> RE: [Xerte] debugging misc > rss page?</SPAN></P></DIV></DIV>
<P class=MsoNormal> </P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">Cheers both – will try this and report back.</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"></SPAN> </P>
<DIV>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=MsoNormal><B><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>Patrick Lockley<BR><B>Sent:</B> 10 March 2010 21:56<BR><B>To:</B> Xerte discussion list<BR><B>Subject:</B> RE: [Xerte] debugging misc > rss page?</SPAN></P></DIV></DIV>
<P class=MsoNormal> </P>
<DIV id=idOWAReplyText31263>
<DIV>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'">yes, thats why you change the user agent in snoopy - we did it to fix wikipedia ages ago. Must not have sent the updated snoopy to the zip.</SPAN><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"></SPAN></P></DIV></DIV>
<DIV>
<P class=MsoNormal><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"></SPAN> </P>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'">
<HR align=center width="100%" SIZE=2>
</SPAN></DIV>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> xerte-bounces@lists.nottingham.ac.uk on behalf of Julian Tenney<BR><B>Sent:</B> Wed 10/03/2010 21:53<BR><B>To:</B> Xerte discussion list<BR><B>Subject:</B> RE: [Xerte] debugging misc > rss page?</SPAN><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"></SPAN></P></DIV>
<DIV>
<DIV id=idOWAReplyText77782>
<DIV>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'">Duh. The problem must be with rss_proxy if all the xerte stuff works locally.</SPAN><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"></SPAN> </P></DIV>
<DIV>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Pat: can rss_proxy be rumbled as a bot?</SPAN><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"></SPAN></P></DIV></DIV>
<DIV>
<P class=MsoNormal><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"></SPAN> </P>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'">
<HR align=center width="100%" SIZE=2>
</SPAN></DIV>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> xerte-bounces@lists.nottingham.ac.uk on behalf of Patrick Lockley<BR><B>Sent:</B> Wed 10/03/2010 21:46<BR><B>To:</B> Xerte discussion list<BR><B>Subject:</B> RE: [Xerte] debugging misc > rss page?</SPAN><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"></SPAN></P></DIV>
<DIV>
<DIV id=idOWAReplyText94350>
<DIV>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'">we had a problem that wikipedia died once, and we fixed rss_proxy.php by making a change in snoopy.</SPAN><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"></SPAN> </P></DIV>
<DIV>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">One of the options is the user agent to send, so we set that to be what firefox sends, and it worked.</SPAN><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"></SPAN> </P></DIV>
<DIV>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">So swap the value in the snoopy class for a common user agent value and see what happens.</SPAN><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"></SPAN></P></DIV></DIV>
<DIV>
<P class=MsoNormal><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"></SPAN> </P>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'">
<HR align=center width="100%" SIZE=2>
</SPAN></DIV>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> xerte-bounces@lists.nottingham.ac.uk on behalf of RonM<BR><B>Sent:</B> Wed 10/03/2010 19:39<BR><B>To:</B> 'Xerte discussion list'<BR><B>Subject:</B> [Xerte] debugging misc > rss page?</SPAN><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"></SPAN></P></DIV>
<DIV>
<P class=MsoNormal>Hi Pat/Julian</P>
<P class=MsoNormal>I’ve been trying to resolve the twitter rss issue that I mentioned on Monday morning and in testing have some more accurate details...</P>
<P class=MsoNormal> </P>
<P class=MsoNormal>I created an LO with a toolkits installation added a couple of rss pages and added a twitter search url to the first page and the notts rss feed to the second page. I used the following urls:</P>
<P class=MsoNormal> </P>
<P class=MsoNormal><A href="http://search.twitter.com/search.atom?lang=en&q=xerte&rpp=50">http://search.twitter.com/search.atom?lang=en&q=xerte&rpp=50</A></P>
<P class=MsoNormal> </P>
<P class=MsoNormal><A href="http://www.nottingham.ac.uk/xerte/rss/rssfeed.xml">http://www.nottingham.ac.uk/xerte/rss/rssfeed.xml</A> </P>
<P class=MsoNormal> </P>
<P class=MsoNormal>The page with the twitter url doesn’t work via toolkits now but the page with the notts feed does work via toolkits.</P>
<P class=MsoNormal> </P>
<P class=MsoNormal>If export the LO and view locally both pages work. Also pages with twitter feeds added always worked previously which is how and why I also built my dedicated twitter model.</P>
<P class=MsoNormal> </P>
<P class=MsoNormal>So it seems like there is an incompatibility now between a twitter feed and the code used with rss_proxy.php </P>
<P class=MsoNormal>Probably something that’s changed at the twitter end but I can’t spot what’s causing it to fail when using rss_proxy.php </P>
<P class=MsoNormal> </P>
<P class=MsoNormal>I’m not sure if the problem is in rss_proxy itself or in the code inside the xerte model which gets the feed from rss_proxy. This might be a dumb question but how can I use the equivalent of debug to track what’s happening via toolkits rather than locally?</P>
<P class=MsoNormal> </P>
<P class=MsoNormal>Cheers</P>
<P class=MsoNormal>Ron</P></DIV></DIV></DIV></DIV></DIV></BODY></HTML>