新月の開発

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
合から朔に乗り換えたけどめちゃくちゃ軽い
合の方が軽いと思ってたのに意外
ebfd86eb anonymous 2018-09-30 00:17
合はGolangだからC並みの早さのはずなんだけどなぁ

朔の公開ノード設置したけどログでは外部のノードにGETしにいってるようだが
どうも新着に板は現れない
いろいろ調査中...
b3116d51 anonymous 2018-09-30 21:33
>>ebfd86eb
もう一度Cloneし直したら普通に建てれた
同期前にスレを建てると崩れるみたいだ要注意
253c7ae2 anonymous 2018-10-01 11:46
少し昔のスタイルだがbootstrapのおかげで古臭くはない
P2PをGETで実現するのはどこでも動きそうな良いアイデアだと思う
86a447b1 anonymous 2018-10-01 16:23
ダンディ坂野「ゲッツ‼️」
6910d6ed anonymous 2018-10-01 16:39
ひあうぃーごー(Golang
5c966174 anonymous 2018-10-26 00:48
 _____   _                  _____       _   _                
|_   _| | |                |  __ \     | | | |                
  | |   | | _____   _____  | |__) |   _| |_| |__   ___  _ __  
  | |   | |/ _ \ \ / / _ \ |  ___/ | | | __| '_ \ / _ \| '_ \
 _| |_  | | (_) \ V /  __/ | |   | |_| | |_| | | | (_) | | | |
|_____| |_|\___/ \_/ \___| |_|    \__, |\__|_| |_|\___/|_| |_|
                                   __/ |                      
                                  |___/                      
ぱいそんをすこれ
99a4926f anonymous 2019-04-19 13:20
新月のこれからの進化に期待しています。
暗号通貨で匿名性にフォーカスした技術が新しい暗号通貨を産んだりしているので、
「こういう技術の進歩がP2P掲示板にも生かされたらいいなぁ…」と棚に向かってぼたもちが落ちてくるのを待つ日々です。
あっちはお金が絡むので必死度が違いますね。

【有望プロジェクト紹介】③ MimbleWimble Protocol (Beam/Grin)
https://medium.com/crypto-reviews-by-ryu/%E6%9C%89%E6%9C%9B%E3%83%97%E3%83%AD%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E7%B4%B9%E4%BB%8B-%E2%91%A2-mimblewimble-protocol-635898807b16
f5090d4e anonymous 2019-04-19 21:08
暗号通貨なら開発者儲かるけど
新月いくら開発しても金にならんから
集まらんわな

残念ながら
d4fa00a1 anonymous 2019-04-19 22:10
暗号通貨採用してるzeronetは開発者に結構な額の寄付集まってるな
a7c12fcf anonymous 2019-04-20 21:00
一開発者だけど趣味に金いらんし
e6f0a3d8 anonymous 2019-04-20 21:53
金が絡むと金目野郎も増えるけど
優秀な開発者が集中して開発してくれるのも事実

ただ新月にはそれは望まんが
1c459642 anonymous 2019-04-21 04:17
お金が絡まないとなるとそれはそれでおかしな方が集って崩壊してしまう事もある事実
506db3a1 anonymous 2019-04-21 21:24
要するに運営が適切なら金は関係無いという事だな
6eb13a06 anonymous 2019-04-22 01:06
この運営管理する人間がいらない掲示板ってコンセプトのシステムは適切に運営されてるよな
8561fe49 anonymous 2019-05-21 20:08
https://www.python.org/dev/peps/pep-0594/ Python3.10から不要と判断された標準ライブラリが削除されるらしい。新月に影響あるが逆さの話だから頭においとけばいい。
https://github.com/shingetsu/saku/blob/master/shingetsu/gateway_cgi.py
cgiどうするかね
b222f64d anonymous 2019-05-21 21:41
なぜCGIがいらない子扱いされるのか?
主観まんまんだし却下されるかもしれんな
4c5287dd anonymous 2019-05-21 23:48
CGI自体に非対応にしてしまうんはさすがに自殺行為だと思う
ここで日本語で言っても向こうへ届くわけでもないが・・・
8f898008 anonymous 2019-05-22 11:25
プログラムを全く知らない人間が横から口出しして申し訳ないけど、自動翻訳読む限り、
より効率的な新しいプロセスで処理できる、って事ではないの?
(書き直す人に負担を押し付ける形になって申し訳ないけど)
> cgiモジュールは、Common Gateway Interface(CGI)スクリプト用のサポートモジュールです。
> すべての着信要求は新しいプロセスで処理されるため、CGIは非効率的と見なされます。
> PEP 206では、モジュールの設計が不十分であり、修正が不可能に近いと考えています 。
> 何人かの人々が、 cgi.parse_qs()のような機能のためにcgiモジュールを保持するか、 cgi.escape()を別のモジュールに移動することを提案しました。
> 関数cgi.parse_qsとcgi.parse_qslはしばらくの間非推奨であり、実際にはurllib.parse.parse_qsとurllib.parse.parse_qslのエイリアスです。
> 関数cgi.quoteは、安全なデフォルト値を持つhtml.quoteを支持して非推奨になりました。

あとは3.9のまま2026年まで引っ張るか。
パーサーという仕組みを使っている場合は3.8じゃないとダメっぽいけど…
gateway_cgi.pyにはparseって単語が含まれてないからセーフ?
> Python 3.9から、非推奨のモジュールはDeprecationWarningを発行し始めます。
> parserモジュールは削除され、潜在的に新しいモジュールと置き換えられます。
> 他のすべての非推奨モジュールは完全にサポートされており、Python 3.9がその寿命を迎えるまでセキュリティアップデートを受け取ります。
> Python 3.9.0は​​3.8.0から約18か月後(2021年4月?)にリリースされ、おそらくリリース後5年間サポートされるでしょう。
> Python 3.9の推定EOLは2026年です。

素人考えでごめん。
6535657c anonymous 2019-05-22 18:24
LightCGIHTTPServerとかかぶせてるし大丈夫
437d124b anonymous 2019-05-23 07:39
cgiモジュールはCGIでよく使う機能が集まった便利なやつで、
機能が多すぎて肥大化してると思ってたから、廃止もやむないかな。
parse系のように代替機能があれば置き換える。
cgi.FieldStorage なんかは代替が用意されないかもしれないので、
そういうのは現行のをコピればよさそう。
f1e6a963 anonymous 2019-05-23 07:41
あとLightCGIHTTPServerも今となっては古いので
mchと同じwsgirefに乗り換えるべきだとは数年前から思ってはいるけど、
全くやる気が出ないので放置している。
172f1a12 anonymous 2019-06-07 01:24
何故にjinja2とmarkupsafeをソースに織り込んでいるのですか?
pipでのインストールで良さそうに感じるのだが
fbc653fe anonymous 2019-06-07 09:56
>>172f1a12
ダウンロードしてダブルクリックしたら実行できる、という手軽さのため。
752ea7b8 anonymous 2019-06-07 13:47
>>fbc653fe
なるほど、了解しました。
65413c93 anonymous 2019-07-29 19:08
Expose local servers to the internet
https://serveo.net/

こういうの使えばポト0マシンでも
新月使える?
886b8a74 anonymous 2019-09-01 19:24
UAがshinGETsu plusになってるノードって何なんだろう
569bfac3 anonymous 2019-09-02 15:12
>>886b8a74
gouかな?

https://github.com/shingetsu-gou/shingetsu-gou/blob/master/node/node.go#L86
c3eb08aa anonymous 2020-01-09 20:17
ポート開放せず接続できない問題をなんと言ったが教えてくれ
0ポート問題とかなんとか
11e09aa5 anonymous 2020-01-09 20:51
>>c3eb08aa
「port0 site:http://shingetu.0g0.jp:8000」で検索
5ee8e5bd anonymous 2020-01-15 17:36
>>11e09aa5
ありがとうなす!
UDP hole punchingの実装をいろいろ考えているこの頃
f481ccbe anonymous 2020-01-21 20:53
>>8561fe49
>>8f898008
辺りに書いてあった要素の廃止がちょっとずつ進行中のようで
./shingetsu/thread_cgi.pyの192行目にあるcgi.escapeはpython 3.8から削除されたらしいのでアップデートする人は注意

https://docs.python.org/3/whatsnew/3.8.html
>parse_qs, parse_qsl, and escape are removed from the cgi module. They are deprecated in Python 3.2 or older. They should be imported from the urllib.parse and html modules instead.

先頭にimport html追加して該当部分をhtml.escapeに書き換えて対処可能みたいです
ca912b5c anonymous 2020-01-22 01:42
数年ぶりに見にきた、新しい機能というよりは保守管理が主軸になっているのかな
a377dea2 anonymous 2020-01-22 12:22
>>f481ccbe
ありがとうございます
https://github.com/shingetsu/saku/commit/cfd17a2e71d5c66e2a94123b2e189d06125f637d
cda7df7c anonymous 2020-02-28 20:26
ありゃ rep4649.ddo.jp消えてるのか
4a492613 anonymous 2020-02-29 21:39
>>cda7df7c
復旧してみました
アクセスできますか?
d8d31bd9 anonymous 2020-03-03 00:47
>>4a492613
お疲れさまです 見えてます せっかくなので書き込みテスト
55a6cfc1 anonymous 2020-10-09 14:30
mypyでtypingの世界を体験しようぜ

Top of this page. | <<last <<new 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 old>>

limit: 1536KB

(新月の開発/60990/44.2MB)

Powered by shinGETsu.