Stumbled on the cutest webby recently.
http://www.exocomics.com
Check it out, you won't regret it. It's super cute and Shoelace reminds me of my Missy, haha.
AddThis
Wednesday, November 7, 2012
Friday, November 2, 2012
I Love VIM
I love Vim. One of those things I love is the syntax highlighting. Dropping a nice tutorial here.
http://www.openlogic.com/wazi/bid/188101/Create-Your-Own-Syntax-Highlighting-in-Vim
http://www.openlogic.com/wazi/bid/188101/Create-Your-Own-Syntax-Highlighting-in-Vim
Thursday, September 20, 2012
Cygwin and Ruby
When developing on Windows, I don't truly feel at home until I install cygwin. I don't know how I'd live without the great command line tools like grep, less, vi, find, wc, diff, the list goes on and on. Sure I could find Windows equivalent and dl them all, but cygwin gives it all to me right away in one place.
So when developing in Ruby, I wanted something compatible with cygwin. I had previously installed Ruby in Windows and relied on cygwin finding the Ruby executable when I ran my Ruby code. This is fine for just using Ruby, but when I wanted gem and irb, I was SOL. I had to install from source. Luckily, this was super easy:
So when developing in Ruby, I wanted something compatible with cygwin. I had previously installed Ruby in Windows and relied on cygwin finding the Ruby executable when I ran my Ruby code. This is fine for just using Ruby, but when I wanted gem and irb, I was SOL. I had to install from source. Luckily, this was super easy:
- Using the cygwin setup, install make, gcc, libiconv, openssl, libyaml-devel, zlib, zlib_devel and wget.
- Then navigate to http://ruby-lang.org/ and grab the url for the source of ruby that you want to install and wget it.
- wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz
- Then untar it and cd into the ruby* directory
- Run ./configure
- Run ./make
- Run ./make install
- Then test it!
- which ruby and it should be something like /usr/local/bin/ruby
Now you have ruby, gem, irb and all the rest.
Tuesday, August 21, 2012
Heroku Weirdness
I love Heroku. I love the ease and simplicity. But today, as in right now at 4am, I have been dealing with this horrible issue for HOURS. I was having tons of problems with any heroku db tasks that I was trying to execute. I couldn't migrate nor could I check the version. And everytime I ran those commands, the console would hang. It made no sense! I tried all sorts of random things that I don't even want to get into. Finally out of desperation, I upgraded my heroku cli. And not from the friendly heroku update (which wasn't working for me), but from actually installing it from https://toolbelt.heroku.com/.
FINALLY that worked. The problem was that the heroku command was out of date and whatever magic incantation it was issuing, was different between my version (2.26.0) and the latest (2.30.3). ARG!!! I guess I would have expected a message like, "Your version of the heroku cli is out of date, please update it."
So I'm posting this in hopes that if someone out there encounters this, they'll save hours of banging their head on the desk.
Alright before I go quick review of heroku commands:
DB
-----
Migrate: heroku run rake db:migrate
Reset: heroku pg:reset
Check Version: heroku run rake db:version
Check Status
------
ps: heroku ps
logs: heroku logs
scale (2 web and 1 worker): heroku ps:scale web=2 worker=1
Restart
-------
Restart app: heroku restart
Restart worker 1: heroku restart worker.1
There are a bunch more but those are the ones I use more often so hopefully it'll help you out as a quick reference.
Friday, August 17, 2012
Eclipse Aspectj Classpath
Just ran into this, the aspectj maven dependency was being ignored and not added to the classpath in eclipse after I ran:
mvn eclipse:eclipse
Silly problem with an easy solution:
http://robbypelssers.blogspot.com/2010/02/aspectj-dependencies-are-skipped-by.html
maven-eclipse-plugin
2.7
none
Tuesday, August 7, 2012
Console2
Not sure if I mentioned this post, but I always find myself going back to it to reconfigure Console2.
http://www.hanselman.com/blog/Console2ABetterWindowsCommandPrompt.aspx
Monday, July 2, 2012
On Second Thought
After much consideration, my Thought of the Days will stay on gchat and twitter. My random musings are quick and often too brief to deserve an entire post. As such, make sure to check out @jonnyman9 on the twitter!
Subscribe to:
Posts (Atom)