随笔 - 547  文章 - 213 评论 - 417 阅读 - 107万

07 2018 档案
node-cache
摘要:From: https://www.npmjs.com/package/node-cache Simple and fast NodeJS internal caching. A simple caching module that has set, get and delete methods a 阅读全文
posted @ 2018-07-31 16:09 今夜太冷 阅读(4225) 评论(0) 推荐(0) 编辑
【Boost】boost::string_algo详解2——find相关函数
摘要:来自: https://blog.csdn.net/huang_xw/article/details/8276123 函数声明: template<typename Range1T, typename Range2T> template<typename Range1T, typename Rang 阅读全文
posted @ 2018-07-26 10:39 今夜太冷 阅读(910) 评论(0) 推荐(0) 编辑
Compiler Error: Function call with parameters that may be unsafe
摘要:如下的代码: #include <stdio.h> #include <string> #include <algorithm> #include <cassert> #include <cctype> #include <boost/algorithm/string.hpp> int main(i 阅读全文
posted @ 2018-07-24 13:57 今夜太冷 阅读(276) 评论(0) 推荐(0) 编辑
fopen和fopen_s用法的比较
摘要:open和fopen_s用法的比较 fopen 和 fopen_s fopen用法: fp = fopen(filename,"w")。 fopen_s用法:,须定义另外一个变量errno_t err,然后err = fopen_s(&fp,filename,"w")。 返回值: fopen打开文件 阅读全文
posted @ 2018-07-20 15:56 今夜太冷 阅读(33608) 评论(0) 推荐(3) 编辑
fopen_s遇到的一个问题
摘要:今天使用公司代码的日志模块记录程序运行的相关信息,发现日志总是只有两条记录,即程序启动和结束,别的都没有。跟踪了很久,终于发现是日志输出模块被我修改了一个地方:把fopen改成了fopen_s,毕竟报了warning。但是这也是问题的根源! 下面的说明来自于msdn: Files opened by 阅读全文
posted @ 2018-07-20 15:46 今夜太冷 阅读(1887) 评论(0) 推荐(2) 编辑
Data type conversion in MongoDB
摘要:[问题] I have a collection called Document in MongoDB. Documents in this collection have a field called CreationDate stored in ISO date type. My task is 阅读全文
posted @ 2018-07-18 13:37 今夜太冷 阅读(303) 评论(0) 推荐(0) 编辑
Project with Match in aggregate not working in mongodb
摘要:[问题] 2down votefavorite I am trying to fetch data based on some match condition. First I've tried this: Here ending_date is full date format Offer.agg 阅读全文
posted @ 2018-07-18 13:35 今夜太冷 阅读(325) 评论(0) 推荐(0) 编辑
Print all attributes and values in a Javascript Object
摘要:来自: https://gist.github.com/okor/1536669 阅读全文
posted @ 2018-07-18 13:32 今夜太冷 阅读(264) 评论(0) 推荐(0) 编辑
GraphQL入门3(Mutation)
摘要:创建一个新的支持Mutation的Schema. var GraphQLSchema = require('graphql').GraphQLSchema; var GraphQLObjectType = require('graphql').GraphQLObjectType; var Graph 阅读全文
posted @ 2018-07-13 17:18 今夜太冷 阅读(5528) 评论(0) 推荐(0) 编辑
GraphQL入门2
摘要:将服务器端的代码升级了一下: var GraphQLSchema = require('graphql').GraphQLSchema; var GraphQLObjectType = require('graphql').GraphQLObjectType; var GraphQLString = 阅读全文
posted @ 2018-07-13 17:00 今夜太冷 阅读(210) 评论(0) 推荐(0) 编辑
GraphQL循环引用的问题
摘要:下面的代码中, 由于friends字段引用了PersonType字段,而friends本身又是PersonType的一部分,在运行的时候会报错: Expected undefined to be a GraphQL type var PersonType = new GraphQLObjectTyp 阅读全文
posted @ 2018-07-11 11:58 今夜太冷 阅读(390) 评论(0) 推荐(0) 编辑
GraphQL入门1
摘要:1. 资源: 主站: https://graphql.org/ 中文站: http://graphql.cn 入门视频: https://graphql.org/blog/rest-api-graphql-wrapper/ 这个网址中向下拉, 会看到这个入门视频: 从第15分钟看到第30分钟就可以. 阅读全文
posted @ 2018-07-05 16:33 今夜太冷 阅读(241) 评论(0) 推荐(0) 编辑
GraphQL: Object doesn't support property or method 'from'
摘要:From: https://github.com/graphql/graphiql/issues/688 psyCodelist commented 11 days ago Hi, Thank you in advance. Just wanted to let you know the the w 阅读全文
posted @ 2018-07-04 11:50 今夜太冷 阅读(551) 评论(0) 推荐(0) 编辑
Using std::map with a custom class key
摘要:From: https://www.walletfox.com/course/mapwithcustomclasskey.php If you have ever tried to use a custom class as a key of std::map, most probably you 阅读全文
posted @ 2018-07-02 13:54 今夜太冷 阅读(614) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示