Pruter go boom!

Published 3/27/2009 by createdbyx in News
Tags:

I am beginning to see a trend in the reliability of hp ac adapters for laptops. This is the second hp laptop I have owned and the second hp laptop ac adapter to fizzle out. Both ac adapters died after about 1.5 to 2 years of use. So I dusted off my ancient desktop tower (1Ghz, 512Mb ram, 20Gb hard drive, ATI 9200) to make this post.

I could not figure out why it was locking up on me. Not really locking up but was intermittently being pegged at 100% CPU usage. I pulled each component out separately and tested the computer. The ram, hard drive, virus scans, hard drive scans, etc. didn't seem to solve the problem. I finally managed to find a web page from other people who had similar issues, and turns out that it was the ac adapter. As soon as I pulled the cord out if the laptop and let it automatically switchover to battery power the CPU usage dropped back down to nothing. Doh!

So now I'm stuck with a computer from the time of antiquities until the new ac adapter I ordered comes in the mail. It's not all that bad really. It performs rather sporty for a 8-10 year old machine. :P


Comments

Autocratic Reply

Saturday, May 16, 2009 7:29 PM

I've been looking into using blogengine as a personal blog for me, is the backend user friendly? I'm pretty autocratic when it comes to learning code, and having started yet!

createdbyx Reply

Saturday, May 16, 2009 9:21 PM

From my experience it's a pretty good blogging platform. I like it because it's easy to use, dose not require a database store but you can use one if you want to. Themes support, and more. It is also quite easy to write custom extensions and user controls for it. I myself have written about 6 different ones for various parts of the createdbyx.com site. All in all I've been pretty happy with it.

The code below is an example of how easy it is to implements a custom extension. This is a extension I wrote to inject creative commons info anywhere on a page just by typing [CC] when the page or blog post gets rendered the extension is run and replaces the [CC] string with the creative commons info. All you need to do is place the code file in the "App_Code\Extensions" and you are done!

  
#region Using

using System;
using System.Text;
using System.Text.RegularExpressions;
using System.Net;
using BlogEngine.Core;
using BlogEngine.Core.Web.Controls;

#endregion

[Extension("Replaces [CC] with a Creative Commons Attribution-Noncommercial-Share Alike 2.5 Canada License.", "1.0", "createdbyx.com")]
public class CreativeCommons
{
    public CreativeCommons()
    {
        Post.Serving += new EventHandler<ServingEventArgs>(Serving);
        Page.Serving += new EventHandler<ServingEventArgs>(Serving);
    }

    private void Serving(object sender, ServingEventArgs e)
    {

        while (e.Body.Contains("[CC]"))
        {
            int pos = e.Body.IndexOf("[CC]");
            if (pos != -1)
            {
                e.Body = e.Body.Remove(pos, 4);
                e.Body = e.Body.Insert(pos, GetHTML());
            }
        }

    }

    public string GetHTML()
    {
        return "<div align=\"center\">\r\n" +
                "<a rel=\"license\" target=\"_blank\" href=\"creativecommons.org/licenses/by-nc-sa/2.5/ca/\">" +
                "<img alt=\"Creative Commons License\" style=\"border-width:0\" src=\"i.creativecommons.org/l/by-nc-sa/2.5/ca/88x31.png\" />" +
                "</a>" +
                "<br />This work by " +
                "<a xmlns:cc=\"http://creativecommons.org/ns#\" href=\"http://www.createdbyx.com/\" property=\"cc:attributionName\" rel=\"cc:attributionURL\">Dean Lunz</a> is licensed under a " +
                "<a target=\"_blank\" rel=\"license\" href=\"creativecommons.org/licenses/by-nc-sa/2.5/ca/\">Creative Commons Attribution-Noncommercial-Share Alike 2.5 Canada License</a>." +
                " Permissions beyond the scope of this license may be available at " +
                "<a xmlns:cc=\"http://creativecommons.org/ns#\" href=\"http://contact.createdbyx.com/\" rel=\"cc:morePermissions\">http://contact.createdbyx.com/</a>." +
                "</div>";
    }
}
  

Add comment




biuquote
  • Comment
  • Preview
Loading



Created by: X

Just another personal website in this crazy online world

Name of author Dean Lunz (aka Created by: X)
Computer programming nerd, and tech geek.
About Me -- Resume