Thursday, July 04, 2013

Website Designing & SEO Services Call 9136075049

Web Design Company New Delhi - Website Designing, Website Design Delhi Noida Call 9136075049 / 8586875020

WEBSITE DESIGNING DELHI

DLL Incorporation is one of India's best Web Designing Company in Delhi, with full- service offices in Delhi and Mumbai, 150 professionals and marquee clients across 10 countries.


web designing delhi,web designing in delhi,delhi web designing,web designing company in delhi,web designing companies in delhi,web designing companies delhi,web designing course in delhi,best web designing company in delhi,web designing companies delhi,web designing jobs in delhi ncr

It is an established company providing web design in Delhi, providing a range of cheap web design services to small and medium enterprises.

DLL Incorporation is web Development Company we bring most excellent flash ecommerce php web development solution for you. By means of us you get excellence web site design at reasonably priced

Web Designing Delhi

DLL Incorporation is a Delhi based IT company run by youths who are expert in Web Designing and development.

It offer all kind of Web Designing and Development for all category of business and services.

Main platforms which we use for Web Development are WordPress, Joomla, HTML,PHP & .net .

Info website with 5 -10 pages with .com Domain and web Hosting we offer only in 5000 INR.

We accept clients of all over the world, we accept Paypal, Perfectmoney,Money Bookers, Payza and All banking method of payments.

For quotation or List of Websites Developed by us . You can Email us at ceo@speakmeme.com or Talk us on Skype – Speakmeme  Skype

You may call us 10 AM to 10 PM in Night (According to Indian Time) on below numbers :-

CALL +91-9136075049 / 8586875020

SKYPE  SPEAKMEME EMAIL - ceo@speakmeme.com

Visit http://speakmeme.com/website-designing/

 

 

 

Wednesday, July 03, 2013

Manufacturer and Exporter of Filling Machine and Automatic filling machine

Fillpack Technology is one of the world leader biggest Manufacturer and Exporter of Filling Machine, automatic filling machine, Paste filling machine, Pesticide filling machine, liquid filling machine, ghee filling machine, powder filling machine, chemical filling machine, screw capping machine, capping machine, automatic capping machine, ropp capping machine, automatic ropp capping machine, crown capping machine, semi-automatic liquid filling machine, pp screw capping machine, milk filling machine, pouch packing machine, paneer cube cutting machine, viscous liquid filling machine etc.


For more details call Telephone : 022 - 25825969. Mobile : 9869573096, 9987784735

Visit http://www.fillpacktechnology.com/contact.html

  

 

Website Designing Only in 5000 INR With Free Domain and Web Hosting

WEBSITE DESIGNING IN DELHI

DLL Incorporation is a Delhi based IT company run by youths who are expert in Web Designing and development.

It offer all kind of Web Designing and Development for all category of business and services.

Main platforms which we use for Web Development are WordPress, Joomla, HTML,PHP & .net

Info website with 5 -10 pages with .com Domain and web Hosting we offer only in 5000 INR.

We accept clients of all over the world, we accept Paypal, Perfectmoney,Money Bookers, Payza and All banking method of payments.

For quotation or List of Websites Developed by us . You can Email us at ceo@speakmeme.com or Talk us on Skype – Speakmeme . Skype

You may call us 10 AM to 10 PM in Night (According to Indian Time) on below numbers :-

+91-9136075049 / 8586875020

Visit http://speakmeme.com/website-designing/

 

Prediksi Pertandingan Arema vs PSPS


Prediksi Arema vs PSPS - Bursa Taruhan Arema vs PSPS - Prediksi Bola Arema vs PSPS - ISL Arema vs PSPS - Partai Big Mach lanjutan indonesia super league kali ini akan menghadirkan pertarungan antara Arema Indonesia yang akan menjamu PSPS Pekanbaru. Sejauh ini kedua tim sudah sering kali bertemu di ajang indonesia Super League, Arema harus takluk di 2 partai tandangnya atas psps pekan baru.

Prediksi Arema vs PSPS


Arema Indonesia Sejauh Ini masih dalam kondisi terbaik mereka, di 5 laga terakhirnya arema berhasil merah 2 kalai kemenangan, 2 kali hasil imbang dan 1 menderita kekalahan Atas Sriwijaya FC.PSPS Pekan baru sejauh ini dalam kondisi yang kurang baik, terlihat dari lima laga terakhir yang mereka jalani.

PSPS pekan baru belum pernah merasakan kemenangan. Setelah Kalah dari Persela 9 - 1 PSPS Pekan baru semakin di bayang-bayangi kekalahan.Melihat dari Klasemen sementara Indonesia Super League, Arema Indonesia Kini berada di posisi ke 4 Klasemen sementara indonesia super league dengan meraih poin 50 dari 26 laga yang mereka jalani, Sedangkan PSPS Pekanbaru saat ini berada di posisi ke 17 Klasemen sementara indonesia super league dengan meraih poin 17 poin dari 27 laga yang mereka jalani.

Head To Head Arema Indonesia Vs PSPS Pekanbaru :
12 Feb 2013 PSPS Pekanbaru 1 - Arema 0 -Indonesia Super League (ISL)
2 Mei 2012 PSPS Pekanbaru 1 - Arema 0 -Indonesia Super League (ISL)
16 Feb 2012 Arema 2 - PSPS Pekanbaru 0 -Indonesia Super League (ISL)
15 Apr 2011 Arema 4 - PSPS Pekanbaru 2 -Indonesia Super League (ISL)
12 Jan 2011 PSPS Pekanbaru 1 - Arema 1 -Indonesia Super League (ISL)

Lima Pertandingan Terakhir Arema Indonesia :
30 Jun 2013 Arema 3 - Persija 1 -Indonesia Super League (ISL)
23 Jun 2013 Sriwijaya FC 3 - Arema 1 -Indonesia Super League (ISL)
18 Jun 2013 Pelita Bandung Raya 1 - Arema 1 -Indonesia Super League (ISL)
14 Jun 2013 Arema 1 - Gresik United 1 -Indonesia Super League (ISL)
3 Jun 2013 Arema 3 - Persita Tangerang 0 -Indonesia Super League (ISL)

Lima Pertandingan Terakhir PSPS Pekanbaru :
29 Jun 2013 Gresik United 5 - PSPS Pekanbaru 1 -Indonesia Super League (ISL)
25 Jun 2013 PSPS Pekanbaru 0 - Persib 4 -Indonesia Super League (ISL)
22 Jun 2013 PSPS Pekanbaru 0 - Persita Tangerang 5 -Indonesia Super League (ISL)
16 Jun 2013 Persepam Madura 3 - PSPS Pekanbaru 0 -Indonesia Super League (ISL)
12 Jun 2013 Persela 9 - PSPS Pekanbaru 1 -Indonesia Super League (ISL)

Prediksi Pemain Utama Kedua Tim :

Arema Indonesia: Kurnia Meiga (GK), Beny Wahyudi, Thierry Gathussi, Victor Igbonefo, Hasim Kipuw, I Gede Sukadana, Egi Melgiansyah (C), Greg Nwokolo, Keith Kayamba, Sunarto, Cristian Gonzales.

PSPS Pekanbaru: Susanto , Gusripen Efendi, Novi Hendrawan, Bobby Satria, Danil Junaidi, April Hadi, Dika Hanggara, Rusdianto, Hadison, Camara Namory, M. Isnaini.

SEO SERVICES / WEBSITE PROMOTION IN 6000 RUPEES PER MONTH

DLL Incorporation – We Inspire the Google 

Search Engine Optimization and Social Media Optimization is most growing technology for promoting your website on internet or we can get unlimited leads ,calls and clicks by using SEO and Social Media optimization . DLL Incorporation is in SEO and SMO field last 3 years and have driven many milestone results in SEO sector by serving its clients.

DLL Incorporation is run and manage by SEO,SMO and SEM Expert (Mr.Dharmendra K Gupta) who has more than 5 years experience in this industry. It offers Guaranteed Keyword results type SEO & SMO packages .

We provide all in authentic and genuine methods of SEO & SMO . We use all latest updates by Google and Bing, and we are aware of all changes in SEO Industry. Our Minimum SEO or SMO package start with 6000 INR per month or 15000 for 3 months.

We deals in web designing also design any kind of info type website only in 3000 inr  5 -10 pages website.

For more details about packages email us at ceo@speakmeme.com or call us at +91-9136075049 / 8586875020 . Skype Speakmeme
Visit http://www.speakmeme.com

Tuesday, July 02, 2013

FBI-bet.com taruhan bola casino sbobet online bonus 100% all


FBI-bet.com taruhan bola casino sbobet online bonus 100% all produk gratis untuk kalian semua yang suka taruhan bola online. Bonus 100% all produk ini bisa kalian dapatkan hanya dengan melakukan pendaftaran serta deposit 300 ribu saja di FBI-bet.com. Jangan sampai melewatkan FBI-bet.com taruhan bola casino sbobet online bonus 100% all produk ini karena sangat jarang ada taruhan bola casino sbobet online bonus 100%. Jika kalian berminat dengan taruhan bola casino sbobet online bonus 100% all produk ini maka saya akan berikan ulasannya sebagai berikut.

  FBI-bet.com taruhan bola casino sbobet online bonus 100% all



FBI-bet.com merupakan Agen Bola yang melayani jasa pembuatan akun ke situs-situs taruhan bola maupun Judi Online. Pembuatan akun di FBI-bet.com sangatlah mudah, cepat, aman serta terpercaya. Pelayanan yang diberikan pun sangat memuaskan dengan dukungan customer service yang siap melayani kalian selama 24/7 non stop. Pada kesempatan kali FBI-bet.com memiliki sebuah kejutan luar biasa untuk para membernya yakni FBI-bet.com taruhan bola casino sbobet online bonus 100% all produk.

FBI-bet.com taruhan bola casino sbobet online bonus 100% all produk ini ada dua macam jenisnya yakni bonus member baru Sportsbook dan bonus member baru Casino Online. Untuk mengetahui bagaimana cara mendapatkan kedua bonus 100% all produk ini silahkan baca ulasan berikut. Tolong dibaca dengan seksama agar kalian paham dengan persyaratan yang berlaku untuk FBI-bet.com taruhan bola casino sbobet online bonus 100% all produk ini.

PROMO DEPOSIT UNTUK MEMBER BARU SPORTBOOK FBI-BET 100%

Promo Berlaku Hanya Untuk Member yang mendaftar di FBI-BET
Untuk Mengikuti Promo Ini Minimal dan Maksimal Depo Rp,300.000
Maksimal Bonus Yang Diberikan Adalah Rp.300.000.
Bonus Langsung Dimasukkan Kedalam ID Member.
Member Dapat Melakukan Withdraw Setelah Kredit Mencapai 4x Dari Jumlah Deposit Sebagai Contoh Depo Rp.300.000 Maka Credit Yang
Akan Kami Berikan Rp.600.000 Maka Total Credit Anda Harus Sebesar Rp.600.000 x 4 = Rp.2.400.000
Bonus Akan Ditarik kembali Apabila Tidak Mencapai Target,Tetapi Withdraw Dapat Dilakukan
Bonus dapat dibatalkan bila terjadi kesamaan Nama Rekening, Nomor Handphone, Alamat IP, dsb Yang diperkirakan sama.
Bonus Hanya Berlaku Untuk Taruhan Handicap Dan Over/Under Saja.
Bonus Tidak berlaku untuk Taruhan 1×2 , mix Parlay , Correct Score Dan games.
Pihak FBI-BET berhak secara sepihak menarik/membatalkan bonus deposit apabila ditemukan kecurangan.
Keputusan FBI-BET Adalah MUTLAK dan Tidak dapat di ganggu gugat.

Itu persyartan untuk mendapatkan FBI-bet.com taruhan bola casino sbobet online bonus 100% all produk untuk member baru Sportsbook. Sedangkan persyaratan untuk bonus 100% all produk member baru casino online sebagai berikut ini.

Promo Berlaku Hanya Untuk Member yang mendaftar di FBI-BET
Untuk Mengikuti Promo Ini Minimal dan Maksimal Depo Rp,300.000
Maksimal Bonus Yang Diberikan Adalah Rp.300.000.
Bonus Langsung Dimasukkan Kedalam ID Member.
Member Dapat Melakukan Withdraw Setelah Kredit Mencapai 4x Dari Jumlah Deposit Sebagai Contoh Depo Rp.300.000 Maka Credit Yang Akan
Kami Berikan Rp.600.000 Maka Total Credit Anda Harus Sebesar Rp.600.000 x 4 = Rp.2.400.000
Bonus Akan Ditarik kembali Apabila Tidak Mencapai Target,Tetapi Withdraw Dapat Dilakukan
Bonus dapat dibatalkan bila terjadi kesamaan Nama Rekening, Nomor Handphone, Alamat IP, dsb Yang diperkirakan sama.
Pihak FBI-BET berhak secara sepihak menarik/membatalkan bonus deposit apabila ditemukan kecurangan.
Keputusan FBI-BET Adalah MUTLAK dan Tidak dapat di ganggu gugat.

Sangat mudah bukan untuk bisa mendapatkan kedua FBI-bet.com taruhan bola casino sbobet online bonus 100% all produk tersebut. Jadi jangan sampai terlewatkan bonus menarik ini yang tentu saja tidak bisa kalian dapatkan di Agen Bola lainnya.

Manpreet Dhami - Singer and Artist From India

Mr.Manpreet Dhamee is a Singer and Stage performer Artist from India.He 
has performed in various countries of world like USA, UK and canada.
He has given many popular songs to us. like Tharkee India, single 
rocks,ye hai neta and latest song SONE DE.
He is Youth Icon for New Singers of India. He has many fans on 
http://www.reverbnation.com/manpreetdhami01 and Billion of Fans on his 
official Facebook Page https://www.facebook.com/manpreetdhami8 . 
You can chekout his latet song SONE DE here 
http://www.youtube.com/watch?v=fZZv6wDF5cw 
Visit his official website http://www.manpreetdhami.com/
Mr.Manpreet Dhamee is a Singer and Stage performer Artist from India.He has performed in various countries of world like USA, UK and canada.
 
He has given many popular songs to us. like Tharkee India, single rocks,ye hai neta and latest song SONE DE etc.
 
He is Youth Icon for New Singers of India. He has many fans on http://www.reverbnation.com/manpreetdhami01 and Billion of Fans on his  official Facebook Page https://www.facebook.com/manpreetdhami8

You can chekout his latet song SONE DE here  http://www.youtube.com/watch?v=fZZv6wDF5cw 

Visit his official website http://www.manpreetdhami.com/

Sunday, June 02, 2013

Fire Protection Systems Provider In India Call 022 - 23792525 Now

RELIANCE FIRE PROTECTION SYSTEMS is one of Fire Protection Systems Provider In India and it is one-stop destination where you can halt to avail a huge assortment of Commercial & Industrial Fire Protection Systems. 
Inline image 1

We deals in Fire Protection Systems, Notifier Distributor, Fire Fighting System Installer, Fire Equipment's  Fire Alarm System, Fire Contractor, Fire Sprinkler System, Fire Extinguisher, Smoke Detectors and Clean Agent.

For more details visit www.relifire.com or You can call us at 022 - 23792525 /  23731616

Wednesday, April 03, 2013

Reminder about your invitation from Ketan Kulkarni

 
 
 
LinkedIn
 
This is a reminder that on March 21, Ketan Kulkarni sent you an invitation to become part of their professional network at LinkedIn.
 
 
 
 
On March 21, Ketan Kulkarni wrote:

> To: blogger [ketan404.linux@blogger.com]
> From: Ketan Kulkarni [ketan404@gmail.com]
> Subject: Invitation to connect on LinkedIn

> I'd like to add you to my professional network on LinkedIn.
>
> - Ketan
 
 
 
 
 
You are receiving Reminder emails for pending invitations. Unsubscribe.
© 2012 LinkedIn Corporation. 2029 Stierlin Ct, Mountain View, CA 94043, USA.
 

Wednesday, March 27, 2013

Reminder about your invitation from Ketan Kulkarni

 
 
 
LinkedIn
 
This is a reminder that on March 21, Ketan Kulkarni sent you an invitation to become part of their professional network at LinkedIn.
 
 
 
 
On March 21, Ketan Kulkarni wrote:

> To: blogger [ketan404.linux@blogger.com]
> From: Ketan Kulkarni [ketan404@gmail.com]
> Subject: Invitation to connect on LinkedIn

> I'd like to add you to my professional network on LinkedIn.
>
> - Ketan
 
 
 
 
 
You are receiving Reminder emails for pending invitations. Unsubscribe.
© 2012 LinkedIn Corporation. 2029 Stierlin Ct, Mountain View, CA 94043, USA.
 

Wednesday, March 20, 2013

Invitation to connect on LinkedIn

 
LinkedIn
 
 
 
Ketan Kulkarni
 
From Ketan Kulkarni
 
Partner at FirstRay Consulting
Pune Area, India
 
 
 
 
 
 
 

I'd like to add you to my professional network on LinkedIn.

- Ketan

 
 
 
 
 
 
 
You are receiving Invitation to Connect emails. Unsubscribe
© 2012, LinkedIn Corporation. 2029 Stierlin Ct. Mountain View, CA 94043, USA
 

Wednesday, October 28, 2009

Apache: .htaccess redirection

If you want visitors of your old website domain to be redirected to
the new domain, use the following code in .htaccess file placed in the
document root of your old website.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?olddomain\.com [NC]
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]

This way, visitors of

http://olddomain.com/some_file.html
will be redirected to
http://www.newdomain.com/some_file.html

Wednesday, August 05, 2009

Linux: Avoid scp when copying a lot of files

When you are copying a lot of files files it may take a long time with
scp. This is because scp spawns a new process for each file and can be
resource intensive.

When using the -r switch, scp does not care about symbolic links and
will follow them, even if it has already copied the file. This can
lead to scp copying an infinite amount of data and can easily fill up
your hard disk.

Therefore, when you think of backups or remote copy of directories,
think of rsync.

Linux: Download whole website with wget

Command to download whole website

wget -r -p -np -k http://www.sonomamgmt.com

Friday, July 10, 2009

Linux : Install fonts on Linux

To install new fonts in your home directory (only for you; not
system-wide) follow this procedure.

If ~/.fonts does not exist,
% mkdir ~/.fonts

Download and copy the .ttf files into this directory and run

% fc-cache

For users who need to download Devanagari fonts, here's a good resource.
http://www.wazu.jp/gallery/Fonts_Devanagari.html

Wednesday, May 20, 2009

MySQL:Set up unique key ignoring duplicates

For many of you who might be having trouble setting up a unique key on
a table containing duplicates, here's the key

mysql> ALTER IGNORE TABLE table_name ADD UNIQUE(column_name)

Please note the keyword IGNORE in the above statement. That does the
work forcefully.

Sunday, February 15, 2009

Linux : tr (translate) command

I made a good use of the translate command recently to get month-name
in upper case. I needed this in a shell script. Here's the command

date +%b | tr [a-z] [A-Z]

Output: FEB

Learn more about tr using the following command

man tr

Monday, February 09, 2009

Consider freelancing !

Reasons why you should consider freelancing

* Freelancing provides you with chances to build your own business
contacts who will keep you busy.
* You are free to do many jobs at the same time.
* Nobody takes away your credit. You get rewarded for your work.
* You can work remotely from the comfort of your home. You save daily
commute which takes a lot of time.
* You can work when you are most productive. Flexibility of time is a
great advantage.
* You get good pay rate simply because there are no overheads. Money
is not lost to company administration or your manager :-)
* As I started writing this post, I thought someone must have done it
before so I googled and found that there's a list of 101 such reasons
on
http://www.hrworld.com/features/101-reasons-to-freelance-091007/
I never considered all those reasons before starting freelancing myself.
* Finally, because it's become hard to get a job when the world is hit
by recession.

Tuesday, February 03, 2009

Mysql: keep connection open for longer

These mysql queries will keep the connection open for 1800 seconds

SET @@local.wait_timeout=1800;
SET @@wait_timeout=1800;
SET @@local.interactive_timeout=1800;
SET @@interactive_timeout=1800;

Wednesday, January 28, 2009

MySQL: GROUP BY on datetime column

SELECT DATE_FORMAT(MyDate, '%d %M %Y') AS Date, COUNT(*) AS numRows
FROM Table1 GROUP BY Date;

Sunday, December 28, 2008

Linux : Installing mplayer on centOS

Installing mplayer on centOS is simple ! Execute the following commands as root


% wget http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
% wget http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
% rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
% rpm -K rpmforge-release-0.3.6-1.el5.rf.*.rpm
% rpm -i rpmforge-release-0.3.6-1.el5.rf.*.rpm
% yum check-update
% yum install mplayer

Tuesday, September 16, 2008

Bash : concatenate strings in bash

The problem -

You have $yr=2008
You want to obtain something like 2008_data.csv etc

$yr_data.csv does not work

The solution - Use curly braces to separate variables from strings
like this

${yr}_data.csv

Thursday, September 11, 2008

Linux : setting up hostname

Here's how you can set hostname of your linux machine

Become root, save hostname in /etc/hostname and tell the hostname
command to read the name from the file.
Here are the commands to do the same

% su
% echo your_hostname > /etc/hostname
% hostname -F /etc/hostname

However, on next reboot, hostname will be lost.

On Red Hat / centOS, edit HOSTNAME= entry of the file
/etc/sysconfig/network

This sets up the hostname permanently.

Sunday, August 10, 2008

MySQL : Delete all tables of a database

It seems there's no command to delete all tables of a database. I have
been just dropping the database and creating it again. Does anyone
know any better method ? If you don't have privileges to create/drop
db, my method is not going to work :-)

Friday, February 01, 2008

MySQL : grant command

The GRANT function is used both to create new users, and to assign privileges to users.
mysql>GRANT SELECT, INSERT, UPDATE, DELETE
->ON widgets.* TO widgetAdmin@localhost
->IDENTIFIED BY 'ilovewidgets';

Assuming that the user widgetAdmin did not yet exist when this query is executed, both the user and db tables will be updated with the necessary rows.

The above is taken from dev.mysql.com.

You can also use assign all privileges to a user on a certain database. Following is the syntax.

mysql> GRANT ALL PRIVILEGES ON
    -> test.* TO 'ketan'@'localhost'
    -> IDENTIFIED BY 'ketans_password';

I find this command exceedingly useful ! A quick way to set up privileges of a user on a db.

Thursday, January 03, 2008

PHP : Facebook application to solve jumbled words

Wrote a facebook application to solve jumbled words.

http://apps.facebook.com/word_jumble/

Try it out.

Friday, December 28, 2007

PHP : Solve jumbled words

Wrote a facebook application to solve jumbled words. Here's the link

http://apps.facebook.com/word_jumble/

Enjoy !

Wednesday, December 12, 2007

MySQL : rename a table

Renaming a table is easy ! Following is the command.

mysql> RENAME TABLE users TO members;

Saturday, November 24, 2007

Perl : selecting randomly elements of an array

#!/usr/bin/env perl
use strict;
my @test = (0,1,2,3,4,5);
my $i = 6;
while($i > 0){
       my $offset = int(rand(scalar(@test)+1)) - 1;
       print $test[$offset]."\n";
       splice(@test,$offset,1);
       $i--;
}

Saturday, October 13, 2007

Perl : making all filenames lowercase

Renaming all files in a directory to lowercase names in a directory recursively.

find . -type f -exec perl -e 'rename($_, lc) || warn "$_: $!\n" for @ARGV' {} \;

Wednesday, September 12, 2007

MySQL : root password reset

Here's what you need to do in case you forget the root user password of mysql.

# stop mysql service
/etc/init.d/mysql stop

# Start to MySQL server w/o password
mysqld_safe --skip-grant-tables &

# Connect to mysql server using mysql client
mysql -u root

# Setup new MySQL root user password
mysql> use mysql;
mysql> update user set password=PASSWORD("NEW-ROOT-PASSWORD") where User='root';
mysql> flush privileges;
mysql> quit

# Stop MySQL Server
/etc/init.d/mysql stop

# Start MySQL server and test it
/etc/init.d/mysql start
mysql -u root -h localhost -p

Tuesday, September 04, 2007

Web Development : Saving sessions in database

Some advantages of saving sessions in database.

1. The session data is more secure as a potential hacker must be
able to log into the database before he can access anything.
2. The use of multiple servers would not create a problem as all
session data now resides in a single central place and is accessible
by all servers.
3. It is much easier to query the database should the site
administrator require information about current sessions or current
users.

--
Regards,
Ketan

Wednesday, August 29, 2007

Linux : setting up rdist

rdist command is very helpful in synchronizing filesystems on two
server. rdist stands for remote distribution. Many useful options are
available with the command.

See `man rdist` for more information about the command.

This is how I set up rdists :-)

My crontab entry
10 * * * * rdist -f $HOME/bin/rdist_file > /dev/null

###rdist_file contains

## these are comments
/path/of/source/file -> target_server1 install
-onochkowner,nochkgroup,nochkmode /path/to/the/target/file;

### file rdist ed to target_server2
/path/of/source/file -> target_server2 install
-onochkowner,nochkgroup,nochkmode /path/to/the/target/file;

Linux : splitting a log file

To split a file into small files of 5000 lines, use this,

% split -l 5000 file

This creates files like xaa, xab etc.

Thursday, August 23, 2007

My website

I have launched my website.

http://www.carvingIT.com.

Your feedback is welcome !

Thursday, August 09, 2007

Leaving my job

After working with ANSYS-Fluent Inc. for more than 7 years, I have
decided to start working as a Consultant in the field of Linux,
Apache, MySQL, Perl/PHP. After joining Fluent, I developed liking for
the Linux platform and the open source technologies.

During my tenure with Fluent, I wrote many complex perl scripts and
modules. Now, I think Open Source is the field where I can help the
community and grow individually as well.

Monday, May 14, 2007

html source and bandwidth usage

1 character equals 1 byte.  Extra newline in html source means one extra byte sent to client.
If a website gets some 400 pageviews per day, you send 400x30 (sligtly more than 1 Kb) extra bytes per month.
This means 1 character may mean 1 Kb of bandwidth usage per month for a website of low traffic. More the traffic more the size associated per character.

Therefore, to save the bandwidth and to improve loading speed of your pages, optimize your templates and html !

Wednesday, February 28, 2007

mod_perl : DBI.so/GD.so can't be loaded

mod_perl can not load modules like DBI.so or GD.so ? The reason this happens is that the perl version with which you compiled mod_perl may not be the same that you are using currently. Whenever you upgrade perl, you have to recompile mod-perl and may be re-install these modules. That may solve this problem.

If you are using Apache2, you are lucky in the sense that you won't have to compile apache with mod_perl. Just re-build perl and install it and then build mod_perl and install.

Monday, January 22, 2007

PHP : Handling multiple select menu

Thought of putting a code to illustrate handling multiple select menus with php.

Note the square brackets and the multiple="multiple" part in the form.

HTML form
---------

<form action="some_action_file.php" method="post">
<select name="select_name[]" multiple="multiple">
<option value="a">a</option>
<option value="b">b</option>
<option value="c">c</option>
<option value="d">d</option>
</select>
<input type="submit" value="Submit" />
</form>
PHP part
----------
<?php ## some_action_file.php foreach ($_POST['select_name'] as $select_name){ echo "$select_name<br />"; ## prints all the selected values; one per line } ?>

Monday, January 15, 2007

Perl : Removing last newline in while

Here's a way to check if we are at the last iteration and removing the newline if true, while iterating through lines.

while(<>){
chomp if eof; ### eof returns 1 if next read on filehandle returns end of file
print;
}


Friday, January 05, 2007

Perl : Locating a perl module file

How do you find out exactly where a perl module file is ? Following example searches Template.pm in the paths where perl modules are installed.

find `perl -e '$,="\n";print @INC'` -name Template.pm

Note

The perl command is in back-ticks. This is an example of command execution within a command.

Thursday, January 04, 2007

Networking : Switches versus Hubs

A few days back, I replaced hub with a switch in my small LAN at home. Although it's just a plug and play sort of switch, I had to do some configuration changes so that computers could ping each other. I spent a lot of time solving connectivity problems :-) Learnt a lot about how switches work in the process.

I can think of following differences between a hub and a switch.

1. Hub requires no knowledge of how it works. It's easy to install. The same is not true with switches. Even if the manual s
ays "plug and play switch", it's better to know how switches work.

2. You may have to configure your NICs (network cards) so that the switch communicates. To configure network cards, you need
 to learn what to configure.

3. Switches offer you a learning opportunity :-). In the process of making your network work for you, you'll learn people me
an by words like duplex auto-negotiation and speed.

4. If you are required to troubleshoot, you learn still more. In that case, you'll learn commands like ethtool, ifconfig, tr
aceroute, ifup, ifdown etc.

5. Conlusion is, Switches are better than hubs not only because of the reasons you read on the net, but they also teach you
networking.

Monday, December 11, 2006

Linux : renaming files with rename in a loop

Following command (a small shell script) changes file extensions of all files from .TXT to .txt in the working directory.

for file in `find . -type f -name "*.TXT"`; do rename .TXT .txt $file; done

The above works in bash. For use in other shells, you'll have to change the looping sytax.

Thursday, November 23, 2006

Perltidy

Perltidy is a great utility for formatting your perl codes. It splits long lines into short lines, does formatting with blocks thus increasing the readability of your codes. You can save your own settings related to formatting in a file called .perltidyrc. This file should saved in $HOME directory.

For more information and download of Perltidy, visit
http://perltidy.sourceforge.net/

Perltidy is coool !

Monday, November 20, 2006

Linux : Killing processes

Sometimes you have to kill several processes generated by a service/server (the main process) and killing one process is not enough. Recently, I had trouble with 'apachectl stop'. This would not stop all the processes of httpd for some strange reason. Killing all processes by entering the process id's would take quite some time. I figured a way out -

Here's the time-saver

ps -ef | grep httpd | awk '//{print $2}' | xargs kill

You can use the same logic for other processes. You need to replace httpd with ..... you know. As you can see, awk separates just the process ids and it becomes easier for us to kill the processes !

Sunday, November 19, 2006

Perl : Is this module Installed ?

How do you check if a certain perl module is installed and is in @INC ?

On the command-line, issue this command

perl -e 'use X::Y'

X::Y is the module
With -e, you can executes the perl code in quotes on command line.

If the module is found, there won't be any errors (no output).

Friday, November 17, 2006

Perl : Generating password with a subroutine

A subroutine to generate a password :-) When you find it hard to create one.

sub generatePassword
{
    my $passwd_size = shift;
    my @alphanum = ('a'..'z', 'A'..'Z', 0..9,'!','#','$','%','&','*','@','`');
    my $password = join '', map $alphanum[rand @alphanum], 0..$passwd_size;

    return $password;
}

Usage

&generatePassword(10); ### returns password of 10 chars

Tuesday, November 14, 2006

Perl : Installing CPAN modules

This post if for those who find it hard or don't know how to install CPAN modules.

1 Become root

2. Run

perl -MCPAN -e shell


First time you run this command, you'll be asked some questions regarding where to download/extract files etc. Just select the defaults.

3. This opens the cpan prompt. Now, run

install Module::Name

That's all you have to do. Isn't this really simple ?

Saturday, November 11, 2006

osix.net : A good website for programmers

I would like everybody to know I am a registered user of www.osix.net. There, I have cleared Geek Level 6 from the "Geek Challenge". These levels are programming puzzles on solving which you earn some reward points. You can exchange these reward points for hints from other geeks (experts), creating polls,  email address or pop access to email. There are some other redemption possibilities.

A great site for geeks !

My profile there
http://www.osix.net/modules/viewprofile/?name=ketan404

Wednesday, November 01, 2006

Perl : use Tie::File

With Tie::File module you can read all lines of a file in an array. Updating array elements updates the corresponding lines in the file. This is more efficient than reading the whole file, doing replacements and writing it back.

Following code snippet is an example

use Tie::File;

tie @line_array, 'Tie::File', 'file' or die "Can not tie file:$!";
for (@line_array) {
        s/pattern/replacement/g;
        ### or do anything that you wish to
        ### updating elements of array will update corresponding lines in the tied file
        ### pushing an element will add a line
}
untie @line_array;

Tie::File is very efficient for updating large files.

Tuesday, October 31, 2006

Linux : Virtual Memory Statistics

vmstat command shows Virtual Memory Statistics.

Sample outputs of the command are shown below.

$ vmstat

procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
 r  b   swpd    free    buff    cache   si   so    bi   bo     in  cs        us  sy  id   wa
 0  0 507912  6016  5216  61768   0     0     1    5      3    3         1   0   98    0

With -s option (this prints the vm table)

$ vmstat -s

       515420  total memory
       510060  used memory
       340984  active memory
        18404  inactive memory
         5360  free memory
         5580  buffer memory
        62024  swap cache
      1024088  total swap
       507896  used swap
       516192  free swap
      5159612 non-nice user cpu ticks
       284811 nice user cpu ticks
      1343974 system cpu ticks
    441240715 idle cpu ticks
      1061329 IO-wait cpu ticks
       266848 IRQ cpu ticks
       130451 softirq cpu ticks
    135296968 pages paged in
     21489954 pages paged out
       402670 pages swapped in
       414068 pages swapped out
    402061903 interrupts
    401831289 CPU context switches
   1157798489 boot time
       185206 forks


To get just one number say that of free memory, you have to pipe this command to a awk (or perl or some other) that does filtering.

$ vmstat -s | awk '/free memory/{print $1}'
5360

awk is sometimes handier than grep :-)

Sunday, October 29, 2006

PHP : variable names by form fields

Here's a quick way to make form fields accessible just by appending a $ sign as in old php3.
Notice the two $ signs.

foreach ($_POST as $key=>$val)
{
 $$key=$val;
}

Sunday, October 08, 2006

Linux : Finding unique types of files

Here's a quick way to figure out what different file-types (based on extension) you have. The following example checks the working directory. A hash of extensions is used in the perl code that appears in single quotes.

find . -name "*.*" | perl -e 'while(<>){$ext{$1}++ if(/\.([\w]+)$/);} $,="\n"; print sort keys %ext;'

Do you find this useful ?

Thursday, September 21, 2006

Linux : Changing ownership with find command

Good example of find with -exec...

Following command finds all files under /var/www/html owned by user ketan and changes the owner and group to webuser and web respectively. Only root can do this.

find /var/www/html -user ketan -exec chown webuser:web {} \;

Tuesday, September 19, 2006

Documentation with Pod

Pod is a simple-to-use markup language used for writing documentation for Perl, Perl programs, and Perl modules. POD stands for Plain Old Documentation . Pod documentation can be included in perl scripts or modules.

Translators are available for converting Pod to various formats like plain text, HTML, man pages, and more.

Following commands are supported

    =head1 Heading Text
    =head2 Heading Text
    =head3 Heading Text
    =head4 Heading Text
    =over indentlevel
    =item stuff
    =back
    =cut
    =pod
    =begin format
    =end format
    =for format text

Following is an example of a pod document. To test, copy the following part into a file and run perldoc filename.

#######################################
=head1 NAME

abc.pl

=head1 DESCRIPTION

This line shows up as description. This line shows up as description. This line shows up as description. This line shows up as description.

=head1 USAGE

I< perl abc.pl >

 The script asks for 3 inputs. They are -

 * x
 * y
 * z

=head2 heading2

Try this out ! You may want to include documentation of your scripts in Pod.

=head1 AUTHOR

ketan404

=cut
###############

Monday, August 21, 2006

Linux : find and replace with grep and sed

Following command finds PATTERN and replaces it with REPLACEMENT in all files under directory/path/.

grep -rl PATTERN directory/path/ | xargs sed -i 's/PATTERN/REPLACEMENT/g'

Notes :

-r option of grep does recursive search
-i option of sed edits files in place
g does substitutions in all occurences

Wednesday, August 16, 2006

Bash : Saving time with Environment Variables

You can create an environment variable $dr (for document_root) to save typing the whole path /var/www/html.

In your .bashrc file add this line

export dr=/var/www/html

Then source .bashrc. After this you'll be able to use shortcuts like

vi $dr/index.htm

With export, we create a new environment variable. In c shell, the syntax is

setenv dr /var/www/html

You can see all the environment variables with env.

Thursday, August 10, 2006

Perl : Regular Expression to match an email address

Following regular expression matches a valid email address

/^(\w|\-|\_|\.)+\@((\w|\-|\_)+\.)+[a-zA-Z]{2,}$/

To learn more about regular expressions in Perl, read

man perlre

Linux : find files, find patterns and replace in one go

Following command finds all text file in current working directory and replaces XYZ with ABC in all found files.

find . -name "*.txt" -exec perl -pe 's/XYZ/ABC/g' -i {} \;

Notes
  • You need to have perl installed on your system
  • with -exec you can execute a command on the found files
  • -i option of perl is used to update files
  • -p option of perl command assumes a loop around the code just like the -n switch. Only difference is that it prints the lines.
  • XYZ is a regular expression to be searched and ABC is the replacement text.

Tuesday, August 01, 2006

Fwd: Back after many days !

Hi !

I am back after many days of inactivity.

Wednesday, July 26, 2006

PHP : Getting image size

PHP has a very handy function getimagesize() which returns an array of values like width, height, type etc.

Example

$image_size = getimagesize("path/to/the/image.jpg"); ## URLs can also be passed

$image_size[0] is the width and $image_size[1] is the height of the image.

You can also use the following line (picked from php.net) so as to get the values in four different variables directly with the use of list() function.

list($width, $height, $type, $attr) = getimagesize( "img/flag.jpg");

Wednesday, July 19, 2006

Linux : Appending a tar file with xargs

Whereas -c switch of tar command creates an archive, -r is used to append files to a tar files. In the following example, xargs keeps on sending htm files as input to the tar command. These files are appended to htm_files.tar.

find . -name "*.htm" | xargs tar rvf htm_files.tar

Usual way of tar -cvf does not work for the above purpose.

Sunday, July 16, 2006

Linux : Find and Rename files with -exec

Following command finds .html files in the current working directory and changes the extension to .htm. The command illustrates the use of rename with find's exec switch. A quick way of finding and renaming files.

find . -name "*.html" -exec rename .html .htm {} \;

Find is regarded as a power command by many Linux users. The above example supports the claim ! There are many seemingly complicated or time consuming tasks which can be done quickly with commands.

Tuesday, July 11, 2006

Linux : Counting files per directory with Bash command

With commands, you can do many intricate things. Following command which is a small script, counts the number of .htm files in each subdirectory upto depth 2 of the current working directory.

for x in `find . -type d -maxdepth 2`; do y=`find $x -name "*.htm" | wc -l`; if [ $y != 0 ]; then echo $x - $y; fi done

This command is useful for webmasters who spend some time once in a while to figure out number of files in each of the website's subdirectories.

Notes
  1. The value of -maxdepth may be changed as needed
  2. The above command uses current directory (find . -type ...). The dot may be replaced by path of a directory of which the stats is needed.
  3. "*.htm" part of the filename may also be replaced with whatever you want

Thursday, July 06, 2006

Perl : Obfuscation of ARGV

Did you know ?

$a=eval shift @{$x.=chr for qw * 65 82 71 86 * ;$x};

is just another way of saying

$a = shift @ARGV;

Same thing can be done in many different ways. And some ways are intended at making it hard for humans to grasp the code ! Read more about Code obfuscation.

Thursday, June 29, 2006

Perl : Formatting code

Following one liner attempts to format your codes. Works on programs of perl, c, php etc where curly braces - '{ and }', are used for blocks, loops, conditions etc.

perl -pe '$tabs = substr($tabs,1) if (/^\s*}\s*$/);s/^\s*/$tabs/;$tabs.="\t" if(/{[^}]*$/);' -i.bk
filename.c

Files are backed up with .bk extension.

Wildcards are allowed so *.c can be used in place of filename.c.

Monday, June 26, 2006

Perl : Editing files on the command line

With -i switch of perl, files can be edited on command line. You can optionally take a back-up of the old files by providing an extension.

perl -pe 's/\r\n/\n/;' -i file1

Replaces \r\n (dos newlines) to \n from file1.

perl -pe 's/\<\?php/<?/;' -i.bk *.php

Replaces <?php with <? in php files and creates back-up files with .bk extension.

Thursday, June 22, 2006

vi/vim : Changing the tabsize

Default tabstop is 8. To set the tabsize to 4 spaces, just issue this command

:set ts=4

ts stands for tabstop.

To make this a default setting, write this line without the colon ':' in .exrc (.vimrc if you use vim) file.

Wednesday, June 21, 2006

Vim : Dictionary completion facility

Dictionary completion facility is useful when you don't remember the spelling of a word. To make use of this, we must first set the dictionary option so that vim knows where the dictionary is. Following command does that.

:set dictionary-=/usr/share/dict/words dictionary+=/usr/share/dict/words

Now, start typing a word in insert mode.

astro<ctrl+x><ctrl+k>

This shows the first match in the dictionary. You can loop through the matches by using <ctrl+n> (for next) and <ctrl+p> (for previous).

Notes

To understand why the -= and +=, use this command
:help :set+=

Tuesday, June 20, 2006

Regular Expressions : Dealing with special characters like asterisk

This post is for beginners of perl/regular expressions who find it hard to deal with special characters like asterisks if they appear in patterns. For instance, here is a pattern that contains an asterisk
4*3
If you want to replace or remove the asterisk, you will have to escape it with a back-slash ('\') in a regular expression. Following is a sample code.

$x = "4*3";
print "$x\n";

## following line removes the special character asterisk from the scalar $x
## note that the asterisk is 'escaped' by using a back-slash
$x =~ s/\*//;

print "$x\n";


Output

4*3

43

Use of a back-slash ('\') for escaping special characters is common where regular expressions are used. It's also used for escaping spaces in directory-names on shell prompt.

Some examples

character : escaping it
\ : \\
* : \*
+ : \+
/ : \/

Perl : Removing blank lines from a file

You can do intricate things even on command line. The following command prints filename on the command standard output after removing blank lines

cat filename | perl -ne 's/^\s*\n$//; print;'

Notes
  • Replace filename with the path of the file from which you want to remove blank lines.
  • You can optionally redirect the output by using '>' operator to create a new file.

Monday, June 12, 2006

Linux : Installing Packages .... common procedure

This post is for novices who are scared of building/installing new packages on linux :-) Here are the steps.

  1. Download the package. It's normally a .tar.gz file. It could be in some other format like bz2 as well.
  2. Extract it with tar -zxvf package.tar.gz (for .tar.gz files)
  3. Change to the newly created directory with this extraction
  4. Read README files (good practice)
  5. Run on prompt
    ./confgure
  6. then
    make
  7. Become root if you have not already. Default location of installation of almost all new packages is /usr/local so you need write permission to create any new files there.
  8. issue
    make install
You can install packages in other locations by using --prefix=/path/where/you/want/to/install option to ./configure. Learn more about options by using --help (normally) switch of ./configure scripts. All configure scripts may not present you with nice help.

Friday, June 02, 2006

Linux : Synchronizing directories with rdist

rdist is a linux command for keeping identical copies of directories/files over two hosts. File permissions and modification time are preserved if possible. It can use various protocols like ssh, rsh (default). You can have all the synchronization details stored in a file and pass the filename as an argument with option -f to the command as illustrated below.

rdist -f rdist_file

To specify the protocol, use -P option

rdist -P /usr/bin/ssh -f rdist_file

rdist_file is of the following format.

## comments start with '#' sign
/path/on/master/server    ->   remote_server_name  install  /path/on/slave/server ;

-o option is used for specifying an action to be taken on those files on the slave (remote server) which are missing from the master. For truly synchromising two directlries, you can use -oremove to remove the files. The directive then takes the following form.

/path/on/master/server    ->   remote_server_name  install -oremove /path/on/slave/server ;

For more about actions and about the command, see man pages.

Wednesday, May 31, 2006

Linux : crontab does not run perl scripts ?

Recently, I had hard time making crontab run my perl script. The problem was with the environment variable PATH. When given correct path, it started executing the scripts. Following could be the problems

  • Wrong shebang path (the first line that starts with #!). This line tells which command/program to use for execution of the script.
  • Incorrect permissions
If you want to execute a perl script, make sure the output of 'which perl' is used as the path in your shebang.

Monday, May 22, 2006

Away for quite some time

I'm perturbed by Governments resolution to increase the quot for OBC by 27 %. My own view is that reservations, if any, should be based on economic status and not on caste or religion. Does the Indian Government want to divide the society ?

I hope to be back for posting relevant content soon.

Friday, May 12, 2006

PHP : Website Security

PHP files that do database inserts or some other server-side tasks,
should not be accessible via a web browser. All files under Document
Root of a website are accessible by a web-browser. Document Root is
the directory on the server's filesystem. This directory contains the
files/web pages of the website.

To avoid direct access of your php files, you can keep them in a
directory that is not inside Document Root. These files can then be
included into your templates. For web applications, a configuration
file can be included in all files using a relative path. This
configuration file may contain variables like database connection
details and other configuration variables. Include for database
connection too, should reside outside the Document Root.

Variables of help

$_SERVER['DOCUMENT_ROOT']
This followed by relative path of your conf or include files can be
used on most servers.

On shared hosting server, Document Root is not defined for each
website (virtual host), so this variable shows the default value. In
such cases, you can use

dirname(__FILE__)

This gives you the value of the directory containing the file.

Thursday, May 04, 2006

Regular Expressions : Removing blank lines of a file in vi

In this post, I'm going to show you how blank lines of a file can be removed in vi editor with Regular Expressions.

Following is an ex editor command.

:1,$g/^$/d

Notes :
  • ex editor commands start with a colon.
  • 1,$ stands for first line to last line of the file
  • g for global (look for the pattern following everywhere; do not stop after the first match)
  • pattern to look for is placed inside two slashes (//)
  • ^ is for start of line and $ for end of line. Here, there's nothing between the two so the pattern is used for an empty line
  • d in the end is the command to delete matching lines.
This regular expression does not match a line if it contains spaces. If you want to remove those lines as well, here's the modified command.

:1,$g/^ *$/d

Note that there's an asterisk (*) after a space. An asterisk matches the character preceeding it zero or more times.
e.g.

/a*/ matches a,aa,aaa,any number of times.
/\d*/ mathes an integer. \d is for a digit.

Linux : music compositions with sox

Recently, I created a small web application in php and javascript for Tabla compositions. For those who don't know ... Tabla is a percussion instrument. Currently, it is in its primitive stage. By the way, here is the link to it.

I'd like to take it further and add functionality which will allow merging of wav files with sox command that comes with linux distributions. This will allow composer to download his composition in wave format and hear it ! This will require reading the text file and mergin the sound files in the same order. This should be possible with a script (perl/php ?).

I'll soon be collecting .wav recordings of all the basic tabla bols (aksharas) and give it a try. Your comments or ideas are welcome.

Tuesday, May 02, 2006

Linux : date command

Following are some illustrations of the date command.

date

# This prints the current date. Something of this form - "Tue Jan 31 12:16:53 IST 2006"

date +%d
# prints current day of the month

Following examples illustrate getting time related information of a day/date other than the current date

date --date="3 days ago"
# prints date that was 3 days ago

Try these too !
date --date="last Sunday"
date --date="next Sunday"
date --date="Jan 26, 2004" +%a
# prints Day of the week on Jan 26, 2004

Setting the system date. You need to have admin privileges to use --set option.

date --set='+10 minutes'
# Takes system clock forwad by 10 minutes.