//php the_content_rss('', FALSE, '', 68); ?>
#Vagrantfileの再読み込み
$ vagrant reload
#VMの状況の確認
$ vagrant status
#まだつかったことないけど、一時的な停止(halt)
$ vagrant suspend
#再起動
vagrant resume
#シャットダウン
$ vagrant halt
#立ち上げ
$ vagrant up
# package up the virtual machine in its current state into a file called package.box.
$ vagrant package
# We can then restore it with the same command we used to set up our virtual machine in the first place.
$ vagrant box add
# delete our virtual machine
$ vagrant destroy
//php the_content_rss('', FALSE, '', 68); ?>
最近開発に、Netbeans6.7を使っているんですがDBのER図を提出しなくていけなくなったので、プラグインを探していて、NetBeans UML® Projectからプラグインを発見したので、そのメモです。
JDKのダウンロードとインストール
まずぼくのNetbeans6.7は、JAVAの環境がJREで動いているので、インストールできないとのこと
なので、JDKをインストール
http://java.sun.com/javase/ja/6/download.html
からJDK6をダウンロードします。
さっそくインストロール
netbeans.confの書き換え
ファイルの場所は、C:\Program Files\NetBeans 6.7\etc\netbeans.conf
下記の内容で書き換えました。
netbeans_jdkhome="C:\Program Files\Java\jre6"
↓
#netbeans_jdkhome="C:\Program Files\Java\jre6"
追加
netbeans_jdkhome="C:\Program Files\Java\jdk1.6.0_14
画面

//php the_content_rss('', FALSE, '', 68); ?>
I’m looking for my job in Sydney. Because I will live in Sydney on this summer.
And my fiancee is Australian so we will live in Sydney.
I am the manager of systems.
At present, my job is managing our servers (about 20 servers in total).
And I make CMS & portal sites. I also make programming documents.
My IT skills:
。ヲI can manage Linux and Unix servers.
。ヲI can use PHP, Javascript, html, css.
。ヲI can use Photoshop,Illustrater,.Flash,Premia.
。ヲI can manage and design web sites & systems.
So I checked about my job’s keywords in SEEK.
Date Base
| Oracle |
1854 |
| Mysql |
348 |
| DB2 |
191 |
| SQLServer |
21 |
| Postgres |
12 |
Programming
| .NET |
1467 |
| Java |
1331 |
| PHP |
965 |
| Javascript |
804 |
| Ajax |
430 |
| Perl |
279 |
| Python |
113 |
| Ruby |
67 |
Framework for PHP
| PHP Zend Framework |
94 |
| PHP CakePHP |
20 |
| PHP symfony |
5 |
OS
//php the_content_rss('', FALSE, '', 68); ?>
symfonyの設定
$ mkdir localhost ← ディレクトリの作成
$ cd localhost/
プレロジェクトを作成していきます。
$ symfony init-project project_name ← プロジェクトの作成
>> dir+ /home/hogehoge/localhost/config
>> file+ /home/hogehoge/localhost/config/schema.yml
>> file+ /home/hogehoge/localhost/config/databases.yml
>> file+ /home/hogehoge/localhost/config/rsync_exclude.txt
>> file+ /home/hogehoge/localhost/config/properties.ini
>> file+ /home/hogehoge/localhost/c.../ProjectConfiguration.class.php
>> file+ /home/hogehoge/localhost/config/propel.ini
>> dir+ /home/hogehoge/localhost/doc
>> dir+ /home/hogehoge/localhost/log
>> dir+ /home/hogehoge/localhost/web
>> file+ /home/hogehoge/localhost/web/robots.txt
>> dir+ /home/hogehoge/localhost/web/js
>> file+ /home/hogehoge/localhost/web/.htaccess
>> dir+ /home/hogehoge/localhost/web/uploads
>> dir+ /home/hogehoge/localhost/web/uploads/assets
・
・
$ symfony init-app myproject ← アプリの指定の作成
Apacheの設定
# vi /etc/httpd/conf/httpd.conf ← Apacheの設定
ServerName localhost
DocumentRoot "/home/hogehoge/localhost/web"
DirectoryIndex index.php
Alias /sf "/usr/share/pear/data/symfony/web/sf"
#permit rewrite
AllowOverride All
allow from all
Apacheの再起動で、設定した画面にアクセスして下記の画面がでると設定完了

//php the_content_rss('', FALSE, '', 68); ?>
今開発中のシステムの開発方法を明記しておきます。
PHPで開発しております。
- フレームワーク
- symfony まだまだ使いこなせていない
- テンプレートエンジン
- Smarty
ドキュメント、まだまだ知らないことがたくさんあります。
- データベースのコネクション
- PDO
はじめはやっかいだったが、今はないともう離れられない。
- テスト
- PHPUnit
まだ開発途中なので、これから検証してみる感じです。
- OS
- CentOS 5 final
- データベース
- MySQL 5.0.45
phpMyAdminとかで管理してるけど、あんまりセキュリティ上あんまりよくないとかで使ってない人が多いのを最近よく聞く。
- エディタ
- Emacs 22.1
Meadowは重いのがなぁ。。。早くなる方法ないのかな
//php the_content_rss('', FALSE, '', 68); ?>
今日生まれて初めてPythonを触りました。
classの勉強のためにPythonからRubyを触るといいと、友人から言われたので触り始めました。
Rubyはその友人が触っていて悔しいし、オーストラリアでは結構Pythonも主流という理由で選びました。
Python 1日目
環境
CentOS 5.1
Python 2.4
メモ
名前の由来は、英国BBS放送の「モンティパイソン」からです。
コメントは#
#my first python.
print "Hello Python"
文の区切り文字は、セミコロン(;)
print "Hello Python"; print "How are you?"
ブロックの範囲をインテンドで決めてるようです。
phpとか
if(a<0){
print 0以上;
}else{
prit 0以下;
}
Pythonは
def foo(a):
if a < 0:
print 0以上
else:
print 0以下
日本語表示
エンコードをしていないとエラーがでる
# coding: エンコーディング名
# coding: Shift_JIS
# coding: EUC-JP
実行方法
python /home/www/test.py
Hello Python
//php the_content_rss('', FALSE, '', 68); ?>
phpMyAdminを落としてきます・
wget http://prdownloads.sourceforge.net/phpmyadmin/phpMyAdmin-2.11.8.1-all-languages.tar.gz
ファイルの移動
mv phpMyAdmin-2.11.8.1-all-languages.tar.gz /home/document/www/
解凍します。
xf phpMyAdmin-2.11.5.1-all-languages.tar.gz
わかりやすい名前にリネーム
mv ./phpMyAdmin-2.11.8.1-all-languages /phpMyAdmin
php-mysqlが入っていなければインストール
[root@localhost ~]# yum install php php-mysql
設定ファイルのコピー
[root@localhost ~]# cp /home/document/www/phpMyAdmin/config.sample.inc.php /home/document/www/config.inc.php
パーミッションの変更
[root@localhost ~]# chmod 660 /home/document/www/phpMyAdmin/config.inc.php
config.inc.phpを変更
[root@localhost ~]# vi /home/document/www/phpMyAdmin/config.inc.php
$cfg['blowfish_secret'] = '';パスワードを追加
$cfg['Lang'] = 'ja-utf-8';日本語のために追加
php-mbstringとphp-mcryptのインストール
これをインストールしておかないと警告がでるので
mbstring
文字のエンコーディングなどに使用します。
警告内容
「PHP の mbstring 拡張が見つかりませんでした。マルチバイト文字セットを使用しているようですが、mbstring拡張がないと
phpMyAdmin は文字列を正しく分割できないため予期しない結果になることがあります」
[root@localhost ~]# yum -y install php-mbstring
mcrypt
暗号の処理に使用します。
警告内容
「mcrypt 拡張をロードできません。PHP の設定を確認してください」
[root@localhost ~]# yum -y install php-mcrypt
上記の内容で、phpMyAdminの設置が完了
//php the_content_rss('', FALSE, '', 68); ?>
RPM によってインストールされたもの
$ rpm -q パッケージ名
Mysqlの確認方法
$ rpm -q mysql
mysql-5.0.45-7.el5
httpdの確認方法
rpm -q httpd
httpd-2.2.3-11.el5.centos
CentOSのバージョンの確認方法
cat /etc/redhat-release
//php the_content_rss('', FALSE, '', 68); ?>
プログラムを外注や、他人にお願いする際ですが、画面遷移を作るように心がけています。
その際によく忘れることがあるので、メモしておきます。
input typeのbuttonの設定です。
<input type="button" value=" 確認画面へいく " onClick="location.href='次の画面のURL'">
上記の設定で、ボタンにリンクを指定することができます。
//php the_content_rss('', FALSE, '', 68); ?>
I will go to OPEN SOURCE CONFERENCE 2008 Kansai.
I will attend these classes.
First day:2008/07/18
Second day:2008/07/19