Articles tagged 'instructions'
-
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;
orposition: absolute;
in their… -
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…
-
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…
-
Showing git and mercurial repository information in PowerShell
June 9, 2011
This post was originally published in the Rambling Labs Blog on June 9, 2011.
A while ago, I started getting a little annoyed when pushing my changes. It wasn’t until *then *that I realized that I forgot to add a yet untracked file to the repository or that I was in the wrong branch.
I made a quick Google search and found that I wasn’t the only one with this problem, and that there are some pretty cool solutions out there.
Since I’m currently developing in Windows, I found posh-git and posh-hg to be the more adequate ones.
It’s really easy. Just download them from here and here (or just go to links above and look for Downloads).
Both posh-git and posh-hg provide a quick inline summary with the current branch name and the number of…