2015年1月1日 星期四

mt4 20141231




2014/12/09 入金13850.71
12月
獲利(415.1+146.96)/13850.71=4%
帳面浮虧 (14265.81-13145.31-415.1-146.96)/13850.71=4%
146.96 為退傭部份,目前來看2月份有可能扣除浮虧帳面上可以獲利!


2013年1月10日 星期四

排除特定資料,不同步SVN

排除特定資料,不同步SVN
專案右鍵-->team-->set property 



新增:svn:ignore
 內容為要排除的資料:
.settings
target
.classpath
.project
doc


2013年1月9日 星期三

CXF 2.7.1 +spring 3.1.1+ maven

最近有機會使用CXF SPRING MAVEN,因為都用最新版的整合
網路上的資料有點不太一致,因此留下記錄,方便自己回憶
-------------------------------------------------------------------------------------------------
Java  1.6 

使用 Maven ,在 pom 文件,增加 cxf  jar檔
<!-- CXF Dependencies -->

<dependency>

<groupId>jta</groupId>

<artifactId>jta</artifactId>

<version>1.0.1b</version>

</dependency>

<dependency>

<groupId>org.apache.cxf</groupId>

<artifactId>cxf-rt-core</artifactId>

<version>${cxf.version}</version>

</dependency>

<dependency>

<groupId>org.apache.cxf</groupId>

<artifactId>cxf-rt-frontend-simple</artifactId>

<version>${cxf.version}</version>

</dependency>

<dependency>

<groupId>org.apache.cxf</groupId>

<artifactId>cxf-rt-frontend-jaxws</artifactId>

<version>${cxf.version}</version>

</dependency>

<dependency>

<groupId>org.apache.cxf</groupId>

<artifactId>cxf-rt-databinding-aegis</artifactId>

<version>${cxf.version}</version>

</dependency>

<dependency>

<groupId>org.apache.cxf</groupId>

<artifactId>cxf-rt-transports-local</artifactId>

<version>${cxf.version}</version>

</dependency>

<dependency>

<groupId>org.apache.cxf</groupId>

<artifactId>cxf-rt-transports-http</artifactId>

<version>${cxf.version}</version>

</dependency>

<dependency>

<groupId>org.apache.cxf</groupId>

<artifactId>cxf-rt-transports-jms</artifactId>

<version>${cxf.version}</version>

</dependency>

<dependency>

<groupId>org.apache.cxf</groupId>

<artifactId>cxf-rt-management</artifactId>

<version>${cxf.version}</version>

</dependency>

<!--  End of CXF Dependencies -->
這部分若有出現 cannot be cast to javax.servlet.Filter 錯誤,原因為cxf-rt-transports-http-jetty.jar檔有引用,拿掉即正常。

----------------------------------------------------------------------------------------------------------------------------------------------
修改web.xml ,新增


<servlet>
<servlet-name>CXFServlet</servlet-name>
<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>CXFServlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
-----------------------------------------------------------------------------------------------------------------------------------------------
撰寫java檔

寫入  applicationContext.xml
要特別留意
xmlns:jaxws="http://cxf.apache.org/jaxws"    xmlns:cxf="http://cxf.apache.org/core"  
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
這部分是否正確

參考資料:http://www.oschina.net/question/12_60487



2012年12月5日 星期三

libXm.so.*

最近把 ase 15.7 裝在centos 5.2 上面
dsedit 一直出現 libXm.so.4 的錯誤

後來找到
yum install openmotif openmotif-devel

裝完

終於 dsedit GUI 出現了

2012年12月1日 星期六

sybase ase 15.7 install

最近客戶 希望sybase 與oracle 的差異性
本來在nb裝了ase 15.7
後來測試時移除,要重新安裝
裝了兩天 linux win 7 都裝不起來
後來發現原來我裝的是ase 15.7 esd2 裡面jre 是7(Sybase Central v6.0 裝不完整,jre 也不完整)
我原來裝的是 ase 15.7
後來改用 ase 15.7 終於成功 真是ooxx

一個商用軟體做成這樣
真是讓人沒信心

domain 內自動登入本機帳號

官方寫的落落長,實際上只要把AutoAdminLogon 改為1
在用netplwiz or netplwiz ,即可在網域內自動登入本機帳號


1. Click Start, click Run, type regedit, and then click OK. 
2. Locate the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon 
3. Using your account name and password, double-click the DefaultUserName entry, type your user name, and then click OK.
4. Double-click the DefaultPassword entry, type your password under the value data box, and then click OK.

If there is no DefaultPassword value, create the value. To do this, follow these steps: a.  In Registry Editor, click Edit, click New, and then click String Value.
b.  Type DefaultPassword as the value name, and then press ENTER. 
c.  Double-click the newly created key, and then type your password in the Value Data box.
If no DefaultPassword string is specified, Windows XP automatically changes the value of the AutoAdminLogon registry key from 1 (true) to 0 (false) to turn off the AutoAdminLogon feature.
5. Double-click the AutoAdminLogon entry, type 1 in the Value Data box, and then click OK.

If there is no AutoAdminLogon entry, create the entry. To do this, follow these steps: a.  In Registry Editor, click Edit, click New, and then click String Value.
b.  Type AutoAdminLogon as the value name, and then press ENTER. 
c.  Double-click the newly created key, and then type 1 in the Value Data box.
 
6. Quit Registry Editor. 
7. Click Start, click Restart, and then click OK.

2012年8月10日 星期五

MDF 轉iso



方法其實好簡單...
進入DOS模式(CMD),指令:
copy /B test.mdf + test.md0  test.iso
那樣就會在同一資料夾下輸出一個 test.iso 檔
(P.S mds 檔不用理會)