warning message on ubuntu bash tab completion

January 10th, 2012

When you use bash on ubuntu and press tab key for tab completion, you would got warning message like this:
“bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8)”

I googled for this problem, and got a solution from ubuntu forum.

Just adding the line in /etc/default/locale:
#———————–
LC_ALL=”en_US.UTF-8″
#———————–

Then the warning message never appear if you press tab key for completing file name or path.

How to enable mysql federated engine in XAMPP for OS X

August 24th, 2011

How to enable mysql federated engine in XAMPP for OS X.
Just to add “federated” in my.cnf is necessary.

1. Open /Application/XAMPP/xamppfiles/etc/my.cnf via your favorite editor.
2. Add a line “federated” in [mysqld] section.
3. Save and close my.cnf file.
4. Restart MySQL server.

That’s it.

note: How to delete all .svn folders on Windows

August 23rd, 2011

note: How to delete all .svn folders on Windows.

Type and run following command on DOS prompt:
for /R %i in (.svn) do rd /Q /S "%i"

As you know this command also can be used for “Thumbs.db” or “_note”, etc.

note: svn ignore for cakePHP

August 23rd, 2011

note: svn ignore for CakePHP

svn propset svn:ignore "*.swp *.swo *~ svn-commit*" . -R
svn propset svn:ignore "*.swp *.swo *~ core.php database.php svn-commit*" config
svn propset svn:ignore "*" tmp -R

How to export changed files between revisions on Subversion.

July 31st, 2011

Why is there no tortoiseSVN for OS X?
How can I export just modified files between two revisions on Subversion?
Here’s the solution.

I posted this article already but I realized that the script had some bugs.
And I fixed it today. This is the script I wrote today by following this:

#!/bin/bash
N=${1}
M=${2}
BASEDIR=${3}
EXPDIR=${4}

if [ $# -ne 4 ] ; then
echo "usage: diff_export.sh [from rev.] [to rev.] [base dir] [exp target]"
exit
fi

if [ -e ${EXPDIR} ] ; then
echo "error: Export target already exists!"
exit
fi

mkdir -p ${EXPDIR}

ENTRIES=`svn diff -r ${N}:${M} ${TARGET} --summarize | grep "^[MA]" | sed -E "s|^[MA]\s*||"`

 

for i in ${ENTRIES}
do
DIRNAME=`dirname ${EXPDIR}/${i}`
mkdir -p ${DIRNAME}
svn export -r ${M} ${BASEDIR}/${i} ${EXPDIR}/${i}
done

Thanks winebarell! I quoted his blog.

How can you copy XAMPP from one os x to another.

July 28th, 2011

If you want to copy XAMPP from one os x to another.

Just copy XAMPP folder but can’t start MySQL.

You can solve this problem just few method as following this:

Run this command from terminal.
“sudo chown -R nobody:admin /Applications/XAMPP/xamppfiles/var/mysql”

That’s it. After this, MySQL will be able to start from XAMPP control panel.

SMTP authentication method issue on BlueOnyx.

April 25th, 2011

BlueOnyx smtp-auth doesn’t support cram-md5 (or doesn’t work correctly), but EHLO responses the name ‘cram-md5′ in its available method lists.
It confuse your email clients and settings incorrectly sometimes.

solution:
1. Open ‘/etc/sendmail.mc’. Search word ‘CRAM-MD5′, then delete these options (2 places).
2. Open CCE web console. Uncheck enable smtp checkbox and save, then re-check checkbox and save.
3. Access port 25 with telnet command. Confirm ‘CRAM-MD5′ is not listed in authentication methods.

BlueOnyx yum update issue

April 12th, 2011

Yesterday my BlueOnyx host was updated automatically by yum.

After that some problems occured.

1. Unable to login via CCE admin console.

SOLVED:
The reason was broken CCE construction.
I solved that via following methods:
i) run “yum clean all” and “yum update” from ssh console.
ii) run “/etc/init.d/cced.init restart” command from ssh console.
iii) access url “http://myhost/login/” via web browser and initialize configuration.

2. Unable to access ftp login. the host was banned.

SOLVED:
The reason why is wrong time settings and new mod_ban feature into proftpd.
You can solve that when you set the correct ntp server again  from cce admin console.

 

[SOLVED] BlueOnyx FTP Timezone issue

March 23rd, 2011

Time Zone is set correctly in BlueOnyx, but FTP reports incorrect timestamps.
Solution:
Open up /etc/proftpd.conf with vi to edit it.
Add ‘TimesGMT off’ to the Global section.

<Global>
AllowOverwrite          yes
<Limit ALL SITE_CHMOD>
AllowAll
</Limit>
# Restrict the range of ports from which the server will select when sent the
# PASV command from a client. Use IANA-registered ephemeral port range of
# 49152-65534
PassivePorts 49152 65534
IdentLookups                  off
TimesGMT                      off
</Global>

ubuntu + virtualmin

March 16th, 2011

For php5.3 environment, Ubuntu LTS server + virtualmin is grate answer.

Virtualmin installation is easy and quick. Just run a scripts from virtualmin website.

http://www.virtualmin.com/download.html#gpl