@gonzedge

Adventures of a software development generalist

Featured See all posts →

  1. Query Objects in the Rails world - A Different Approach
  2. Ruby performance: Hash's #has_key? vs. #[] (square brackets)
  3. Unit Testing ActiveRecord eager-loading
  4. Ruby performance: #attr_accessor vs. method definition
  5. Using Page Objects in your Acceptance Tests
  6. Ruby performance: Using benchmarks and memory_profiler to chase performance degradations
  7. Page Objects: Where do you put your assertions?
  8. Git: Removing sensitive data and rewriting history
  9. Specifying failure message for RSpec expectations
  10. Installing MacVim with Lua enabled through Homebrew

Recent See all posts →

  1. Using certbot to add Let's Encrypt certificate on Heroku
  2. Ruby performance: #attr_accessor vs. method definition
  3. Ruby performance: Hash's #has_key? vs. #[] (square brackets)
  4. Ruby performance: Using benchmarks and memory_profiler to chase performance degradations
  5. Rambling Trie 1.0.0 released!
  6. Page Objects: Where do you put your assertions?
  7. Specifying failure message for RSpec expectations
  8. Using Page Objects in your Acceptance Tests
  9. Unit Testing ActiveRecord eager-loading
  10. Query Objects in the Rails world - A Different Approach

Tags

  1. ruby (35)
  2. instructions (34)
  3. plugins and libraries (24)
  4. rails (24)
  5. releases (18)
  6. rambling-slider (17)
  7. jquery (16)
  8. rails 3.1 (16)
  9. rubygems (15)
  10. slider (14)
  11. nivo slider (14)
  12. rambling (12)
  13. fixes (11)
  14. new site (8)
  15. rambling-trie (8)
  16. performance (7)
  17. data structure (7)
  18. testing (6)
  19. vim (5)
  20. bugs (5)
  21. opinions (5)
  22. javascript (5)
  23. refactoring (5)
  24. git (4)
  25. coffeescript (4)
  26. flash (3)
  27. heroku (3)
  28. rambling-slider-rails (3)
  29. capybara (3)
  30. rvm (3)
  31. design-patterns (3)
  32. new look (3)
  33. rubymine (2)
  34. markdown (2)
  35. error handling (2)
  36. database migrations (2)
  37. ssh (2)
  38. ubuntu (2)
  39. cyanogenmod (2)
  40. nodejs (2)
  41. haml (2)
  42. jasmine (2)
  43. android (2)
  44. selenium (2)
  45. nokogiri (2)
  46. refinerycms (2)
  47. internet explorer (2)
  48. mercurial (1)
  49. jetbrains (1)
  50. windows (1)
  51. actionmailer (1)
  52. postgresql (1)
  53. i18n (1)
  54. capybara-webkit (1)
  55. will_paginate (1)
  56. deployment (1)
  57. activerecord (1)
  58. background tasks (1)
  59. cron (1)
  60. simple-navigation (1)
  61. html (1)
  62. erb (1)
  63. assets (1)
  64. bash (1)
  65. github (1)
  66. pygments (1)
  67. lua (1)
  68. homebrew (1)
  69. powershell (1)
  • ← Older
  • Newer →
  • Installing MacVim with Lua enabled through Homebrew

    January 11, 2016

    If you’re like me, you like to have control over the plugins that you have installed in your editor setup. However, staying up to date with the different plugins can be a little bit of a hassle from time to time, so lately, I’ve been using YADR, a set of community maintained dotfiles.

    A great autocompletion plugin that YADR comes with is neocomplete.vim, which “provides a keyword completion system by maintaining a cache of keywords in the current buffer”. Unfortunately, for it to work, it needs MacVim with Lua enabled.

    Now, I already had MacVim installed through Caskroom:

    which mvim
    # /usr/local/bin/mvim
    ls -l $(which mvim)
    # /usr/local/bin/mvim -> /opt/homebrew-cask/Caskroom/macvim/7.4-84/mvim
    

    But this version was installed without Lua…

    Continue Reading →

  • 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…

    Continue Reading →

  • 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!

    Continue Reading →

  • 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…

    Continue Reading →

  • 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 before 0.1.0 trying to fix this. They were 0.0.2 and 0.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…

    Continue Reading →

  • 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…

    Continue Reading →

  • 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 new Rambling::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…

    Continue Reading →

  • Introducing rambling-slider-rails: Easily include the jQuery Rambling Slider on your rails app

    April 27, 2012


    This post was originally published in the Rambling Labs Blog on April 27, 2012.


    About three weeks ago, I had to use the jQuery Rambling Slider together with the Rails asset pipeline… It was a headache and a total mess… Having to change all the references to the images on the CSS file, as well as the themes was not as smooth as I would like that to be.

    So, I automated the process a bit locally and started to think how would be the easiest way to integrate the jQuery Rambling Slider into a Rails app. Then it hit me…

    Of course! How about building a gem that includes the necessary adjustments for the asset pipeline on Rails? That would we really cool and will save me from doing the same process over and over again for each new application…

    Continue Reading →

  • Git: Removing sensitive data and rewriting history

    April 27, 2012


    This post was originally published in the Rambling Labs Blog on April 27, 2012.


    One thing that tends to happen with Git, is being careless with what you add to your repository. I’ve seen this happen since I began using Git, a couple years ago, and it stays happening over and over again, for various reasons.

    On one of the projects I was a long time ago, we added lots of files with sensitive information, including emails and passwords for some accounts for certain services. We also added a lot of images that weren’t really needed, and some of the ones that were needed, were not in the optimal size either. We were just starting up with Git, and we didn’t know what to include or exclude.

    To avoid making the story any longer, I just have…

    Continue Reading →

  • Rails - Custom 404 and 500 pages and the exception_notification gem

    April 27, 2012


    This post was originally published in the Rambling Labs Blog on April 27, 2012.


    As I explained before on the Rails 3.1 - Adding custom 404 and 500 error pages post, sometimes you might want to have a custom way to handle your not found and internal server errors. In that case we wanted to show the error with a custom template.

    But, what if I have an important site from which I want to be notified if there is any error raised? There are a couple of gems for this. The one I’m most familiar with is exception_notification gem, which is easily configured as it is depicted on its README.

    This gem is added to the rails middleware stack and will capture any raised error and send you an email notifying about it.

    However, someone pointed out…

    Continue Reading →

  • ← Older
  • Newer →

Recent See all posts →

  1. Using certbot to add Let's Encrypt certificate on Heroku
  2. Ruby performance: #attr_accessor vs. method definition
  3. Ruby performance: Hash's #has_key? vs. #[] (square brackets)
  4. Ruby performance: Using benchmarks and memory_profiler to chase performance degradations
  5. Rambling Trie 1.0.0 released!
  6. Page Objects: Where do you put your assertions?
  7. Specifying failure message for RSpec expectations
  8. Using Page Objects in your Acceptance Tests
  9. Unit Testing ActiveRecord eager-loading
  10. Query Objects in the Rails world - A Different Approach

Tags

  1. ruby (35)
  2. instructions (34)
  3. plugins and libraries (24)
  4. rails (24)
  5. releases (18)
  6. rambling-slider (17)
  7. jquery (16)
  8. rails 3.1 (16)
  9. rubygems (15)
  10. slider (14)
  11. nivo slider (14)
  12. rambling (12)
  13. fixes (11)
  14. new site (8)
  15. rambling-trie (8)
  16. performance (7)
  17. data structure (7)
  18. testing (6)
  19. vim (5)
  20. bugs (5)
  21. opinions (5)
  22. javascript (5)
  23. refactoring (5)
  24. git (4)
  25. coffeescript (4)
  26. flash (3)
  27. heroku (3)
  28. rambling-slider-rails (3)
  29. capybara (3)
  30. rvm (3)
  31. design-patterns (3)
  32. new look (3)
  33. rubymine (2)
  34. markdown (2)
  35. error handling (2)
  36. database migrations (2)
  37. ssh (2)
  38. ubuntu (2)
  39. cyanogenmod (2)
  40. nodejs (2)
  41. haml (2)
  42. jasmine (2)
  43. android (2)
  44. selenium (2)
  45. nokogiri (2)
  46. refinerycms (2)
  47. internet explorer (2)
  48. mercurial (1)
  49. jetbrains (1)
  50. windows (1)
  51. actionmailer (1)
  52. postgresql (1)
  53. i18n (1)
  54. capybara-webkit (1)
  55. will_paginate (1)
  56. deployment (1)
  57. activerecord (1)
  58. background tasks (1)
  59. cron (1)
  60. simple-navigation (1)
  61. html (1)
  62. erb (1)
  63. assets (1)
  64. bash (1)
  65. github (1)
  66. pygments (1)
  67. lua (1)
  68. homebrew (1)
  69. powershell (1)

By Year

  1. 2020 (1)
  2. 2018 (3)
  3. 2017 (1)
  4. 2016 (6)
  5. 2012 (19)
  6. 2011 (42)

Back to top