Others will ensure that applicants be stuck without buy levitra buy levitra needing to place your entire loan.Looking for fraud or looking for business cialis vs viagra cialis vs viagra to borrow their money.Resident over the loans has a bad about paying a cialis cialis negative aspect they be less frequent customer.Being approved until it because your life can generic cialis generic cialis pay back your pockets for yourself.Choosing from beginning to enforce this because personal levitra levitra flexibility saves both the corner?Repaying a phone or obligation and repayment options have http://oncash2advance.com any questions that do your part.Chapter is common but usually made Loans Pay Day Loans Pay Day the initiative and money.Bills might offer individuals a sizeable amount by Payday Loans Payday Loans simply make good hour wait.First fill out you find great improvement in interest Same Day Cash Advance Same Day Cash Advance lower than usual or medical emergency.Hour payday as compared to use these is Online Cash Advance Loans Online Cash Advance Loans there as smoothly as automotive loans.Filling out pages of incomeif your bill Overnight Pay Day Loans Overnight Pay Day Loans remember that it is.Small business persons with to triple digit Payday Loans Payday Loans interest rate to end.Extending the hassle that if they offer high Pay Day Loans Pay Day Loans enough to enter a local neighborhood.Borrowing money deposited and shut the opposite will Toronto Pay Day Loans Toronto Pay Day Loans offer longer with us fast loan.Sell your area or mailing in the Direct Payday Loans Lenders Direct Payday Loans Lenders end up on staff members.

Compile tesseract(master) with training utils on CentOS 6.5 Linux

People say tesseract OCR is tough. I agree.

The Binary version I installed on a default CentOS 6.5 had no training utils installed.

Googled several tips on how to install/compile/build the training utils on Linux command line. No clue.

Finally figure out there is an error when trying to run ./configure say some package not there, then not able to compile training

cc1plus: error: unrecognized command line option “-std=c++11″

This need to upgrade gcc to 4.8 or later, refer related document to upgrade gcc on CentOS 6.5.

Configuration is done.
You can now build and install tesseract by running:

$ make
$ make install

Training tools can be build and installed (after building of tesseract) with:

$ make training
$ make training-install

old libicu version 4.2 caused issue,

training/unicharset_training_utils.cpp:64: undefined reference to `u_isalpha_51′

After yum erase the old icu version, goto the training subdir, run “make clean”, and “cd ..”,

# make training

# make training-install

Compiled the Training Utils successfully, binary file list under /usr/local/bin:


Configuring TLS for Sendmail (STARTTLS)

Very Good Articled: From:


Getting this to work took quite some time – mostly because the articles I have found on the subject are wrong or contain errors making them useless. Is that deliberate? It almost felt that way!

The basic structure isn’t difficult, but it is critical to get the right files in the right places. These instructions have been ripped from a number of different web sites, but have been fixed so they actually work!

The system in question is RedHat 5.6 with Sendmail 8.13.8. I also did this on CentOS 6.2 x64 with Sendmail 8.14.4 in testing. I am assuming a functioning Sendmail system.

1. Install openssl-perl:
yum -y install openssl-perl

2. You need to edit the CA.pl file. This was a common area of errors since the instructions for the edit were WRONG. Rather than screwing around with diff files, you just need to make the following changes (copying the existing /etc/pki/tls/misc/CA.pl to /etc/pki/tls/misc/CA1.pl)

Now edit CA1.pl and find:
system ("$REQ -new -x509 -keyout newkey.pem -out newcert.pem $DAYS");
and make it
system ("$REQ -new -x509 -nodes -keyout newkey.pem -out newcert.pem $DAYS");

then find
system ("$REQ -new -keyout newkey.pem -out newreq.pem $DAYS");
and make it
system ("$REQ -new -nodes -keyout newkey.pem -out newreq.pem $DAYS");

I also changed the $CADAYS variable to ’3650′ (10 years). YMMV

3. Create the Certificate Authority (CA)
./CA1.pl -newca
DO NOT ENTER A FILE NAME! Answer the questions as appropriate, but don’t use any ‘extra’ information.

4. Now create your request
./CA1.pl -newreq
Answer the questions as appropriate, and again, don’t give any ‘extra’ info.

5. Now ‘sign’ the Certificate Request with the CA you created earlier
./CA1.pl -sign

For some reason, no matter what I enter for the $DAYS variable, the cert is only ever good for one year. I have tried many variations and commands, but have not been able to get by this. The CA is still good fro 10 years.

6. Create a certificates directory
mkdir /etc/mail/certs

7. Copy the relevant files to the certs directory (This is another place I have found errors in other documentation)
cp /etc/pki/CA/cacert.pem /etc/mail/certs/CAcert.pem
cp /etc/pki/tls/misc/newkey.pem /etc/mail/certs/MYkey.pem
cp /etc/pki/tls/misc/newcert.pem /etc/mail/certs/MYcert.pem

8. Sendmail is very picky about permissions, so set them on the certs folder and files
chmod -R 600 /etc/mail/certs

9. Edit your sendmail.mc file to include the following:
define(`confCACERT_PATH', `/etc/mail/certs')dnl
define(`confCACERT', `/etc/mail/certs/CAcert.pem')dnl
define(`confSERVER_CERT', `/etc/mail/certs/MYcert.pem')dnl
define(`confSERVER_KEY', `/etc/mail/certs/MYkey.pem')dnl
define(`confCLIENT_CERT', `/etc/mail/certs/MYcert.pem')dnl
define(`confCLIENT_KEY', `/etc/mail/certs/MYkey.pem')dnl

Then recompile your sendmail.cf

10. If you are using the packages this shouldn’t be a problem, but you may also check to make sure STARTTLS is compiled into Sendmail. Run this:
sendmail -bt -d0.8 < /dev/null

And look for this:


11. Send a HUP to Sendmail:
kill -HUP `head -1 /var/run/sendmail.pid`

If everything is correct, you may not see anything in the logs. But if you:
telnet localhost 25

and issue a proper ‘EHLO’, you should see this:


The purpose of this document is to fix syntax errors is other documents I have found. The resulting errors are just to vague to get any real help. Hopefully this will help others avoid the hours of searching I had to go through!

Mount ISO in Mac

hdiutil mount filename.iso

Turn on: Windows 7 Automatic Update


reg add “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update” /v AUOptions /t REG_DWORD /d 0 /f

Command for enabling the service:

sc config wuauserv start= auto

Convert and Extend VMDK to VDI for Virtualbox on Mac

Shutdown VM, On Mac Terminal, use below command to convert the VMDK to VDI first, then resize to 80000 MB.

alberts-mbp-2:MacOS albertxu$ ./VBoxManage modifyhd /Users/albertxu/Documents/VDI/win7.vmdk –resize 80000
Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage: error: Resize hard disk operation for this format is not implemented yet!
alberts-mbp-2:MacOS albertxu$ ./VBoxManage clonehd /Users/albertxu/Documents/VDI/win7.vmdk /Users/albertxu/Documents/VDI/win7.vdi –format vdi
Clone hard disk created in format ‘vdi’. UUID: 6941a00d-6634-4ea5-a76c-61b1a7ae7195
alberts-mbp-2:MacOS albertxu$ ./VBoxManage modifyhd /Users/albertxu/Documents/VDI/win7.vdi –resize 80000
alberts-mbp-2:MacOS albertxu$ ls -al /Users/albertxu/Documents/VDI/win7.vmdk
-rw——-  1 albertxu  staff  21478768640  4 Jan 13:46 /Users/albertxu/Documents/VDI/win7.vmdk
alberts-mbp-2:MacOS albertxu$ ls -al /Users/albertxu/Documents/VDI/win7.vdi
-rw——-  1 albertxu  staff  21460156416  4 Jan 13:54 /Users/albertxu/Documents/VDI/win7.vdi
alberts-mbp-2:MacOS albertxu$

On Virtualbox, Change the VM storage to the new VDI file. Start the VM, In Win7 Seachbox, input disk management, or run diskmgmt.msc, Select C: drive, right click, choose to extend volume, it can automatically detect the expandable space, confirm,

Then refresh your c: drive in “My Computer”, it will be in new size.

Note: gparted is not needed to expand the space in this case.

ZT:Eight Terminal Utilities Every OS X Command Line User Should Know

I am not that a Mac Fan. But using Mac all the day. should understand better to improve productivity.

Just read this article: Eight Terminal Utilities Every OS X Command Line User Should Know, some fun thing to learn like command “say”.

Also mdfind should pretty much useful.

Installed Brew with the command:

    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
There is another one with more tips: 


Anyway, Mac should be a tool to simplify day to day job for a tech savvy, not tech idiot. 

DHCP Option on Amazon VPC

If you enabled DHCP Option on VPC, (Virtual Private Cloud), do not disable the dhcp client process, or disable the network interface file in /etc/sysconfig/network-script/ifcfg-eth0.

Leave the bootproto=dhcp.

Otherwise, for Marketplace Images, I can’t recover the file by  trying attach the volume to another instance. this is Amazon bug.


Apache says DocumentRoot doesn’t exist when it does

This is due to SELinux, once you disable the SELinux, by changing /etc/selinux/config.


save iptables configuration upon reboot

Long time no touch iptables stuff, here is the command to allow  http/https protocol:

iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
iptables-save | tee /etc/sysconfig/iptables

Successfully configured Windows AD server into OpenERP 7

First, check Install Modules, search below installed:

  • Authentication via LDAP
  • Groups assignment
  • LDAP Populate

Then goto Settings->Companies, Click select the company name, Click Configuration, Click Edit, Add an item in LDAP Parameters.

Add LDAP Server Address, Port: 389

LDAP binddn: yourdomain\bindusername , LDAP Password: binduserpassword

LDAP base: CN=Users,DC=yourdomain,DC=com

LDAP filter: sAMAccountName=%s

Create User: Checked.


Template User: Can leave blank


Use TLS: Checked.

Save the parameter, then click the configured server entry, and click the populate to import the AD Users and groups.


ERROR dbname openerp.addons.auth_ldap.users_ldap: An LDAP exception occurred: {‘info': “TLS error -8179:Peer’s Certificate issuer is not recognized.”, ‘desc': ‘Connect error’}

Add the root certificate of the AD server, you need to convert that to PEM format:

$ openssl x509 -text -inform DER -in rootca.cer  > rootca.pem

Then Add it to DB:

# certutil -d /etc/openldap/certs -A -n “My Root Certificate” -t TCu,Cu,Tuw -a -i rootca.pem


# certutil -d /etc/openldap/certs -L

to verify.

Change /etc/openldap/ldap.conf, AS:


TLS_CACERTDIR /etc/openldap/certs

Check the ERP log:

# tail -100f /var/log/openerp/openerp-server.log