<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
   <channel>
      <title>tips</title>
      <link>http://www.you16.com/tips/</link>
      <description></description>
      <language>ja</language>
      <copyright>Copyright 2008</copyright>
      <lastBuildDate>Wed, 22 Oct 2008 08:19:57 +0900</lastBuildDate>
      <generator>http://www.sixapart.com/movabletype/</generator>
      <docs>http://blogs.law.harvard.edu/tech/rss</docs> 

            <item>
         <title>SeleniumRCをFirefox3で動かす</title>
         <description><![CDATA[SeleniumRCをFirefox3で動かそうとすると、そのままでは上手くいかないので、以下のサイトを参考に試行錯誤した結果、以下の手順で動作させることができた。

<a href="http://clearspace.openqa.org/thread/14617">参考サイトOpenQA</a>

手順
１．Firefoxをコマンドプロンプトから、以下の引数をつけてfirefoを起動させるとプロファイルマネージャーが起動する（注：このときfirefoxは全て閉じておくこと）
C:\Program Files\Mozilla Firefox -profilemanager

２．新しいプロファイルを作成。適当にSeleniumとか名前をつける

３．proxyの設定を行う。ツール＞オプション＞詳細＞ネットワーク＞ にproxyの設定画面へ行くボタンがある。proxyは以下の通り設定する。

手動でプロキシを設定する
HTTPプロキシ　localhost　ポート：4444
<img alt="Winshot_001.JPG" src="http://www.you16.com/tips/Winshot_001.JPG" width="469" height="449" />










４．Seleniumを起動させる前に以下のコマンドをコマンドプロンプトで実行。
set BROWSER="*custom C:\Program Files\Mozilla Firefox\firefox.exe"

見本のバッチファイルとして動かす場合のサンプルを以下に示す

<em>
rem ***** アドレス(IP又はドメイン)とポートを指定する *****
set PROXY_OPTION=-Dhttp.proxyHost=localhost -Dhttp.proxyPort=4444

@rem 下記を環境に合わせて変更してください。
set JAVA_HOME=C:\jdk1.5.0_14

@rem set up PATH
set PATH=%JAVA_HOME%\bin

rem ***** selenium-serverディレクトリを指定する ******
set SELSERV_DIR=%CD%

rem ***** ブラウザを指定 *****
#set BROWSER="*iexplore"
#set BROWSER="*firefox"
set BROWSER="*custom C:\Program Files\Mozilla Firefox\firefox.exe"

rem ***** テスト対象のドメイン(ベースURL) *****
set TESTDOMAIN="http://www.google.co.jp"

rem ***** TestSuiteファイルを指定する *****
set TESTSUITE=%SELSERV_DIR%\suite.html

rem ***** 結果出力ファイルを指定する *****
set RESULTFILE=%SELSERV_DIR%\TestResult.html

rem ***** タイムアウト時間を設定する *****
set TIMEOUT="60000"

rem ***** Firefoxのプロファイルを設定する *****
set PROFILE="C:\selenium-server\firefox3/"

rem *****テストを実行する********************
cd %SELSERV_DIR%

java %PROXY_OPTION% -jar selenium-server.jar -htmlSuite %BROWSER% %TESTDOMAIN% %TESTSUITE% %RESULTFILE% -timeout %TIMEOUT% -multiWindow</em>

５．プロファイル選択画面が立ち上がると思うので、先ほど作成したSelenium用のプロファイルを選択
]]></description>
         <link>http://www.you16.com/tips/2008/10/seleniumrcfirefox3.html</link>
         <guid>http://www.you16.com/tips/2008/10/seleniumrcfirefox3.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">Selenium</category>
        
        
         <pubDate>Wed, 22 Oct 2008 08:19:57 +0900</pubDate>
      </item>
            <item>
         <title>SeleniumのWeblogicへのデプロイ方法</title>
         <description><![CDATA[基本はこのサイト「<a href="http://gn001.wordpress.com/test-automation-tools/selenium-core-installation-on-weblogic-in-9-steps/">Selenium Core Installation on Weblogic in 9 Steps</a>」にあるとおりだが、一部足らないので補足する


○Selenium Core Installation on Weblogic in 9 Steps

Selenium core Installation Instructions for deploying on the weblogic server 9.1:

<em>1. Extract the selenium-core-0.8.3.zip into a custom folder say selenium-core any where outside the server. This will be the source of the deployable unit on the Administration Server</em>
・SeleniumCoreのzipをダウンロードしたら、それをWeblogicServerの外で解凍する。
<em>

2. In this custom folder add WEB-INF folder structure:</em>
・SeleniumCoreのフォルダの下にWEB-INF以下のフォルダを追加する。サブフォルダの中身は空でよい。
・WEB-INF
	・Under this WEB-INF directory, create the following:
		src (empty folder)
		classes (empty folder)
		lib (empty folder)
		web.xml　← In this file add the content <web-app> </web-app>
		・またweb.xmlという名前のファイルを作り、中には「<web-app> </web-app>」とだけ書いておく。
		Weblogic.xml
		・さらにWeblogic.xmlというファイルを作成し、以下の内容を記述する。
		<?xml version="1.0"?>
		<!DOCTYPE weblogic-web-app
		   PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN"
		   "http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">
		<weblogic-web-app>
		   <context-root>selenium</context-root>
		</weblogic-web-app>

<em>3.Start the weblogic from the domain where your application is deployed.</em>
・Weblogicを起動させる

<em>4.Create domain say selenium NOTE: This is outside selenium-core directory and also the server.
For this</em>
      cd $BEA_HOME  
      Create the domain using config.sh which is under $BEA_HOME/ weblogic91/common/bin (which is same as WL_HOME/common/bin).
NOTE: Default values can be replaced
・これは必要ない。あらたにドメインを作成するのではなく、以下の方法でSeleniumをデプロイする。

<em>
5.Start the weblogic server from <domain>/bin. In this case, selenium/bin</em>
・これも必要ない。すでにWeblogicは起動している。

<em>6.open console and goto deployments and deploy the total selenium core folder (open deployment)</em>
・コンソールを開き、Selenium-Coreフォルダを選択し、インストールし、起動させる。localhost:port番号/selenium/にアクセスできれば起動は成功。

]]></description>
         <link>http://www.you16.com/tips/2008/10/seleniumweblogic.html</link>
         <guid>http://www.you16.com/tips/2008/10/seleniumweblogic.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">Selenium</category>
        
        
         <pubDate>Wed, 22 Oct 2008 08:06:52 +0900</pubDate>
      </item>
            <item>
         <title>enumerateの番号形式のカスタマイズ</title>
         <description><![CDATA[enumerate環境で、番号の振り方をカスタマイズしたいときに便利なのがparalist.styである。

例えば、enumerateでは通常１．２．３．と番号が振られるが、これを(1)(2)(3)やStep1 Step2 Step3などに変更したい場合、簡単にできるようになる。

\begin{enumerate}[(1)]
で、(1)(2)・・・となり、
\begin{enumerate}[(a)]
では、(a) (b) (c) ・・・となる。


またitemize環境でもカスタマイズすることができるので、是非導入したい。

<a href="http://tug.ctan.org/tex-archive/macros/latex/contrib/paralist/">http://tug.ctan.org/tex-archive/macros/latex/contrib/paralist/</a>
ここでdtxファイルを手に入れてコンパイルすれば手に入る。

そのあとで、コンパイルしたいtexファイルと同じフォルダ階層においておき、プリアンブルに
\usepackage{paralist}を追加しておく。
]]></description>
         <link>http://www.you16.com/tips/2007/02/enumerate.html</link>
         <guid>http://www.you16.com/tips/2007/02/enumerate.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">latex</category>
        
        
         <pubDate>Tue, 06 Feb 2007 05:04:42 +0900</pubDate>
      </item>
            <item>
         <title>ページをまたぐ長い表</title>
         <description><![CDATA[いくつかスタイルファイルが用意されているようだが、longtable.styがtoolsとして最初から入れている人が多いと思うので、これが一番いいかも。

多くの人は最初にセットアップしたファイルに入っていると思うのでとくに新しくstyファイルを探す必要はないと思われる。

使い方は・・・

プリアンブルに\usepackage{longtable}

あとは
\begin{tabular}を\begin{longtable}に置き換えるだけでOK.

ただしtable環境の中では使えないので注意。

あとは勝手に改頁をしてくれる。

<a href="http://www.you16.com/tips/longtable.tex">サンプルtexファイルをダウンロード</a>
<a href="http://www.you16.com/tips/longtable.dvi">サンプルdviファイルをダウンロード</a>
]]></description>
         <link>http://www.you16.com/tips/2007/01/post_1.html</link>
         <guid>http://www.you16.com/tips/2007/01/post_1.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">latex</category>
        
        
         <pubDate>Wed, 31 Jan 2007 13:06:38 +0900</pubDate>
      </item>
            <item>
         <title>文献参照</title>
         <description><![CDATA[文献参照でjbib.texを利用するときに便利なソフトがこれ。

<a href="http://members3.jcom.home.ne.jp/refwin/">Ref for Windows</a>

texのjbib.tex用にエクスポートできるのでとってもラブリー。
texでなくてもいろいろな形で出力できるので、文献整理にとても有用です。
おすすめ。
]]></description>
         <link>http://www.you16.com/tips/2007/01/post.html</link>
         <guid>http://www.you16.com/tips/2007/01/post.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">latex</category>
        
        
         <pubDate>Wed, 31 Jan 2007 03:37:17 +0900</pubDate>
      </item>
            <item>
         <title>Excelの表をtexの表に変換するプラグイン</title>
         <description><![CDATA[texのtabularに変換するための、エクセルのプラグインはこれが一番便利だと思います。

<a href="http://www.ne.jp/asahi/i/love/E2T/">Excel2Tabular
</a>
]]></description>
         <link>http://www.you16.com/tips/2007/01/exceltex.html</link>
         <guid>http://www.you16.com/tips/2007/01/exceltex.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">Excel</category>
                  <category domain="http://www.sixapart.com/ns/types#category">latex</category>
        
        
         <pubDate>Sun, 28 Jan 2007 00:24:19 +0900</pubDate>
      </item>
            <item>
         <title>Latexの数式をIndesignに貼り付ける</title>
         <description><![CDATA[Indesignの強力な組み版機能とLatexの美しい数式が組み合わされば、理系の書物のクオリティが ぐんとあがることが期待できます。そこで、ここでは実践的な方法を説明します。 とくにフォントの設定に関して説明します。

<strong>１．IndesignにLatexで生成した文章を貼り付ける</strong>
Latexから直接Indesignに貼り込めるわけはないので、texをいったんepsにします（上記の「Latexの文章 をIllustratorで」を参照）。
また「Latexの文章をIllustratorに」にあるtype1フォントの設定が できれいれば準備O.Kです。生成されたepsファイルをドラッグ＆ドロップでIndesign上に配置します。 普通はこれで充分です。

<strong>２．Latexの日本語フォントを替える</strong>
Indesignで文章を作る際、フォントを文章全体で統一しないと見栄えが悪くなってしまいます。そこでLatexでつくるepsのフォントを GothicBBB-H（普通のゴシック）からHiraKakuPro-W3-H（ヒラギノ角ゴW3）に替える場合の話をします。
divファイルからepsを生成する前に以下の操作をします。まず
c:/usr/share/texmf/dvips/config/
にあるpsfonts.mapをテキストエディタ（メモ帳など）で開きます。その中の行のどこかに「gbm」「gbmv」で始まる行があるはずです。 それを以下のように書き換えます。

gbm GothicBBB-Medium-H →HiraKakuPro-W3-H
gbmv GothicBBB-Medium-H →HiraKakuPro-W3-V

書き換えた後、上書き保存をしていったんpsfont.mapを閉じます。そのあと、コマンドプロンプト上でc:/usr/share/texmfまで移動します。 そして以下のコマンドを実行してください。

mktexlsr

これでdivファイルからepsを生成する際に、ゴシックフォントがヒラギノ角ゴW3になります。]]></description>
         <link>http://www.you16.com/tips/2007/01/latexindesign.html</link>
         <guid>http://www.you16.com/tips/2007/01/latexindesign.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">Indesign</category>
                  <category domain="http://www.sixapart.com/ns/types#category">latex</category>
        
        
         <pubDate>Sun, 14 Jan 2007 17:28:43 +0900</pubDate>
      </item>
            <item>
         <title>Latexの数式をIllustratorで利用する</title>
         <description><![CDATA[TeXの美しい数式をIllustratorで使いたいという方へのTipsです。
<strong>
１．何はともあれ数式を書く</strong>
TeXで数式を書きます。下にサンプルを載せます。内容はとにかくなんでも結構です。

\documentclass{jarticle}
\pagestyle{empty}
\begin{document}

$S=\frac{(p_2^0)^2}{4k^2} \int_{p_1}^{p_2} \frac{1}{p_1}dp_1$

\end{document}

<strong>２．platexでコンパイル</strong>
そして上で作ったsample.texファイルをコンパイルします（ご自分の環境に合わせ行ってください）。

<strong>３．EPSファイルの作成</strong>
dviファイルをEPSに変換して、Illustratorで使えるようにします。以下のコマンドをdviファイルがある 場所をカレントディレクトリとしてからプロンプト上で実行してください。（"sample"の部分はご自分のファイル名 にしておいてください）

dvipsk -Ppdf -E sample.dvi -o sample.eps
これでepsファイルが作られました。

<strong>４．type1フォントがIllustrator上で使えるようにする</strong>
このepsファイルをIlustoratorで読み込もうとしてもフォントが化けてしまいます。
そこでIllustratorでTeXのフォントがつかえるよう設定します。

c:/usr/share/texmf/fonts/　にあるtype1フォルダのショートカットを c:/Program Files/Common Files/Adobe/Fonts/Reqrd/Baseにつくればいいのです。あら簡単。
これでうまくいかなかった人はショートカットではなくtype1フォルダを丸ごとBaseフォルダにコピー してみてください。

以上の操作によりIllustrator上でTeXのフォントが使えるようになっているはずです。つまり文字化けせずepsファイルを 読み込むことができます。めでたしめでたし。

<strong>５．数式のアウトラインをとる</strong>
epsファイルから文字情報を消して、アウトラインを取ってしまう方法もあります。
２で作られたsample.dviファイルに対して次のようなコマンドを実行します（もちろんその前にdvi ファイルがあるディレクトリをカレントディレクトリとしておきます）。

dvipsk -Ppdf sample.dvi -x 3000 -o sample.eps
これでアウトラインがとれているはずです。
ちなみに-x 3000のオプションは３倍に拡大するという意味があります。なぜ３倍に拡大するのか？ 理由は文字が小さいとアウトラインかされずビットマップになってしまうからです。
もし３倍でビットマップになってしまうようでしたら倍率を上げてみてください。]]></description>
         <link>http://www.you16.com/tips/2007/01/test2.html</link>
         <guid>http://www.you16.com/tips/2007/01/test2.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">Illustrator</category>
                  <category domain="http://www.sixapart.com/ns/types#category">latex</category>
        
        
         <pubDate>Sun, 14 Jan 2007 17:20:37 +0900</pubDate>
      </item>
      
   </channel>
</rss>
