A Sexier Mephisto
Mephisto is a fantastic CMS. I have really enjoyed using it, and love the way it is set up and organized.
However, I’ve always thought that it was missing a couple of key features.
First, there is no form of pagination for lists of articles, including the front page. Once you’re done with the front page, you must use the archives.
Second, it doesn’t provide a full listing of archives. Archives are only listed by month. There is no way to grab all of your posts, only a limited number of posts.
However, now there are two great plugins to add in these features.
First, Sven Fuchs has written a Paged Article Lists to give lists of posts (such as your front page) pagination links. You can see this in action at the bottom of my index page. I helped (read: was really irritating) in bugfixing it so it should work smoothly.
Next, there is now a great Full Archives plugin (also by Sven Fuchs) to allow your main archives page show a full listing of all of your posts. You can see this in action on my past page. It is called the tricky edition which is actually named after me because of all my suggestions and bugfixing (read: was really really irritating).
Baiscally a great way to manage content on the internet just got way better. Yay for Mephisto! Yay for plugins!
Running Mephisto on Leopard
This is just a quick note incase anyone else has trouble installing the Mephisto svn locally on a clean copy of Leopard.
(This assumes you’re running Leopard and have a working install of MySQL. For that please see this wonderful guide. It also assumes you’ve set up Mephisto before.)
The current Mephisto svn revision, 3037 works on Rails 2.0 PR. So to do this, you’d check out the svn of Mephisto:
svn co http://svn.techno-weenie.net/projects/mephisto/trunk your_directoryNext you’d freeze Rails 2.0 PR, in terminal, cd to your local Mephisto directory, and run:
rake rails:freeze:edge TAG=rel_2-0-0_RC1Next you need to install the tzinfo gem and Action Web Service, with two terminal commands (while cd’d in your local Mephisto directory), running each separately:
gem install tzinfo --remoteAnd
svn export http://dev.rubyonrails.org/svn/rails/trunk/actionwebservice/ vendor/rails/actionwebserviceOk! Next up you must create a Mephisto database with MySQL and properly configure your database settings in config/database.yml. Then you should be able to successfully run in terminal (in your Mephisto directory):
rake db:bootstrapOr
rake db:bootstrap RAILS_ENV=production
Start your favorite script/server for a lovely working copy of edge Mephisto on Leopard!
Many thanks to svenfuchs_ in #mephisto for the advice on a working Rails version!
Oh Goodness
So, I downloaded copies of textpattern and wordpress and have been playing with both of them.
Here is the sad truth: try as I may, I like wordpress better.
It just seems to require less hacking in general. I just don’t have the time for all the hacking. Sure, wordpress is huge. Sure, its not that pretty. It also doesn’t have sections. This is probably my biggest problem with wordpress. That, and no matter how hard I try, textpattern just seems so much cooler. Of course, this might just be because of all the aforementioned hacking.
So, there is a good change I may eventually switch to wordpress. Once I figure out how on earth to port over my design, that is. Which may never, ever happen.
Oh, and I seriously love marsedit. Seriously.
CMS Woes
So, Rails is now at 1.1 Yay for rails! Except.
I haven’t been able to update Typo in months, and according to some messages in the Typo mailing list, Rails 1.1 breaks Typo.
I’m not sure what to do about any of this. I could figure out how to have Typo just run on it’s own version of rails, separate from my host’s version (they’re updating to rails 1.1 any day now). However, then I’m stuck there with my own version of rails and Typo, and may make it difficult to ever get passed that point.
Plus, I have this huge Abnormal Psychology test tomorrow. So I can’t really worry about weather or not my blog exists tomorrow.
What sucks is that I really like rails and Typo. I love Typo. The problem is, its just in too much flux, and its too difficult to keep it current. So I’m not totally sure what I’m going to do yet… for now, I’m going to attempt at freezing my version of rails as to prevent my blog from being totally broken until I can deal with starting with Typo fresh/attempting to update my version of Typo and rails/ or move to another CMS. There is no such thing as the perfect CMS. Not even close. So, we’ll see, we’ll see.
A Few Typo Hacking Notes
It’s just starting to rain. I’m a bit nervous, but it should be ok. As promised, here are a few quick tips for hacking Typo.
Keep A Local Copy of Typo
Keep a local copy of Typo on your hard drive for all of your hacking and testing. Seems obvious but it’s just a good idea. You’re going to have ruby, rails, and a database installed on your server.
If you’re on Mac OSX Tiger, this really isn’t all that complicated, except you have to watch out for one thing: Ruby/MySQL. There’s a thousand different articles on how to make it properly work with Tiger, but after a couple hours of trial and error, this article is the only one that actually worked. If you’re sick of all that, just use Locomotive and install MySQL.
Keeping Track of Changes
SVK is a good idea for keeping track of changes you’ve made of Typo, but I must confess I don’t know all that much about it. I have my local copy through SVK, but that doesn’t mean I actually know what I’m doing with it. My advice is before ever upgrading your copy of Typo, back up everything. If you’re going to be doing a good deal of hacking, I’d advise you to be on the trunk of typo, that way you can use SVN update or SVK up/smerge/ whatever it is. Oh, and for SVK, make sure you read this.
Rsync
Rsync is probably the biggest help in hacking Typo. Once you’ve changed all those files on your local copy of Typo, its all working wonderfully and you want upload it all to your server, if you can, please use rsync. Unless you patiently keep a list of all the changed files, and want to spend an hour uploading, please use this. Especially of you’re on OS X. Most likely you have SSH access if you have rails hosting. When I use the rsync command, I put
exclude="database.yml"in there so that my database.yml won’t get changed, that way I don’t have to worry about restarting the server. It makes uploading take three minutes instead of sixty.
Adding Your Theme to Other Parts of Typo
I love Typo for many reasons, but this is a big one. If you have created another section to your installation of Typo, assuming it contains a controller.rb file, you can easily give it your site’s theme. Stick
layout :theme_layoutright under the first line in your controller.rb file. Give your new section a new helper.rb, and make sure to put this in it:
def page_title if @page_title @page_title else configvalue("blogname") || "Typo" end endOr else you’re going to be getting errors. Makes adding new sections to your site a breeze.
I’ve got more notes coming, but this is a start. Basically run your own copy of Typo, make sure to back up before you upgrade, use rsync to upload to your server, and now you finally know what helper files are really for if you didn’t know before (I know didn’t). Happy Typo hacking! :D
Eureka!
Look at that! My “Add a Link App” is up and running! Yay! I managed to totally implement the exit app into Typo, including Typo’s admin section (although that last part was a bit of a cheat). I also got a random link sidebar working too! Man I’m excited. I added a few links while watching Grey’s Anatomy tonight, go look! I will add more tomorrow.
I am so incredibly tired right now. I must sleep. I will write more about the app and working with Typo tomorrow… that is if things don’t go crazy with the weather tomorrow night. There’s a storm coming. Oh great, more rain… this time with wind! Yes. It’s coming.
Add A Link Rails App, Part 1
Well, after a few days of reading and trial and error, I have my very first (tiny) rails app pretty much done. By pretty much, I mean its working on my computer and such.
A couple of years ago I wrote one (tiny) php app when I attempted to learn php… I grew bored and ended up just reading the file-eiditing chapter and writing the app I needed to write. You can still find it hidden in scripty goddess. It was tiny and kept all the links in a text file. This was before blogrolling.com was available and got the job done for updating my link list easily.
Now that I’m using a rails app, I wanted to see if I could make a similar app in rails. This one is of course using a database instead of a text file. Obviously thanks to rails, this was incredibly easy to create. There was quite a bit of trial and error considering that I didn’t know anything about ruby or rails until a few days ago. There were many typos (har har!) on my part because I simply don’t know all of the conventions of the language yet.
Now I’ve got three things to do left:
Make a Bookmarklet
I want to write a bookmarklet to easily add the current webpage’s address and title into the add form. I didn’t write this part for my old script, a girl from scripty goddess wrote it for me. I don’t know anything about javascript. This of course poses a problem.
Install it on my server
This shouldn’t be that hard.
Include it on my site
I don’t think this should be hard considering that typo is a rails app… but of course I’ve never done it before, either. Mainly I’m worried that I can’t include rails or ruby code within a ‚??page” of typo. I have no idea if you can. Hopefully You can.
Considering how I really have never learned a programming language before, I don’t think I’m doing that bad of a job. I tend to loose patience when learning programming languages, but I really like ruby and rails. The instant gratification and pretty-ness of the whole thing is great, too. Now… back to trying to figure out how on earth to write a bookmarklet. Fun fun.
Technorati Tags: rails
Another Not-So Productive Day
I’ve managed to begin my first rails app, but nothing too impressive, or done. I’m learning along the way, trying to figure out how to correctly make tables interact with each other in an app. Anyhoo, incase you haven’t seen it yet, the Ok Go music video, go watch it! It might be the best video I’ve seen a very long time.
I hope that by the end of next I’ll have my first rails app almost done and/or to be able to properly switch over to the typo trunk.
Off to Mikey’s birthday party I go. Wee!
Ruby/MySQL On Tiger
It took me about three hours to figure out how to properly install ruby/mysql on to my computer. About when I found the correct way to do so, I also found Locomotive, the all-inclusive installation for Mac OS X. I’m tired, and a bit frustraited I haven’t gotten to do much else, but at least it works, right? Right.
Oh Goodness
This afternoon I attended a Psychology Club meeting. It was the Graduate School Workshop, where my professor told us all about how hard it is to get into graduate school. I got such a headache from it. He went over his lecture by about half an hour. It was just incredibly stressfull.This afternoon I attended a Psychology Club meeting. It was the Graduate School Workshop, where my profossor told us all about how hard it is to get into graduate school. I got such a headache from it. He went over his lecture by about half an hour. The good news is if I can’t get into any of the doctoral programs I wanted to get into, I could always just get a masters first and a doctorate second. There’s always options. Ah. Stress.
