Archive for July 2012
-
Pygmentizing your Rails app hosted on Heroku
July 28, 2012
This post was originally published in the Rambling Labs Blog on July 28, 2012.
Last week, I watched Ryan Bates’ Syntax Highlighting RailsCast and wanted to apply what I had just learned right away, using pygments.
As you might have noticed, the jQuery Rambling Slider homepage features the new syntax highlighting styling. I’ve spent great part of the day updating the blog posts to use this new syntax highlighting style, to stop relying on GitHub’s gists, but that’s another story.
Now, there are several ways to do this. There are a couple of gems out there, like the
pygments.rb
mentioned on the RailsCast, that are very helpful. I installed that gem locally and it worked like a charm, but when I tried to upload the changes to Heroku, the… -
Version 0.4.2 of the Rambling Trie has been released!
July 28, 2012
This post was originally published in the Rambling Labs Blog on July 28, 2012.
The Rambling Trie has reached its 0.4.2 version. This one includes the before mentioned changes for the trie instance to behave as an
Enumerable
.This means that having this:
trie = Rambling::Trie.create (%w(some words and other stuff)).each |word| trie << word end
You can do something like this:
trie.each do |word| puts "#{word} is included!" end
As well as:
trie.any? { |word| word.include? 'x' } trie.all? { |word| word.length > 0 }
And any other method included in Ruby core’s
Enumerable
module. Isn’t that cool!?Enjoy!
-
New homepage for Rambling Trie
July 28, 2012
This post was originally published in the Rambling Labs Blog on July 28, 2012.
As done with the jQuery Rambling Slider previously on this week, and as I promised on that post as well, the Rambling Trie now has its own homepage on ramblinglabs.com! Here’s the link:
Rambling Trie | A Ruby implementation of the Trie data structure
It features installation and usage steps as well as a contributing page, and includes the badges from various cool GitHub services (more on that later). It also has a brand new logo, inspired on the trie data structure (and other tree data structures) concept.
Go ahead and check it out!
Still pending:
- Examples page for jQuery Rambling Slider
- Examples page for Rambling Trie
- Examples page for Rambling Slider…
-
The rambling-slider-rails v0.1.0 has been released!
July 22, 2012
This post was originally published in the Rambling Labs Blog on July 22, 2012.
Version 0.1.0 of the
rambling-slider-rails
gem is here! And it includes a major bug fix.The
rambling-slider-rails
gem had an awful bug when running on production mode, causing the SASS to not be compiled. There were a couple of failed attempts before0.1.0
trying to fix this. They were0.0.2
and0.0.3
, which have both been yanked from the RubyGems repository.After fixing the issue and revising the file/directory structure, the version 0.1.0 has been pushed to RubyGems and should now be working correctly on both production and development modes.
See Introducing rambling-slider-rails: Easily include the jQuery Rambling Slider on your rails app and the project…
-
jQuery Rambling Slider new home page
July 22, 2012
This post was originally published in the Rambling Labs Blog on July 22, 2012.
The jQuery Rambling Slider now has its own dedicated section here on ramblinglabs.com. Here’s the link: jQuery Rambling Slider | A CoffeeScript improved version of the Nivo Slider
It features thus far one download page and one description page with a fully functional slider, included on the site with the rambling-slider-rails gem (see Introducing rambling-slider-rails: Easily include the jQuery Rambling Slider on your rails app and The rambling-slider-rails v0.1.0 has been released!. I will be adding an examples page soon, to present the different themes, image resizing support, flash support and other options added.
Go ahead and check it out!
Also, the Rambling…
-
Rambling Trie 0.4.1 is out!
July 21, 2012
This post was originally published in the Rambling Labs Blog on July 21, 2012.
Version 0.4.1 of the Rambling Trie is here. It has some minor performance improvements over previous versions, changes in file/directoy structure, as well as a new API entry point, other API methods and more documentation.
You can now instance a new trie like this:
trie = Rambling::Trie.create
DEPRECATION WARNING
The old API entry point
Rambling::Trie.new
is now marked as deprecated and will be removed soon. Use the newRambling::Trie.create
method.
Also, you can add words to the trie using
<<
:trie << 'word'
And check if a word is contained in the trie with
include?
:trie.include? 'word'
You can see more documentation available on the project’s repository…