Brightlight Weblog

Woah! I know ruby-fu!

Entries for August, 2008

Some small updates

My mother used to say “He who doesn’t appreciate the little things, isn’t worth the big things”. So be happy and perhaps bigger things lay ahead. That being said I’ve rolled out a few small changes today.
- You can now see which users uploaded a project as long as that person had an account during [...]

Screenshots gives me headaches

I’m fighting a war against the evil that is screenshots, and I am losing…
I’m having some major problems with the screenshots in The DStillery’s gallery. That’s why today I made the decision that all project screenshots on the front page will be stretched (if they do not meet the requirements) to a resolution of 256×384 [...]

Capistrano and Glassfish

There is enough documentation when it comes to installing JRuby and Glassfish. What was lacking was a simple capistrano recipe to get you started, let’s get cracking.

1
2
3
4
5
6
7
namespace :app do
desc "Warble and Deploy"
task :warble_and_deploy , :roles => [:app] do
run "cd #{release_path}/ && warble"
run "/bin/asadmin [...]

The DStillery is open!

When you’re reading this that must mean The DStillery has officially opened, welcome!
I got my shiny black Nintendo DS a few weeks back. Before that I always hijacked my girlfriend’s DS but sitting on the public transport with a pink DS just go a bit weird when I received Guitar Hero. A pink DS is [...]

Hello world!

Hand me some cake it’s time to celebrate; an other incarnation of my weblog is live. This time it will be a bit more work related and fully english.

I need an excuse to check my syntax highlighter

1
2
3
4
5
6
7
8
9
class Organization < ActiveRecord::Base
named_scope :active, :conditions => "status = ‘1′"
end
 
class OrganizationsController < ApplicationController
def index
@organizations = Organizations.active.paginate(:page => params[:page])
end
end

Namedscopes are soo pretteh