Archive for September 2011

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

  • git submodule and the libiconv-2.dll issue

    September 27, 2011


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


    Yesterday, I made a fresh install of the latest msysGit (which is 1.7.6 as of right now).

    I usually set up my vim using the akitaonrails vimfiles. So last night I was trying to do as I usually do, clone the repository with git clone git://github.com/akitaonrails/vimfiles, and then cd into the just cloned repository and run git submodule update --init to get all the bundled plugins.

    This last command failed miserably with a The program can't start because libiconv-2.dll is missing from your computer. Try reinstalling the program to fix this problem message. This didn’t happen to me with version 1.7.4 from msysGit, which I had installed before I formatted…

    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 →

  • Rails 3.1 "rake db:migrate" fails with "stack level too deep" error

    September 20, 2011


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


    I was trying to run the following command on a new rails 3.1 app and it was failing… badly.

    rake db:migrate
    
    /home/edgar/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/version.rb:4: warning: already initialized constant MAJOR
    /home/edgar/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/version.rb:5: warning: already initialized constant MINOR
    /home/edgar/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/version.rb:6: warning: already initialized constant BUILD
    /home/edgar/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/version.rb:3: warning: already initialized constant NUMBERS
    /home/edgar/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/version…

    Continue Reading →

  • Rails 3.1 "rails server" error Could not find a JavaScript runtime

    September 19, 2011


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


    I upgraded to rails 3.1.0 and created a new ‘test_app’.

    rails new test_app
    

    Got into the directory. Everything was fine, until I tried to run:

    rails server
    

    It threw a weird error:

    Could not find a JavaScript runtime.
    See https://github.com/sstephenson/execjs for a list of available runtimes.
    

    That’s kinda weird. What does a rails app have to do with any JavaScript runtime? I guess it’s support for something that I still don’t know anything about.

    I googled that and found a stackoverflow question. So, two solutions for the issue: either*** install nodejs*** or include “gem ‘execjs’” and “gem ‘therubyracer’” in the Gemfile and run bundle install.

    Pick…

    Continue Reading →

  • RubyMine vs. Vim: my point of view

    September 18, 2011


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


    So, I tweeted a question earlier today about what editor is preferred by the rubyists and, although I didn’t get many answers, it, combined with a recent discussion I had about RubyMine vs. Vim later, helped me clear my reasoning a bit.

    By my reading of Agile Web Development With Rails and some people I follow on twitter, it seems that all the cool geeks use Vim (or TextMate or Emacs) for Ruby and Ruby on Rails programming instead of any IDE.

    I once googled to find out that vim was way complicated to set up. That same time, I found akitaonrails vimfiles on github. Fairly easy to set up if you just follow the instructions. But today I realized that there…

    Continue Reading →