Jian Li

Results 6 issues of Jian Li

When two tables' relationship remains(one2one, one2m e.g.), but the edge owner has changed from one table to the other, migration should be able to rename the foreign key column automatically....

``` function getIdFromURL (url) { var id = url.replace(youtubeRegexp, '$1'); // when url doesn't match youtubeRegexp, url.replace() will return url itself if (id.includes(';')) { var pieces = id.split(';'); if (pieces[1].includes('%'))...

``` python f __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings") ``` 这里 `DJANGO_SETTING_MODULE` 应该是 `settings`。

Safari only issue. 比如 twitter.com。 初步调查可能是 Safari 或者 Twitter 的 bug ,因为插件使用了微软的 fluentui React library, 会下载自己的 web fonts ,而 Twitter 设置了 font-src CSP 禁止了从第三方加载字体。问题是字体的下载和因违反 CSP 导致的后续 CSP reports 请求在 Twitter...

某些网站,比如 MDN, GitHub, Hacker News 因为设置了 [media-src](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/media-src) csp,不允许从第三方网站或 CDN 加载 media,因此点击发音无反应,而且无法绕过。 在这里记下来作为 FAQ。

1. https://a-programmers-guide-to-english.harryyu.me/resources/