This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EclipseにCDTは必須。 | |
ただカメラ周りの実装にはJNIが必要になるのでNDKも入れたほうがよい。 | |
http://sourceforge.net/projects/opencvlibrary/files/opencv-android/ | |
から、最新のライブラリをDL。 | |
解凍してから | |
OpenCV-2.4.6-android-sdk\sdk\java | |
内をAndroidのプロジェクトとして読み込む。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setContentView(R.layout.activity_main); | |
XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer(); | |
XYMultipleSeriesDataset dataSet = new XYMultipleSeriesDataset(); | |
XYSeries series = new XYSeries("Data1", 0); | |
XYSeriesRenderer dataRenderer = new XYSeriesRenderer(); | |
dataRenderer.setColor(Color.BLUE); | |
dataRenderer.setPointStyle(PointStyle.CIRCLE); | |
dataRenderer.setFillPoints(true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule (.*) now/$1 [L] | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteBase /dir1/RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule (.*) subdir1/$1 [L] | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public_html内にはwebroot意外を設置しない方法。 | |
デフォルトの構成を大幅に崩すので注意。 | |
~/cake_app | |
-domain1 | |
--app | |
-domain2 | |
--app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root]# adduser git | |
# usermod -a -G git sawai | |
# usermod -a -G git 開発者ユーザー | |
# chmod 770 /home/git | |
# su - git | |
[git] | |
$ vim .bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo a2enmod rewrite | |
mods-avarableからenableにシンボリックリンクを貼る。 | |
$ sudo vim /etc/apache2/sites-avalable/設定ファイル | |
AllowOverride All |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.app.Service; | |
import android.content.Intent; | |
import android.os.IBinder; | |
public class FileManageService extends Service { | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
強制改行 | |
半角スペース2つ | |
ソースコード(まとめて) | |
```java | |
import ... | |
``` | |
```xml | |
<xml ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ wget https://git-core.googlecode.com/files/git-1.7.10.4.tar.gz | |
$ tar xvz git-1.7.10.tar.gz | |
$ cd git-1.7.10 | |
$ ./configure --prefix=$HOME/local | |
$ make |