June 2010
(5)パッケージ管理システム設定
RPMパッケージのインストール・アンインストールを行うyumの初期設定を行う
[root@centos ~]#...
– http://centossrv.com/centos5-init.shtml
今日の検診で性別が分かるから、
昨晩息子に「弟がいい?妹がいい?」と聞いてみた。
「弟!一緒に遊ぶの!」と元気よい返事。
だといーねーと眠りについた。...
– No.7483 今日の検診で性別が分かるから - コピペ運動会 (via peperon999, biccchi-deactivated20090719)
JFreeChartを使ったグラフ作成 →
わかりやすくまとまっている。
JFree Chart 文字化け解決(凡例表示部も含めて)
import org.jfree.chart.JFreeChart;
import org.jfree.chart.ChartFactory;
import org.jfree.data.general.DefaultPieDataset;
import org.jfree.chart.ChartUtilities;
import java.io.File;
import java.io.IOException;
// Begin 文字化け回避策
import java.awt.Font;
import org.jfree.chart.plot.PiePlot;
import org.jfree.chart.title.LegendTitle;
// End
public class Sample{
public static void...
CentOS5.2にOracle10gR2RACをインストール →
とっても丁寧な手順書。
CentOSにOracle10gR2をインストール →
まずはこの方法でチャレンジしてみようかな
CentOS5上のOracle 10g インストール →
JFree Chart 文字化け解決
import org.jfree.chart.JFreeChart;
import org.jfree.chart.ChartFactory;
import org.jfree.data.general.DefaultPieDataset;
import org.jfree.chart.ChartUtilities;
import java.io.File;
import java.io.IOException;
// Begin 文字化け回避策
import java.awt.Font;
import org.jfree.chart.plot.PiePlot;
// End
public class Sample{
public static void main(String[] args) {
DefaultPieDataset data =...
2009/11/09現在では、『JFreeChart 1.0.13』が最新ですが、...
– http://tk-factory.net/wordpress/?p=1497
Solaris10でのJFreeChart日本語文字化け →
JFreeChart が文字化けしている事象が
発生しているが、一応?解決(回避?)したので
コメントを残しておく
原因は、java...
– http://blogs.yahoo.co.jp/hijiri_shibano/9787846.html
日本語が文字化けする
JFreeChartはあまりこのあたりを考えてありません。デフォルトエンコーディング依存になります。
...
– http://sakito.jp/moin/moin.cgi/JFreeChart
JFreeChart: Pie Chart Demo 1 →
日本語が文字化け(□□□□□)するんだよねえ。
JFeeChart 画像中の日本語文字化け (JFreeChart) →
1.判断力低下は想像以上に怖い
うつで一番恐ろしいのは、気分が憂鬱になることではなく、判断力が低下することです。
...
– プログラマーが知っておくべきうつ病の知識 - aikeの日記 (via deli-hell-me) (via mitaimon) (via bucket)
Java Graphicsを使ってかんたんプリント →
「Java SE 6完全攻略」 第26回 テキスト・コンポーネントの印刷 →
サーブレットでグラフを描く(JFreeChart活用) →
CentOSダウンロード
環境にもよるだろうけれども、3時間もかかるといわれるなら、別のミラーを探したほうが早いと思う。
North America のサーバで”残り3時間”、RIKENのサーバで”残り40分”だった。
CentOS North American Mirrors →
other mirrors
http://www.centos.org/modules/tinycontent/index.php?id=32
CentOSによる自宅サーバの構築 →
hmm…..
はじめての自宅サーバ構築 - Fedora/CentOS - →
Apache + Tomcat + PostgreSQLでサーブレット実行環境構築(Linux) →
another CentOS + Apache + Tomcat + PostgreSQL
CentOSメモ →
CentOS + Apache + Tomcat + PostgreSQL
[CentOS]Apache2.2+Tomcat5.5 連携
■環境
CentOS5
httpd-2.2.3-11.el5_2.centos.4...
– http://halu834.blog17.fc2.com/blog-entry-48.html
May 2010
Downloading JDBC..... (Rerun)
# wget http://jdbc.postgresql.org/download/postgresql-9.0dev-800.jdbc4.jar —2010-06-01 17:56:34— http://jdbc.postgresql.org/download/postgresql-9.0dev-800.jdbc4.jar jdbc.postgresql.org をDNSに問いあわせています… 200.46.204.71 jdbc.postgresql.org|200.46.204.71|:80 に接続しています… 接続しました。 HTTP による接続要求を送信しました、応答を待っています… 200 OK 長さ: 542077 (529K) [application/octet-stream]...
Downloading JDBC.....
# wget http://jdbc.postgresql.org/download/postgresql-jdbc-9.0dev-800.src.tar.gz —2010-06-01 17:53:00— http://jdbc.postgresql.org/download/postgresql-jdbc-9.0dev-800.src.tar.gz jdbc.postgresql.org をDNSに問いあわせています… 200.46.204.71 jdbc.postgresql.org|200.46.204.71|:80 に接続しています… 接続しました。 HTTP による接続要求を送信しました、応答を待っています… 200 OK 長さ: 611429 (597K) [application/x-tar]...
PostgreSQL -- restart
$ /etc/init.d/postgresql-8.4 restart * Restarting PostgreSQL 8.4 database server
$
すると、tcpip_socketという設定が無い事に気がつき、tcpip_socket = trueに...
– http://hobby.txt-nifty.com/t1000/database/index.html
PostgreSQL では、列名の変更ができる。
alter table testm rename
data1 to abc
;
– http://homepage2.nifty.com/sak/w_sak3/doc/sysbrd/psql_k05.htm
PostgreSQL -- correct an error on initdb
# mkdir -p /usr/local/pgsql/data # sudo chown postgres:postgres /usr/local/pgsql/data/
then,
postgres@hoge $ initdb -D /usr/local/pgsql/data/ データベースシステム内のファイルの所有者は”postgres”ユーザでした。 このユーザがサーバプロセスを所有しなければなりません。 データベースクラスタはロケールja_JP.UTF-8で初期化されます。 デフォルトのデータベース符号化方式はUTF8に設定されました。 initdb: ロケール”ja_JP.UTF-8”用の適切なテキスト検索設定が見つかりません デフォルトのテキスト検索設定はsimpleに設定されました。...
PostgreSQL -- $PATH
$ vi ~/.bashrc
export PATH=$PATH:/usr/lib/postgresql/8.4/bin
~
~
3.4 バージョン毎のバイナリやシェルスクリプトなど
これらは次のディレクトリに格納されます。
(1)...
– http://lets.postgresql.jp/documents/tutorial/ubuntu/4
PostgreSQL -- Ubuntu version is different from...
http://lets.postgresql.jp/documents/tutorial/ubuntu/4
1. no initdb
2. no pg_ctl
Hmm…..
manpage of psql →
PostgreSQL -- what's next?
Tutorial (Japanese)
http://www.postgresql.jp/document/pg836doc/html/tutorial-arch.html
PostgreSQL -- create role
testdb=# create role “foo-bar” with login; CREATE ROLE testdb=# \q
$ exit
$ whoami
foo-bar
$ psql testdb
testdb=>
PostgreSQL -- the first step
$ sudo passwd postgres
New: ********
Confirm: ********
$ su postgres
Password: ********
$ createdb testdb
$ psql testdb
testdb=# help
PostgreSQL installation has done
# finger postgres Login: postgres Name: PostgreSQL administrator Directory: /var/lib/postgresql Shell: /bin/bash Never logged in. No mail. No Plan.
Let's Postgres 目的別ガイド:インストール編 →
kind and helpful advice (for Japanese reader)
Accessing http://localhost:8080 and you'll...
If you’re seeing this page via a web browser, it means you’ve setup Tomcat successfully. Congratulations!
Okay!
Starting Tomcat -- started.
# cat ~/.bash_profile export JAVA_HOME=/usr/lib/jvm/jdk1.5.0_22
once logged out, then,
# /usr/local/apache-tomcat-6.0.26/bin/catalina.sh start Using CATALINA_BASE: /usr/local/apache-tomcat-6.0.26 Using CATALINA_HOME: /usr/local/apache-tomcat-6.0.26 Using CATALINA_TMPDIR: /usr/local/apache-tomcat-6.0.26/temp Using JRE_HOME: /usr/lib/jvm/jdk1.5.0_22 Using CLASSPATH: ...
Starting Tomcat -- will it start?
# /usr/local/apache-tomcat-6.0.26/bin/catalina.sh start
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these environment variable is needed to run this program
… Nope.
Apache ... which version? Part 2
Core, Deployer, Embededd, Administration Web Application, … etc.
I don’t know which one to select!
my choice: Core
$ sudo tar xzvf apache-tomcat-6.0.26.tar.gz
Apache ... which version?
I have trouble downloading Tomcat 5.5 Binary Distributions…..
but the following site is available.
http://tomcat.apache.org/download-60.cgi#6.0.26
satoshiabe.jp : Installing Apache Tomcat →
で、お次はこれで試してみるとか
apache2.2.3+tomcat6.0.26 (目次) →
とりあえずこれのまねっこしてみようかな
Java,Postgre,Apache,Tomcat環境構築 →
Linuxでの、Tomcat-5.0.6.J2SDK-1.4.Apache-2.0.mod_jk2.P... →
Tomcat + Apache + PostgreSQL on Linux
Apache + Tomcat + PostgreSQL(JSP 編) →
JSP