Search This Blog

Showing posts with label Blogger. Show all posts
Showing posts with label Blogger. Show all posts

Wednesday, July 18, 2012

What do to if Google tags your blogger blog with a Malware warning

So yesterday, I discovered that Google had tagged my Digital Rockhound's site.

So I used Google WebMaster's tools and verified that my site was clean.
I used this site  http://www.unmaskparasites.com to confirm that I had links to a site with malware.
Turns out I did.

I used a Google site search to help narrow where the links were.  I had two links in a link gadget to the offending site.  Simply removed them.

Then, I used WebMaster's tools a requested a reindex of my site. Good news here is that the links were at root level so the indexing was fast.  


After Google re-indexed my site, no more scary malware warnings.




Monday, May 16, 2011

Reformatted code examples

When I upgraded by site template, I forgot to re-add div class to format source code.
Code snippet I use is from http://bguide.blogspot.com/

/*
Custom CSS class to display code snippets.
http://bguide.blogspot.com/
2008 Feb 03
*/
.mycode
{
white-space:pre;
font-family:monospace;
font-size:9pt;
line-height: 10pt;
height:auto;
width:auto;
padding:5px;
margin-left:10px;
overflow:auto;
}

Friday, August 21, 2009

Learning more about Blogger and CSS

How to add a custom CSS to a blog's template.

Description of a Blogger Template

Added the following CSS style Sheet:


/*
Custom CSS class to display code snippets.
http://bguide.blogspot.com/
2008 Feb 03
*/
.mycode
{
border:1px dashed #aaaaaa;
background:#eeeeee;
white-space:pre;
font-family:monospace;
font-size:9pt;
line-height: 10pt;
height:auto;
width:auto;
padding:5px;
margin-left:10px;
overflow:auto;
}

To implement:
<div class="mycode">

/* Paste the code snippet here */

</div>

My code....

public static void UnregisterControl(Type t)
{
try
{
GuardNullType(t, "t");
GuardTypeIsControl(t);

//CLSID
string key = @"CLSID\" + t.GUID.ToString("B");
Registry.ClassesRoot.DeleteSubKeyTree(key);
}
catch (Exception ex)
{
LogAndRethrowException("ComUnregisterFunction failed.", t, ex);
}

}

Wednesday, February 4, 2009

Creating HTML tables in Blogger


Blogger puts in extra space some how in a blog post containing HTML tables.
I found a fix: http://www.mt-soft.com.ar/2008/12/06/how-to-create-tables-in-blogger/
Wrap a Div around entire HTML containing formatted tables.


From http://www.blogger-book.com

Testing method of avoiding large white space created by standard way of coding table

I have a post detailing how to write the HTML for a table in this post How to avoid large space above table when writing the HTML for a table in Blogger. There were two methods, the one I used is cumbersome. MLA commented in that post and asked for my opinion of his way of avoiding large white space above tables when writing HTML for tables in the standard format. I said I will test it, so I am testing it first in a New Blogger blog. If it works here, I believe it should also work in the old (classic) Blogger. So here goes. If you don't see any large white space between this paragraph, and the table, that means MLA's method works:















ProductCodePrice
Apple0123$1.25
Orange0247$1.55
Pear1928$1.45



Well, there are no large space between the paragraph above and the table as you can see, so MLA's method works.

This is how MLA did it. He created a class "nobr" using CSS, like this:

Then below the CSS, he created a division
specifying the class. He will then type the HTML for the table in the standard format within that division. For example, this is the script I used to create the above table:


Thursday, January 22, 2009

Get Comments for Blogger Blog

.Net Documentation for Blogger API from Google
Very easy but I need to remember the following (and I know I won't :)

Getting comments for all posts on the blog, use
http://www.blogger.com/feeds/blogID/comments/default
This link does not appear in list of links on AtomEntry.Links
AtomEntry.Links[3] was
http://www.blogger.com/feeds/blogID/posts/default
and I simply replaced "posts" with "comments" and then queried the blogger web service.

private void GetComments(AtomEntry blog, string login, string password)
{
Service bloggerService = new Service("blogger", "WebPhotoTool.Accounts");
bloggerService.Credentials = new GDataCredentials(login, password);

FeedQuery query = new FeedQuery();
query.Uri = new Uri(
blog.Links[3].AbsoluteUri.ToString().Replace("posts","comments"));
AtomFeed feed = _bloggerService.Query(query);
foreach (AtomEntry entry in feed.Entries)
{
}
}

Monday, December 29, 2008

Live Traffic widgets

From FeedJit

Monday, November 10, 2008