Articles tagged 'fixes'

  • jQuery Rambling Slider v0.1.2 patches

    November 13, 2011


    This post was originally published in the Rambling Labs Blog on November 13, 2011.


    I didn’t have enough time to post this before, but here it is. I’ve made some patches for the jQuery Rambling Slider. You can see the tags on GitHub. These include (the key features are bolded):

    jQuery Rambling Slider v0.1.2.1 (patch 1, you can download it from GitHub):

    • Enabled method chaining on ‘start’ and ‘stop’.
    • Changed ‘animSpeed’ option to ‘speed’.
    • Added the ‘option’ and ‘effect’ methods.

    jQuery Rambling Slider v0.1.2.2 (patch 2, you can download it from GitHub), includes patch 1 and:

    • Some html validation.
    • Added the supported jQuery versions information.
    • Removed jQuery. Pulling it from the google cdn now.
    • Fixed issue with ‘getRandomAnimation...

    Continue Reading →

  • The nokogiri gem and the "libxslt is missing" error

    October 17, 2011


    This post was originally published in the Rambling Labs Blog on October 17, 2011.


    I ran into this issue today. But this one’s easy. Just run the following command and install the gem again:

    apt-get install libxslt1.1 libxslt1-dev libxslt-ruby
    

    That’s it! It should work fine now :).

  • Using Postgresql with Rails 3.1: the 'pg' gem

    October 17, 2011


    This post was originally published in the Rambling Labs Blog on October 17, 2011.


    As you may know I’ve been learning Ruby on Rails for the last few weeks. I’m also currently developing an application using the edge version of RefineryCMS (which is really a Rails 3.1 application), integrated with the almighty Heroku.

    I wanted to use RefineryCMS with Postgresql, so the only thing that I had to do was installing postgresql and it’s corresponding gem ‘pg’… Or so I thought.

    I wasn’t surprised. About a year ago I had the same unfulfilled expectations with mysql and the mysql gem. So, this is what I had to do:

    • First, of course, install postgresql with apt-get install postgresql
    • Then, install the libpq-dev with apt-get install libpq-dev

    Continue Reading →

  • Refinery CMS, rails 3.1.1 and the Operation not permitted error Errno::EPERM

    October 14, 2011


    This post was originally published in the Rambling Labs Blog on October 14, 2011.


    The last couple of days, I’ve been trying to set up Refinery CMS for a project I’m working on. I’ve made a couple of Stack Overflow questions about which ruby on rails CMS supports multiple languages and custom types.

    Answers to both questions were directing me to Refinery CMS, so I had to test it out. But… I wanted it to be on rails 3.1 (either 3.1.0 or 3.1.1). So I googled for a while and found that Refinery CMS edge on github does support rails 3.1.

    So I set up my Refinery CMS local test under my Ubuntu virtual machine by first downloading the edge code from github, like this:

    git clone git://github.com/resolve/refinerycms.git ~/refinerycms-edge
    

    Continue Reading →

  • Rails 3.1 "rails console" fails with "no such file to load -- readline"

    October 12, 2011


    This post was originally published in the Rambling Labs Blog on October 12, 2011.


    Yesterday, I was trying to run the rails console command on Ubuntu with ruby 1.9.2 and rails 3.1, without any success. I was getting a no such file to load -- readline error. This kind of error was sort of familiar for me (I had the common no such file to load -- zlib and the not so common no such file to load -- openssl a while ago). So this was probably another package that I was missing.

    Turns out that as I found in a Stack Overflow question, I needed the libreadline-dev, which I didn’t have installed. But I also needed to recompile ruby, seriously!?

    This is where rvm comes to the rescue, and why I love so much to have rvm installed :D. You only need...

    Continue Reading →

  • Android Market not showing all installed apps

    October 9, 2011


    This post was originally published in the Rambling Labs Blog on October 9, 2011.


    As you may have read a couple of days ago, I had a lot of issues with the market when I installed Cyanogenmod7.1.0-RC1 on my HTC Inspire 4G. But thankfully, I solved that and I thought that was it.

    In the last few days though, I noticed that the apps weren’t updating as often as I was used to. So I went to check my apps on the market and, to my surprise, only 2 apps where showing there. 2 apps from a list of 50+ apps that I have currently installed.

    The first thought that popped into my mind was “I messed it up”. And of course that was going to be my first thought after all the issues I went through.

    But no need to worry! If you are having this issue...

    Continue Reading →

  • Rails 3.1 smtp gmail Errno::ECONNREFUSED Connection refused

    October 9, 2011


    This post was originally published in the Rambling Labs Blog on October 9, 2011.


    I was trying out the rails 3.1 smtp mailer on the sandbox application I use to test all the new stuff and it was throwing this error:

    Errno::ECONNREFUSED in TestController#create
    
    Connection refused - connect(2)
    

    And I had this configuration on config/environments/development.rb:

    Demo::Application.configure do
      # ...
      config.action_mailer.delivery_method :smtp
      config.action_mailer.smtp_settings = {
        enable_starttls_auto: true,
        address: 'smtp.gmail.com',
        port: 587,
        domain: 'gmail.com',
        authentication: 'plain',
        user_name: '<email@yourdomain.com>',
        password: '<password>'
      }
      # ...
    end
    

    I tried quite a number of combinations...

    Continue Reading →

  • Android Market 3.1.3 and 3.1.5 crash with "Force stop" error on HTC Inspire4G/DesireHD with Cyanogenmod 7.1.0-RC1

    September 29, 2011


    This post was originally published in the Rambling Labs Blog on September 29, 2011.


    Yesterday, I installed the Cyanogenmod 7.1.0-RC1 on my HTC Inspire 4G phone. It looks and works great, but since the minute I installed it, I started to have issues with the Android Market, specifically versions 3.1.3 and 3.1.2.

    So, I googled for a couple of hours and didn’t find anything until, finally, I stumbled into this fix.

    Ok, that’s fair enough. A little hardcore for the stuff I usually do, but fine. I didn’t like that it was the 2.2.7 version, but I guess that was ok if it fixed it. I tried to find a newer version of the market, but only found ‘.apk’ files, and I needed a zip.

    Well, so I rebooted into recovery mode, wiped out all my data and...

    Continue Reading →

  • jQuery fadeIn and fadeOut: IE bug workaround

    September 26, 2011


    This post was originally published in the Rambling Labs Blog on September 26, 2011.


    I was trying to do some cool effect on a project I’m working on by fading in the front page. The trick looks really nice and it’s easy to implement.

    Just make the body hidden like this:

    <body style="display: none;">
    

    And in the JavaScript file do this:

    $(function(){
      $('body').fadeIn(2000);
    });
    

    Checked it out on Firefox and Chrome. It works perfectly, so smooth. And that’s it!… Or so I thought…

    Checked it out in IE 8 or less and, oh surprise, it doesn’t work. It fades in the background, but the rest of the page is shown with no transparency or fading in at all.

    But why?? Because some elements have a position: relative; or position: absolute; in their...

    Continue Reading →

  • JetBrains and the IdeaVIM plugin

    September 20, 2011


    This post was originally published in the Rambling Labs Blog on September 20, 2011.


    Last night I installed the latest version of RubyMine (just to have it as a backup plan though). I then tried to install the IdeaVIM plugin which, for older versions, had worked fine for me.

    But guess what? I downloaded and installed the plugin, restarted the IDE and it didn’t work. I thought that was odd since it usually worked after restarting. Wondering if it was an issue with RubyMine, I tried with WebStorm and PhpStorm having the same result.

    On my desperation, I went to JetBrains’ YouTrack to report a bug. And tonight, out of nowhere, I remembered that there was an option in the Tools menu…

    There it was… Tools -> VIM Emulator… unchecked…

    God...

    Continue Reading →