Training @Tata Consultancy Services[ILP]

ILP(Initial Learning Program) Experience

This was the first time when i was called for training in one of the largest IT company of India TCS, in beautiful city named as Ahmadabad.
We were tagged with a stream named as BIPM(Business Intelligence & Performance Management).
We were groomed in two different ways, one was technically and other was personally.

Some Drupal Rules

As i am working in SRIJAN technologies from past 11 months, which is a drupal development company. I learned some rules regarding drupal in this span of time, which are listed below :

Vi Magics

I was working with coder of drupal from past 3 days and had removed 7000 errors from a particular module. But i have done it with VI-Editor by following Commands.

1.For Removing all leading spaces

:1,$s/^\s*//gc

I have used gc so that it will confirm for every instance on every line.
2. Make an indentation of 2 spaces for every line starting.

:%s!^!  !

3. Replacing

,

with

, 
 :%s/,/, /gc

4. For deleting all trialing spaces at the end of line

:%s/ \+$//c

Wrong permissions on configuration file, should not be world writable!

If you install phpMyAdmin on your web host and all you see when you access www.yoursite.com/phpmyadmin (or whatever) is “Wrong permissions on configuration file, should not be world writable!” you are supposed to just change the permissions of /phpmyadmin/config.inc.php to not be world writable (i.e. chmod 755 config.inc.php, or by using your FTP client).

sudo: /etc/sudoers is mode 0777, should be 0440 Solved Problem

Today I was getting a Problem in ubuntu that is

sudo: /etc/sudoers is mode 0777, should be 0440
sudo: no valid sudoers sources found, quitting

I solved it in following way :-
I have put Ubuntu onto a LiveCD, boot into the LiveCD, mounted my Ubuntu Partition on the Hard Drive (Open a file browser, like Nautilus, and click your Ubuntu Partition; or click Places->"xxGB Partition/Your Ubuntu Partition").

Then, opened a terminal within the LiveCD session and type these two commands:

cd /media//etc
sudo chmod 0440 sudoers
Thats it :)

Alpha Pager for User_listing

In this tutorial, i will telll you how to add A-Z alphabetical searchable users with the help of views
This tutorial is just for drupal 6.x
The Steps for this tutorials are as follows :-

1. First, create a new page view and set your path to “directory”
Assuming you want your pager to be based on the nodes title, add in an argument: “Node: Title”
Set title equal to: “Directory: %1”
Action to take if argument is not present: “Display all values”
Check “Glossary Mode”
Set character limit to “1”
Case: “upper case”
Case in path: “lower case”
Save and update

Install Redmine on Ubuntu

Install redmine on ubuntu

sudo add-apt-repository ppa:ondrej/redmine

sudo apt-get update

sudo apt-get install redmine redmine-mysql
 

Then, create this for /etc/init/redmine.conf
Paste the following code in it .


# Redmine

description  "Redmine" 

start on runlevel [2345]
stop on runlevel [!2345]

expect daemon
exec ruby /usr/share/redmine/script/server webrick -e production -b 0.0.0.0 -d

sudo service redmine start

Then Click Here
You can stop it via

sudo service redmine stop

Install Latex on ubuntu

Install latex on ubuntu by following Command

 sudo apt-get install gedit-latex-plugin texlive-fonts-recommended latex-beamer texpower texlive-pictures texlive-latex-extra texpower-examples imagemagick 

Journey up-to Srijan Technology

In this blog i am sharing some of my past experience of life, in which i have faced many problems.

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.

Pages

Subscribe to Davinder Kumar RSS