How to set OTRS permission

If you can’t access due to file permission of OTRS.

type this on your command line .

sudo ./ –otrs-user=otrs –otrs-group=otrs –web-user=www-data –web-group=www-data /opt/otrs

Then go to




Follow the web set up


Auto-start VIMTree when loading VIM

Goto Command Prompt

Go to Vimrc by typing              ~/.vimrc

and then add this  to the file

autocmd VimEnter * exe ‘NERDTree’ | wincmd l



open vim and VIMTree should start automatically

“Migrations are pending; run ‘bin/rake db:migrate RAILS_ENV=development’ to resolve this issue.”

To solve this issue on Rails 4.

Warning! You will lose your existing data.

      rm -f db/*.sqlite3
      rake db:create
      RAILS_ENV=development rake db:migrate
      rails s -e development

For more discuession about this errror :


Special Thanks to:

auto start RVM evertytime you start terminal on ubunu

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"

From: ~/.bash_profile file

To: ~/.bashrc file

Switch to chitika and earn money online

When I was making my first site and had launched it successfully, I felt I needed to monetize my site and I searched for ways how to do so and discovered chitika.

I have then signed up and in less than 5 minutes my advertising banners were set and are ready to go!

Now  I am earning every day with chitika ads.

So, If you have a blog or a website and finding ways to monetize it,  then choose chitika.

How to hide the dotted border outline on focused elements in HTML, using CSS

How to hide the dotted border outline on focused elements in HTML, using CSS

While working on a web application for data entry, I had to scour the net for a way to hide the dotted border that appears when an element is focused on a web page. Here are my findings.

First, the obligatory disclaimer – I do understand that the dotted border is for accessibility purposes and should be left in place under normal circumstances. However, in this case we already had a replacement in place – when an element receives focus it is styled differently, using a very distinct background color. And this applies to all elements, regardless of whether they were selected by mouse or keyboard. So the dotted border is redundant, and somewhat distracting.

To further clarify the question, these are the dotted borders I refer to:

While the solution needed to be usable across browsers, the target browsers where well defined – modern versions of Firefox and Chrome, and IE 7 or newer. I first came across this question on which pointed me to using outline:none. Then this one helped with Firefox compatibility. And then I saw this post which provides a number of different techniques.

I ended up using the following CSS, which seems to cover most bases. As I didn’t see this combination on other sites I thought I would post it myself. It doesn’t apply to the select element in Firefox and IE7. Testing was done on Windows XP.


/* hide the dotted lines around an element when it receives focus */
* { _noFocusLine: expression(this.hideFocus=true); } /* ie7 */
::-moz-focus-inner {border:0;} /* firefox */
:focus {outline:none;} /* ie8, chrome, etc */


ok. here is (hopefully) a nice simple set of instructions for recent converts.

1) open up your prefered command console. I use yakuake (absolutly amazing program, but you can also use konsole or any other equivalent)
2) sign in as the super user by typing in “su” (enter) then entering your root password when prompted.
3) then go to the directory (folder) where the .tar.gz file is located. for example if it is in your home folder type in “cd /home/” and hit enter
4) type in “tar -zxvf ” and hit enter this will extract the files and create a new directory (folder)
5) go into that folder using “cd ”
6) enter in “./configure” into the command line. this will configure the files. (answer any questions asked)
7) when that’s done enter in “make” into the console.
when that’s done enter in “make install”

And you’re all done!!!

If you’d like to move the folder you may, but don’t delete the folder because it comes in useful if you’d like to uninstall the program

sample PHP