The goal of this document is to walk through the installation of a MoinMoin wiki without getting bogged down in any details.  We’ll go through requirements, decisions, and steps to complete, that’s all.  (OK, I did end up indicating what directories are added; I can’t stand when stuff is added I don’t know about.)   I will follow up this post with the details for those who are interested. Once you have completed the steps herein you will have a working MoinMoin wiki on your Dreamhost.com shared hosting account.  By no way is this the only way to set up MoinMoin on an account, or even the best way, but I tested it and it will work.  Lets get to it!

Requirements

  • Dreamhost shared hosting account.
  • A domain setup as fully hosted
  • Shell and FTP access to the domain account

Assumptions

  • Dreamhost running python version 2.4
  • MoinMoin version 1.8.5
  • Understanding of editing files from Linux shell
  • acctname is the accout name you used to access your domain account through ssh and FTPS.
  • ~/ = $HOME = /home/acctname/

Decisions

  • URL to run wiki from (we use sub directory) [We will use: http://hosteddomain/wiki]
  • Private name for the wiki’s instance name [We will use: dhwiki]

Steps

  1. Download MoinMoin wiki tarball from http://moinmo.in/MoinMoinDownload (moin-1.8.5.tar.gz) to your local workstation.
  2. From FTP: upload file to Dreamhost into folder ~/files [/home/acctname/files]
    ** All commands from now on are from your shell access **
  3. cd ~/files
  4. tar -xvzf ~/files/moin-1.8.5.tar.gz [new directory is created: ~/files/moin-1.8.5
  5. cd ~/files/moin-1.8.5
  6. python setup.py --quiet install --prefix=$HOME --record=install.log

    [two directories created: ~/share/moin; ~/lib/python2.4/site-packages/MoinMoin]

  7. Setup environment variables
    1. export PREFIX=$HOME
    2. export SHARE=$PREFIX/share/moin
    3. export WIKILOC=$SHARE
    4. export INSTANCE=dhwiki
  8. cd $WIKILOC
  9. mkdir $INSTANCE
  10. cp -R $SHARE/data $INSTANCE
  11. cp -R $SHARE/underlay $INSTANCE
  12. cp $SHARE/config/wikiconfig.py $INSTANCE
  13. chmod -R o+rwX $INSTANCE
  14. Edit file $INSTANCE/wikiconfig.py
    Find and change the follwing lines:

    1. sitename = u'Your Wiki Title'
    2. logo_string = u'<img src="/wiki/common/moinmoin.png" alt="MoinMoin Logo">'
    3. Remove hash (#) in front of: page_front_page = u"FrontPage"
    4. data_dir = '/home/acctname/share/moin/dhwiki/data/'
    5. data_underlay_dir = '/home/acctname/share/moin/dhwiki/underlay/'
    6. url_prefix_static = '/wiki'   [(remove # from line)]
    7. mail_smarhost = "dreamhost smtp server"
  15. cd ~/hosteddomain
  16. cp -R $SHARE/htdocs wiki
  17. chmod -R a+rX wiki
  18. cd wiki
  19. mkdir ./cgi-bin
  20. cp $SHARE/server/moin.cgi ./cgi-bin
  21. chmod -R a+rx ./cgi-bin
  22. cd ./cgi-bin
  23. Edit file moin.cgi
    Find and change the following lines.  Please remove the # if they exist on THESE lines:

    1. sys.path.insert(0, 'home/acctname/lib/python2.4/site-packages')
    2. sys.path.insert(0, '/home/acctname/share/moin/dhwiki')
  24. cd ..
  25. Edit file index.html
    Find and change the following lines:

    1. <meta http-equiv="refresh" content="0; URL=cgi-bin/moin.cgi/">
    2. Click <a href="cgi-bin/moin.cgi">here</a> to get to the FrontPage
  26. Go to your favorite browser and enter your wiki's domain: Http://hosteddomain/wiki

Use these instructions at your own risk.  I extend no warranties or guarantees about the accuracy or safety of your data or website.

These instructions where tested by building the following wiki: http://MMonDH.brettski.com/wiki

All comments are welcome

References Used

  • http://master.moinmo.in/MoinMoin/InstallDocs#basic-install
  • http://www.wombatnation.com/misc/installMoinMoinDreamHost.html

Revision Information

  • 11/21/2009
    • Initial post after successfully building a wiki following exact steps
Is this a negotiation, or are you just not interested? I am spending about 40k a month right now on consultants, so I have plenty of money to spend. Culture, to me it's directly impacted by budget and resources. At the time that we spoke my budget isn't nearly as high as it is right now. If you are talking about working evenings you do that already.
11/20/2009 8:11:16 PM mikeg1@ephmc.com (E-mail address not verified) Brettski *red+u When we first spoke, I was under the impression you no longer available after 6:00. You underpromised, so you could over deliver. I found out later that you were one of the hardest working guys that I know.
11/20/2009 8:13:30 PM mikeg1@ephmc.com (E-mail address not verified) Brettski *red+u Maybe you don't want to work that hard which is why it became an issue for you when I was pressing it. When I interview people, I always try and understand where their comfort levels are so I understand their boundries. The way I saw it is you wanted to have dinner with your family and got back on the computer later. Here is what I would ask for you to do.
11/20/2009 8:15:12 PM mikeg1@ephmc.com (E-mail address not verified) Brettski *red+u Look at your last month, and figure how many hours you really worked. Was it 40-50? 50-55? or +55 hours per week? I am interested in knowing because I am guessing your somewhere between 50-55.
11/20/2009 8:18:46 PM mikeg1@ephmc.com (E-mail address not verified) Brettski *red+u When we were in our discussions, you were giving me the perception that it could cause a problem for you at home if you were hoing to have to put in over 45 hours. What I really think is if you could make $110,000 in a 50 hour work week, or you could make $150,000 in a 60 hour work week I think you would probibly work 60. And then figure how you could get it down to 55... and then 52...
11/20/2009 8:21:25 PM mikeg1@ephmc.com (E-mail address not verified) Brettski *red+u And at the same time you were doing that, you would get me from 65 to 58, and 58 to 52, and so on. So at the end of the day, it really comes down to how much my time is worth as well as your time. Which is something you might not be taking into consiteration when you limit your opportunities and not discussing this further.
11/20/2009 8:23:43 PM mikeg1@ephmc.com (E-mail address not verified) Brettski *red+u Currently, I have 3 consultants I am paying 170,000 and they are not as smart as you are. They are down the street and you were down the block. At a certain point, I am sure you can understand that I can only afford to spend so much time in IT. I am ready to discuss dollars if you are. I am willing to discuss the boundries, or we can not discuss it at all.
11/20/2009 8:24:56 PM mikeg1@ephmc.com (E-mail address not verified) Brettski *red+u Hopefully you at least know where I am comming from. Bottom line, I am sitting here writing big checks saying to myself. Would I be writing checks this big and having to invest the time if Brett were here?
11/20/2009 8:27:22 PM mikeg1@ephmc.com (E-mail address not verified) Brettski *red+u I don't mind writing the checks, what I mind is when I have ot write the checks and still put in the time. You asked me what my commitment to you would be. If we were to do something, I told you I would give you a year of 60 hours a week of helping you acclimate yourself to our company. Thats a big investment of my time. I apprechiated the question because no one had ever asked me before.
11/20/2009 8:29:59 PM mikeg1@ephmc.com (E-mail address not verified) Brettski *red+u So here is what you have to ask yourself... Do I want to pass on the biggest financial opportunity of my life without going to see this man? The question I would ask you, is why would you want to limit your opportunities?
11/20/2009 8:34:35 PM mikeg1@ephmc.com (E-mail address not verified) Brettski *red+u The only thing I can think of is that you would be affraid of the industry, maybe that you were getting dragged into the deep end of the pool, giving up a job that I like that I am currently doing. Also, I did hire a senior level programmer for more money than you were asking for when you were interviewing and I am willing to pay him. Because I see how much value he brings me.
11/20/2009 8:35:27 PM mikeg1@ephmc.com (E-mail address not verified) Brettski *red+u I guess the question I would ask you is would you be willing to work with a programmer that makes more money that you did if he had the tallent?
11/20/2009 8:38:26 PM mikeg1@ephmc.com (E-mail address not verified) Brettski *red+u We have an aggressive agenda, I am looking to bring in top guys to make my life easier. I think you would be a good fit. Tallent costs money, I realize that. Something to consider, the banks are looking to change the comp plans for the Loan Officers and cut what they pay the Loan Officers by 50% of what they pay now. They are doing this as a result of the pressure they are getting from the gov
11/20/2009 8:39:50 PM mikeg1@ephmc.com (E-mail address not verified) Brettski *red+u The insurance companies that own mortgage companies are following suit. Which means that we have hundreds of people who are looking at our company as a result of massive pay cuts across the industry, which we are not participating in doing.
11/20/2009 8:41:18 PM mikeg1@ephmc.com (E-mail address not verified) Brettski *red+u I know you have been looking for that 1 opportunity that you could capitalize on. Maybe this is it? Is it really that far from the relm of possibility?

Twitter has always been a big question mark in my head.  I must admit, I do use it more and more as businesses use it to send alerts, super sales, and general status updates.  And I suppose I wouldn’t of been able to deal with all of this information if it wasn’t for Tweetdeck.  What a good way to organize all the noise.  Personally I have setup a Loud group, for all those tweeters like Elijah Manor (@ElijahManor) and Jeff Atwood (@CodingHorror).  Then there is the main group, for most of the other stuff except for the ones in the last group, alerts.  Alerts are for my ISP and other providers who post system and service update via twitter.   I actually really like this functionality aspect of twitter, as I am watching one feed to get all my information.  In the past (and I guess I still do) I would have to subscribe to many, many rss or atom feeds.

Twitter in one respect is becoming  a bunch of bots following each others tweets.  There are so many apps out there which auto-follow based on keywords or when someone follows them, that you get these clusters of drones passing data to each other.  We should be careful you never know if this may become some AI cognitive network!

This is truly an exciting day for me.  The buzz around Microsoft’s latest OS reminds me of the release of Windows 95.  Back then it was the new platform, moving away from the DOS/Windows separate systems and memory issues.  It was a fun time.

Now,  many of us have used Windows XP for eight years or so, not liking the newer, problematic OS’s which have been released.  I have used Windows 7, and I like it and I know it will be the OS that corporations replace their aging Windows XP machines with.  It’s always a good feeling when things are moving forward in a positive direction

Happy Windows 7 Day!!

I have spent much of my professional career among the windows of MS Access.  No matter where I am working or what type of work I am doing, it just seems to follow me.  MS Access is surly one of the most important business application to ever hit the market.  I really don’t think too many people would argue that point.  Well, it’s great until you get big, but its a wonderful way to get there.

So tonight I spent a good 4 hours trying to export an MS Access report to RTF.  It wasn’t a complicated report by any means and it’s driving data source is pretty basic too.  Though for the life of me I could not print a clean report.  Either the lines would wrap in strange ways, or I would get blank pages, or the worst one, footer text landing on the next page.

I tried every grouping, ungrouping I could imagine, moved objects around and I just couldn’t get a clean report where footer text didn’t land on the next page.

What finally fixed my report is to leave some footer after the footer text objects.  About the same amount of space as the text objects themselves.  Once I did this, I did not experience footer text on the next page again.

It’s always something like this when working in MS Access.  You get real far in an app, and then hit some crazy snag that lays you up for some time.

Truly a love/hate relationship

I know I am not the first one to bring this up by any means, but it’s really bugging me.  I have done OK this year with my freelancing.  It hasn’t been too much work where I am enslaved completely, but enough to help with the bills around the house.  Supporting a stay-at-home mom and two kids burns money faster than I could ever imagine.  So most of what I have made has been burned away, and nothing has been paid toward taxes.  I know it will be a lot, but how much? A headline caught my eye (Extremely Important Tax Rules for Designers in the United States, at In The Woods [an rss I watch]) and basically kicked me in the butt to look into this before I am sitting down filling out my 1040.

With the year winding down, I am thinking about my tax return for this year and how my added freelance-earned money may effect it.  Well as I have read into it, it will effect it a lot!  One helpful article I found on the matter is, Taxes and Freelancing at About.com.  This article coverd much of the basics and has some good pointers on getting organized and what information you will want for filling out Schedule C on your tax return. The article supplied better information the the In The Woods one.

So, sure that is a bit of a pain, a lot more to organize and keep track of, but one of the biggest part of the pain is Self-Employment Tax.  What is Self-Employment tax, well in a nutshell its the Social Security and Medicare taxes you pay on any net profits you have.

The Self-Employment tax is 15.3% — Social Security Tax is 6.2% and Medicare Tax is 1.45%.  Wait you say, that only comes to 7.65%, and you are correct, though since you are self employed, you must pay the employee and employer portion of the tax.  7.65% times two is 15.3%.  For those of you who are a bit curious yes, if you are a W2 employee you pay 7.65% in Social Security and Medicare taxes.  Please note, in 2009 Social Security tax is only paid on the first $102,000 subject to Social Security tax.  I am sure this will play into your Self-Employment tax number too, though I don’t know for sure.  I can speak more to this once I go through it next February and if I make it over that amount

Please realize, I am not a tax accountant or CPA nor do I play one on TV.  The information written here is solely based on my readings and limited experience.  Consume it at your own risk.

It feels a bit strange seeing the one plus terabyte drives roll out to the market.  It reminds me a lot of when the one plus gigabyte drives came out.  It all really seems the same: sizes, pricing, amazement.

I look at some drives sitting around my desk; removed some time ago do the the plowing of a machine (I prefer a new hdd over erasing a current one).  I look at a drive, 80GB hmm, that seems small.  Really, did I just think that–yes I did.  Simply because the 500GB drive I have installed now has plenty of space on it.  This is no different than when it was 80MB drive and I had that first 720 MB drive in my main machine.  This all really has the same smell.

Funny, even though I balked at that 80GB drive, I plugged it in to load up my Windows 7 beta.  You know what, there was more than enough room for Win7, VS2010, Office 2007, etc.

What are we doing with all this extra space we have on these drives?

My wife and I got some kid-free time today and went to see Julie & Julia.  I must say, a very, very good movie.  Meryl Streep better get some type of award for her performance, it was just wonderful.  I spent much of my childhood watching Julia Child, and Mrs. Streeps performance was so right on!

After the movie, we stopped of at a book store to look around do some browsing without having to chase kids around.  Something we did a lot of, pre-kids.  I couldn’t believe on how empty the bookshelves were.  Only two book sections for computer books.  Amazing, I guess everyone is going to on-line tutorials and buying their stuff from Amazon.  Perhaps a story for another time, I digress.

While looking through the cook books I found something interesting, “501 Must-drink Cocktails.”

501Must-DrinkCocktails

So I have this intersting idea, to have 501 different cocktails in 365 days, and blog about my experience making and consuming the drinks.  My inebriated state could only help my writing I am sure.   What a perfect farce off of the movie.  It would sure make for an interesting time, nonetheless.

I couldn’t believe my ears when I heard this today on DNR show number 458 (great show by the way).  Scott Hanselman was explaining how he mutli-boots his machine not using partitions but VHD (Virtual Hard Disk) files.  There is a way in Window 7 to point your boot loader to, and run from a VHD file.  The OS DOES NOT run in a VM, it is running on bare metal!  The only down side is a slight reduction in disk I/O, but hell, what a traid-off!

My first question is that VHD transferable to a VM?  Sure all the hardware would change but would it work?  I’d really not like to go the other way, that seems even messier to me.

Ah hell what does it matter, I can boot OS’s from a file!, save them easily and move them around.  What a great/easy way to checkout new software.  Seeing that I am just getting into vs2008 and vs2010 beta 1 is out and I want to check it out.  This way I can with out plowing my machine or messing up my current build.

I know I am going to try this one out on my new Windows 7 RC1 installation.  I will write it up here while I am doing it.

Here is an artical from Keith Combs and another from TechNet Edge

There has been a lot of positive buzz about Windows 7; a lot of stuff that has me excited about it.  As a user of Windows XP, I want to move on.  Vista is ‘nice’ but didn’t really deliver anything extra for me.  Sure some nice eye candy, and perhaps nicer plug and pray, but what a pig.  It’s just a system hog, and I wasn’t ready to update any computers yet.

With the release of Windows 7 on October 22nd. 2009 I will be purchasing a new laptop with windows 7, and will probably get a version for my main desktop machine.  Though it’s only an AMD 4000, I don’t think I will have any trouble running Windows 7.  It’s that machine I am installing on today so I will be able to compare performance from the same system running Windows XP and Windows 7.

I received a product key, downloaded the iso and burned a new DVD.  For the system I grabbed an old 80GB hdd I am not using any longer and put it as the sole drive.

Never really using Vista myself (of course I have seen it and helped others with it) I don’t know it intimately.  This is going to create a bit of a learning curve here.  The installation moved along pretty smoothly; couple reboots, nothing special–then it happened.

Black screen.  I had a black screen with nothing more then version informaion at the lower right hand corner:

Evaluation copy. Build 7100.

I was still able to move the mouse pointer around the screen, but couldn’t do anything else.  I tried restarting, removing unneeded stuff, reloading.  Nothing was fixing it.  Time to hit the web.  It didn’t take too long to find, ten-fifteen minutes, I ran into this website, http://windows7forums.com, and they had a thread on this very issue.  It is definitely a monitor/video issue, though some of the resolutions where slightly different.

For me, it was having two monitors connected while loading.  Once I disconnected the second monitor from my system, Windows 7 was able to finish it’s “first time boot” and setup the environment.         Wow there is a lot of eye candy here!

I am running around setting stuff up, checking things out.  (cool wallpaper schems).  Let’s set up taskmgr to launch on start up.

Hey, why can’t I add a new shortcut on a right-click?  That’s a pain, what am I missing?

I created the shortcut to taskmgr on the desktop and copied it to the startup folder.  When I did that I was prompted for Admin rights to do that.  That is interesting, not sure if like that. I guess I need to take some time to look into security.  Specially since that was the single reason so many people hated Vista, it locked up so many areas breaking shit.  Whatever, as long as they haven’t totally abstracted everything away, there will be a solution.

Since I am trying out a new OS, I might as well load up a beta IDE too.  So I am now in the middle of loading up VS2010.  I have no idea if I will have any time to work with it, but I hope I make the time.

Windows 7 changing the wallpaper automagically is weird.  I dig it though.

Interesting, SQL 2008 (bundled with VS2010 beta) must be at SP1 or higher to work with Winows7.  I am glad it let me know while loading it.

Everytime I reboot and see that long-lived black screen, I get nervous that the system will lock again.

At this point, I will have to say that Winows 7 is running as well as a new installation of winows XP does.  It boots as fast plus launches and runs apps as fast.  Can’t wait until I get more stuff loaded.

My trip through ruby has been an interesting one.  It’s a pretty straight forward language.  I need some ideas to build so I can get more practice.

I have starting into rails to try that out, and it’s amazing how much of ASP.NET MVC seems to modeled off of it.  I really do love the MVC pattern.  What I am not loving is the total pain in the ass it is to work with rails configurations.  It’s like everything Linux, config, config, config.  Granted I really don’t know what I am doing when it comes to Apache, but things should not be this cumbersome, and not have a straight answer on setting up things like .htaccess files.

I am using my Dreamhost account to run my rails apps and I took a break from trying to get the static stuff to show on the site and not be sent through rails.  Items like css files, image file, etc.

I am assuming it’s something I need to do in an .htaccess file or something, but I am no positive, and there are direct configuration instructions on what to do.  So its trial and error, and there are a lot of it.  Shit, I can’t build anything because I am too busy configuring my server.  So sure Ruby on Rails may be great for rapid development, but if I can’t get it running, I am not getting anywhere.

Well, enough ranting, back to it….

Had another thought.  This really is where Microsoft shines and why they are used over other options, their stuff works.

I can remember back in July of 2008 or so when ASP.NET MVC was in beta one or three and I was tyring it out, I made it a hell of a lot further in a couple of days then I did with rails.  One thing to note is that I know IIS pretty darn well, and don’t know Apache that well at all, and perhaps that is the difference here.  Working with IIS for so many years much of is just natural, you don’t think about it.

Ah but wait, that is not it, because when I was writing ASP.NET MVC I was in VS2008 and the browser being used was  cassini web server (built into Visual Studio).  In this note, I guess that is the same as using WEBRick which I have not had issues using.  So perhaps all of this is due to my lack of knowledge of Apache?

Twitter Updates