My dark color theme for NetBeans

2009 May 23
tags: ,
by Łukasz

lbadura-railscasts

For quite some time, I’ve been really frustrated with the look and feel of my source editor in NetBeans. I really liked the color schemas I have been using in my vim work flow. In fact it was probably the only thing (perhaps besides speed) that kept me using vim instead of NetBeans. I didn’t settle with themes such as Aloha or Dark Pastels, and tried to “port” Nick Moffitt’s Railscasts vim theme into NetBeans. You can see the final outcome on the screenshot above. I would gladly package it as a NBM file, however I don’t know how one could build a NBM file (yet :-) ). The bottom line is, working with NetBeans is a bit more enjoyable now.

Easy as a piece of capistrano

2009 January 27
by Łukasz

Sunrise at capistrano beach found on Flickr

While working on MoneyTracker in a mythical free time, I was using plain old git for updating the code base on my “production” server. I quoted the word production, because the application is nowhere production state, and I’m it’s only user. Either way it gets deployed on a regular basis. I thought this would be a good enough reason to get familiar with Capistrano. A few documents and 15 minutes later I had my deploy.rb file ready and working. The only catch I had to face was the fact that I host my app on MegiTeam, where they have a custom way of restarting applications. I found a blog post about it here and was ready to go. Now with a click of a button I can get my app deployed from GitHub’s MT repository to my account at MegiTeam with less hustle. Cool. For all of you who might experience problems with deployment @ MegiTeam here’s my deploy.rb:


set :application, "MoneyTracker"
default_run_options[:pty] = true
set :repository,  "git@github.com:lbadura/moneytracker.git"
set :scm, "git"
set :scm_passphrase, "my_password" #This is your custom users password
set :user, "lbadura"
set :deploy_to, "my_remote_path"
ssh_options[:forward_agent] = true
set :branch, "master"
set :deploy_via, :remote_cache
set :git_enable_submodules, 1
set :use_sudo, false
set :gateway, 'my_remote_host'
server "my_server", :app, :web, :db, :primary => true
namespace :deploy do
  desc "Restart app"
  task :restart, :role => :app do
    run "restart-app #{ application }"
  end
end

The ‘my_something’ strings should represent your hosting environment parameters.