摘要: http://stackoverflow.com/questions/40992231/failed-at-the-phantomjs-prebuilt2-1-13-install-script-node-install-js 阅读全文
posted @ 2017-04-03 11:17 fubst0318 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 1.npm install -g vue-cli 2.vue init webpack my-project 3.cd my project 4.npm install 5.npm run dev 关于vuejs-templates,https://vuejs-templates.github.io 阅读全文
posted @ 2017-03-18 16:23 fubst0318 阅读(1771) 评论(0) 推荐(0) 编辑
摘要: 1.关于nodejs版本升级方法 windows环境:至英文官网下载最新的msi即可 linux环境:等有时间研究 n 阅读全文
posted @ 2017-03-02 19:31 fubst0318 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 1.数据库与class类同步命令 syncdb command is deprecated in django 1.7. Use the python manage.py migrate instead 2.django管理员帐号与密码 1)新建一个用户名,使用如下命令: python manage 阅读全文
posted @ 2017-01-03 16:06 fubst0318 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 1.关于相似度评价体系 欧几里德距离和皮尔逊相关度 欧几里德距离: # 计算所有差值的平方和 1 sum_of_squares=sum([pow(prefs[person1][item]-prefs[person2][item],2) 2 for item in prefs[person1] if 阅读全文
posted @ 2016-12-30 10:31 fubst0318 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 开始使用mongodb,记录一些基本操作。 1.类似sql中的count db.xiaoqu.count() xiaoqu为collection 2.在mongo shell中去重 循环处理 3.查询某个collection 4.创建collection 阅读全文
posted @ 2016-12-23 16:27 fubst0318 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 1. sds类型 sds为一种抽象数据结构 typedef char *sds;struct sdshdr { // buf 已占用长度int len; // buf 剩余可用长度int free; // 实际保存字符串数据的地方char buf[];}; 2.sds的基本api 3. 双端链表 其 阅读全文
posted @ 2016-12-23 16:26 fubst0318 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 1.HTTP报文常见格式 请求电文中的方法包括:GET/HEAD/PUT/POST/TRACE/OPTIONS/DELETE 阅读全文
posted @ 2016-12-23 11:11 fubst0318 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 1.表格基本信息 标签 描述 <table> 定义表格 <caption> 定义表格标题 <th> 定义表格表头 <tr> 定义表格的行 <td> 定义表格的单元 <thead> 定义表格的页眉 <tbody> 定义表格的主体 <tfoot> 定义表格的页脚 <col> 定义表格的列属性 2.列表基 阅读全文
posted @ 2016-12-18 10:32 fubst0318 阅读(88) 评论(0) 推荐(0) 编辑
摘要: K-近邻算法(kNN) 简单地说,k-近邻算法采用测量不同特征值之间的距离方法来进行分类。 优点:精度高、对异常值不敏感、无数据输入假定。 缺点:计算复杂度高、空间复杂度高。 k-近邻算法的一般流程: (1)收集数据:可以使用任何方法。 (2)准备数据:距离计算所需要的数值,最好是格式化的数据格式。 阅读全文
posted @ 2016-12-17 20:16 fubst0318 阅读(94) 评论(0) 推荐(0) 编辑