{"id":3187,"date":"2022-08-04T22:52:39","date_gmt":"2022-08-04T13:52:39","guid":{"rendered":"https:\/\/k.foolslab.net\/dailyreport\/?p=3187"},"modified":"2022-08-04T22:52:39","modified_gmt":"2022-08-04T13:52:39","slug":"2022-8-4","status":"publish","type":"post","link":"https:\/\/k.foolslab.net\/dailyreport\/2022-8-4\/","title":{"rendered":"2022\/8\/4(\u6728)"},"content":{"rendered":"\n<p>\u671d\u3001\u304b\u306a\u308a\u9045\u304f\u307e\u3067\u5bdd\u3066\u3057\u307e\u3063\u305f\u300210:30\u304f\u3089\u3044\u306b\u3088\u3046\u3084\u304f\u8d77\u304d\u305f\u3002\u4e45\u3057\u3076\u308a\u306e\u7b4b\u30c8\u30ec\u304c\u305d\u3093\u306a\u306b\u52b9\u3044\u305f\u306e\u3060\u308d\u3046\u304b\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>Rust\u3068Vue\u3092\u4f7f\u3063\u3066\u7c21\u6613\u7684\u306a\u30b3\u30e1\u30f3\u30c8\u30b7\u30b9\u30c6\u30e0\u3092\u958b\u767a\u4e2d\u3002<\/p>\n\n\n\n<p>CORS\u95a2\u4fc2\u306e\u51e6\u7406\u306b\u624b\u9593\u53d6\u3063\u305f\u3002\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30b5\u30fc\u30d0\u306fhttp:\/\/localhost:3000\/\u3001vite\u306b\u3088\u308b\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u958b\u767a\u30b5\u30fc\u30d0\u306fhttp:\/\/localhost:5173\/\u3067\u52d5\u304f\u306e\u3067\u30aa\u30ea\u30b8\u30f3\u304c\u5909\u308f\u3063\u3066\u3057\u307e\u3046\u3002\u5b9f\u969b\u306b\u52d5\u304b\u3059\u3068\u304d\u306b\u306f\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30b5\u30fc\u30d0\u304b\u3089\u30d3\u30eb\u30c9\u6e08\u307f\u306e\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3092\u8aad\u307f\u8fbc\u3093\u3067\u914d\u4fe1\u3059\u308b\u3064\u3082\u308a\u306a\u306e\u3067CORS\u306e\u554f\u984c\u306f\u51fa\u306a\u3044\u306e\u3060\u304c\u3001\u958b\u767a\u4e2d\u306f\u30db\u30c3\u30c8\u30ea\u30ed\u30fc\u30c9\u3092\u4f7f\u3044\u5012\u3057\u305f\u3044\u306e\u3067\u5206\u3051\u3056\u308b\u3092\u5f97\u306a\u3044\u3002<\/p>\n\n\n\n<p>\u958b\u767a\u52b9\u7387\u3092\u4e0a\u3052\u308b\u305f\u3081\u306e\u30db\u30c3\u30c8\u30ea\u30ed\u30fc\u30c9\u3092\u4f7f\u3046\u305f\u3081\u306b\u958b\u767a\u306e\u6642\u9593\u3092\u98df\u3063\u3066\u3044\u308b\u306e\u3060\u304b\u3089\u672c\u672b\u8ee2\u5012\u306a\u6c17\u304c\u3057\u306a\u304f\u3082\u306a\u3044\u304c\u3001CORS\u306e\u52c9\u5f37\u3092\u3057\u305f\u3044\u3068\u3044\u3046\u306e\u3082\u3042\u308b\u306e\u3067\u3061\u3083\u3093\u3068\u3084\u3063\u305f\u3002<\/p>\n\n\n\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u30b5\u30fc\u30d0\u53cc\u65b9\u306e\u5b9f\u88c5\u304c\u5fc5\u8981\u306b\u306a\u308b\u3002fetch API\u3067\u3084\u3063\u3066\u3044\u304f\u5834\u5408\u3001<code>mode: 'cors'<\/code>\u304c\u5fc5\u8981\u3089\u3057\u3044\u3002\u3055\u3089\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u306a\u3069\u3092\u9001\u308b\u5834\u5408\u306f<code>credentials<\/code>\u306e\u6307\u5b9a\u3082\u8981\u308b\u3002\u3053\u3046\u3057\u305f\u6307\u5b9a\u3092\u3059\u308b\u3068\u30ea\u30af\u30a8\u30b9\u30c8\u306b<code>Origin<\/code>\u30d8\u30c3\u30c0\u304c\u4ed8\u304f\u3002\u305d\u308c\u306b\u30b5\u30fc\u30d0\u5074\u304c<code>Access-Control-Allow-Origin<\/code>\u3068\u304b\u306e\u30d8\u30c3\u30c0\u3092\u8fd4\u3059\u3053\u3068\u3067CORS\u304c\u8a31\u53ef\u3055\u308c\u308b\u306e\u3060\u3002<\/p>\n\n\n\n<p>\u305d\u3057\u3066\u3053\u308c\u306ftext\/plain\u3084multipart\/form-data\u3092\u8ef8\u3068\u3057\u305f\u300c\u5358\u7d14\u30ea\u30af\u30a8\u30b9\u30c8\u300d\u306e\u5834\u5408\u306e\u8a71\u3002text\/json\u306a\u3069\u3092\u9001\u308d\u3046\u3068\u3059\u308b\u3068\u3055\u3089\u306bpreflight\u3068\u304b\u3092\u98db\u3070\u3057\u3066\u78ba\u8a8d\u3092\u3068\u308b\u3053\u3068\u306b\u306a\u308b\u3002\u3053\u306e\u8fba\u306e\u52d5\u4f5c\u306f\u30d6\u30e9\u30a6\u30b6\u304c\u3084\u3063\u3066\u304f\u308c\u308b\u306e\u3067\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306e\u5b9f\u88c5\u7684\u306b\u306f\u5358\u7d14\u30ea\u30af\u30a8\u30b9\u30c8\u304b\u3069\u3046\u304b\u3092\u610f\u8b58\u3059\u308b\u5fc5\u8981\u306f\u306a\u3044\u306e\u3060\u304c\u3001\u30b5\u30fc\u30d0\u5074\u3067\u306f\u5358\u306b\u30d8\u30c3\u30c0\u3092\u8ffd\u52a0\u3057\u3066\u98db\u3070\u3059\u3060\u3051\u3068\u3044\u3046\u8a33\u306b\u306f\u3044\u304b\u306a\u304f\u306a\u308b\u3002\u304c\u3001actix\u306f\u3053\u306e\u8fba\u6709\u80fd\u3067\u3001actix-cors\u30af\u30ec\u30fc\u30c8\u3092\u4f7f\u3063\u3066\u5c02\u7528\u306e\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u3092\u8ffd\u52a0\u3059\u308b\u3068\u7c21\u5358\u306b\u89e3\u6c7a\u3059\u308b\u3002\u7d20\u6674\u3089\u3057\u3044\u3002<\/p>\n\n\n\n<p>\u8a71\u306f\u5909\u308f\u308b\u3002diesel\u3067postgreSQL\u306einet\u578b\u3092\u4f7f\u7528\u3057\u3088\u3046\u3068\u3057\u305f\u306e\u3060\u304c\u3001ipnetwork\u30af\u30ec\u30fc\u30c8\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c0.18.0\u3067\u306a\u3044\u3068\u52d5\u304b\u306a\u3044\u3088\u3046\u3060\u3063\u305f\u3002\u8abf\u3079\u305f\u308f\u3051\u3067\u306f\u306a\u304f\u8a66\u884c\u932f\u8aa4\u3057\u3066\u767a\u898b\u3057\u305f\u3002<\/p>\n\n\n\n<p>Rust\u754c\u9688\u306f\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u304c\u9069\u5f53\u3060\u3068\u524d\u306b\u8ab0\u304b\u304c\u8a00\u3063\u3066\u3044\u3066\u672c\u5f53\u304b\u3088\u3068\u601d\u3063\u3066\u3044\u305f\u304c\u3001\u672c\u5f53\u3060\u3063\u305f\u3089\u3057\u3044\u3002npm\u3060\u3063\u305f\u3089\u3053\u3046\u3044\u3046\u3068\u3053\u308d\u306f\u52dd\u624b\u306b\u300c0.18.0\u3058\u3083\u306a\u3044\u3068\u30c0\u30e1\u306a\u3093\u3067\u30d0\u30fc\u30b8\u30e7\u30f3\u4e0b\u3052\u3068\u304d\u307e\u3059\u306d\u30fc\u300d\u307f\u305f\u3044\u306b\u3057\u3066\u304f\u308c\u308b\u3068\u3053\u308d\u3060\u3002\u305b\u3063\u304b\u304f\u7d20\u6674\u3089\u3057\u3044\u8a00\u8a9e\u306a\u306e\u3060\u304b\u3089\u3053\u3093\u306a\u3068\u3053\u308d\u3067\u8a55\u4fa1\u3092\u4e0b\u3052\u306a\u3044\u3067\u6b32\u3057\u3044\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u6628\u65e5\u306f\u8155\u7acb\u3066\u3092\u3084\u3063\u305f\u306e\u3067\u8179\u7b4b\u3092\u3084\u3063\u305f\u3002\u8155\u7acb\u3066\u306f\u8179\u7b4b\u306b\u3082\u52b9\u304f\u306e\u3067\u3001\u5c11\u3057\u6628\u65e5\u306e\u5206\u306e\u7b4b\u8089\u75db\u304c\u307e\u3060\u6b8b\u3063\u3066\u3044\u305f\u304c\u3001\u307e\u3042\u3044\u3044\u3084\u3068\u3044\u3046\u3053\u3068\u3067\u3084\u3063\u305f\u3002<\/p>\n\n\n\n<p>\u4e45\u3057\u3076\u308a\u306b\u3084\u3063\u305f\u3089\u4e0a\u4f53\u3092\u5c11\u3057\u6301\u3061\u4e0a\u3052\u308b\u59ff\u52e2\u3092\u4fdd\u3064\u3060\u3051\u3067\u3077\u308b\u3063\u3077\u308b\u3059\u308b\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u4eca\u65e5\u89e3\u3044\u305f\u7af6\u30d7\u30ed\u306e\u554f\u984c\u3002\u6700\u8fd1\u30e2\u30c1\u30d9\u304c\u304b\u3089\u3063\u304d\u3057\u3002<\/p>\n\n\n\n<p>ABC262-D: 1\u500b\u9078\u3076\u5834\u5408\u304b\u3089N\u500b\u9078\u3076\u5834\u5408\u307e\u3067\u305d\u308c\u305e\u308c\u306b\u3064\u3044\u3066\u8a08\u7b97\u3059\u308b\u3002C\u500b\u9078\u3076\u3068\u304d\u306bC\u306e\u500d\u6570\u306b\u306a\u3063\u3066\u3044\u308c\u3070\u3088\u3044\u306e\u3067\u3001mod C\u3067\u306e\u5404\u91cd\u3055\u306b\u304a\u3051\u308b\u500b\u6570\u3092\u8abf\u3079\u308b\u3002dp[i][j][k]:=(i\u756a\u76ee\u307e\u3067\u898b\u3066j\u500b\u9078\u3093\u3060\u6642\u306b\u91cd\u3055\u304cmod C\u3067k\u3068\u306a\u308b\u9078\u3073\u65b9\u306e\u6570)\u3068\u3057\u3066DP\u3059\u308b\u3002\u3053\u308c\u30921\u2266C\u2266N\u306b\u3064\u3044\u3066\u5168\u90e8\u3084\u308c\u3070\u3044\u3044\u306e\u3067$O(N^4)$\u3067\u89e3\u3051\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u671d\u3001\u304b\u306a\u308a\u9045\u304f\u307e\u3067\u5bdd\u3066\u3057\u307e\u3063\u305f\u300210:30\u304f\u3089\u3044\u306b\u3088\u3046\u3084\u304f\u8d77\u304d\u305f\u3002\u4e45\u3057\u3076\u308a\u306e\u7b4b\u30c8\u30ec\u304c\u305d\u3093\u306a\u306b\u52b9\u3044\u305f\u306e\u3060\u308d\u3046\u304b\u3002 Rust\u3068Vue\u3092\u4f7f\u3063\u3066\u7c21\u6613\u7684\u306a\u30b3\u30e1\u30f3\u30c8\u30b7\u30b9\u30c6\u30e0\u3092\u958b\u767a\u4e2d\u3002 CORS\u95a2\u4fc2\u306e\u51e6\u7406\u306b\u624b\u9593\u53d6\u3063\u305f\u3002\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30b5\u30fc &hellip; <\/p>\n<div><a href=\"https:\/\/k.foolslab.net\/dailyreport\/2022-8-4\/\" class=\"more\">Read more &raquo;<span class=\"screen-reader-text\"> &#8220;2022\/8\/4(\u6728)&#8221;<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3187","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/3187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/comments?post=3187"}],"version-history":[{"count":3,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/3187\/revisions"}],"predecessor-version":[{"id":3190,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/3187\/revisions\/3190"}],"wp:attachment":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/media?parent=3187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/categories?post=3187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/tags?post=3187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}