Displaying articles with tag

Super Key Fix in Ubuntu

Posted by hank, Wed Mar 28 14:05:00 UTC 2007

So I found that my super key was not a modifier key in GNOME today, but rather a standalone key. THis was unacceptable. To change it, I did this:

System -> Preferences -> Keyboard -> Layout Options -> Alt/Win Key Behavior -> Super is mapped to Win-Keys

Now, I can change my shortcuts to not be stupid.

Tags:

Fixing Mephisto Post Pinger Plugin

Posted by hank, Fri Mar 02 12:56:00 UTC 2007

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 self.uninstall
        end
      end

    end
  end
end

That’s all I changed. This is my first post since the change, so I’ll see if it works. If not, at least Mephisto doesn’t blow up on startup.

Results

Well,


unable to send xmlrpc weblog ping -> http://www.ralree.info
unable to send xmlrpc weblog ping -> http://www.ralree.info
unable to send xmlrpc weblog ping -> http://www.ralree.info
unable to send xmlrpc weblog ping -> http://www.ralree.info

Seems like a couple might have worked. I’ll keep working on it. But, at least it gets called.

RubyCorner worked!

Tags:

First Post, What to say

Posted by hardwarehank, Sat May 20 21:46:40 UTC 2006

Well, I finally got this damn blog working thanks to bish0p. Turns out that you have to change the shebang line from

 #!/usr/bin/env ruby

to

 #!/usr/local/bin/ruby

Ahh typo is nice. Other crap I learned today:

Problems with typo themes generating application errors can be solved by changing this line in layouts/default.rhtml

<%= render_component(:controller => 'sidebars/sidebar', :action => 'display_plugins') %>

To this:

<%= render_sidebar %>

Thanks to This dude.

I generated a new GPG keypair today (Public Key). Get it like this:


 gpg --keyserver subkeys.pgp.net --recv-keys 46C171A0

I also integrated into Pine, which makes it simple to send signed/encrypted email.

I’m still struggling with Ruby/SVN bindings by kou. They are completely undocumented, so I have been trying to analyze the tests that are included in the svn source. Apparently, Collaboa is using them in their rails app. I will have to take a look at their code, and hopefully it will shed some light on the subject.

I upgraded phpGedView today, so it’s a secured. Home directory cleaning ensued, and now my mod0 space is much more efficiently used.


I jumped back into the old Afternet #trivia chan tonight, after about 10 minutes of trying to remember what network it was on. I had some trouble with BitchX autoignoring the triviabot, so I googled a fix for it:


# To Add someone:
/addnoflood nickname
# To list:
/addnoflood

Yay - now I can use the bot in peace. I better dump the commands so if I ever go back I don’t have to flood the chan trying to remember everything:


To play, just watch for Weirdbot to ask questions, and type in the answer.
Some useful commands to get you started:
!hint     (shows some letters of the answer, helping you guess)
!repeat   (if you missed the question)
!stats    (to see your stats and scores)
More help is on the following topics, do !help <topic> for more information.
auth   best   categories   commands   gmail   website

Commands available to you: (privileged commands)
!add    (to submit new questions)
!category (to choose next period's category)
!fix      (to mark the question for a spelling or fact fix)
!friend   (to make a friend of the channel)
!hint     (to begin showing hints)
!join     (to join a team)
!ping     (to request a latency ping)
!repeat   (to repeat current question)
!rules    (to show game rules)
!server   (to show best irc server)
!seen     (to show when your friend was on)
!stats    (to show your stats)
!suggest  (to make a suggestion)

I started trading for real today. It’s a big step, and from now on my taxes will be harder to do.

Tags: