导入Microsoft.Office.Interop.Word.dll后,运行报错
调试程序,报错如下:错误 1 无法从程序集“g:\aabbcc\bin\Debug\Microsoft.Office.Interop.Word.dll”中嵌入互操作类型,因为该程序集缺少“ImportedFromTypeLibAttribute”特性或“PrimaryInteropAssemblyAttribute”特性 。解决方案:右键该dll文件: 【属性】: 嵌入互操作类型 True...
C#封装实现圆角panel的自定义控件
public partial class ucRoundPanel : UserControl
{
public ucRoundPanel()
{
InitializeComponent();
}
public int _Radius;
public int _setRoundRadiu...
C#无法将顶级控件添加到控件
_frmStructuralIndicatorsMain.TopLevel = false;
_frmStructuralIndicatorsMain.Parent = this.pnlEmptyDocumentInfo;
_frmStructuralIndicatorsMain.Show();
C#执行Application.Run启动窗体时,报错 An unhandled exception of type 'System.TypeInitializationException'
解决方案: 右键项目, build -> Platform target 改为x86
重新运行即可
拦截双击标题栏、移动窗体的系统消息
protected override void WndProc(ref Message m)
{
if (m.Msg != 0xA3 && m.Msg != 0x0003 && m.WParam != (IntPtr)0xF012)
{
base.WndP...
C#重绘tabControl的tabPage标签
添加控件的DrawItem事件:书写代码如下
Graphics g = e.Graphics;
Font font = new Font("微软雅黑", 14f, System.Drawing.GraphicsUnit.Pixel);
SolidBrush brush = new SolidBrush(C...
响应式网站 布局 response
一. 响应式布局:
响应式优缺点:
优点: 节省时间,减少工作量,每个设备都得到正确的设计,搜索优化...
缺点: 加载更多的样式和脚本资源,设计较难的的精确控制,老版本兼容性不好...
响应式网站设计实践原则:
渐进增强
优雅降级
主要知识点:
@media
响应式单位 rem
picture 响应式图片
网站
https://jeft-hai.github.io/respo...
搭建网站服务器
一. 本地连接
ssh 连接
ssh [email protected].***.***;
之后输入密码;如果refused ,查看是不是服务器远程连接没登录呢。
winScp 连接
用户名:root; 密码:服务器密码;
二. ubuntu上安装node配置
node 中文网: http://nodejs.cn/download/
node.js 可查看稳定版本 https://nodejs....
配置nginx二级域名
服务器端
设置安全组规则
解析设置
这样对应的ip就可以用网址代替,但是还有端口。
nginx.conf
该文件下 :
include /usr/local/nginx/conf/vhosts/*;
vhosts中建立目录 *.conf
server{
listen 80;
server_name imooc.jeft-hai.top;
root /www/imooc;...
loading库 + iconfont字体库
loading库
https://icons8.com/preloaders/en/free;
https://loading.io/
iconfont字体库
阿里巴巴矢量库 : http://www.iconfont.cn/;
iconmoon: https://icomoon.io/app/#/select/font;
fontawesome: https://fontawesom...
svg path snap应用
svg可以做一些比css3更好的动画
主要记录一下 button hover 的path 变化
Snap
文档: http://snapsvg.io/docs/
还有中文的: https://www.zhangxinxu.com/GitHub/demo-Snap.svg/demo/basic/Element.animate.php
Path
M: moveTo x0 y0
L: li...
node基础与express框架
搭建Express框架运行环境
cnpm i -g express-generator
express server 生成server文件夹 //或者 cd server express -e . => -e 代表使用ejs模板引擎 . 代表当前目录
在app.js中定义对应路由:
var goods = require('./routes/goo...
手写的 wow.js
用法:
给相应的dom添加 : class与data-class
设置 css
应用js
class与data-class
<div class="content wow" data-class="a-fadeIn"></div>
css
.a-fadeIn{
animation: fadeIn 1s both;
}
@keyframe...
一句话描述常用机器学习算法
摘要: 浓缩就是精华。想要把书写厚很容易,想要写薄却非常难。现在已经有这么多经典的机器学习算法,如果能抓住它们的核心本质,无论是对于理解还是对于记忆都有很大的帮助,还能让你更可能通过面试。在本文中,SIGAI将用一句话来总结每种典型的机器学习算法,帮你抓住问题的本质,强化理解和记忆。下面我们就开始了。
导言
浓缩就是精华。想要把书写厚很容易,想要写薄却非常难。现在已经有这么多经典的机器学习算法...
多轮对话之对话管理(Dialog Management)
Table of Contents
Dialog Management
Initiative
Basic concepts
Challenges
Structure-based Approaches
Key Pharse Reactive Approaches
Trees and FSM-based Approaches
Principle-based Approaches
Fr...
问题生成(QG)与答案生成(QA)
继续 QG,梳理一下 MSRA 其他 3 篇关于 QG 的 paper:
Two-Stage Synthesis Networks for Transfer Learning in Machine Comprehension
Question Answering and Question Generation as Dual Tasks
A Joint Model for Question ...
今日推荐
周排行