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
$ git commit --amend --author="Yamaha Taro <new_name@example.com>" |
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
$ git filter-branch -f --env-filter 'GIT_AUTHOR_EMAIL="mail@address.com"' master |
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
$ netstat -an |
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
@Override | |
public boolean shouldOverrideUrlLoading(WebView view, String urlStr) { | |
if (view.getHitTestResult().getType() > 0) { | |
Log.v("load", "click");// From a user click, handle it yourself. | |
Intent i = new Intent(Intent.ACTION_VIEW, AdViewClient.uri); | |
i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); | |
view.getContext().startActivity(i); | |
return true; | |
} else { | |
// Nothing clicked, assumed to be a redirect, let it redirect. From a user click, handle it yourself. |
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
http://dev.mysql.com/downloads/mysql/ | |
community server 5.1.xxxがおすすめ。 | |
MySQLは大文字小文字区別されない模様。 | |
create database sampledb character set utf8; | |
use sampledb; | |
create table sampletb (id integer, name varchar(64)); | |
show tables; | |
insert into sampletb(id, name) value(1, "hello"); |
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
mysql> select version(); |
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
JnIEnv* envとする(JNICALLで定義) | |
env->GetIntArrayElements(jintArray, isCopy); | |
配列の要素をコピーする。 | |
メモリにコピーするか、メモリを参照するかのいずれかはisCopyで選択。 | |
ex) Jint* _widths = env->GetIntArrayElements(widths, 0); | |
env->GetObjectArrayElement(objectArray, i); | |
指定した配列の内容をコピーする。 | |
多重配列から要素を取り出す際に使用する。 |
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
function testingTouch() { | |
var isTouch = ('ontouchstart' in window); | |
$('#hoge').bind({ | |
'touchstart mousedown' : function(e) { | |
e.preventDefault(); | |
this.pageX = ( isTouch ? event.changedTouches[0].pageX : e.pageX); | |
this.pageY = ( isTouch ? event.changedTouches[0].pageY : e.pageY); | |
this.left = $(this).position().left; |
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 apt-get install apache2 php5 php5-gd mysql-server php5-mysql phpmyadmin | |
すべてはいを選ぶ。 | |
mysqlパスワードは、とりあえずrootにした。 | |
http://localhost/ | |
でItWorks!が動けばOK. | |
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
http://www.apache.org/dist/httpd/binaries/win32/ | |
http://php.net/downloads.php | |
Pathを通す | |
C:/Apache2.2/bin | |
listen 80 | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride All |