新月の開発

開発

1af0f3cf anonymous 2017-08-30 06:38
昨晩落ちたgouのログがここで終わってる
リネームしたmessage-en.txtを突っ込んで試してみる
2017/08/29 23:47:34 message.go:55: Asset file/message-en-US.txt not found
2017/08/29 23:47:34 message.go:69: message file was not found
778a3329 anonymous 2017-08-30 07:44
>>431a0d22
logのonwerががrootになって、一般ユーザで追記できないとか。
しらんけど
94c691d5 anonymous 2017-08-30 07:58
>>778a3329
そんな感じ
d6ab2811 anonymous 2017-08-30 08:42
saku暴走するし取得が上手く行かなくなったのでgouだけ稼働中
しかしgouもuser.go:54: bucket not found usertagが大量に残ってるのが気になる
e818c03e anonymous 2017-08-30 09:02
>>d6ab2811
実行環境でgouビルドしても変化なし
まあ落ちなければいいか
4dc4a847 anonymous 2017-08-30 09:11
>>e818c03e
> しかしgouもuser.go:54: bucket not found usertagが大量に残ってるのが気になる
それ適当なスレッドにタグをつけると無くなるよ
代わりにkey not foundというログがでてくるけどなw

gouでレスポンスが遅くなる問題もでてきているので、そのへんも時間が出来たら直したいな
91f363f6 anonymous 2017-08-30 09:44
>>4dc4a847
なるほどー
0.2.7とmasterを同時に動かしてるけど、今日は問題は起きてません
前に落ちまくってたのはroot権限云々が関係してそう
b4a15c23 anonymous 2017-08-30 13:17
gou0.2.7が落ちたのを確認。昨日もYandexbotの後だった
message.go:55: Asset file/message-en-US.txt not found
unstableは問題なし
7713e464 anonymous 2017-08-30 18:46
>>b4a15c23
そのバグは、このコミットで修正されてます。
https://github.com/shingetsu-gou/shingetsu-gou/commit/527594965d4af7828083d820319f7b60ef0dfaef
277ad7b0 anonymous 2017-09-20 14:36
朔は使ったことないから分からないけど、合って保持スレ数多くなるとめちゃくちゃ重くならない?
トップページ表示もかなり時間掛かったりとか
何がボトルネックになっているんだろう
bb098af7 anonymous 2017-09-22 19:36
ブラウザからトップページにアクセスすると端末に「TypeError: 'NoneType' object is not subscriptable」って出てブラウザには何も表示されないんだけど何故
朔の最新版使ってる
a1a873de anonymous 2017-09-22 19:40
File "~/saku-release-4.8.0/shingetsu/gateway.py", line 153, in __init__
    'lang': self.message['lang'],
a88d6984 anonymous 2017-09-22 20:18
cdの問題だった
8015ae41 anonymous 2017-09-23 12:09
朔ってmoonlight機能廃止されたのか
残念
e3967852 anonymous 2017-09-23 13:23
moonlightと同じような動作するブックマークレット作った。先頭にjavascirpt:付ければ動くよ
# 元ソース
(async()=>{
let res=await fetch("/gateway.cgi/csv/recent/title,size");
let text=await res.text();
let list=text.split("\n").map(p=>p.split(",")).filter(x=>x.length===2).filter(x=>x[1]==="0\r").map(x=>x[0]);
console.log(list.length);
for(let name of list){
        await fetch("/thread.cgi/"+encodeURIComponent(name)+"?search_new_file=yes");
}
})()
# babelトランスパイル版
"use strict";

(function _callee() {
        var res, text, list, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, name;

        return regeneratorRuntime.async(function _callee$(_context) {
                while (1) {
                        switch (_context.prev = _context.next) {
                                case 0:
                                        _context.next = 2;
                                        return regeneratorRuntime.awrap(fetch("/gateway.cgi/csv/recent/title,size"));

                                case 2:
                                        res = _context.sent;
                                        _context.next = 5;
                                        return regeneratorRuntime.awrap(res.text());

                                case 5:
                                        text = _context.sent;
                                        list = text.split("\n").map(function (p) {
                                                return p.split(",");
                                        }).filter(function (x) {
                                                return x.length === 2;
                                        }).filter(function (x) {
                                                return x[1] === "0\r";
                                        }).map(function (x) {
                                                return x[0];
                                        });

                                        console.log(list.length);
                                        _iteratorNormalCompletion = true;
                                        _didIteratorError = false;
                                        _iteratorError = undefined;
                                        _context.prev = 11;
                                        _iterator = list[Symbol.iterator]();

                                case 13:
                                        if (_iteratorNormalCompletion = (_step = _iterator.next()).done) {
                                                _context.next = 20;
                                                break;
                                        }

                                        name = _step.value;
                                        _context.next = 17;
                                        return regeneratorRuntime.awrap(fetch("/thread.cgi/" + encodeURIComponent(name) + "?search_new_file=yes"));

                                case 17:
                                        _iteratorNormalCompletion = true;
                                        _context.next = 13;
                                        break;

                                case 20:
                                        _context.next = 26;
                                        break;

                                case 22:
                                        _context.prev = 22;
                                        _context.t0 = _context["catch"](11);
                                        _didIteratorError = true;
                                        _iteratorError = _context.t0;

                                case 26:
                                        _context.prev = 26;
                                        _context.prev = 27;

                                        if (!_iteratorNormalCompletion && _iterator.return) {
                                                _iterator.return();
                                        }

                                case 29:
                                        _context.prev = 29;

                                        if (!_didIteratorError) {
                                                _context.next = 32;
                                                break;
                                        }

                                        throw _iteratorError;

                                case 32:
                                        return _context.finish(29);

                                case 33:
                                        return _context.finish(26);

                                case 34:
                                case "end":
                                        return _context.stop();
                        }
                }
        }, null, undefined, [[11, 22, 26, 34], [27,, 29, 33]]);
})();
42380116 anonymous 2017-09-23 13:30
babelトランスパイル版ミスった
こっち
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (this && this.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [0, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var _this = this;
(function () { return __awaiter(_this, void 0, void 0, function () {
    var res, text, list, _i, list_1, name;
    return __generator(this, function (_a) {
        switch (_a.label) {
            case 0: return [4 /*yield*/, fetch("/gateway.cgi/csv/recent/title,size")];
            case 1:
                res = _a.sent();
                return [4 /*yield*/, res.text()];
            case 2:
                text = _a.sent();
                list = text.split("\n").map(function (p) { return p.split(","); }).filter(function (x) { return x.length === 2; }).filter(function (x) { return x[1] === "0\r"; }).map(function (x) { return x[0]; });
                console.log(list.length);
                _i = 0, list_1 = list;
                _a.label = 3;
            case 3:
                if (!(_i < list_1.length)) return [3 /*break*/, 6];
                name = list_1[_i];
                return [4 /*yield*/, fetch("/thread.cgi/" + encodeURIComponent(name) + "?search_new_file=yes")];
            case 4:
                _a.sent();
                _a.label = 5;
            case 5:
                _i++;
                return [3 /*break*/, 3];
            case 6: return [2 /*return*/];
        }
    });
}); })();
0fc0af8f anonymous 2017-09-23 13:42
gistにうpした
https://gist.github.com/kgtkr/8ac0111105219082737a26bf77ff9029
d0baa89d anonymous 2017-09-23 13:49
>>92da2a52
ばーじょんあっぷ
https://pastebin.com/TzU5TbXT
81f8357d anonymous 2017-09-23 14:26
>>d0baa89d
乙です
02792af6 anonymous 2017-09-23 20:40
合から朔に乗り換えたけどめちゃくちゃ軽い
合の方が軽いと思ってたのに意外

Top of this page. | 0 1 2 3 4 5 6 7 8 9 old>>

limit: 1536KB

開発

(新月の開発/190/1.7MB)

Powered by shinGETsu.