一个下午由于对HttpWebRequest 用得很少原因,折腾了一个晚上 接入正题:在C# 后台使用HttpWebRequest post数据的时候,提示 无法连接到服务器 最后通过googel https://www.experts-exchange.com/questions/20936810/ ...
分类:
其他好文 时间:
2019-04-16 01:15:42
阅读次数:
573
mydict = {"key1":"value1", "key2":"value2"} 在Django模板中查找字典值的常规方法是{{mydict.key1}},{{mydict.key2}}。如果键是循环变量怎么办?即: {% for item in list %} # list中元素,都有一个N ...
分类:
其他好文 时间:
2019-04-12 11:57:59
阅读次数:
234
问题是这样,如果我们知道两个向量v1和v2,计算从v1转到v2的旋转矩阵和四元数,由于旋转矩阵和四元数可以互转,所以我们先计算四元数。 我们可以认为v1绕着向量u旋转θ?角度到v2,u垂直于v1-v2平面。 四元数q可以表示为cos(θ/2)?+sin(θ/2)?u,即:q0?=cos(θ/2)?, ...
分类:
其他好文 时间:
2019-04-11 01:32:12
阅读次数:
233
镜像构建完毕的时候 准备传入自己hub发现 被拒绝 报了denied: requested access to the resource is denied异常,意思是没有权限 解决的办法是:使用 docker tag改名字 解决方案 参考 https://stackoverflow.com/que ...
分类:
数据库 时间:
2019-04-11 01:22:08
阅读次数:
2441
原文:WPF RoutedEvent and HitTest - 简书 学习的时候切忌心浮气躁,慢慢的过每一个知识点,不要漏掉任何细节。不然当遇到细节问题的时候,会恼,会闹,会悔不该当初——花一下午调bug最后只改了一个参数有感。 相信很多用过WPF的人都知道WPF中的路由事件。一般看书的话,这个知... ...
之前的方法我用字符串拼接、req.getParameter("参数名[]");或json方式。虽然都能用,但是都不太令我满意。 今天参考这个贴子,ajax添加 traditional: true,即可。后台用相应数组接收就行了。比如前台传递menuIds参数如图2,后台接收用Integer[]men ...
分类:
编程语言 时间:
2019-04-10 10:26:15
阅读次数:
273
来源于https://github.com/Advanced-Frontend/Daily-Interview-Question/blob/master/datum/summary.md 一天最少一道题,把看过的题整理一下 第 1 题:写 React / Vue 项目时为什么要在列表组件中写 key ...
分类:
其他好文 时间:
2019-04-08 13:44:25
阅读次数:
178
题目链接 https://www.nowcoder.com/practice/9b4c81a02cd34f76be2659fa0d54342a?tpId=13&tqId=11172&tPage=1&rp=1&ru=/ta/coding interviews&qru=/ta/coding interv ...
分类:
编程语言 时间:
2019-04-07 22:05:35
阅读次数:
206
This question is the same as "Max Chunks to Make Sorted" except the integers of the given array are not necessarily distinct, the input array could be ...
分类:
其他好文 时间:
2019-04-06 13:56:24
阅读次数:
125
题意 Language:DefaultTrue Liars Time Limit: 1000MSMemory Limit: 10000KTotal Submissions: 6392Accepted: 2080DescriptionAfter having drifted about in a sm ...
分类:
其他好文 时间:
2019-04-06 09:15:13
阅读次数:
133