Vi With tricks

Hello
All, i am using vi editor in ubuntu with some hidden tricks. Following is the trick to cut from one existing file and paste into a new file:
1. Open the file you want to cut from.
2. Press m a for marking text or it will start marking the text from current position.
3. Move down upto which you want to cut the text
and use " a d ' a where a for storing all marked text in buffer in a and d for deleting it.
4. Now create the file with :e and type there "a p where a is again stored buffer and p for putting values.

Escape from html via CSS

Hello Everyone!
I am currently working on drupal.
I have noticed that most of the developers like me is doing some stupid mistakes, we are using every html coding in body of drupal page, block, panel, webform any many other features by drupal. So if you are a real programmer then your working way should be like as follow.
1. If you are using an h1 and h2 heading tags, please don't save it as full html, save it as filtered html.
2. Then do its css in css file by using class, id. Or in following way

  h2 {
  text-align:float;
  font-size: 16px;
     }

Low space in boot ubntu

Every time Ubuntu installs a new Linux kernel, the old one is left behind. This means that if you are regularly updating an Ubuntu system the Grub boot menu becomes longer and longer with kernels you don’t need anymore.

The old kernels are deliberately left installed and on the menu so you can boot a previous kernel if you have trouble with a new one.
Steps:-
1.Open the terminal and type there

uname -r

It will print the version of the Linux kernel you are running, this is the one you want to keep. It should look something like this:

2.6.38-12-generic

Mapping Parties

Here is our news regarding openstreetmap.
These are the free editable maps means everyone can edit it, modify it and can upload it on internet. Moreover if you want to use it as commercial usage or some business it requires no charges due to its GPL licensing. But in case of other maps you have to pay for commercial or business usage.
Here is our photo in TIMES OF INDIA.

Install Myreview on Ubuntu

Apply following command in terminal

 sudo -s
 cd /var/www
 wget http://202.164.53.122/~davinder/myreview-1.9.9.tgz
 tar zxf myreview-1.9.9.tgz 
 mv myreview lqq
 chown -R www-data:www-data lqq
 cd lqq
 cp  DBInfo.php.sample DBInfo.php
 vim CreateDB.sql

Add following lines to it

CREATE DATABASE lvqq;
GRANT ALL PRIVILEGES ON lvqq.* TO lvqqAdmin@localhost
IDENTIFIED BY 'lvqqadmin';
GRANT select ON lvqq.* TO SQLUser@localhost IDENTIFIED BY 'pwdSQL';
//lvqqAdmin is the database user,lvqqadmin is the password.
vim DBInfo.php

Pages

Subscribe to Davinder Kumar RSS