You are currently browsing the category archive for the ‘nerdiness’ category.

It’s been a few months since I have wanted to try this out and I finally have; I am using Elmah on one of my website to track errors.  Thankfully there are very few, but the experience of getting it setup is always worth it.

I am impressed on how many ways it can log, to name a few there are MSSql, Oracle, SQLite, MS Access, VistaDB, XML, memory, and others I believe. I opted for the SQLite option, as Elmah builds the database on the fly if it doesn’t exist (same with VistaDB).

My main reason I didn’t set it up right away was I just couldn’t find a flat guide on how to set it up.  Nothing really says, do this, this, then this.  Well it’s a slow day today, so I took another quick look at the website http://code.google.com/p/elmah/, downloaded the source, and moved forward.  There is this neat demo you can run from the source by running the demo.cmd file in the root of the zip file.

That demo, it’s web.config, and the web.config located under \samples, was all I needed to get started.  Pretty easy to add the parts to the web.config of my website and get everything working.  A real simple package to get up and running.

Next up, work on filtering out items I don’t want logged in Elmah.

This is one of my favorite posts at stackoverflow.com.

http://stackoverflow.com/questions/84556/whats-your-favorite-programmer-cartoon

I am no newcomer to wiki’s though it has been a couple years since I have seen the new products.  Since a few of us at work have been throwing around ideas of wiki’s as knowledgebases, I thought I was look into them again.

I must say, not a whole lot has changed.  Sure some of the products have newer web features, but I have one desire, I just want to edit a wiki page in the same manor I do a Word document.  I understand the limitations, etc. but I don’t care, it’s still how I want to handle it.

So I tried out a couple of products, well the ones I could setup on my ihostasp.net web, anyway.

Well TikiWiki installed, but I couldn’t get it to run for the first time, the tiki-setup.php file which is ran first time in the application kept dropping off the last directory of my installation (d:/wwwroot/mydomain/ which TikiWiki determined should of been d:/wwwroot/mydomain/tiki).  I found some forum posts, but nothing I could apply  to get it working.  I will have to dig into the code which is grabbing the physical path to figure this out.  OK, that one is on the back burner for now. Tried versions 2.0 and 1.9.? same deal with both.

MediaWiki loaded up real easily, but it’s sure cumbersome to get around.  I guess it makes sense, the product is designed for huge installations usually in farms.  Great install though.

Looked at MoinMoin, which comes highly rated requires Python, so that’s a show stopper on my web host.  I may still try it out on a CentOS virtual I have at home.

You know I guess something I don’t like about wiki’s is the wiki syntax, it’s just a pain.  WordPress has sure come a long way with it’s latest updates, perhaps this would work for us?  No real search capabilities though.

This certainly has been an interesting trip down wiki lane and it really didn’t get me much further then I got before.  I am intersted in where my endevors in the wiki world will bring me tonight…

Well it is night now, and funny thing about the tikiwiki, I found where the issue is and it was moved from version 1.9.

File is /tiki/lib/setup/tikisetup.class.php and it’s how the base pathe is retrieved.

       if (strpos($_SERVER['SERVER_SOFTWARE'],'IIS')==TRUE){
		if (array_key_exists('PATH_TRANSLATED', $_SERVER)) {
        	$docroot = dirname($_SERVER['PATH_TRANSLATED']);
		} else {
			$docroot = getcwd();
		}
        }

Basically the software is using PATH_TRANSLATED for IIS and my host is not sending the full physical path, but the physical path of the web root. So I simply changed it:

       if (strpos($_SERVER['SERVER_SOFTWARE'],'IIS')==TRUE){
		if (array_key_exists('PATH_TRANSLATED', $_SERVER)) {
        	    // $docroot = dirname($_SERVER['PATH_TRANSLATED']);
                    $docroot = getcwd();
		} else {
			$docroot = getcwd();
		}
        }

And that is simply that.  Took me to long to find the statement, must mean I need to get out of my lazy manager’s chair more often.


		

I would like to complete this list for eleven, and thirteen through nineteen if it’s possible. Have always been curious on all these names. Used to discuss them with an old co-worker Paul. My other thought is, are these even accurate and/or correct? This list from Wiktionary (tertiary).

Here is an off-line version of eve for when your bored or can’t play EVE and really want to.

Thank you Krxon Blade

Game Link

While reading the news on myyahoo today I came across this story about a black hole found 13 Billion light years away. As I thought about it, I really realized that 13 billion light years is a completely incomprehensible distance. So being the curious type that I am I set out to find out how far that really is.

I started out by looking up some values:

Astronomical Unit (AU):
1 AU = 149,598,000 Km (kilometers)

Light-year (ly) :
1 ly = 63239.6717 AU

So:

13,000,000,000 ly * 63239.6717 = 822,000,000,000,000 AU

822,000,000,000,000 * 149,598,000 =
123,000,000,000,000,000,000,000Km

Hmm…

so there are 123 x 10^21 km in 13 billion light-years
or 76.4 X 10^21 miles for us here in the States.

OK, that didn’t help at all. Like I said, completely incomprehensible

I will not remove the Hello, World default post from WordPress, I just won’t.

Why should I, it is the start of the blog, the first post.  I may even keep the About page, just because. Hey, every time I learned a new programming language, the first thing I create is a Hello, world page, script, whatever; so why not have one here?  Not exactly sure where it started, but I bet there’s an entry on Wikipedia for it…

Well yes it is at Wikipedia, right here. The article states that Hello, world started with the book from Kernigham and Ritche, one of my favorites, “The C programming Language.”

I wonder if it became popular from that book?  I just re-read this book in November, because I was looking to get back to my roots. It was fun, but now I’m over it. There are such better ways to work with strings these days. I really do like how it makes me think. A little pointer arithmetic once in a while is good for the soul.  So, anyway, the Hello, world post stays.

Care to debate on it’s capitalization?  🙂