铁皮饭盒

Results 102 issues of 铁皮饭盒
trafficstars

起初没理解为什么别人的文章中都说多个relu相加后可以形成多个线段形成数据. 主要不理解的就是这句:"**多个relu相加**". 看了[别人的文章](https://www.jianshu.com/p/e34a8679938e), 突然感觉好像懂了, 比如: 1/2层用了relu, 第1层接收的是`relu(x1)`, 那么到了第二次就成了`y2 = W * relu(x1)`, 这里因为W是张量, 那么就变成内积, 就出现了relu求和. 初学, 很多东西都不懂, 这里是个人理解, 不能保证正确, 权当做个笔记. ![image](https://user-images.githubusercontent.com/8264787/173321389-24896049-9413-4521-9df3-cf4afb2ac191.png) ![image](https://user-images.githubusercontent.com/8264787/173321424-64873ae3-0c90-4eea-beca-9f851c2913d5.png) ![image](https://user-images.githubusercontent.com/8264787/173321451-87d261b6-88e0-46de-a4b0-80785c970e50.png) 如果认同了我说的, 再看这个老师的讲解就通透了: https://www.bilibili.com/video/BV1Wv411K7o5?

https://codesandbox.io/s/charming-beaver-qq4ozv?file=/src/components/HelloWorld.vue 移动端会触发mouse事件, 这个是我之前不知道的, 所以我的手势库在"不阻止默认"的情况下, 在手机上touch/mouse都会触发. 如果touchstart内阻止默认了, 那么mouse相关事件都不会触发了. 这里只是记录, 稍后版本要做些兼容 ```javascript this.$el.addEventListener('touchstart', e=>{ e.preventDefault(); }) this.$el.addEventListener('mousedown', e=>{ e.preventDefault(); }) this.$el.addEventListener('mouseup', e=>{ alert(e.type) }) ```

enhancement

```css /*横屏*/ @import url('landscape.css') screen and (orientation:landscape); /*竖屏*/ @import url('portrait.css') screen and (orientation:portrait); ```

``` channels: - defaults show_channel_urls: true default_channels: - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2 custom_channels: conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud pytorch-lts: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud ``` 参考:...

![image](https://user-images.githubusercontent.com/8264787/163778366-5d13e1d2-bccf-4f37-abf8-225cc21d7b74.png) 是因为local override本地存储的时候要用"网址"去新建文件夹, 而我的网址上有端口号":8086", 这个字符在window下没法用在文件夹上, 所以就没法建立文件夹. 就这么简单... 所以: 用nginx重新做了一个代理, 代理成一个没有端口号的ip地址完美解决.

为了开发效率以及可维护, 设计了如下标准. ## 接口返回值要求 错误代码仅用 http 状态码表示, 如: |状态码|描述| |---|---| |200|成功| |401|无权限| |301-400 & 402-5xx|各种错误, 下面会解释[为什么](#user-content-为什么这么表示) | 返回值内容依然还是 JSON 表示, 要求只返回需要的数据, 一般情况如下: ```JSON // 增删改 { "msg": "添加/编辑/删除成功/xxx", } ```...

```javascript const User = mongoose.model('user', schema); ``` 如果使用"User"新增了数据, 默认会在库中新建"users"collection, 如果想操作"user", 那么就要用到第三个参数: ```javascript const User = mongoose.model('users', schema,'users'); ```

## 安装mongo ```shell docker pull mongo ``` ## 初始化容器 ```shell docker run -d -p 27017:27017 -v /data/mongo/database:/data --name mongo mongo --auth ``` **解释下参数**: `-p`: 把容器中的docker的端口映射到真实的服务器, 语法: `服务器端口 : 容器内端口` `-v`:...

虽然登陆成功了, 但是还是lerna publish还是401, 这是为什么? 实际如果不是命令行触发的npm命令都可能出现401, 所以出现401尽量在命令行执行一边npm xxx尝试解决

```javascript type Compare = (pivotItem: T, currentItem: T) => number; /** * 比较函数 * @param pivotItem 待比较值 * @param currentItem 当前值 * @returns 数组,大于0正序,反之倒序 */ function compareNumber(pivotItem: number, currentItem: number):...