April 20, 2012
Solarized-dark(left) vs  wombat emacs 24 themes.
Personally the bluey blue of the Solarized makes me want to stab your eyes out.
What says you?

Solarized-dark(left) vs  wombat emacs 24 themes.

Personally the bluey blue of the Solarized makes me want to stab your eyes out.

What says you?

10:09am  |   URL: http://tmblr.co/ZTsR2yJzeh1i
(View comments  
Filed under: emacs 
April 20, 2012
More Credit Card Accounts for Testing

From my previous link but this is a clearer representation.

April 10, 2012
Rinari needs a makeover

I use rinari in my emacs setup.

I also swear at it when it fails, which causes my blood pressure to go up and productivity to go further down. i don’t need help procrastinating!

Rinari needs to do some things to make it useful(ler) in today’s rails setups.

In no particular order:

  • Find my controller/view/model/test (unit or spec) all the time, no questions asked. I know it gets confused, and asks for the closest match. That is cool, but getting an error that says “Symbol’s value as variable is void: inflection-uncountables ” can go fuck itself. I end up using the normal C+x C+f and  idoing back to the controller from a view, or worse, a test. Shouldn’t be happening. ever.
  • Run a spec - Rinari doesn’t run specs. It finds them, i guess, but you can’t run your tests in a mini buffer if you are using a spec/ directory.
  • Find some factories - similar to fixtures, although fixtures have structure. A list of factory files would even be adequate.
  • have rinari remember the choices you make for next time - You often tell a command to get a controller, which controller you mean if there are two similar files with, say, user in it. AdminUser and User.  When you make the initial decision, rinari should remember it, ala some kind of index in a database.
  • Run guard in a buffer for clickable error fixing. I’ve been using guard, so why not. I think i bitched about having it in emacs once last year too.
  • Change the command keys around - C+c ; f c is stupid. fuck the f.  The keys strokes that are shorter are the ones that are hardly used.  When i get guard running, I won’t even need to run tests anyways. So all that to say, anything following an f  will be just the keystroke and current keystrokes after the ; will be appended with the f. For continuity.
  • throw some bundle exec in there, rvm awareness, just little things that most rails projects use.
  • make some hybrid rinari-magit cyborg that will run together, since they kind of share a similar foundation. Must be able to leverage those fuckers and make them splice together like your botanist Orchid loving Uncle.

So for all this to happen, in my life, I’ll need to ‘be better’ at lisp.  Ok just ‘be’ in lisp would be a good start. I get the concepts. probably just copy shit i see and adapt. Whine on #emacs in irc or something, but it should come.

Time to learn, and do this, are also needed.  Rinari has all the pieces to make it’s comeback like Rocky V or Rambo 18. But as LL Cool J said, “Don’t call it a comeback, cause I’ve been here for years”… this was pre Law & Order LA, or whatever show he is/was on.

10:10pm  |   URL: http://tmblr.co/ZTsR2yJScG_t
(View comments
Filed under: emacs rinari oss 
April 8, 2012
Emacs for Rails Devs - dotfile

Oh wow, look, it’s my emacs setup. Use it.

April 2, 2012
Arguments passed to an alias in zsh - the right way.

zsh aliases don’t take arguments.  You must use a function instead.

em () { /Applications/Emacs.app/Contents/MacOS/Emacs $1 & }

Now you can open emacs in a gui window similar to mate blah.rb

Source: zsh docs

April 2, 2012
"/Applications/Emacs.app/Contents/MacOS/Emacs —debug-init will set your gui based Emacs into debug mode. Simple but had to look it up."

— Some site with annoying ads, so won’t reference.

March 31, 2012
Make sure rc-update runs ALL services you need on server reboot.

This information isn’t rocket science or new, but some of these services were a surprise to me that they weren’t initiated by default.

For all of us learning, or relearning, when setting up a gentoo server, make sure your rc-update has all the services you need to run, after a server reboot

On my Rackspace Cloud server, below is what I needed to get most of it going. Now i need to add unicorn (through eunic ) and delayed job into this too, but I want to point out something I didn’t know I needed, and that was the net.eth* services.

I had a server blow up, needed a restart and I could not ssh into it from my terminal. That was because the net.eth0 and net.lo were not added to rc-update to start on boot. Without those, my server (or anyone’s from what i can tell) is impossible to ssh as nothing works to listen for incoming calls.

So check out the code below and make sure yours looks like this, plus any other vital services that need to run to make your app run after a surprise reboot

# rc-update show default
             iptables | default
                local | default
             net.eth0 | default
             net.eth1 | default
               net.lo | default
             netmount | default
                nginx | default
       postgresql-9.0 | default
              rsyslog | default
                 sshd | default
       udev-postmount | default
           vixie-cron | default

Adding to rc-update

As a total primer completion, here is how you add to rc-update any service you need.

First, make sure you have the file in /etc/init.d and you can run it in your terminal normally. starting stopping, that kind of thing.

Now to add to rc-update:

# rc-update add net.lo default
# rc-update add net.eth0 default
# rc-update add net.eth1 default

I hope this helps the internet somewhat. Don’t take for granted that basic services you’d think were there to restart, are.

March 7, 2012
grep -nrHo "whatev" path/to

cruftless return of filename and line no.

February 28, 2012
Authorize.net test credit cards that work.

I know i’ll lose this link if i don’t put it here.

October 27, 2011
"Gentoo’s ebuild defaults for imagemagick do not include pngs or jpegs. Since i have no soul i don’t give two shits about licenses and all that crap that keeps stallman’s up at night. So to fix this, you’ll need: sudo EXTRA_ECONF=”—with-png —with-jpeg” emerge imagemagick."

— me fucker.

Liked posts on Tumblr: More liked posts »