Archive for February, 2007

C25K: Week 5 Day 2

All done with Week 5 Day 2. Not bad at all. 5 minute warm up walk. Then 8 minutes running, 5 minutes walking 8 minutes running.

Next is the test. 5 minute warm up walk then 20 minutes of running. Here goes nothing.

GoRuCo

Woo. Signed up last night to attend the Gotham Ruby Conference. Should be pretty cool. It is being hosted in Google’s headquarters in NYC.

Seats are limited and filling up fast, so get in there and sign up!

Amusing

This is wrong on so many levels…

Vim inside Emacs! :)

Textmate is for the weak

Again Kidding, but I know at least one reader who will bristle at that…

I found a great (maybe the only one?) Rails minor mode for emacs, as well as the associated page on the rails wiki.

I am sure this is not news to the emacs users among us, but I thought it was leet.

Along with the following table of snippets enabled by this mode (reprinted without permission here)

Ruby Mode Snippets

ra render-action
ral render-action-layout
rf render-file
rfu render-file-use_full_path
ri render-inline
ril render-inline-locals
rit render-inline-type
rl render-layout
rn render-nothing
rns render-nothing-status
rp render-partial
rpc render-partial-collection
rpl render-partial-locals
rpo render-partial-object
rps render-partial-status
rt render-text
rtl render-text-layout
rtlt render-text-layout_true
rts render-text-status
rcea render-component-action
rcec render-component-controller
rceca render-component-controller-action
rea redirect_to-action
reai redirect_to-action-id
rec redirect_to-controller
reca redirect_to-controller-action
recai redirect_to-controller-action-id
flash flash
logi logger.info
par params
ses session
belongs belongs_to-class-foreign_key
many has_many-class-foreign_key-dependent
one has_one-class-foreign_key-dependent
valpres validates_presence_of
valuniq validates_uniqueness_of
valnum validates_numericality_of

HTML Mode Snippets

ft form_tag-action
lia link_to-action
liai link_to-action-id
lic link_to-controller
lica link_to-controller-action
licai link_to-controller-action-id
%h h …
%if if … end
%unless unless … end
#ifel if … else … end
% <% … %>
%% <%= … %>

C25K: Week 4 Day 3

I am a blogging fool tonite…

Anywho, I finished the 4th week of C25K, and feel great. I am tired and my legs are dead, but I feel like I am really accomplishing something off the grid.

Next week gets a lot tougher. I am referring to Day 3 next week as “Eat a bicycle day”. That will be a sustained 20 minutes of running…and the first time I read through the program I thought, and said, it might as well say

Brisk 5 minute walk, then eat a bicycle

Because that is about as hard as it will be.

Rectangles considered harmful

Just kidding. But I did just got to the part in the book (actually I skipped ahead) where it shows one how to use a Emacs Rectangle (Vim’s visual block). It’s ok. It works much the same way. It’s not quite as intuitive, and it doesn’t actually highlight the part of the file where the marks are set, but I might be used to vim’s way of doing it and thinking this is harder.

I need to work with it some more.

Ubuntu and Emacs

Along with the post below, I wanted to mention a couple of things I needed to do to make Emacs usable for me in Ubuntu.

First, a great package for getting nicer looking fonts in emacs on ubuntu (after I installed that, I really decided to give emacs a go):

http://peadrop.com/blog/2007/01/06/pretty-emacs/

Also, a decent Ruby mode

apt-get install ruby-elisp

Much better.

Emacs

*sigh* I am not sure why I try. About three times a year I try to convert to emacs. However, being what I would consider, proficient in Vim I get easily frustrated when I know I could be flying through a file instead of looking up commands. With Vim I feel like I navigate with my eyes. I know that if I want to be at the end of a line, I just need to look at the end of the line, and my cursor will be there. My hands through twitch training do their thing without my having to think about it.

I am trying again, this time though I decided that I would make a real attempt. I started a file called EmacsCommands in my ~/ dir and I put that in a buffer when I get started. Then I can navigate to it with a C-x [arrow key] to the next buffer till I get to it (Yes I know this is not the most efficient way to get there, but for some reason my hands have picked it up and I don’t have to think to navigate that way).

It’s been helpful so far.

Also realizing that the shell commands C-a (beginning of line) and C-e (end of line) work in emacs is a relief. I already use them in the shell all the time so it’s like getting a couple of bindings for free.

There are a few more strokes I need to pick up (I am reading Learning Gnu Emacs, and I haven’t gotten to these yet) are some sort of Visual-Block/Visual-Line mode and Delete Current line. I’ll get there, just have to be patient.

Office Olympics

The guy I am running with and I entered the 2 man chair race at work. We tried hard and had a good time, but ultimately didn’t win.

Next Page »