I wanted to try this from Hulu

March 27, 2008 15:31 by rclarkson

Check this out.  Hulu is a website that has movies and tv shows, legitimately, that you can watch in great quality on the web.  I don't know who put this together but it is a really good site.

 


Be the first to rate this post

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

BlogEngine.Net Multiple Blog

March 27, 2008 02:40 by rclarkson

I wanted everyone to know that the xmlmultiblogprovider is going to be pulled from the current code base on CodePlex.  I assumed that the amount of requests on Codeplex would generate some feedback.  Sadly, it did not. It turns out that while many of you voted for the feature, only two other people actually tried it out.  I am going to keep the source on my web site. 

FYI:  It was not intended to be released in BE.N 1.4.   So I am going to pull it out and try it on some of my sites.  If you want the provider I will post it soon enough on this web site.

 


Currently rated 5.0 by 1 people

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

Reverse DNS blacklist checks for BlogEngine.Net

March 26, 2008 14:48 by rclarkson

Meanwhile I listened to a podcast the other day about HttpHanlders and HttpModules.  The interviewee spoke about creating a banned IP lookup to keep known bad servers away from your web site.  So, I took it a little further and mashed up some existing code that did reverse DNS lookups and wrapped it into an BE.N Extension.  You know what, it rocks!  I have hosted email for a long time and know the issues around reverse DNS lookups, so I did not take this decision likely.

In essence, if your IP was banned, the Extension replaces the body of the content serving and replaces it with, "Your IP has been blacklisted....".

In fact, if you can see this page, you are not black listed.

I got the idea from the pod cast "MSDN geekSpeak Webcast Audio: httpHandlers and httpModules with Chris Love (Level 200)" on "MSDN geekSpeak Podcasts" .  You can find more about the developer Chris Love who was interviewed.  You can see his first computer, which is the same one I had at Timex Sinclair 1000


Be the first to rate this post

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

In memory of Cliff

March 20, 2008 09:18 by rclarkson

My elderly neighbor passed away the last Friday.  I never really knew him but I thought I should at least post this as a memory that I should look upon in the future and reflect.  His passing taught me that I need to pay attention to my elderly neighbors. 

Best wishes to the family.

 

Peace and Love

Roman


Be the first to rate this post

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

My first WebSlice

March 12, 2008 15:35 by rclarkson
I added this to my BlogEngine them. It worked the first time. Now that is amazing. I expect that this will take off for many BE.N site.
<div class="hslice" id="1"> 
<h1 class="postheader" >
<a class="postheader taggedlink" href="<%=Post.RelativeLink %>">
<div class="entry-title"><%=GetColoredTitle(Post.Title)%></div></a>
</h1>
<div class="date"><%=Post.DateCreated.ToString("MMMM d, yyyy HH:mm")%> by 
<a href="<%=VirtualPathUtility.ToAbsolute("~/") + "author/" + Post.Author %>.aspx"><%=Post.Author %></a>
</div>
    <!--<div class="entry">-->
        <%-- <%=Body %> This has been depreciated so please don't use it anymore. --%>
        <%-- Instead use the line below --%>
        <div class="entry-content" ><asp:PlaceHolder ID="BodyContent" runat="server" /></div>
        <br /><%=Rating %>
    <!--</div>-->
</div>

Currently rated 5.0 by 1 people

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

Multiple blogs on the BlogEngine - Part II

March 11, 2008 17:17 by rclarkson

I thought I would let everyone know that I added a beta version of an XmlMultiBlogProvider to codeplex.  Give it a try.  In the issue tracker, http://www.codeplex.com/blogengine/WorkItem/View.aspx?WorkItemId=2716, I added some instructions.

Please give me some feedback.


Currently rated 1.0 by 1 people

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

Multiple blogs on the BlogEngine - an implementation

March 10, 2008 15:03 by rclarkson
I had a pseudo  epiphany this day regarding BlogEngine.  I was able to create a multi-blog site with BlogEngine.  There are only a few things that you have to do.  This example supports ONLY supports domain + port, virtual directories, and subdomains + domain. 
  1. You need a fresh copy of BlogEngine from http://codeplex.com/blogengine.  I have two utility methods in the Utils.cs that is needed.
  2. Create a directory "~/setup/defaultinstall/" and copy all the default files that you want to include in the new BE.N instance in this directory.  I recommend just copying the default entries in the App_Data folder.  Make sure you set the files to read.
  3. Make the following changes to the BlogSettings.cs so the StorageLocation property matches Code Change 1.  Decide if you are going to use sub-domains, domains or virtual directories. 
  4. Start the application.  If you have IIS set with the appropriate header or have a virtual directory setup this example will auto copy all the files in the "~/setup/defaultinstall/" and create a new site. 
Don't try this on a production site just yet.  This is my first successful run and it seems to be working.  I need some feedback.
Know what is weird?  I was looking for a subdomain getter method and found one written by Mads @ http://www.webpronews.com/expertarticles/2006/11/30/retrieve-subdomain-from-a-url-in-c.  Small, small, small world.  It was destiny so I included it in the Utils.cs.
Code Change 1:
public string StorageLocation
     {
         get
         {
             //for use with virtual subdomains + domain + ports

             // string folder = @"~/app_data/" + Utils.GetSubDomain(HttpContext.Current.Request.Url)  + HttpContext.Current.Request.Url.DnsSafeHost + HttpContext.Current.Request.Url.Port.ToString() + "/";

             //for use with virtual direcory

             string folder = @"~/app_data/" + HttpContext.Current.Request.Url.Segments[1].ToLowerInvariant() + "/";

             //for use with virtual domain and   subdomains

            // string folder = @"~/app_data/" + Utils.GetSubDomain(HttpContext.Current.Request.Url) + HttpContext.Current.Request.Url.DnsSafeHost + "/";

             string defaultDataFolder = HttpContext.Current.Server.MapPath("~/setup/DefaultInstall/");

             if (!Directory.Exists(HttpContext.Current.Server.MapPath(folder)))
             {

                 object _lock = new object();

                 lock (_lock)
                 {

                     Directory.CreateDirectory(HttpContext.Current.Server.MapPath(folder));

                     Utils.RecursiveDirectoryCopy(defaultDataFolder, HttpContext.Current.Server.MapPath(folder), true, false);

                 }
             }

             return folder;
         }

         set
         {
             if (String.IsNullOrEmpty(value))
             {
                 storageLocation = String.Empty;
             }
             else
             {
                 storageLocation = value;
             }
         }
     }

Currently rated 5.0 by 2 people

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

Lake Taneycomo - Lilley's Landing

March 4, 2008 00:39 by rclarkson

Check out this story about Lake Taneycomo.  I went but didn't see any this big.

http://www.taneycomotrout.com/storyoftheyear2007.html


Be the first to rate this post

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