It's worked great!
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
var bytearray = new ByteArray(); |
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
トリムして比較しているのに全角空白が入っていたから | |
不一致となっていた |
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
var meta ='<meta name="viewport" content="width=device-width, initial-scale=0.5, maximum-scale=1.0, user-scalable=no">'; | |
var msg = ''; | |
msg = msg + "<h2>test</h2>"+req.method; | |
msg = msg + "<p>"+req.queryString + "</p>"; | |
var httpUtils = require('ringo/utils/http'); | |
// ファイルアップロードか判定する。 | |
if(httpUtils.isFileUpload(req.headers["content-type"])) { |
Webクリップを作成した最初の起動はうまく動くが、 2回目以降の起動では取得できていない模様
あと
<meta name="apple-mobile-web-app-capable" content="yes">
も、気になるし、
casualconc: @kana0355 ありがとうございます。今まさにそこを見てました。
kana0355: @casualconc つ http://t.co/EWy7uDEY
[14:38:39.095] 非同期で読み込まれた外部スクリプトからの document.write() の呼び出しは無視されました。 @ http://jsdo.it/blogparts/x9pa/js:1
exports.app = function(request) {
var path = request.pathInfo.slice(1) || "index";
// 1. resolve against actions
if (typeof actions[path] === "function") {
return actions[path](request);
}
// 2. resolve against public folder
var resource = getResource("./public/" + path);
Source code.
var fs = require('fs');
var face_detect = require('face-detect');
var Canvas = require('canvas')
, Image = Canvas.Image;
var gNum = 0;