I wanted to try this from Hulu

28. March 2008

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.

 

Reviews, Entertainment

BlogEngine.Net Multiple Blog

27. March 2008

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.

 

BlogEngine.Net

Reverse DNS blacklist checks for BlogEngine.Net

27. March 2008

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

Thought Paper: Bible Quotes

25. March 2008

I choose the following quotes from the Bible because for me they exemplify the complexities which we deal with when we discuss our spirituality. There are many ways in which we try to rationalize and give meaning to our life and those before us. I found it very interesting that in the early chapters of the Bible the use of light was to symbolize the idea of creation. Even then the early authors realized that there was a special connection between us and light, or energy. They understood that using light and dark they were able to express the ultimate duality of nature that exists, life and death. In most of the text, light symbolizes that which is alive and dark to represents death. The Old Testament focuses on the body or nature.

Later, in the New Testament, light is used to express the God qualities that one should try to realize and manifest. Luke 33 makes it clearest for me. Once a person has experienced the light they can no longer hide it but must share it with the world. It is to this meaning I most identify myself with the use of light as a metaphysical symbol. Luke expresses himself vividly with the metaphor of light and the presence or knowledge of God. It provides an eloquent teaching in a very simple, concise message.

Even thought light is used as a physical and spiritual metaphor, I believe it influences people more when they are trying to connect with God by using it in a spiritually enlightened context. Before this paper I had never really considered light as a tool for the body and the mind even though I meditate best with a candle lit room. So now I try to use the physical energy of the light as a connector, a reminder, of the spiritual connection I have with God, both physical and spiritual.

Quotations that I used

 

Genesis 1

1 In the beginning God created the heavens and the earth.

2 Now the earth was [a] formless and empty, darkness was over the surface of the deep, and the Spirit of God was hovering over the waters.

3 And God said, "Let there be light," and there was light.

4 God saw that the light was good, and He separated the light from the darkness.

5 God called the light "day," and the darkness he called "night." And there was evening, and there was morning—the first day.

15 and let them be lights in the expanse of the sky to give light on the earth." And it was so.

16 God made two great lights—the greater light to govern the day and the lesser light to govern the night. He also made the stars.

17 God set them in the expanse of the sky to give light on the earth,

18 to govern the day and the night, and to separate light from darkness. And God saw that it was good.

Luke 11

33 "No one lights a lamp and puts it in a place where it will be hidden, or under a bowl. Instead he puts it on its stand, so that those who come in may see the light.

34 Your eye is the lamp of your body. When your eyes are good, your whole body also is full of light. But when they are bad, your body also is full of darkness.

35 See to it, then, that the light within you is not darkness.

36 Therefore, if your whole body is full of light, and no part of it dark, it will be completely lighted, as when the light of a lamp shines on you."

Luke 11

8 "Or suppose a woman has ten silver coins[a] and loses one. Does she not light a lamp, sweep the house and search carefully until she finds it?

Proverbs 6:23

23 For these commands are a lamp, this teaching is a light, and the corrections of discipline are the way to life,

Proverbs 15:30

30 The light of the eyes rejoiceth the heart: and a good report maketh the bones fat.

Religious Science, Science of Mind , , , ,

In memory of Cliff

20. March 2008

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

Looking Back, Religious Science, Science of Mind , , , ,

Thought Paper: Practice the Presence

18. March 2008

The routine that I thought was most unpleasant that I needed to change my mind about was taxes. As a business owner the amount of paper work required is enormous, the details are tedious, and I do not really like giving my money to fund things like the implementation of the death penalty.

So, with all the baggage and beliefs that I had about this routine I have decided that it is here I need to Practice the Presence.

I decided that I would do all the little things that are necessary to make tax time easier to handle. I will take a little more time and focus on being in grateful that I can pay my taxes and that the more I pay the more money I have flowing through me. To make this happen with certainty I am dedicating biweekly time to prepare the documentation and organize those documents in a manner that is consistent with order.

Religious Science, Reviews, Science of Mind , , , ,

My first WebSlice

13. March 2008
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>

.Net, BlogEngine.Net, Microsoft, Visual Studio

Multiple blogs on the BlogEngine - Part II

12. March 2008

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.

BlogEngine.Net

Multiple blogs on the BlogEngine - an implementation

11. March 2008
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;
             }
         }
     }

Lake Taneycomo - Lilley's Landing

4. March 2008

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

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

General, fishing