Using MODx

December 30th, 2006

Choosing the name was hard, choosing a software package to use was nearly impossible. I decided that I wanted to run a full fledge CMS/Portal. I didn’t know what I wanted to put on the page, but I wanted to be able to expand it easily. Perhaps that is why I like open source software, I know there are no artificial limitation in what I can do. I searched and installed random packages on my poor little Linux box in my house. Finally I found OpenCMS.org. They have tons of open sources packages running on their server. You can log in and play with all the different software packages they have, as well as read reviews by other users. It is one of the best resources for deciding what to use.

I spent a long time setting up different packages and playing with them, but couldn’t find anything I liked. Everything was cluttered and too ‘user friendly.’ I didn’t want to click and point to make things happen, I wanted to get my hands dirty in code. Everything claimed to be so customizable and that may be true for someone who just wants to point and click, but I found most interfaces restricting.

Then I found MODx. I installed it and all it had was a welcome page, clean and simple. Anything I wanted to do I would have to add and integrate myself, exactly what I wanted.

There was one problem…I couldn’t log in. I could tell it was set up properly, but there was some error with my password. I had a suspicion of what the problem was - my password had the php variable symbol ($) in it. I almost uninstalled it right there because I didn’t want to use a product which such a clumsy bug in it, but up until this point I hadn’t found anything half as promising. It also gave me an excuse to go through the source code. I took 2 minutes looking through the code, found the problem and fixed it. At this point I was in love. There ended up being something about going into the code and fixing a bug myself that gave me much more satisfaction than using a bug free program.

MODx’s logo is ‘take control’ and it seems completely true. They built a nice interface that allows you to edit the code and write pages and basically do whatever you want in their framework. Its beautiful, except it doesn’t work well in Opera, my browser of choice. Not a huge deal. A lot of things don’t work in Opera, so its rare that I browse the web without opening both Opera and Firefox. I would be logged into my MODx site editing items with Firefox and viewing the changes with Opera.

I started going through the source code and reading everything I could. I thought I was done with my software search, so I took a break to learn CSS and plan a design. When I got back to using MODx I was ready with a design and began implementing it, but I couldn’t make it ‘perfect.’

Barry Schwartz author of “The Paradox of Choice,” talks about this problem. When we have so many choices we aren’t satisfied with anything but perfection. I suppose it is even harder as a programmer working with open source software, because I know if I work hard enough at it I can get it ‘perfect.’ There aren’t any limitation except my own time and skill. It became clear that using Modx to get my site perfect would take more time than I was willing to use.

The main problem came down to documentation and examples. They have documentation, tutorials, forums, a wiki, and walkthrough sites setup by users. Its just all over the place and the best documentation is in the forums, the worse possible place for it. Learning how to use it is easy, setting up a standard blog is simple, doing anything complex and finding out how others have used MODx is near impossible. Ajaxian wrote a short review of it and John Vilsack made the comment that, “MODx is the Othello of CMSes: It can take a minute to learn, but a lifetime to master!” I didn’t want to spend my lifetime mastering it. I had spent months looking for a content management system, looking for a web host, learning CSS, and now I was spending forever trying to make my site exactly how I wanted it.

The final straw was that I had a hard time finding sites that used MODx the way I wanted to use it. After searching through the forums and other documentation I could usually find things that I thought would work, but to test them I had to code them up and implement them myself only to find out it didn’t do what I wanted it to do. This just got too time consuming.

Finally, I decided to stop and took a break from working on the site all together. After a break I decided to go with Wordpress and got this blog up and running so I could began writing.

I still hope to use MODx, but I’ll wait until they get a 1.0 release out and have a more central place for their documentation. I’ll probably also wait until I have something I want to do with the site that requires more than a simple blog framework.

As a side note Albuqueque, NM has just been dumped with snow. Nothing like Dever, but more than I have ever seen in the 15 years I have lived here. I setup a page with pictures if anyone is interested.

What the hell does AndAmp mean

December 29th, 2006

Part of the reason I started this blog was to get into the whole web thing again. I have played with PHP and MySQL a lot, but my last website was made more than a decade ago. Back when frames were all the craze and few sites had even started chopping up tables to create layouts. Thankfully I skipped that era of web history. I have been spared the eternal misery and suffering of designing a webpage with tables or worse, having to use Frontpage or a similar program written by Satan to create pain and misery on earth.

Now we have CSS and Ajax and other items I am not familiar with. A lot of applications at my work seem like they would have a lot of potential in the Web 2.0 world surrounded by a ton of buzz words and acronyms - that may or may not mean anything.

Thus was born the desire to create this site. I wanted to learn CSS and see what all this AJAX talk was about. I also needed a place to share my projects, write about random crap, etc. Since this has been a long project I figure it should be the first project I write about here, assuming I can keep myself from being distracted by Wii e-mail hacks, running homebrew on my DS and the other little projects I have been working on.

What is in a name?

One of the hardest parts was choosing a name. I wanted one that represented both the randomness that one would expect in a blog written by me as well as some hidden meaning, somehow programming related. After struggling for a while with choosing a domain name I went to the Text to Speech engine in Windows XP. I had been working on some text to speech items and thought it would be fun to hear a robotic voice say special characters. The default text to speech engine reads symbols inconsistently. The ‘&’ symbol is read as ‘and’ rather than ampersand. Yet the ^ symbol is read as its unicode name, ‘circumflex accent’ rather than its common name, ‘caret.’

After listening to a couple symbols I wanted to see if I could type in an ampersand based escape character and get it to read the symbol it represents (i.e. copyright or registered). The first one I tossed in was & and it read it, “and amp.” As soon as I heard it I knew I had my name. It stuck. It was short, sweet and to the point. It hit three very nice spots:

  1. And Amp is the escape character to create the ampersand sign in the *ML languages, a nice little geeky allusion that wouldn’t be obvious to everyone.
  2. & - and – the extender, used to combine things. I tend to combine things a lot (History and Programming, History and Politics, Gaming and History, Gaming and History and Programming). Its what I do. And I tend to run on and on about a certain idea making the same point over and over again in different ways without actually saying anything new or interesting in my long run on sentences that should be split up and broken into multiple paragraphs and they talk about different ideas, but I tend to not even break up the sentence into multiple points, but I will work on that to try and provide an easier reading enviorment that people may be able to understand and comment on instead of being completely lost in my long winded ramblings.
  3. Finally, perhaps the most important reason, its redundant and random. Andamp simply boils down to and. I basically named by site ‘and’ (which is lame) in a completely round about way. That conveys this site though, redundant and random. Hopefully there will also be some content which is amusing, mildly insightful, and creative as well.

As a side note any time I want to type & I actually have to type & so actually writing the name of the site like this is a bit annoying. (To type & I had to type &amp and to type &amp I had to type….).

More later, thats enough ramblings for today.

Welcome

December 27th, 2006

Welcome to AndAmp.org or &. The about section has some general information about me and this site. Basically AndAmp is about the random ideas and code that are ever present in my software engineering brain. It has taken me about 4 months to make this site, but that is also after spending a lot of time not doing anything on it (weeks and weeks at a time). My first several posts will probably be about designing this site and then I will move onto other projects.

So as such I have finally decided to put my work up for public criticism or worse, to be completely ignored by the world. This site will likely change quite a bit as I play with the CSS and formatting of the site, experiment with Word Press plugins, and completely change my mind on aspects of design.

Your browser does not support advanced CSS, you are probably using IE6. This site will render poorly if you do not upgrade your browser