Archive for: 𔃹月 2011’

Ant の SCPタスク

2011年9月28日 Posted by PURGE

Antでサーバデプロイまで行いたい時、SCPタスクが便利です。
但し、eclipse(Ant1.7) では、Antタスクとしては登録されていますが、下記jarファイルを Antのクラスパスへ設定する必要があります。尚、jarファイルは eclipse/plugin フォルダ内に存在するので、クラスパスに指定するのみでOKです。

com.jcraft.jsch_xxxx.jar

そして、build.xml への記述は下記で、もし秘密鍵を使用している場合は、keyfileで指定します。
尚、パスワード設定していなくてもパスワードも求められました。原因はわかりません。

    <target name="scp"  description="Copy to Server">
    	<scp file="${targetfile}" todir="${scp.user}:${scp.passwd}@${scp.server}:." keyfile="${scp.keyfile}" trust="yes"></scp>
    </target>

Excel VBAファイル出力

2011年9月27日 Posted by PURGE

Option Explicit

Sub CreateFile()

Dim StrFileName As String
Dim intFileNo As Integer

StrFileName = ActiveWorkbook.Path & "out.txt"
intFileNo = FreeFile



Open StrFileName For Output As #intFileNo

Write #intFileNo, "これはWriteテストです。"
Print #intFileNo, "これはPrintテストです。"

Close #intFileNo

End Sub

Source Code の投稿

2011年9月27日 Posted by PURGE

  • actionscript3
  • bash
  • coldfusion
  • cpp
  • csharp
  • css
  • delphi
  • erlang
  • fsharp
  • diff
  • groovy
  • html
  • javascript
  • java
  • javafx
  • matlab (keywords only)
  • objc
  • perl
  • php
  • text
  • powershell
  • python
  • r
  • ruby
  • scala
  • sql
  • vb
  • xml

jqGridのエラー b.jgrid.formatter is undefined

2011年9月14日 Posted by PURGE

jqGridを利用して、下記エラーが表示された。

b.jgrid.formatter is undefined

解決策として、jQuery Grid Pluginのページから、最新のライブラリをダウンロードし利用する。

問題は、スクリプトの宣言の順番を間違えると上記のエラーとなるようだ。

<script src="path_to_js_files/grid.locale-ja.js" type="text/javascript"></script>
<script src="path_to_js_files/jquery.jqGrid.min.js" type="text/javascript"></script>

install.txt ファイルに書いてある通りにすれば良いだけのこと。