Tips Developer

  • Increase font size
  • Default font size
  • Decrease font size
Latest Tips and Articles

Center text using CSS

E-mail Print PDF

Two lines:

cialis online cheapcialis dosage generic viagra without a perscription cialis online
argaiv1138

-webkit-box-align: center;
text-align: center;

Last Updated on Tuesday, 06 November 2012 12:53
 

Add BOM to UTF8 encoded files

E-mail Print PDF

Use exeample below o add BOM (Byte order mark) to text file.

#!/usr/bin/perl
my $BOM = chr(hex "0xEF"). chr(hex "0xBB"). chr(hex "0xBF");
open(FILE, ">filename.txt") || die "Failed to open file";
print FILE "$BOM";
print FILE "Any UTF8 text\n";
close(FILE);

Last Updated on Friday, 20 April 2012 10:45
 

Switch mysqldump to csv

E-mail Print PDF

Command:

mysqldump -u[user] -p[passsword] --fields-enclosed-by=\" --fields-terminated-by=, --tab=/tmp [db_name] [table]

 

example:

mysqldump -uroot -psecret123 --fields-enclosed-by=\" --fields-terminated-by=, --tab=/tmp mydb mytable

Last Updated on Wednesday, 07 March 2012 11:24
 

Change default editor to mcedit

E-mail Print PDF

Run command:

# export EDITOR=mcedit

Last Updated on Friday, 09 December 2011 14:30
 

How to add BR tag on end of each line in text file

E-mail Print PDF

Just run this:

# while read line ; do echo $line <br> >> newfile ; done < oldfile

Last Updated on Friday, 09 December 2011 14:42
 

Google +1 Button


Tips Menu