Archive

Posts Tagged ‘typo’

New myFlog enhancement

September 7th, 2006

I added some more functionality to flog. Now you can specify a ping_url.
This lets the blogger do a simple get of a url when a post is done. I did
this to get RubyCorner to update when I posted because Typo doesn’t seem to be
doing it. :( Here’s my original
post
(you can get myFlog there.)


Uncategorized , ,

Changing up the Flogging

September 2nd, 2006

So, I’m experimenting with using Flog to
post to Typo, but I didn’t like typing or storing my password in plaintext,
and I also didn’t like setting vim’s textwidth by hand. So, I changed it up a
little bit. Note that the option I added to the command is quick and dirty at
the moment, and only works for vim. You can get the source like so:


svn co http://modzer0.cs.uaf.edu/repos/hank/code/ruby/myflog

I found a story about
Ruby
today:

“I despise that bird,” Ada said. “He tried to flog me.”
Ruby said, “I’d not keep a flogging rooster.”
“Then how might we run it off?” Ada said.
“He’ll be stringy, so we’d best stew him awhile,” Ruby said.

Yes, Ruby and Ada enjoyed a wonderful feast that night.


Uncategorized ,

Flog is my new Typo Interface

September 2nd, 2006

Well, I think I found a way to do Typo posting straight from vim. Using a
small Ruby program called Flog, I can avoid
using the built-in Typo thing, and just do it all at home in the terminal,
where I should be. :) I hope Smilies work. Now I’m gonna try some code:


#Try Try Try!
(["Try"]*3).join" "

Wow, self! You are Really good at Ruby. ;)


Uncategorized , ,

Another new blog name

August 26th, 2006

Well, I got rid of Relentless Pineapple and went for something a little more code related. So I came up with this:


"Score"*4 && 7.years.ago
Liberty.conceive(Nation.new) if Man.create == Man.create

The awesome part is you could actually run this in Ruby! :O


irb(main):001:0> require 'active_support'
=> true
irb(main):002:0> "Score"*4 && 7.years.ago
=> Thu Aug 26 21:12:10 AKDT 1999

Yes, I know the date isn’t right, but it’s the thought that counts :D.
It references this great statement:

“Fourscore and seven years ago our fathers brought forth on this continent a new nation, conceived in liberty and dedicated to the proposition that all men are created equal.”

This is from the Gettysburg Address, of course.

Uncategorized , , ,

Typo is broken, but I fixed Firefox

August 23rd, 2006

So, I upgraded Typo a few days ago, and just noticed today that all my links are broken because my relative_url_root is busted. I wonder what caused that. Anyway, on a better note, I fixed Firefox to open all new windows in new tabs instead. So much better. Here’s the fix:


browser.link.open newwindow.restriction = 0
browser.link.open newwindow = 3

Now, all the calls even from javascript will divert into the newwindow setting, which opens new tabs for everything. YAY!

This info was stolen from here

Update

Well, I contacted the #typo channel on freenode, and here’s the answer I got:


[11:39am|sprewell> hardwarehank, you should not be on trunk
[11:39am|sprewell> go back to 1230

So, here’s the solution I came to after screwing up a few times:

  1. Move all your custom plugins (if any) from components/plugins to somewhere safe
  2. Delete the components/plugins directory
  3. rake migrate VERSION=50
  4. svn up -r 1230
  5. If it complains about not being able to create directories, just blow away those directories too after you back up anything custom.
  6. Move things back in place
  7. mongrel_rails restart

Uncategorized , ,

Smilies for Typo

June 25th, 2006

Horray! I got my new textfilter to work! Now I can do smilies in Typo! :)

I implemented the Frown: :(, the Oh Face! :O, a smaller Oh Face :o, a tongue face :P, a wavy face :S, a grin :D, a straight face :|, and a winky face ;).

Uncategorized ,

First Post, What to say

May 21st, 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.

Uncategorized , , , , , ,