Details about Rails paperclip error: ‘There was an error processing the thumbnail for paperclip-reprocess’

I got this error while working with paperclip. The project was stable and I have no idea why this error happens at this point of time.

[paperclip] An error was received while processing: #
[paperclip] An error was received while processing: #<Paperclip::PaperclipError: There was an error processing the thumbnail for paperclip-reprocess20110822-2281-19969sz

So I was lazy to fix the error, and find that I have no imagemagick installed in my new system. After installing ‘imagemagick’ it got fixed.

$ sudo apt-get update
$ sudo apt-get install imagemagick --fix-missing
Advertisements

Install thinking Sphinx in Ubuntu 13.04 and set up in Rails 3.2

Check sphinx is already installed in your system,

$ search 

If you have already sphinx installed then it will show the sphinx version and other info, else it shows ubuntu information to install.

Download thinking sphinx from
here,

$ tar -xzf sphinx-2.0.8-release.tar.gz
$ cd sphinx-2.0.8-release/
$ ./configure
$ make
$ sudo make install

Type,

$ search 

it will show the sphinx release and the other information.
Add the sphinx gem into your Gemfile

gem 'thinking-sphinx'

Do bundle install

$ bundle install

I assume you already made the model / controller code for sphinx. Else see this
Index all your records

$ rake ts:index -t

While indexing sphinx will generate the configuration file inside RAILS_ROOT/config/config/development.sphinx.conf

If you need to generate only configuration file not indexing you can use this command

$ rake ts:configure -t

Run sphinx searchd daemon

$ rake ts:start -t

You can stop sphinx searchd daemon

$ rake ts:stop -t

You can reindex so that sphinx will re index all records without creating a configuration file.

$ rake ts:reindex -t

Enjoy Sphinx searching!

Install Skype in Ubuntu 13.04

For 32 bit:

Install Dependencies.

$ sudo apt-get install libqt4-webkit

Download and install Skype

$ wget -O skype-linux.deb http://download.skype.com/linux/skype-ubuntu-lucid_4.2.0.11-1_i386.deb
$ sudo dpkg -i skype-linux.deb
$ sudo apt-get -f install

Open the terminal and type

$ skype

Done.

Reference:
noobslab install skype

How to create a remote branch and fetch the code in Git

Type the command below to see, what all branches are there in remote.

$ git branch -r
  origin/HEAD -> origin/master
  origin/master
  origin/optimize-cities
  origin/optimize-merchants
  origin/release-dec-30
  origin/sso
  origin/staging

Create the remote Staging branch in local and fetch code:

 $ git checkout --track origin/staging

How to get haml support in netbeans 6.9

By default netbeans 6.9 is not providing the support for haml. We need to download the netbeans haml plugin and add to your netbeans.
Download the haml plugin from here:
http://postcomment.googlecode.com/files/org-netbeans-modules-haml.nbm

then go to your netbeans Tools/plugins/ and go to Downloaded tab, click on add plugin select the drop down and give your downloaded plugin path. Click on ‘OK’ button. Click on ‘Install’. Thats it!