Setting Blogger Blog and Google Apps With Domain

Recently a friend of mine asked me take a look at the problem. She have a blogger blog for a while now. Then she bought a domain name from Google and set it with Google API. And the whole thing wasn't working properly. She asked me for little help, and after spending several hours I found this solution.

* If you buy a domain from Google set with Google Apps they would set the DNS, MS and some other data for you. As a result your domain would point to the Google Apps webpages. Of course you don't want the domain point to Google Apps website.

So first thing to do is disable the web  pages from Google Apps.

* Then login to your blogger account.

Click on Settings for you blog.

Click on Publishing. 

Click on Use Custom Domain. By default you will see the Buy Domain option. On the right side of it you will see the"Switch to Advanced Settings"; click on it.

Enter your domain name there and save.

 

Thats it.

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by: WebCosmo
Posted on: 8/4/2008 at 8:26 AM
Categories: Programming / Coding
E-mail |  Stumble it! |  Propeller it! |  Digg it! |  del.icio.us |  Technorati
Post Information: Permalink | Comments (1) | Post RSSRSS comment feed

The user is not associated with a trusted SQL Server connection

This error may pop for your applications as you try to connect to the databse using SQL login. Why? When you installed the SQL database you probably have chosen the Windows Authentication only.

Selecting the authenticatuion tio "Sql Server and Windows Authentication" will solve the problem. Here is how:
- Select SQL server properties by right clicking on the SQL server.
- Click on Security
- Change the authentication to "Sql Server and Windows Authentication"

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by: WebCosmo
Posted on: 8/3/2008 at 5:51 AM
Categories: Programming / Coding
E-mail |  Stumble it! |  Propeller it! |  Digg it! |  del.icio.us |  Technorati
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed

Unrecognized attribute 'xmlns'

 You would receive this error for your application if you multiple versions of .Net installed and your .Net version for the application is not set right.

Solution:

- Launch IIS
- Go to the properties page for the application.
- Select "Asp.net" tab, and change the Target Framework to 2.0.

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by: WebCosmo
Posted on: 8/2/2008 at 5:36 PM
Categories: Programming / Coding
E-mail |  Stumble it! |  Propeller it! |  Digg it! |  del.icio.us |  Technorati
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed

System.Web.UI Namespace Not Found

If you happen to be working with a class in a class library and need to use System.Web.UI then you are likely to get an error on compile; if you do not add the System.Web dll on the references.

Adding the System.Web will allow you access many of the Web function from the class in a class library or so.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by: Manik
Posted on: 8/2/2008 at 4:43 PM
Categories: Programming / Coding
E-mail |  Stumble it! |  Propeller it! |  Digg it! |  del.icio.us |  Technorati
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed

Access HeaderTemplate and FooterTemplate Controls

How to access controls in  HeaderTemplate and FooterTemplate

We are using ASP .NET, C# here in this example.

Lets take this repeater as an example. 

<asp:Repeater ID="rpt" runat="server">
    <HeaderTemplate>
       <asp:CheckBox ID="chk1" runat="server" />
    </HeaderTemplate>
    <ItemTemplate>
       HELLO
    </ItemTemplate>
    <FooterTemplate>
      
<asp:CheckBox ID="chk2" runat="server" />
    </FooterTemplate>
</asp:Repeater>

 

You can access the header and footer item controls on ItemCreated or even ItemDataBound. But not when you iterate through the repeater items like this:

foreach(RepeaterItem ri in rpt.Items)

{
    if (ri.ItemType == ListItemType.Header)
    {
        CheckBox chk1 = (CheckBox)ri.FindControl("chk1");

       chk1.Checked=true;
    }
    if (ri.ItemType == ListItemType.Footer)
    {
        CheckBox chk2 = (CheckBox)ri.FindControl("chk2");

       chk2.Checked=true;
    }
}

 

This will simply not work.

Without going through the explanation why it does not work, let see how we can get it work.

If you have a footer and header template defined in the repeater, header is item with index 0 and footer is the last item. Bearing that in mind, we can simply access the header and footer controls as follows:

CheckBox chk1 = (CheckBox)rpt.Controls[0].FindControl("chk1");
chk1.Checked = true;
CheckBox chk2 = (CheckBox)rpt.Controls[rpt.Controls.Count - 1].FindControl("chk2");
chk2.Checked = true;

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by: WebCosmo
Posted on: 7/17/2008 at 11:08 AM
Categories: Programming / Coding
E-mail |  Stumble it! |  Propeller it! |  Digg it! |  del.icio.us |  Technorati
Post Information: Permalink | Comments (1) | Post RSSRSS comment feed

Programmer's Forums

Here is a small list of programmers forums; incase you need them:

http://www.vbforums.com
http://www.vbcity.com/forums
http://www.programmingtalk.com
http://www.codecomments.com
http://www.codeguru.com/forum
http://www.daniweb.com/forums
http://forums.devshed.com
http://www.gidforums.com
http://forums.microsoft.com/msdn/default.aspx?siteid=1
http://www.developerfusion.co.uk/forums
http://www.gamedev.net/community/forums
http://www.codeproject.com/script/Forums/view.aspx

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by: WebCosmo
Posted on: 5/2/2008 at 5:46 AM
Categories: Programming / Coding
E-mail |  Stumble it! |  Propeller it! |  Digg it! |  del.icio.us |  Technorati
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed

Reindexing Microsoft SQL Databases to Optimize Performance

Generally the indexing is done automatically in MS SQL database. If you need to reindex the database for any reason, you can use the tips here.

First of all backup the databse before starting the reindexing. So anything goes wrong, you can get your DB back.

We will use DBCC DBREINDEX, a helpful database maintenance command available for defragmenting indexes in Microsoft SQL Server. DBCC DBREINDEX can be used to rebuild one or more indexes for a specific table.

DBCC DBREINDEX locks the tables as it is operating on, tables would be unavailable to users when this command runs.

Primary Key or Unique constraints are preserved automatically during the rebuild. DBCC DBREINDEX completely rebuilds the indexes, so it restores the page density levels to the original fill factor (default). However, if you prefer, you can choose another target value for the page density. Running DBCC DBREINDEX is similar to using Transact-SQL statements to drop and re-create the indexes manually.

To reindex all the indexes in a Microsoft SQL database, follow these steps:

1. On the Start menu, point to Programs, point to Microsoft SQL Server, and then click Query Analyzer.

2. In the Connect to SQL Server dialog box, click OK.

3. On the Query menu, click Change Database.

4. In the Select Database of <ServerName> dialog box, click the Microsoft CRM database that you want to work on, and then click OK.

5. In the Query window, type the following commands:

DECLARE @TableName varchar(255)
DECLARE TableCursor CURSOR FOR
SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE = 'base table'
OPEN TableCursor
FETCH NEXT FROM TableCursor INTO @TableName
WHILE @@FETCH_STATUS = 0
BEGIN
PRINT 'Reindexing ' + @TableName
DBCC DBREINDEX(@TableName,' ',90)
FETCH NEXT FROM TableCursor INTO @TableName
END
CLOSE TableCursor
DEALLOCATE TableCursor

6. Click the Execute Query button on the toolbar, and the results will show in the results pane.

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by: WebCosmo
Posted on: 3/11/2008 at 5:37 AM
Categories: Programming / Coding
E-mail |  Stumble it! |  Propeller it! |  Digg it! |  del.icio.us |  Technorati
Post Information: Permalink | Comments (1) | Post RSSRSS comment feed