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/



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.


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/


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 jenkins


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.


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?

Amazon EC2 EBS
  $0.12 per GB-month of provisioned storage2.133 GB-Mo0.26


the answer is :