Friday, November 9, 2012
Sunday, September 30, 2012
Can't get SMTP to work, error message about passwd.db is repeated
I just enabled sendmail on my Mac Air. It works. You don't have to buy a Mac OS X server.
Please refer to this URL:
http://www.garron.me/mac/postfix-relay-gmail-mac-os-x-local-smtp.html
if you still have problem, refer to following URL:
https://discussions.apple.com/thread/1521336?start=0&tstart=0
or
http://slashusr.wordpress.com/2012/02/14/enabling-postfix-for-outbound-relay-via-gmail-on-os-x-lion-11/
Please refer to this URL:
http://www.garron.me/mac/postfix-relay-gmail-mac-os-x-local-smtp.html
if you still have problem, refer to following URL:
https://discussions.apple.com/thread/1521336?start=0&tstart=0
or
http://slashusr.wordpress.com/2012/02/14/enabling-postfix-for-outbound-relay-via-gmail-on-os-x-lion-11/
how to config test report in Jenkins for GHUnit test. or JUnit test.
you have to change your shell script under Build
make clean && WRITE_JUNIT_XML=YES JUNIT_XML_DIR=tmp/test-results make test
Under
Post-build Actions, check Publish JUnit test result report and enter the following in Test report XMLs: tmp/test-results/*.xml
Saturday, September 29, 2012
Run GHUnit test in command mode or Jenkins
You may got this error.
/bin/sh -c /Users/mingderwang/Desktop/testAsyncUploadFile/build/testAsyncUploadFile.build/Debug-iphonesimulator/Tests.build/Script-4FE869DB1614B11B00698DCF.sh Running: "/Users/mingderwang/Desktop/testAsyncUploadFile/build/Debug-iphonesimulator/Tests.app/Tests" -RegisterForSystemEvents Couldn't register com.katdc.test.Tests with the bootstrap server. Error: unknown error code. This generally means that another instance of this process was already running or is hung in the debugger./Users/mingderwang/Desktop/testAsyncUploadFile/RunTests.sh: line 50: 1428 Abort trap: 6 "/Users/mingderwang/Desktop/testAsyncUploadFile/build/Debug-iphonesimulator/Tests.app/Tests" -RegisterForSystemEvents Command /bin/sh failed with exit code 134 ** BUILD FAILED **
Restart your jenkins, you can fix this problem.
Same error logs may happen on "make test" in source code. You can "make clean; make; make test" again.
/bin/sh -c /Users/mingderwang/Desktop/testAsyncUploadFile/build/testAsyncUploadFile.build/Debug-iphonesimulator/Tests.build/Script-4FE869DB1614B11B00698DCF.sh Running: "/Users/mingderwang/Desktop/testAsyncUploadFile/build/Debug-iphonesimulator/Tests.app/Tests" -RegisterForSystemEvents Couldn't register com.katdc.test.Tests with the bootstrap server. Error: unknown error code. This generally means that another instance of this process was already running or is hung in the debugger./Users/mingderwang/Desktop/testAsyncUploadFile/RunTests.sh: line 50: 1428 Abort trap: 6 "/Users/mingderwang/Desktop/testAsyncUploadFile/build/Debug-iphonesimulator/Tests.app/Tests" -RegisterForSystemEvents Command /bin/sh failed with exit code 134 ** BUILD FAILED **
Restart your jenkins, you can fix this problem.
Same error logs may happen on "make test" in source code. You can "make clean; make; make test" again.
install Jenkins (Hudson) for CI on AWS EC2 (CentOS)
Jenkins used to call "Hudson", it can building/testing software projects continuously, just like CruiseControl or DamageControl.
Installation:
1. download jenkins from http://jenkins-ci.org/
2. sudo service jenkins start
3. browse http://localhost:8080 or your hostname with port 8080.
Remark: Don't forget to add 8080 port to your Security Group for your AWS EC2 instance.
Installation:
1. download jenkins from http://jenkins-ci.org/
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
then,
sudo yum install jenkins2. sudo service jenkins start
3. browse http://localhost:8080 or your hostname with port 8080.
Remark: Don't forget to add 8080 port to your Security Group for your AWS EC2 instance.
Sunday, September 9, 2012
stop EC2 instance but still charged, why?
I stop my AWS EC2 server, why it still been charged as follow? What is a provisioned storage?
the answer is :
| $0.12 per GB-month of provisioned storage | 2.133 GB-Mo | 0.26 | ||
the answer is :
Saturday, April 28, 2012
from my gists (ming@katdc.com)
#!/usr/bin/env node
const fs = require('fs');
const optimist = require('optimist');
const codepainter = require('../codepainter');
var argv = optimist.options({
'input': {
alias: 'i',
default: 'stdin',
describe: 'File path to read from',
type: 'string'
},
'output': {
alias: 'o',
default: 'stdout',
describe: 'File path to write to',
type: 'string'
},
'sample': {
alias: 's',
describe: 'Code sample path to infer the style from',
type: 'string'
},
// FIXME: Make it possible to specify this in a file.
'style': {
describe: 'JSON string describing the coding style',
type: 'string'
}
}).check(function (argv) {
return typeof argv.sample !== 'undefined' || typeof argv.style !== 'undefined';
}).argv;
var input;
if (argv.input === 'stdin') {
input = process.stdin;
} else {
input = fs.createReadStream(argv.input);
input.pause();
}
input.setEncoding('utf-8');
var output;
if (argv.output === 'stdout')
output = process.stdout;
else
output = fs.createWriteStream(argv.output);
function transform(style) {
codepainter.transform(input, style, output, function (error) {
if (error) {
console.error(error);
return;
}
});
}
if (typeof argv.style !== 'undefined') {
var style = JSON.parse(argv.style);
transform(style);
} else {
var sample;
sample = fs.createReadStream(argv.sample);
sample.pause();
sample.setEncoding('utf-8');
codepainter.infer(sample, function (error, style) {
if (error) {
console.error(error);
return;
}
transform(style);
});
}
Subscribe to:
Posts (Atom)