bliki, the blog + wiki system that does less

posted on 08 Dec 2008, filed under ruby, sinatra, bliki, projects

If you are like me, you have probably tested almost every blog system under the sun.

If you were looking for something simple, fast and easy to hack, well... you may want to take a look at the project that has been powering this site for some time:

bliki, the blog + wiki system that does less

I've always wanted to have a blog with a wiki (or a wiki with a blog), and couldn't find anything simple enough.

bliki is a Sinatra app, so the code is pretty small and fun to hack. Feel free to fork it and send pull requests :)

View Comments

Test::Unit hacks

posted on 07 Dec 2008, filed under ruby, testing

Here's a small tweak I'm adding lately to all my unit tests in Ruby:

class Test::Unit::TestCase
  def self.test(name, &block)
    test_name = "test_#{name.gsub(/\s+/,'_')}".to_sym
    defined = instance_method(test_name) rescue false
    raise "#{test_name} is already defined in #{self}" if defined
    if block_given?
      define_method(test_name, &block)
    else
      define_method(test_name) do
        flunk "No implementation provided for #{name}"
      end
    end
  end
end

It allows you to write your tests like this:

test "Thing should be working" do
  # your code here
end

instead of the incredibly exhausting

def test_thing_should_be_working
  # your code here
end

View Comments

fluby 0.6.1 released

posted on 04 Nov 2008, filed under fluby, ruby, flash, actionscript, mtasc

Good morning!

I have just uploaded a new version of fluby to RubyForge. It will be available in a few hours. If you are the impatient kind, you can always install from the Gem repository at Github by running:

gem sources -a http://gems.github.com
gem install bomberstudios-fluby

what the hell is fluby?

Nice of you to ask. From the README:

fluby is a simple command to create an empty ActionScript project for MTASC + SWFMILL + Rake

I have been using it for quite some time for all my ActionScript projects, and it has saved me countless hours of work.

It uses Ruby, Rake, MTASC and swfmill to make project creation and compilation 100% painless.

To create a new project:

fluby Projectname

To compile your brand new project:

cd Projectname
rake

That should generate a 'Projectname.swf' file on the 'deploy' folder. The SWF file is debug-enabled (i.e: you can see the trace() output if you have a debug Flash Player). If you want to release your project without debug information, run

rake release

New in version 0.6 is the ability to generate files from templates, so you can spend your time on the really important matters of life, such as finding the perfect beer or learning japanese :)

Checkout the full README at Github

View Comments

Comments enabled

posted on 27 Oct 2008, filed under site

Giving up to peer pressure, I've enabled comments on the blog.

It's a good oportunity for me to test Disqus and see if it lives up to the hype (also, it saves me from having to code a comment system :)

So, comment away! :)

View Comments

Painting perfectly

posted on 27 Oct 2008, filed under zen, quote

You want to know how to paint a perfect painting? It’s easy. Make yourself perfect and then just paint naturally. That’s the way all the experts do it.

Robert Pirsig -- Zen and the Art of Motorcycle Maintenance

View Comments

archives...

Archaeopteryx: A Ruby MIDI Generator (22 Oct 2008)

Github and the new Open Source ecosystem (19 Oct 2008)

new

about

this is the home of Ale Muñoz.

i talk about actionscript, adobe, beta, bliki, blog, contact, design, editor, fireworks, flash, fluby, fork, gem, github, inspiration, mtasc, opensource, personal, projects, quote, rake, ruby, sinatra, site, swfmill, talks, testing, tools, wordpress, zen