mhinze.com

links etc.




    Archive for March, 2007

    links for 2007-03-31

    Saturday, March 31st, 2007

    wordpress seo stuff

    Friday, March 30th, 2007

    doing a little seo for wordpress this morning.

    for my sites, duplicate content has become a large seo problem.  i am fixing it today.

    In an attempt to eliminate duplicate content from this and other wordpress blogs i maintain, I have done the following:

    in an attempt to clean up my dirty meta descriptions, i installed head meta description plugin

    i was already doing

    • spiffy title tags:
    <title><?php if (is_home()) { ?><?php bloginfo('name'); ?><?php } else { ?><?php wp_title(''); ?> &raquo; <?php bloginfo('name'); ?><?php } ?></title> 
    • google sitemaps generator (actually this is the link for the new beta which i haven't played with yet)
    • my permalink slug is almost always
      /%postname%/

    and this isn't necessarily seo, but i am using dofollow on a few blogs (including this one)

    all this plus the regular advice regarding proper markup and decent content and not breaking the rules should increase my blogs' organic traffic

     

     

    Technorati tags: ,

    links for 2007-03-30

    Friday, March 30th, 2007

    links for 2007-03-29

    Thursday, March 29th, 2007

    clear or remove query string on postback… nifty but ghetto

    Wednesday, March 28th, 2007

     
     
    if (!Page.IsPostBack)
    {
       // set defaults, hide yer panels, etc here
    
       if (Request.QueryString["q"] != null) // if the query string exists
       {
           // aspnetForm - default masterpage form name, YourPage.aspx - whatever your page name is
           ClientScript.RegisterStartupScript(this.GetType(), "qr", 
                "document.all(\"aspnetForm\").action = \"YourPage.aspx\";", true);

           // do stuff with query string
           RedrawPage(Request.QueryString["q"]);
       }
    }

     

    via msdn

     

    so if you have a page that accepts a query string, you definitely want to set that view

    but this is asp.net, so your page also posts back

    you don't want the query string to persist across postbacks - that's just ugly, breaking bookmarks, etc.  you want to clear the query string but maybe you are trying Clear() or Remove() and you are realizing that Request.QueryString is Read Only..

    one option is to set the form's action in client script (Googlebot's not posting back anyway)

    is there a better way to do this?  it seems so ghetto

    by the way, comments on this blog are NOT nofollowed

     

    .

    links for 2007-03-28

    Wednesday, March 28th, 2007

    links for 2007-03-27

    Tuesday, March 27th, 2007

    links for 2007-03-27 the first

    Tuesday, March 27th, 2007

    pl/sql: updating a table but not replacing it, with sequence/triggers

    Monday, March 26th, 2007

    ever forgotten the predicate of your update query?  you would have to update everything from backup.  back to the future!

    i affected (er, corrupted) all 1600+ rows of semi-important data recently.  and had to restore the rows (while keeping the rows added since last night).. thought about something cool like insert into where not exists or using minus, but we settled on the fastest way:

    alter trigger schema.id_pk_increment disable
    delete from schema.table where id in (select id from other_schema.table_restore)
    insert into schema.table select * from other_schema.table_restore
    alter trigger schema.id_pk_increment enable
    

    links for 2007-03-26

    Monday, March 26th, 2007
    © 2007 mhinze.com