it’s very simple to read CSV and then get all information by columns this is simple code which will help you with it

Example how to skip first line of any file which you want to read using FileReader in Java

all what we are doing is adding br.readLine(); before while loop this will read first line so it will be skipped in loop.

This problem normally occurs when your forgetting to place array into container, for example

We will have in this situation only first row not others, top get all rows we must use while() loop

using while loop your getting all rows you can save them into array and so on.

More space needed on the boot filesystem

After running yum update if your getting something like this

Transaction Check Error:
installing package kernel-2.6.32-431.11.2.el6.x86_64 needs 11MB on the /boot filesystem

this means that boot file system is full we will need to delete some date from there to install new kerenel.

to list all old kernels which are not needed any more:

rpm -qa | grep kernel
kernel-devel-2.6.32-431.1.2.0.1.el6.x86_64
kernel-2.6.32-431.1.2.0.1.el6.x86_64
kernel-devel-2.6.32-358.23.2.el6.x86_64
kernel-devel-2.6.32-431.5.1.el6.x86_64
kernel-devel-2.6.32-358.18.1.el6.x86_64
kernel-devel-2.6.32-431.3.1.el6.x86_64
kernel-headers-2.6.32-431.5.1.el6.x86_64
dracut-kernel-004-336.el6_5.2.noarch
kernel-2.6.32-431.5.1.el6.x86_64
kernel-firmware-2.6.32-431.5.1.el6.noarch
kernel-2.6.32-358.23.2.el6.x86_64

Now delete one of them using :

rpm -e kernel-2.6.32-431.1.2.0.1.el6.x86_64

and check space:

df -H /boot

if space not enough delete some other old kernels and start update again.

 

webmin debian

Most of all servers come with installed apache,php and mysql but but without vernish and webmin we need to install this soft manually on Debian or ubuntu.

We will start to upgrade out system:

apt-get update
apt-get dist-upgrade

Now if apache is not installed we should install it:

apt-get install apache2

install mysql server:

apt-get install mysql-server

install PHP:

apt-get install php5 php-pear php5-mysql php5-common php5-mcrypt php5-curl php5-cli php5-gd php5-dev

install curl(is needed for vernish) and unzip(if not installed):

apt-get install curl unzip

Now we must install dependencies for webmin control panel:

apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python

Wget webmin and install it:

wget http://prdownloads.sourceforge.net/webadmin/webmin_1.660_all.deb
dpkg –install webmin_1.660_all.deb

at least install vernish:

curl http://repo.varnish-cache.org/debian/GPG-key.txt | apt-key add –
echo “deb http://repo.varnish-cache.org/debian/ wheezy varnish-3.0” >> /etc/apt/sources.list
apt-get update
apt-get install varnish

Now all software installed you can access your webmin control panel using https://yourip:10000

 

Nginix is great web server it’s much faster then apache server, but we need to make some tasks to install and configure Nginix with PHP.

 

1) Install mysql server and other tools which we need

apt-get install gcc libpcre3 libpcre3-dev zlib1g zlib1g-dev libssl-dev openssl libxml2-dev libevent-dev mysql-client mysql-server

2) Normally debian already includes Nginix

apt-get update

apt-get install nginx

3) Now we can install PHP and extensions

apt-get update

apt-get install php5 php5-fpm php-pear php5-common php5-mcrypt php5-mysql php5-curl php5-cli php5-gd php5-dev

4) Start all services

service nginx start

service php5-fpm start

service mysql start

5) Start php,mysql,nginx at start

update-rc.d nginx default

update-rc.d mysql defaults

update-rc.d php5-fpm defaults

 

There was a problem creating the parked domain. Show Details

Error from park wrapper: Using nameservers with the following IPs: xxx.xxx.xxx.xxx,xxx.xxx.xxx.xxx Sorry, the domain is already pointed to an IP address that does not appear to use DNS servers associated with this server. Please transfer the domain to this servers nameservers or have your administrator add one of its nameservers to /etc/ips.remotedns and make the proper A entries on that remote nameserver.

FIX :

If you have access to WHM you must make this change –

WHM > Tweak Settings > Domains > Allow Remote Domains > On

List of most popular directory sites where you can submit your site:

Dmoz – Free web directory one of the most quality directory in world, owned by Google.
Yahoo Dir – Costs 299$ year helps to improve trust from Yahoo and google too.
GoGudes – 39.99$ for one time.
Gimpsy – Support free submission, if you want your site to be approved in 30 days 29$ and if in 4 days 49$.
JoeANT – 39.99$ one time fee.
Skaffe – accept free submission and 49.99$ for paid.
www.web-beacon.com – Accept only paid submission 39.99$.
www.wowdirectory.com – Life time listing 43$.
uncoverthenet.com – starting from 159$ for lifetime listing or 59$ yearly.

duplicate_COLUMN – Name of column and $dup[‘column_name’] delete duplicates which include same column data.