Skip to content

Instantly share code, notes, and snippets.

package main
import (
"net/http"
"github.com/go-martini/martini"
"encoding/json"
"appengine"
"appengine/urlfetch"
)
/*
省略
*/
//JavaScript内でアクセスしに行くドメインを定義
String domain = "http://test.ekos.biz/";
//第1引数のbaseUrlにドメインを指定
webview.loadDataWithBaseURL( domain , htmlString, "text/html", "UTF-8", null );
WebView webview;
String htmlString = "<script>"+
"httpObj = new XMLHttpRequest();"+
"httpObj.open('GET', 'http://test.ekos.biz/android_loadDataWithBase.txt', false);"+
"xmlHttp.send(null);"+
"document.write(xmlHttp.responseText);"+
"</script>";
webview = (WebView)findViewById(R.id.webView);//layoutのWebView参照
webview.getSettings().setJavaScriptEnabled(true);
webview.loadDataWithBaseURL( null, htmlString, "text/html", "UTF-8", null );
<?php
$processUser = posix_getpwuid(posix_geteuid());
print $processUser['name'];
nohup /bin/sh /path/to/cake/app/Console/Command/cake -app /path/to/cake/app HogeHoge >/dev/null 2>&1 &
nohup /bin/sh /path/to/cake/app/Console/Command/cake -app /path/to/cake/app HogeHoge &
/usr/bin/php /path/to/cake/app/Console/Command/cake.php HogeHoge -app /path/to/cake/app &
ALTER TABLE hogehoge ALGORITHM = COPY, AUTO_INCREMENT= 10;
ALTER TABLE hogehoge ENGINE = MyISAM;
ALTER TABLE hogehoge AUTO_INCREMENT = 10;
ALTER TABLE hogehoge ENGINE = InnoDB;
ALTER TABLE hogehoge AUTO_INCREMENT = 10;