月別アーカイブ: 2009年2月

OpenOfficePortable

open office portable

ダウンロード

http://portableapps.com/apps/office/openoffice_portable

ダウンロードボタンの下にother languagesとあるのでそこをクリックすると日本語版がダウンロードできる。

あとはexeファイルを実行して、できたファイルをUSBメモリに丸ごと保存する。

ファイルサイズは220M以上あるのでコピーには多少時間がかかるようだ。。。

○icrosoftでいうところの

  • Word
  • Excel
  • PowerPoint
  • …e.t.c.

が一通り使える。

Word等のソフトとの互換性もあるので、Wordのファイルを読み込んだり、OpenOfficeで作ったファイルをWordで読み込んだりすることも可能。

.lzh 展開

.lzhファイルを展開するには。。。

下記からファイルをダウンロードしてインストールする

http://cid-4e42a830d9db49ff.skydrive.live.com/self.aspx/Public/packages/lha/lha-1.14iac20050924p1-2.fc8.i386.rpm

コマンド

lha e ****.lzh

インストール

ダウンロード

下記からSmarty (version) .tar.gzをDLする.

http://www.smarty.net/download.php

展開

$ tar -zxvf Smarty (version) .tar.gz

必要なファイル

展開するといくつかディレクトリが存在するが,

その中でもlibディレクトリの中が必要になる.

  • Smarty.class.php
  • Smarty_Compiler.class.php
  • Config_File.class.php
  • debug.tpl
  • /internals/以下
  • /plugins/以下

これをサーバの適当なディレクトリに保存する.

例えば

/lib/Smarty/

これで準備完了.

使用方法

以下のディレクトリを準備する.

  • templates
  • templates_c
  • cache

smartyテンプレートファイルはtemplates内に保存.

phpファイルでrequireするときにSmartyをインストールしたディレクトリのファイルを指定する.

require_once(“/lib/Smarty/Smarty.class.php”);

$iSmarty = new Smarty();

$iSmarty->assign(title, “タイトル”);