I have been using reveal.js to create slideshow from markdown. It’s very nice and powerful. But the setup is a bit complicated. Sometimes i want to have a more simple solution.
Other than reveal.js, impress.js is a similar tool which allows you to present your ideas in a even more fancy way. I am not going to go into details of impress.js. Instead, i would introduce a tool called Mdpress which generate the .html presentation from markdown.
1. Install the Mdpress.
gem install mdpress
Continue reading mdpress – Present your markdown file in slideshow
rbenv is an alternative to rvm for managing your Rubies. You can find some articles comparing the two. In general, rbenv is more lightweight without overriding the cd and gem command which rvm does and their similarities outweigh their differences. Here is a great article written by Jonathan Jackson about the two solutions.
For Mac users, you could install rbenv using Homebrew. Otherwise, you need to checkout the repository on GitHub.
Continue reading rbenv – Ruby version manager
Update @ 2015-09-23: Using PowerShell is just my personal preference, You could use MS-DOS in Windows if your machine doesn’t have PowerShell installed.
1. Download Node.js and install it and make sure you have the npm package manager selected before the installation.
Continue reading Setup Yeoman in Windows PowerShell
Geocoder is a Rails Gem which helps you to manipulate location in your Rails application. It is written by Alex Reisner. Thanks for his work and you can find out more details at Github – alexreisner / geocoder.
Let’s try it now. Continue reading Rails – Find Location using Geocoder
Last time we should you how to create the mock user using the Factory Girl ♥ Rails gem.
Rails – Create Mock Data for RSpec
Recalled that spec file. Continue reading Rails – Devise User Sign In for RSpec
When running the test cases, most likely we need some mock data to test the functionality of our code. The factory_girl_rails gem is useful for creating mock data for testing purpose. Continue reading Rails – Create Mock Data for RSpec
I am still continuing the tutorial @ Ruby on Rails Tutorial by Michael Hartl
Last time we have integrated the RSpec and Autotest in Rails 3.
Rails – Integrate Autotest and RSpec in Linux
But it seems that it takes quite long for RSpec to complete the tests. This is because RSpec reloads the entire Rails environment for each run. Spork Test Server helps you preloading the Rails environment which greatly reduces the time for running the test suite.
1. Add the spork gem in the Gemfile Continue reading Rails – Running RSpec with Spork Test Server
I am learning Rails 3 @ Ruby on Rails Tutorial by Michael Hartl. A very nice and detail tutorial with many examples for beginners. Highly recommended.
But i got some problems when i tried to setup the Autotest for the RSpec framework. Autotest is a continuous testing tool which run the test suite automatically based on the files you have changed. RSpec is a Behavior Driven Development (BDD) framework for Ruby. After a few hours of struggling, i finally made it work.
1. Create a new Rails project without the default Test::Unit framework.
Continue reading Rails – Integrate Autotest and RSpec in Linux
Last time we complete the Ruby 1.9.2 installation on Ubuntu Lucid.
Ruby – Installation on Ubuntu Lucid
Similar to the above post, run the following commands in your own account but not root account. Let’s proceed to the Rails 3.0 installation now.
1. Install Rails 3.0
- gem install i18n tzinfo builder memcache-client rack rack-test rack-mount erubis mail text-format thor bundler
- gem install rails
Continue reading Rails – Installation on Ubuntu Lucid