Next generation's garbage RSS 2.0
# Thursday, October 18, 2007

The first blog entry I made, initially, had a float clear problem. DasBlog apparently doesn't clear floats from the HTML entry contents in the crazy manner needed to appease the IE quirks gods. See http://www.positioniseverything.net/easyclearing.html.

The problem should be evident on this page:

http://hafthor.com/floatclear.htm

scroll down far enough on IE and you should see the text of the article disappear. This appears to happen because the align=right img floats lower than text. If you don't see that behavior, the image at the end of this article shows the effect. After posting the original article, I moved the image up to avoid this problem. But I wanted to see if I could fix it. Maybe...

http://hafthor.com/floatclear2.htm

I simply added this to the theme.css

.itemBodyStyle:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.itemBodyStyle {display: inline-block;}

/* Hides from IE-mac \*/
* html .itemBodyStyle {height: 1%;}
.itemBodyStyle {display: block;}
/* End hide from IE-mac */

and got rid of the <div style="clear:both;" /> business from the itemTemplate.blogtemplate.

If this works right, I shouldn't have the float problem on this post.

Edit: Yes, but it doesn't work quite right when shown in RSS Bandit.

Edit: But if I place a <div style="clear:both" /> at the end of the blog article html, it shows up correctly. Hmmm...

Thursday, October 18, 2007 2:25:02 AM (US Mountain Standard Time, UTC-07:00)  #    Comments [0] -
dasBlog | HTML
# Wednesday, October 17, 2007

Well, after much procrastination, I finally spent some quality time with the GoDaddy hosting control center and various dasBlog instructions and got it working.

For anyone trying the same...

  1. From GoDaddy, go to "My Hosting Account".
  2. Click the [open] link under "Control Panel" for the domain.
  3. Under settings, select ASP.NET runtime and make sure it's 2.0.
  4. Under settings, check FrontPage extensions and make sure they are NOT installed.
  5. Select "Directory Management" under "Content".
  6. Create a custom directory where you'll host the blog with "Read", "Web" and "Set Root".
  7. Create the subdirectories SiteConfig and logs and give them each read+write access.
  8. Create another one called content and give it read+write+web access.
  9. Download the dasBlog webfiles zip and extract it locally.
  10. Edit your siteconfig/site.config setting the obvious looking stuff.
  11. Edit your /web.config to get rid of or comment out the line
    <trust level="Medium" originUrl="" /> (a GoDaddy-ism)
  12. Copy all the extracted files to your blog directory (using explorer view on ftp:// works)
  13. Point your browser at your blog.
  14. Sign in using "admin", "admin" (unless you changed the user name in SiteConfig/siteSecurity.config before you uploaded it)
  15. Immediately change that password.

** Disclaimer: I didn't try those steps exactly so they may not be entirely perfect. **

Edit: Okay, I just setup another blog using those instructions and they seemed to work nicely.

Look here for more help on this.

http://www.aakashjain.com/How+To+Setup+DasBlog+On+Godaddy.aspx

Now, to blog from Word 2007 with images… create from the blog post template, set up an account of type "Other" and set the Url to http://domain/blogdir/blogger.aspx, set the picture option to "my blog provider". Publish! It should automatically upload pictures to /content/binary/.

Okay, so what is freachable? It is purgatory for .NET objects with finalizers. During garbage collection, objects that have finalizers need to have their finalizers run, but the GC shouldn't have to wait for them (after all the entire process is stalled while GC runs and finalizer code could affect what the GC is doing), but if there are no references to keep the object alive, it will get collected so the object is made to reachable by the finalizer thread by placing it in its special queue called freachable. GC completes and the finalizer thread wakes up, executes the finalizers in the freachable queue, and clears the queue entry, which is the last remaining reference to the object and now the next time GC runs, the object's memory will be reclaimed.

Read all about GC at http://msdn.microsoft.com/msdnmag/issues/1100/gci/

According to that article, it is pronounced f-reachable. That just sounds l-ame.

So what's the point of this blog? To blog stuff I figure out. I will try not to waste bandwidth on "hey, go read what this other guy figured out". Okay, so most of this post is stuff that someone else figured out, but the web.config mod on dasBlog was not in Aakash's notes.

Wednesday, October 17, 2007 11:53:53 PM (US Mountain Standard Time, UTC-07:00)  #    Comments [0] -
.NET Internals | dasBlog | Office 12
Archive
<July 2010>
SunMonTueWedThuFriSat
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567
All Content © 2010, Hafthor Stefansson - Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way. - Sign In