Make sure you have installed Image Magic sudo apt-get install imagemagick And then, from the command line: mogrify -resize 50% *png # keep image aspect ratio mogrify -resize 320x240 *png... Read more »
You have foo.rb open in your feature branch and you want to check how this file was on the mater branch? Do this: :Gedit master:foo.rb Syntax: :Gedit [branch name or... Read more »
Hi there. I’ve been willing to practice pair program. Since that is not something I can achieve in my current job, my goal is to do that remotely with anyone... Read more »
I just found a great alternative to the following command:
mv /tmp/a/b/c /tmp/a/b/d
Well, turns out there is a short hand alternative for accomplishing the same result:
mv /tmp/a/b/{c,d}
Read more »
This are the steps: # service mysqld stop # mysqld_safe --skip-grant-tables & # mysql --user=root mysql MYSQL> update user set Password=PASSWORD('new-password') where user='root'; MYSQL> flush privileges; MYSQL> exit; # service... Read more »
Just recently a German company showed interest in hiring me. I was very happy and surprised. They phoned me, and we kept in touch for a few weeks. They even... Read more »
I had a hard time trying to achieve the above. Every time I tried to copy create a usb recovery disk for windows 7 it did not work. I could... Read more »
Add the gem to your gem file # Gemfile gem 'capybara-webkit' And bundle bundle install Ooops! That gave me the error: qmake: could not find a Qt installation of ”...... Read more »
In order to test engine routes (and controllers) you may need to set the routes attributes: describe Gossiper::NotificationsController, 'routing' do # here's the trick routes { Gossiper::Engine.routes } it "routes... Read more »
Keep Ctrl+w from closing Firefox tab When working with Vim I tend to hit Ctrl+w so I can change splits. I also tend to do that while im not focused... Read more »
Depois de instalar o java, parece que o que foi preciso fazer foi o seguinte:
sudo ln -s /usr/lib/jvm/java-7-oracle/jre/lib/amd64/libnpjp2.so /usr/lib/firefox-addons/plugins
A dica veio daqui.
Funcionou do ubuntu 13.4.
Read more »
I got this error when trying to bundle an Rails 4 application. My ruby version was ruby-2.0.0-p195. How I got it fixed rvm get stable rvm install 2.0.0 # installed... Read more »