Saturday, October 29, 2011

MySQL BIGINT range

MySQL BIGINT range

BIGINT - signed :: from -9223372036854775808 to 9223372036854775807

BIGINT - unsigned :: from 0 to 18446744073709551615

Sunday, October 23, 2011

Tuesday, October 11, 2011

Ubuntu pdf image to text (OCR) - Extract all text from PDF

Ubuntu pdf image to text (OCR) - Extract all text from PDF


sudo apt-get install ghostscript

gs -dNOPAUSE -sDEVICE=tiffg4 -r600x600 -dBATCH -sPAPERSIZE=a4 -sOutputFile=file-name.tif file-name.pdf

# depending on the language, you must install the corresponding package:
sudo apt-get install tesseract-ocr tesseract-ocr-eng

tesseract file-name.tif file-name-txt-without-extension -l eng