content top

Muxnote – Twitter-auth based TODO list for movies and books

Muxnote - light TODO for books and movies
Muxnoteis my extra-lightweight todolist that only cares about books and movies. At some point I will add more to it, though not much as I want it to be as lightweight as possible.
It represents my first foray into responsive design, using the Skeleton framework, as well as Sinatra. I use Omniauth to authenticate via the Twitter API. You can browse, fork, etc at the Muxnote github repository.

Read More

GTD

It’s important to remember that GTD is not an immutable concept – you are free to delete items, knowing they will return to your inbox if they are important enough.

Read More

Sinatra, Sqlite, Postgres, Heroku

Recently I ran into an issue trying to deploy to the Heroku Cedar stack for my (in progress) app, Mocknote. I developed the app locally with Sqlite3, using Sinatra and DataMapper.
Heroku complained about my Gemfile.lock missing the dm-postgres-adapter, but I was unable to install the gem locally. I resolved this conundrum by adding this to my Gemfile:


group :production do
gem 'dm-postgres-adapter'
end

I then ran this:

bundle install --without production

I was then able to successfully deploy to Heroku.

Read More

My First Ruby Gem – regexhelper

A while back I did a little experiment with building a ruby gem – the result was Regexhelper. You can check out the gem on Rubygems.org, or check out the source at Githu.com. Of course, you can install by by running ‘gem install regexhelper’ if you’re so inclined. As of now its been downloaded 45 times.

I used a the jeweler gem to help create regexhelper. Right now the gem is pretty empty, and probably very amateurish, but I plan on updating and cleaning it up as soon as possible.

Read More

Bash configuration notes

vi .bashrc

is for current user only.

sudo vi /etc/bash.bashrc

is for all users – hence the sudo.

in .bashrc, add:

export PS1=”\e[0;34m[\u@\h \W]\$ \e[m”

to permanently change the bash prompt color.

List of Color codes:

  • Black 0;30
  • Blue 0;34
  • Green 0;32
  • Cyan 0;36
  • Red 0;31
  • Purple 0;35
  • Brown 0;33
  • Blue 0;34
  • Green 0;32
  • Cyan 0;36
  • Red 0;31
  • Purple 0;35
  • Brown 0;33

Replace digit 0 with 1 to get light color version.

Read More
content top