public class WebViewActivity extends Activity {
private CustomWebView webView;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
This file contains hidden or 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
pkill -f "WirelessImporterDaemon" |
This file contains hidden or 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
■dbfluteの生成機能でS2JDBC用のエンティティを生成させる。 | |
https://www.seasar.org/svn/dbflute/trunk/dbflute-s2jdbc-example/ | |
1. サンプルゲット | |
svn co https://www.seasar.org/svn/dbflute/trunk/dbflute-s2jdbc-example/ dbflute-s2jdbc-example | |
2. サンプルの中から、dbfluteモジュールと、クライアントと、dbflute.diconをコピー | |
3. で、いろいろカスタマイズ(以下参照) |
This file contains hidden or 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
■鍵を作成 | |
ssh-keygen | |
■サーバーへの鍵の登録 | |
http://git-scm.com/book/ja/Git-%E3%82%B5%E3%83%BC%E3%83%90%E3%83%BC-SSH-%E5%85%AC%E9%96%8B%E9%8D%B5%E3%81%AE%E4%BD%9C%E6%88%90 | |
■gitインストール(linux系。windows maxはそれぞれダウンロード・インストール) | |
yum install git | |
sudo apt-get install git |
This file contains hidden or 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> show processlist; | |
ロックしているプロセスの削除 | |
mysql> kill [プロセスId]; | |
ユーザー追加 | |
権限確認 | |
SELECT User, Host FROM mysql.user; | |
SHOW GRANTS for root@localhost; |
This file contains hidden or 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
^((?!xxx).)+\r\n | |
(サクラエディタ) |
This file contains hidden or 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
//test.html | |
<!DOCTYPE html> | |
<!-- <html manifest="./cache.manifest"> --> | |
<html> | |
<head> | |
<title>My Page</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<script language="javascript"> | |
applicationCache.addEventListener("updateready", function() { | |
applicationCache.swapCache(); |
This file contains hidden or 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 class AccessTokenPublisher { | |
public static String publish() { | |
String time = new Long(System.currentTimeMillis()).toString(); | |
String rand = rand(); | |
return toEncryptedString(time + rand); | |
} | |
protected static String rand(){ | |
Random rnd = new Random(); |
This file contains hidden or 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
package jp.akyao.tool | |
import java.io.{ File, FileInputStream, FileOutputStream } | |
import scala.io.Source | |
import java.io.PrintWriter | |
object FileCopyForAndroid { | |
//TODO | |
val source_project_dir = "C:\\workspace\\SomethingAPI" |
NewerOlder