4 bash (bourne again shell) tips

Some quick keyboard commands I use often on the command line

  • Repeat last command: !! and Meta(Alt)+. Not sure about the usefulness of this one, but might keep your fingers a little closer to the home row instead of the land of arrow keys.

  • Begin and end: CTRL+a by itself moves your cursor to the beginning of the line. CTRL+e moves your cursor to the end of the line.

  • Delete a line of text: Probably my most used keystroke: CTRL+a, CTRL+k = nuke the whole line of text. Don’t hit control twice, just hold it and hit “ak”. You can also do CTRL+u for the same effect, but I find myself using CTRL+ak more because of its home row goodness. The secret here is that CTRL+k deletes from the cursor positon to the end of the line. Well, if you are already at the beginning of the line then you’ve got the whole thing nuked.

  • Undo: Whoops, you just nuked a line of text that you want back. Try CTRL+_ That’s an underscore, so you’ll need to press the shift key. Another way of writing it is CTRL+SHIFT+-.

All these commands work great in most Mac text input too (dagger-eyes at Adobe Air).

SPSS Statistics on MAC OS X Snow Leopard

If you are running Snow Leopard and are trying to install SPSS 17, follow these instructions. I had to adjust a few steps personally, so YMMV. Specifically the instructions listed a path as /Library/System, and I’m pretty sure they meant /System/Library because the former wasn’t present on the system I was installing SPSS on.

http://plusrw.wordpress.com/2010/01/14/getting-spss-statistics-17-to-work-with-mac-os-x-snow-leopard/

Charlie

  • 2yearold: I want to watch a show
  • me: Sorry, charlie
  • 2yearold: I not Charlie! I Kai!

Work with non-printable characters in Vim

If you are working with a file in vim that has unprintable characters in it (^@) to duplicate those for search and replace do CTRL+v CTRL+@ or whatever character it is.

In shorthand: ^v^@ is what you want.

Flowdock icon for Fluid or Prism

Flowdock icon for Fluid or Prism

haml filters for markdown etc

Can’t ever remember how to do filters in haml, despite it being stupid easy:

Full doc here: http://haml-lang.com/docs/yardoc/file.HAML_REFERENCE.html

Haml Filters

The colon character designates a filter. This allows you to pass an indented block of text as input to another filtering program and add the result to the output of Haml. The syntax is simply a colon followed by the name of the filter. For example,


%p
  :markdown
    Textile
    =======

    Hello, *World*

Current filter choices: plain, javascript, cdata, escaped, ruby, preserve, erb, sass, textile, maruku

Horrible Tivo Customer Service Chat

  • Haley: Hi, my name is Haley. How may I help you?
  • Customer : hi haley, I purchased The Backyardigans "Tale of the Mighty Knights" from Amazon on my series 2 in the living room. I want to get that same show on my Premiere in the bedroom. How do I do that?
  • Customer : (without them being networked) i.e. download it to my Premiere
  • Haley: I can definitely help point you in the right direction! Let me go ahead and pull up your account.
  • Can you please provide the email address associated with your TiVo account?
  • Customer : Hm. Why do you need my email address?
  • Haley: For any troubleshooting steps and assistance I do need to pull up your account.
  • Customer : <email address>
  • Haley: Thank you! In order to verify your identity, can you please provide the following account information?:
  • *address
  • * phone number
  • Customer : what? i'm confused and frustrated. i thought using chat would be a quick way to have a question answered. obviously not. what is it about my account that you need to know in order to answer a generic question about the Premiere's interface?
  • Haley: It is protocol to verify your account for trouble shooting steps just as it is when you call in. Also, if in the future you need to refer back to it the next agent will know exactly what was discussed if you run into any problems.
  • Haley: If you would rather speak to an agent over the phone, I would suggest calling into Tech Support at 1-877-367-8486.
  • Customer : Can you direct me to generic documentation first? Where is the Premiere documentation for searching and downloading Amazon videos?
  • Haley: I cannot assist you if you do not verify your account.
  • Customer : Right, because *thats* great customer service.
  • Customer : Okay bye.
  • Haley: Thank you for contacting TiVo Chat Support! Have a great night!