Malicious enjoyment derived from observing someone else’s misfortune
 

Tag Archives: mephisto

Using Vimpress

I’m regaining some functionality I haven’t had for a long time today. Back in the old days, I used to use [Flog](http://www.ralree.com/2006/09/02/changing-up-the-flogging/”) to post to Typo, but that all went away with Mephisto (I couldn’t get XMLRPC to work properly). So, I’m trying [Vimpress](http://friggeri.net/blog/2007/07/13/vimpress). Hopefully, I won’t need to hack together Ultimate Tag Warrior into WordPress 2.8 to get tagging from vim to work. ##Update It looks like it’s working, as a matter of fact. I installed the [Markdown for [...]

Photoslice in Bluecloth and Mephisto

So, I found this today, and it is awesome. I wanted it in Bluecloth so I could use it in Mephisto. Here’s how. First, I needed to make it so I could still do normal images, but turn on coolness if I want. Here’s the goal I came up with for the grammar: [![](thumburl.jpg)](imageurl.jpg “Scrolly Text at top” “photoslice”) Here’s the first test, with a single image: And now a set with a namespace: I did it by simply modifying [...]

Tracking my workouts on cool charts

I decided today that I wanted to track my calories burned per day on a nice line graph. I did it, and I think I will continue. The total is automatically calculated by the PHP data source. This was made using my Mephisto Plugin for Open Flash Charts.

New Mephisto Post Pinger List

Today I found a nice ping list for WordPress. I decided to put it into my copy of the Mephisto Post Pinger plugin. I’m not sure if it works yet, but this post will give it a good test.

Flash Video Player for Mephisto

So I made this awesome filter for Mephisto that allows you to easily embed flash videos in your post. May require tweaking if using a non-standard URL root. It’s as simple as this: <macro:flash>/assets/2007/8/13/party.flv</macro:flash> Or, you can make it complicated: <macro:flash width=”640″ height=”480″>/assets/2007/8/13/party.flv</macro:flash> Which ends up like this: Installation Install it from your mephisto directory: ./script/plugin install -x https://modzer0.cs.uaf.edu/repos/hank/code/rails/mephisto/filtered_column_flash_video Voila! Firebreathing!

Mephisto Post Pinging Improvement

So, the post pinger plugin was pretty awesome, but it was pinging RubyCorner and Rubylicious when it shouldn’t have. I made it tag-based so it checks a category of feed URL and decides whether the tag matches the category. Right now, I’ve only implemented it for the ruby tag since that’s all I should need for these two services. ArticlePingObserver::SERVICES = [ { :url => "http://rpc.pingomatic.com/", :type => :xmlrpc }, { :url => "http://rpc.weblogs.com/pingSiteForm", :type => :rest }, { :url [...]

Test of XMLRPC in Mephisto

This is a simple test of flog with Mephisto.

Mephisto Comment Notification Mod

I wanted to be able to click a link in my email to see the comment it talked about. So, I modified Luke Redpath’s Comment Notification Plugin to give that to me. First, I had to do some script/console action: >> s = Site.find_first => #<Site:0xb747e014 @attributes={“current_theme_path”=>”wibbish-mephisto”,#… #… >> s.host=’www.ralree.info’ => “www.ralree.info” >> s.save => true >> quit Next, I did a small model modification: # app/models/article.rb, in the public section def full_external_link ["http://", site.host, full_permalink].join(“”) end And a slight [...]

Fixing Mephisto Post Pinger Plugin

I wanted some places to get pinged when I posted. I used the mephisto_post_ping plugin, I simply changed the directory structure and class definition around: Directory Structure ./lib/article_ping_observer.rb ./lib/mephisto_plugins/post_ping.rb ./lib/config.rb ./README ./init.rb File Changes init.rb # $Id$ require ‘mephisto_plugins/post_ping’ ActiveRecord::Base.observers << :article_ping_observer plugin.rb module Mephisto module Plugins class PostPinger < Mephisto::Plugin author ‘Mark Guzman’ version ‘$Rev: 82 $’.gsub( "Rev: ", "" ) notes "Send Weblogs Pings when articles are published" homepage "http://hasno.info/2006/11/11/mephisto-plugins" class Schema < ActiveRecord::Migration def self.install end def [...]

How to make a Mephisto Plugin

So, I figured I might as well provide a quick tutorial on how to make Mephisto Plugins currently. Many of the old plugins are broken, so there needs to be a resurgence of plugin development. Here’s the basic structure of the Tag Cloud plugin: mephisto_tag_cloud – init.rb README – lib – mephisto_plugins – tag_cloud.rb As you can see, the structure is very simple. Here’s my code for init.rb Liquid::Template.register_filter(MephistoPlugins::TagCloud) That’s it! No require or anything! Next, I edited lib/mephisto_plugins/tag_cloud.rb: module [...]