Search This Site

Custom Search

Thursday, January 20, 2011

[bloggerDev] Extracting unchanged content from a post

Hey all,

I am using the .NET API to pull the content from a blog I author about
tips and tricks I run across while developing websites and
applications, but I've lately run into an issue where the content I
pull is not exactly the same as what's being posted on blogspot.

Due to the nature of my blog, I'm constantly needing to display html
tags such as <body id="example"> but to have this display properly on
blogspot, I write it out as &lt;body id="example"&gt;

However, when I pull my feed from the .NET API and extract the content
via thisFeedEntry.Content.Content, all of the blog content comes
already rendered with brackets instead of the ampersand encodings.

I tried doing a replace on all brackets to transform them back to &gt;
and &lt; but of course that changed all of the content's source code
over including line breaks, div panels and links. I don't want that.

Here's a good example of what I'm experiencing.
My blogspot shows the text <body runat="server" id="masterbody"> fine
here:
http://atlantawebsites.blogspot.com/2011/01/aspnet-body-onload-error-bc30456.html
But when I pull it over through the API, the text with bracket
disappears at the browser is attempting to render it:
http://robfine.com/aspnet/ResolvingBodyOnLoadErrorBC30456whenrunatServer

Is there a way to pull the code exactly as is in blogspot with the
&gt; and &lt; text still intact?

Any help would be greatly appreciated.
Thanks!

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Wednesday, January 19, 2011

Re: [bloggerDev] Re: Post content extraction



On Thu, Jan 20, 2011 at 3:34 AM, Shirpaa <shirpa.manoharan@gmail.com> wrote:
Hello Mr. Morgan

I am using Java. I am able to retrieve summary for some posts but not
all. Any information on the reason for this will be greatly helpful
too.

Are you authenticating using the API? Is the feed you are attempting to get the content of one that you have admin access to?

Quite a few blogs run limited to no public access to their feeds to prevent their content getting scraped and used by competitors and link farms.
 

I am looking for text extraction of the content for all posts. I would
also like to know if there is a better capability of extraction using
a different language.

The underlying GData wire API is the same for all languages, the difference being in how they expose those capabilities to their host language. The limitations you are seeing are enforcement of blog settings, not a programming language limitation.
 

Thank you
Shirpaa

On Jan 19, 1:34 am, Brett Morgan <brettmor...@google.com> wrote:
> Hi Shirpaa,
>
> Do you have a specific programming language in mind?
>
> brett
>
>
>
>
>
>
>
>
>
> On Wed, Jan 19, 2011 at 3:38 PM, Shirpaa <shirpa.manoha...@gmail.com> wrote:
> > Hi
>
> > Is there any documented way of extracting only the text content of
> > posts when you have both blog id and post id. If so please give an
> > example or any suggestions would be greatly helpful.
>
> > Thank you
> > Shirpaa
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Blogger Developer Group" group.
> > To post to this group, send email to bloggerdev@googlegroups.com.
> > To unsubscribe from this group, send email to
> > bloggerdev+unsubscribe@googlegroups.com<bloggerdev%2Bunsubscribe@googlegrou ps.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/bloggerdev?hl=en.
>
> --
>
> Brett Morgan
>
> Developer Programs Engineer, Blogger

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.




--

Brett Morgan

Developer Programs Engineer, Blogger

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

[bloggerDev] Re: Post content extraction

Hello Mr. Morgan

I am using Java. I am able to retrieve summary for some posts but not
all. Any information on the reason for this will be greatly helpful
too.

I am looking for text extraction of the content for all posts. I would
also like to know if there is a better capability of extraction using
a different language.

Thank you
Shirpaa

On Jan 19, 1:34 am, Brett Morgan <brettmor...@google.com> wrote:
> Hi Shirpaa,
>
> Do you have a specific programming language in mind?
>
> brett
>
>
>
>
>
>
>
>
>
> On Wed, Jan 19, 2011 at 3:38 PM, Shirpaa <shirpa.manoha...@gmail.com> wrote:
> > Hi
>
> > Is there any documented way of extracting only the text content of
> > posts when you have both blog id and post id. If so please give an
> > example or any suggestions would be greatly helpful.
>
> > Thank you
> > Shirpaa
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Blogger Developer Group" group.
> > To post to this group, send email to bloggerdev@googlegroups.com.
> > To unsubscribe from this group, send email to
> > bloggerdev+unsubscribe@googlegroups.com<bloggerdev%2Bunsubscribe@googlegrou ps.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/bloggerdev?hl=en.
>
> --
>
> Brett Morgan
>
> Developer Programs Engineer, Blogger

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Tuesday, January 18, 2011

Re: [bloggerDev] Post content extraction

Hi Shirpaa,

Do you have a specific programming language in mind?

brett

On Wed, Jan 19, 2011 at 3:38 PM, Shirpaa <shirpa.manoharan@gmail.com> wrote:
Hi

Is there any documented way of extracting only the text content of
posts when you have both blog id and post id. If so please give an
example or any suggestions would be greatly helpful.

Thank you
Shirpaa

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.




--

Brett Morgan

Developer Programs Engineer, Blogger

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Re: [bloggerDev] Re: Operation TimeOut on Test Server not on LocalHost

Yeah cool, I look forward to things being easier for you from here on out =)

On Wed, Jan 19, 2011 at 5:01 PM, Laki Politis <apolitis@stetson.edu> wrote:
VPS Here I come... firewall was the issue

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.



--

Brett Morgan

Developer Programs Engineer, Blogger

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Re: [bloggerDev] Re: Operation TimeOut on Test Server not on LocalHost

VPS Here I come... firewall was the issue

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

[bloggerDev] Post content extraction

Hi

Is there any documented way of extracting only the text content of
posts when you have both blog id and post id. If so please give an
example or any suggestions would be greatly helpful.

Thank you
Shirpaa

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Re: [bloggerDev] OpenID go fault return url

I've just run a sample OAuth dance by using my blogspot url (mouserants.blogspot.com) as the OAuth identity to post a comment on an old LiveJournal of mine (domesticmouse.livejournal.com). It worked as advertised.

Now, the more important question, what error messages did you see? Are you the owner of the end system that failed? 

On Wed, Jan 19, 2011 at 8:33 AM, Toomore <toomore0929@gmail.com> wrote:
When I using my blog url as OpenID to login other serve, in the end, they return fault url back.
What happen?

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.



--

Brett Morgan

Developer Programs Engineer, Blogger

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

[bloggerDev] OpenID go fault return url

When I using my blog url as OpenID to login other serve, in the end, they return fault url back.
What happen?

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Monday, January 17, 2011

Re: [bloggerDev] uploading photo's to blog (new editor)

Hey Jenny,

Could you please clear your cache and cookies?

brett

On Sun, Jan 16, 2011 at 12:05 AM, jennyc <tayac21@gmail.com> wrote:
When iItry to upload photo's to my blog, I get a screen which says
"Sign In" (cloud picker).

but when I try I get an error message "The feature you requested is
currently unavailable. Please try again later."

This is bloody annoying as I have to use the old editor which is a
hassle...

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.




--

Brett Morgan

Developer Programs Engineer, Blogger

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Re: [bloggerDev] Re: Operation TimeOut on Test Server not on LocalHost

Talk with your provider about getting remote console access, you are going to need it to admin the machine.

I'm used to dealing with linux boxen that i can just ssh into...

On Tue, Jan 18, 2011 at 9:16 AM, Laki Politis <apolitis@stetson.edu> wrote:
How would I get console code to run on my server?

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.



--

Brett Morgan

Developer Programs Engineer, Blogger

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Re: [bloggerDev] Re: Operation TimeOut on Test Server not on LocalHost

How would I get console code to run on my server?

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Re: [bloggerDev] Re: Operation TimeOut on Test Server not on LocalHost

Ok, looking at your screen grab, it runs on your local machine, which makes sense, you said your code ran from your machine. Now the question is, can you get the sample code to run from the hosted server?

On Tue, Jan 18, 2011 at 9:10 AM, Laki Politis <apolitis@stetson.edu> wrote:
The Blogger sample from the Google Blogger API Sample runs
--------------------------------------------------------------------------------------------
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using Google.GData.Client;
using Google.GData.Blogger;
using System.Net;

namespace Blogger
{
/// <summary>
/// Summary description for Calendar.
/// </summary>
    public class Blogger : System.Windows.Forms.Form
    {
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.TextBox UserName;
        private System.Windows.Forms.TextBox Password;
        private System.Windows.Forms.Button Go;
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.Container components = null;
        private System.Windows.Forms.TextBox BloggerURI;
        private System.Windows.Forms.TreeView FeedView;
        private System.Windows.Forms.Button AddEntry;
        public System.Windows.Forms.ComboBox FeedChooser;


        private ArrayList entryList; 
        private string feedUri; 

        public Blogger()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            this.entryList = new ArrayList();
            this.feedUri = null; 
        }

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main() 
        {
            Application.Run(new Blogger());
        }

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        protected override void Dispose( bool disposing )
        {
            if( disposing )
            {
                if(components != null)
                {
                    components.Dispose();
                }
            }
            base.Dispose( disposing );
        }

        #region Windows Form Designer generated code
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.BloggerURI = new System.Windows.Forms.TextBox();
            this.label1 = new System.Windows.Forms.Label();
            this.label2 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.UserName = new System.Windows.Forms.TextBox();
            this.Password = new System.Windows.Forms.TextBox();
            this.Go = new System.Windows.Forms.Button();
            this.FeedView = new System.Windows.Forms.TreeView();
            this.AddEntry = new System.Windows.Forms.Button();
            this.FeedChooser = new System.Windows.Forms.ComboBox();
            this.SuspendLayout();
            // 
            // BloggerURI
            // 
            this.BloggerURI.Location = new System.Drawing.Point(88, 16);
            this.BloggerURI.Name = "BloggerURI";
            this.BloggerURI.Size = new System.Drawing.Size(296, 20);
            this.BloggerURI.TabIndex = 1;
            this.BloggerURI.Text = "http://www.blogger.com/feeds/default/blogs";
            // 
            // label1
            // 
            this.label1.Location = new System.Drawing.Point(8, 16);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(64, 16);
            this.label1.TabIndex = 2;
            this.label1.Text = "URL:";
            // 
            // label2
            // 
            this.label2.Location = new System.Drawing.Point(8, 48);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(64, 24);
            this.label2.TabIndex = 3;
            this.label2.Text = "User:";
            // 
            // label3
            // 
            this.label3.Location = new System.Drawing.Point(8, 96);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(64, 16);
            this.label3.TabIndex = 4;
            this.label3.Text = "Password";
            // 
            // UserName
            // 
            this.UserName.Location = new System.Drawing.Point(88, 48);
            this.UserName.Name = "UserName";
            this.UserName.Size = new System.Drawing.Size(296, 20);
            this.UserName.TabIndex = 5;
            this.UserName.Text = "<yourUserName>";
            // 
            // Password
            // 
            this.Password.Location = new System.Drawing.Point(88, 88);
            this.Password.Name = "Password";
            this.Password.PasswordChar = '*';
            this.Password.Size = new System.Drawing.Size(296, 20);
            this.Password.TabIndex = 6;
            this.Password.Text = "<yourPassword>";
            // 
            // Go
            // 
            this.Go.Location = new System.Drawing.Point(440, 16);
            this.Go.Name = "Go";
            this.Go.Size = new System.Drawing.Size(104, 24);
            this.Go.TabIndex = 7;
            this.Go.Text = "&Go";
            this.Go.Click += new System.EventHandler(this.Go_Click);
            // 
            // FeedView
            // 
            this.FeedView.ImageIndex = -1;
            this.FeedView.Location = new System.Drawing.Point(16, 160);
            this.FeedView.Name = "FeedView";
            this.FeedView.SelectedImageIndex = -1;
            this.FeedView.Size = new System.Drawing.Size(544, 280);
            this.FeedView.TabIndex = 8;
            // 
            // AddEntry
            // 
            this.AddEntry.Enabled = false;
            this.AddEntry.Location = new System.Drawing.Point(440, 56);
            this.AddEntry.Name = "AddEntry";
            this.AddEntry.Size = new System.Drawing.Size(104, 24);
            this.AddEntry.TabIndex = 9;
            this.AddEntry.Text = "&Add...";
            this.AddEntry.Click += new System.EventHandler(this.AddEntry_Click);
            // 
            // FeedChooser
            // 
            this.FeedChooser.Location = new System.Drawing.Point(16, 120);
            this.FeedChooser.Name = "FeedChooser";
            this.FeedChooser.Size = new System.Drawing.Size(368, 21);
            this.FeedChooser.TabIndex = 10;
            this.FeedChooser.Text = "choose the feed.... ";
            this.FeedChooser.SelectedIndexChanged += new System.EventHandler(this.FeedChooser_SelectedIndexChanged);
            // 
            // Blogger
            // 
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize = new System.Drawing.Size(592, 470);
            this.Controls.Add(this.FeedChooser);
            this.Controls.Add(this.AddEntry);
            this.Controls.Add(this.FeedView);
            this.Controls.Add(this.Go);
            this.Controls.Add(this.Password);
            this.Controls.Add(this.UserName);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.BloggerURI);
            this.Cursor = System.Windows.Forms.Cursors.Arrow;
            this.Name = "Blogger";
            this.Text = "Blogger Demo Application";
            this.ResumeLayout(false);

        }
        

[bloggerDev] Re: Operation TimeOut on Test Server not on LocalHost

The Blogger sample from the Google Blogger API Sample runs
--------------------------------------------------------------------------------------------
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using Google.GData.Client;
using Google.GData.Blogger;
using System.Net;

namespace Blogger
{
/// <summary>
/// Summary description for Calendar.
/// </summary>
    public class Blogger : System.Windows.Forms.Form
    {
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.TextBox UserName;
        private System.Windows.Forms.TextBox Password;
        private System.Windows.Forms.Button Go;
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.Container components = null;
        private System.Windows.Forms.TextBox BloggerURI;
        private System.Windows.Forms.TreeView FeedView;
        private System.Windows.Forms.Button AddEntry;
        public System.Windows.Forms.ComboBox FeedChooser;


        private ArrayList entryList; 
        private string feedUri; 

        public Blogger()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            this.entryList = new ArrayList();
            this.feedUri = null; 
        }

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main() 
        {
            Application.Run(new Blogger());
        }

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        protected override void Dispose( bool disposing )
        {
            if( disposing )
            {
                if(components != null)
                {
                    components.Dispose();
                }
            }
            base.Dispose( disposing );
        }

        #region Windows Form Designer generated code
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.BloggerURI = new System.Windows.Forms.TextBox();
            this.label1 = new System.Windows.Forms.Label();
            this.label2 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.UserName = new System.Windows.Forms.TextBox();
            this.Password = new System.Windows.Forms.TextBox();
            this.Go = new System.Windows.Forms.Button();
            this.FeedView = new System.Windows.Forms.TreeView();
            this.AddEntry = new System.Windows.Forms.Button();
            this.FeedChooser = new System.Windows.Forms.ComboBox();
            this.SuspendLayout();
            // 
            // BloggerURI
            // 
            this.BloggerURI.Location = new System.Drawing.Point(88, 16);
            this.BloggerURI.Name = "BloggerURI";
            this.BloggerURI.Size = new System.Drawing.Size(296, 20);
            this.BloggerURI.TabIndex = 1;
            this.BloggerURI.Text = "http://www.blogger.com/feeds/default/blogs";
            // 
            // label1
            // 
            this.label1.Location = new System.Drawing.Point(8, 16);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(64, 16);
            this.label1.TabIndex = 2;
            this.label1.Text = "URL:";
            // 
            // label2
            // 
            this.label2.Location = new System.Drawing.Point(8, 48);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(64, 24);
            this.label2.TabIndex = 3;
            this.label2.Text = "User:";
            // 
            // label3
            // 
            this.label3.Location = new System.Drawing.Point(8, 96);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(64, 16);
            this.label3.TabIndex = 4;
            this.label3.Text = "Password";
            // 
            // UserName
            // 
            this.UserName.Location = new System.Drawing.Point(88, 48);
            this.UserName.Name = "UserName";
            this.UserName.Size = new System.Drawing.Size(296, 20);
            this.UserName.TabIndex = 5;
            this.UserName.Text = "<yourUserName>";
            // 
            // Password
            // 
            this.Password.Location = new System.Drawing.Point(88, 88);
            this.Password.Name = "Password";
            this.Password.PasswordChar = '*';
            this.Password.Size = new System.Drawing.Size(296, 20);
            this.Password.TabIndex = 6;
            this.Password.Text = "<yourPassword>";
            // 
            // Go
            // 
            this.Go.Location = new System.Drawing.Point(440, 16);
            this.Go.Name = "Go";
            this.Go.Size = new System.Drawing.Size(104, 24);
            this.Go.TabIndex = 7;
            this.Go.Text = "&Go";
            this.Go.Click += new System.EventHandler(this.Go_Click);
            // 
            // FeedView
            // 
            this.FeedView.ImageIndex = -1;
            this.FeedView.Location = new System.Drawing.Point(16, 160);
            this.FeedView.Name = "FeedView";
            this.FeedView.SelectedImageIndex = -1;
            this.FeedView.Size = new System.Drawing.Size(544, 280);
            this.FeedView.TabIndex = 8;
            // 
            // AddEntry
            // 
            this.AddEntry.Enabled = false;
            this.AddEntry.Location = new System.Drawing.Point(440, 56);
            this.AddEntry.Name = "AddEntry";
            this.AddEntry.Size = new System.Drawing.Size(104, 24);
            this.AddEntry.TabIndex = 9;
            this.AddEntry.Text = "&Add...";
            this.AddEntry.Click += new System.EventHandler(this.AddEntry_Click);
            // 
            // FeedChooser
            // 
            this.FeedChooser.Location = new System.Drawing.Point(16, 120);
            this.FeedChooser.Name = "FeedChooser";
            this.FeedChooser.Size = new System.Drawing.Size(368, 21);
            this.FeedChooser.TabIndex = 10;
            this.FeedChooser.Text = "choose the feed.... ";
            this.FeedChooser.SelectedIndexChanged += new System.EventHandler(this.FeedChooser_SelectedIndexChanged);
            // 
            // Blogger
            // 
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize = new System.Drawing.Size(592, 470);
            this.Controls.Add(this.FeedChooser);
            this.Controls.Add(this.AddEntry);
            this.Controls.Add(this.FeedView);
            this.Controls.Add(this.Go);
            this.Controls.Add(this.Password);
            this.Controls.Add(this.UserName);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.BloggerURI);
            this.Cursor = System.Windows.Forms.Cursors.Arrow;
            this.Name = "Blogger";
            this.Text = "Blogger Demo Application";
            this.ResumeLayout(false);

        }
        

[bloggerDev] Re: Operation TimeOut on Test Server not on LocalHost

Yeah, I did some more research and found links that suggested I needed to do DNS resolution. And then I realized that I completely don't need any DNS configuration, because I'm not using a custom domain I'm just trying to feed data on to my page.

My goals is to programatically call my blogger feed and retrieve chunks of the xml and display them. I think my code-behind shows that.


--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Re: [bloggerDev] Re: Operation TimeOut on Test Server not on LocalHost



On Mon, Jan 17, 2011 at 5:31 PM, Laki <apolitis@stetson.edu> wrote:
I have installed and am using these references (per the Google Blogger API Documentation's instructions):

using Google.GData.Blogger;
using Google.GData.Client;
using Google.GData.Extensions;

They work correctly. I have this same code working on another test site I'm developing. It's running on my localhost as well, but Visual Studio isn't throwing any errors, and I can see the result I want on the localhost. (It's pulling the blog Title, Author, Links, URI, and a bunch of other stuff). The moment I run it on our hosted site (.NET 3.5 Framework) I get this TimeOut error.

I followed these instructions: http://code.google.com/apis/blogger/docs/2.0/developers_guide_dotnet.html and installed http://code.google.com/p/google-gdata/downloads/list (1.7.0.1 SDK) I'm able to add the references through Visual Studio, so I know they're installed. I can use them on the localhost. Do I need to add them to my hosted site? They should be built into the application when I post, correct?


To put some perspective here, the last time I developed with Microsoft tooling in anger, Win16 was still the most actively used API. Which means I'm at least 15 years out of date on how to use MS's languages and tooling.

The fact that your code works on your own machine, and doesn't work on the hosted machine indicates to me that there is a networking issue on the hosted machine.

Ignoring your code for the moment, we need to get to the point where you can build the sample code (http://google-gdata.googlecode.com/svn/trunk/clients/cs/samples/blogger/ConsoleSample.cs) into an executable and make it work both on your home machine, and the hosted server. Until we have that, there is no point talking about your code.

The thing to test on the hosted server is whether it is firewalled - can you use a web browser on the hosted server to access blogger.com, your weblog, etc. Then we can step down and use the MS equivalents of wget and curl to retrieve the specific urls that form the initial end point of your blog. Then we can use OACurl to confirm that you can do the OAuth dance. And so forth.
 

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.



--

Brett Morgan

Developer Programs Engineer, Blogger

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

[bloggerDev] Re: Operation TimeOut on Test Server not on LocalHost

Okay, I'm officially confused as to what you are attempting to accomplish.

The below settings are for blogs with custom domains. I thought we were talking about writing code in c# that was able to interact with a blog's GData API.



On Tue, Jan 18, 2011 at 6:19 AM, Laki Politis <apolitis@stetson.edu> wrote:
I've updated the CNAME so they look like such:

Domain name: theflomo.com
IP address (A record) 74.208.160.188
Name server 1            ns52.1and1.com
Name server 2            ns51.1and1.com
Mail server 1                mx01.1and1.com, 10
Mail server 2                mx00.1and1.com, 10

Domain name             www.theflomo.com
Name server 1            ghs.google.com
Name server 2            ghs.goggle.com


Should that fix my problem?




--

Brett Morgan

Developer Programs Engineer, Blogger

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

[bloggerDev] Re: Operation TimeOut on Test Server not on LocalHost

I've updated the CNAME so they look like such:

Domain name: theflomo.com
IP address (A record) 74.208.160.188
Name server 1            ns52.1and1.com
Name server 2            ns51.1and1.com
Mail server 1                mx01.1and1.com, 10
Mail server 2                mx00.1and1.com, 10

Domain name             www.theflomo.com
Name server 1            ghs.google.com
Name server 2            ghs.goggle.com


Should that fix my problem?

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Sunday, January 16, 2011

Re: [bloggerDev] Re: Operation TimeOut on Test Server not on LocalHost

I have installed and am using these references (per the Google Blogger API Documentation's instructions):

using Google.GData.Blogger;
using Google.GData.Client;
using Google.GData.Extensions;

They work correctly. I have this same code working on another test site I'm developing. It's running on my localhost as well, but Visual Studio isn't throwing any errors, and I can see the result I want on the localhost. (It's pulling the blog Title, Author, Links, URI, and a bunch of other stuff). The moment I run it on our hosted site (.NET 3.5 Framework) I get this TimeOut error.

I followed these instructions: http://code.google.com/apis/blogger/docs/2.0/developers_guide_dotnet.html and installed http://code.google.com/p/google-gdata/downloads/list (1.7.0.1 SDK) I'm able to add the references through Visual Studio, so I know they're installed. I can use them on the localhost. Do I need to add them to my hosted site? They should be built into the application when I post, correct?

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Re: [bloggerDev] Re: Operation TimeOut on Test Server not on LocalHost



On Mon, Jan 17, 2011 at 3:18 PM, Laki <apolitis@stetson.edu> wrote:
I was getting a bunch of "...field name..." does not exist in this
context for that sample blogger code.


That doesn't sound good. Until that example code works flawlessly, there's really no point looking at your code.
 
I ran the Google Data API SDK\libgoogle-data-mono-1.7.0.1, and that's
working perfectly. I think it's getting the same Operation TimeOut,
however.

This line works: [ this.FeedChooser.DisplayMember = "Title"; ] but,
nothing else.


Ok, give me an overview of what you have installed, what you are doing, and what is working. Assume I don't know the language, how the MS tools work, or your network.

brett
 


On Jan 16, 10:56 pm, Brett Morgan <brettmor...@google.com> wrote:
> Heya Laki,
>
> Before I dive into trying to understand what is broken in your code, can you
> please confirm that the following example code works in your environment?
>
> http://google-gdata.googlecode.com/svn/trunk/clients/cs/samples/blogg...
>
> That way I can confirm your libraries are installed correctly, and you are
> authenticating sanely et al.
>
> brett
>
>
>
>
>
>
>
>
>
> On Mon, Jan 17, 2011 at 2:49 PM, Laki <apoli...@stetson.edu> wrote:
> > Hi. I'm using ASP.NET and the Google Client to access a blog on a
> > website I'm developing. I can access the feed for the blog online
> > without any issues:http://flomotionblog.blogspot.com/feeds/posts/default
> > . Whenever I try to call it through our web server test.theflomo.com,
> > I get nothing but a session time out.
>
> > Here's the error I'm getting:
>
> > --------------------------------------------------------------------------- -----------------------------------------------------------------------
> > [WebException: The operation has timed out]
> >   System.Net.HttpWebRequest.GetRequestStream(TransportContext&
> > context) +1876129
> >   System.Net.HttpWebRequest.GetRequestStream() +13
>
> > Google.GData.Client.Utilities.QueryClientLoginToken(GDataCredentials
> > gc, String serviceName, String applicationName, Boolean fUseKeepAlive,
> > Uri clientLoginHandler) +564
>
> > Google.GData.Client.GDataGAuthRequest.QueryAuthToken(GDataCredentials
> > gc) +248
> >   Google.GData.Client.GDataGAuthRequest.EnsureCredentials() +41
> >   Google.GData.Client.GDataRequest.EnsureWebRequest() +1101
> >   Google.GData.Client.GDataGAuthRequest.EnsureWebRequest() +26
> >   Google.GData.Client.GDataRequest.Execute() +42
>
> > [GDataRequestException: Execution of request failed:
> >http://flomotionblog.blogspot.com/feeds/posts/default]
> >   Google.GData.Client.GDataRequest.Execute() +162
> >   Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter)
> > +402
> >   Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter)
> > +423
> >   Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter)
> > +423
> >   Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter)
> > +423
> >   Google.GData.Client.GDataGAuthRequest.Execute() +10
> >   Google.GData.Client.Service.Query(Uri queryUri, DateTime
> > ifModifiedSince, String etag, Int64& contentLength) +193
> >   Google.GData.Client.Service.Query(FeedQuery feedQuery) +202
> >   FloMoTest.blog.loadBlog() in blog.aspx.cs:52
> >   FloMoTest.blog.Page_Load(Object sender, EventArgs e) in
> > blog.aspx.cs:36
> >   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp,
> > Object o, Object t, EventArgs e) +14
> >   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object
> > sender, EventArgs e) +35
> >   System.Web.UI.Control.OnLoad(EventArgs e) +99
> >   System.Web.UI.Control.LoadRecursive() +50
> >   System.Web.UI.Page.ProcessRequestMain(Boolean
> > includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
> > +627
>
> > --------------------------------------------------------------------------- -----------------------------------------------------------------------
>
> > Here's my code behind:
>
> > --------------------------------------------------------------------------- -----------------------------------------------------------------------
> > using System;
> > using System.Collections;
> > using System.Collections.Generic;
> > using System.Configuration;
> > using System.Data;
> > using System.Linq;
> > using System.Web;
> > using System.Web.Security;
> > using System.Web.UI;
> > using System.Web.UI.HtmlControls;
> > using System.Web.UI.WebControls;
> > using System.Web.UI.WebControls.WebParts;
> > using System.Xml.Linq;
> > using Google.GData.Blogger;
> > using Google.GData.Client;
> > using Google.GData.Extensions;
>
> > namespace FloMoTest
> > {
> >        public partial class blog : System.Web.UI.Page
> >        {
> >                private struct BlogItem
> >                {
> >                        public string title { get; set; }
> >                        public string authors { get; set; }
> >                        public string dates { get; set; }
> >                        public string links { get; set; }
> >                        public string summary { get; set; }
> >                        public string fullText { get; set; }
> >                        public string reqURI { get; set; }
> >                }
>
> >                protected void Page_Load(object sender, EventArgs e)
> >                {
>
> >                        loadBlog();
> >                }
> >                protected void loadBlog()
> >                {
>
> >                        string userName = "XXXXXXXXXX";
> >                        string passWord = "XXXXXXXXXX";
>
> >                        FeedQuery feedQuery = new FeedQuery();
> >                        feedQuery.Uri = new Uri("
> >http://flomotionblog.blogspot.com/feeds/
> > posts/default");
>
> >                        Service googleService = new Service("blogger",
> > "theFloMo.com");
> >                        googleService.Credentials = new
> > GDataCredentials(userName,
> > passWord);
>
> >                        AtomFeed atomFeed = null;
>
> >                        atomFeed = googleService.Query(feedQuery);
>
> >                        AtomLink atomLink = new AtomLink();
>
> >                        List<BlogItem> BlogItems = new List<BlogItem>();
>
> >                        foreach (AtomEntry entry in atomFeed.Entries)
> >                        {
> >                                string itemSummary = "";
> >                                string itemTitle = entry.Title.Text;
> >                                string itemAuthors =
> > entry.Authors[0].Name.ToString();
> >                                string itemDates =
>
> > entry.Published.ToLongDateString().Remove((entry.Published.ToLongDateString ().Length
> > - 6), (6));
> >                                string itemLinks =
> > entry.Links[1].HRef.ToString();
> >                                string itemReqURI =
> > entry.Id.AbsoluteUri.Remove(0, 51);
>
> >                                if (entry.Content.Content.Length <= 550)
> >                                {
> >                                        itemSummary = entry.Content.Content;
> >                                }
> >                                else
> >                                {
> >                                        itemSummary =
> > (entry.Content.Content.Remove(550) + " ...");
> >                                }
> >                                string itemFullText = entry.Content.Content;
>
> >                                BlogItems.Add(new BlogItem()
> >                                {
> >                                        title = itemTitle,
> >                                        authors = itemAuthors,
> >                                        dates = itemDates,
> >                                        links = itemLinks,
> >                                        summary = itemSummary,
> >                                        fullText = itemFullText,
> >                                        reqURI = itemReqURI,
> >                                });
> >                        }
> >                        if (BlogItems.Count >= 5)
> >                        {
> >                                blogRPT.DataSource = BlogItems.Take(5);
> >                        }
> >                        else
> >                        {
> >                                blogRPT.DataSource = BlogItems;
> >                        }
> >                        blogRPT.DataBind();
>
> >                }
> >        }
> > }
>
> > --------------------------------------------------------------------------- -----------------------------------------------------------------------
>
> > Any help would be appreciated.
>
> > Thank you,
>
> > Laki Politis.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Blogger Developer Group" group.
> > To post to this group, send email to bloggerdev@googlegroups.com.
> > To unsubscribe from this group, send email to
> > bloggerdev+unsubscribe@googlegroups.com<bloggerdev%2Bunsubscribe@googlegrou ps.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/bloggerdev?hl=en.
>
> --
>
> Brett Morgan
>
> Developer Programs Engineer, Blogger

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.




--

Brett Morgan

Developer Programs Engineer, Blogger

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.