Freemind が起動できない!
管理者権限で実行で起動できた。
環境によりますが(^^)
Freemind が起動できない!
管理者権限で実行で起動できた。
環境によりますが(^^)
10-12 11:09:48.240: W/ActivityThread(5846): Application hoge is waiting for the debugger on port 8100…
がでたまま
Attempting to connect debugger to ‘hoge’ on port 8600
[2012-10-12 11:09:39 – hoge] Launch error: リモート VM に接続できませんでした。接続がタイムアウトしました。
なんてのが出る。
なぜか DDMS 繋がらず…
誰かがなぜかポートを掴んでいる。
コマンドプロンプトで
netstat -oan | more
やっぱりだれかが掴んでいる。
プロセスIDは分かったが犯人特定できず…
まっ、いっか
eclipse ウィンドウ->設定->Android->DDMS->ベース・ローカル・デバッガー・ポート
8600->8601 へ変更
eclipse 再起動
とりあえずつながったよ。
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_weight="25"
android:text="TextView" />
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_weight="50"
android:text="TextView" />
<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_weight="25"
android:text="TextView" />
</LinearLayout>
</LinearLayout>
layout_weight で比率を指定する。
layout_height=”0dp” で指定することが大事
あっ、PHP 5.3 以上なので、さくらコントロールパネルより PHP バージョン指定
curl get.fuelphp.com/oil > my.sh
sudo 削除
PREFIX 変更
#!/bin/bash
PREFIX="/home/user_name/local/bin/"
install_oil() {
sh -c "curl --silent http://get.fuelphp.com/installer.sh > ${PREFIX}oil"
chmod +x ${PREFIX}oil
}
#
# Handle execution
#
main() {
# Start installation
install_oil
exit 0
}
main
bash パス変更
#!/usr/local/bin/bash
if [ -f "./oil" ]; then
php oil "$@"
else
if [ "$1" == "create" ]; then
if [ ! `which git` ]; then
echo "For this installer to work you'll need to install Git."
echo ' http://git-scm.com/'
fi
git clone --recursive git://github.com/fuel/fuel.git "./$2"
php "./$2/oil" refine install
else
echo 'This is not a valid Fuel installation so Oil is a bit lost.'
echo ' http://fuelphp.com/docs/installation/instructions.html'
fi
fi
いよいよプロジェクトの作成
cd
oil create fuel
Initialized empty Git repository in /home/falco/www/fuel/.git/
remote: Counting objects: 14417, done.
remote: Compressing objects: 100% (4989/4989), done.
remote: Total 14417 (delta 9808), reused 13594 (delta 9195)
Receiving objects: 100% (14417/14417), 2.20 MiB | 589 KiB/s, done.
Resolving deltas: 100% (9808/9808), done.
なんか色々入る、以下省略
[/bash]
mv ~/fuel/public ~/www/fuel
[/bash]
cd ~/www/fuel
index.php パス変更
/../fuel/app/
↓
/../../fuel/fuel/app/
ブラウザーより http://user_domain/fuel/
見にくい!
Eclipse ウィンドウ->設定
フイルタ XML
XML->XML ファイル->エディター->構文の色の指定
属性値 斜体 チェックオフ
めでたし、めでたし。