正文内容加载中...
posted @ 2021-10-20 17:03 ScottGu 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 背景 SSL及CA证书机制是浏览器时代的产物,SSL通信的双方,一方为遍布全球的互联网用户,另一方为百花齐放的各种服务,双方不知道不信任对方,不得不采用CA形式来确保安全。 随时代发展很多embeded设备接入互联网,这里相对典型场景有较大差别:首先,embedded device受较低的硬件规格所 阅读全文
posted @ 2021-08-16 18:15 ScottGu 阅读(63) 评论(0) 推荐(0) 编辑
摘要: Only one AsyncAnnotationBeanPostProcessor may exist within the context 出现该错误可能有多种原因,解决很简单: mvn clean 检查CLASSPATH是否有多余的配置也是一个办法。 阅读全文
posted @ 2021-08-06 17:49 ScottGu 阅读(18) 评论(0) 推荐(0) 编辑
摘要: nginx从1.9.0开始,新增加了一个stream模块,用来实现四层协议的转发或负载均衡。This module is not built by default, it should be enabled with the --with-stream configuration parameter 阅读全文
posted @ 2021-08-05 20:20 ScottGu 阅读(13) 评论(0) 推荐(0) 编辑
摘要: The thing about collations is that although database have it's own collation, every table, and every column can have it's own collation. If not specif 阅读全文
posted @ 2017-03-07 14:44 ScottGu 阅读(167) 评论(0) 推荐(0) 编辑
摘要: The current information explosion has resulted in an increasing number of applications that need to deal with large volumes of data. While many of the 阅读全文
posted @ 2016-05-30 13:46 ScottGu 阅读(488) 评论(0) 推荐(0) 编辑
摘要: Chapter 1 Official Steps We are going to follow the steps here, http://logging.apache.org/log4cxx/building/vstudio.html. However, we must make changes 阅读全文
posted @ 2016-05-05 23:48 ScottGu 阅读(722) 评论(0) 推荐(0) 编辑
摘要: Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character'.'.You may assume that there will be on... 阅读全文
posted @ 2015-12-21 14:33 ScottGu 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Total Accepted:43584Total Submissions:284350Difficulty:MediumGiven a 2D board containing'X'and'O', capture all regions surrounded by'X'.A region is ca... 阅读全文
posted @ 2015-12-17 23:42 ScottGu 阅读(218) 评论(0) 推荐(0) 编辑
摘要: messaging server is often used to implement processing of background jobs or other kinds of messaging tasks. A simple form of queue is often obtained 阅读全文
posted @ 2015-07-29 18:21 ScottGu 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Something you need to perform after RedHat6.x installedYUM Repos% yum update% rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-releas... 阅读全文
posted @ 2015-06-28 23:30 ScottGu 阅读(150) 评论(0) 推荐(0) 编辑
摘要: ElasticSearch是一个开源的分布式搜索引擎,具备高可靠性,支持非常多的企业级搜索用例。像Solr4一样,是基于Lucene构建的。支持时间时间索引和全文检索。官网:http://www.elasticsearch.org它对外提供一系列基于 JAVA python .net js和 HTT... 阅读全文
posted @ 2015-06-20 00:23 ScottGu 阅读(233) 评论(0) 推荐(0) 编辑
摘要: About SQLiteSee Also...FeaturesWhen to use SQLiteFrequently Asked QuestionsWell-known UsersBooks About SQLiteGetting StartedSQL SyntaxPragmasSQL funct... 阅读全文
posted @ 2015-04-22 21:43 ScottGu 阅读(988) 评论(0) 推荐(0) 编辑
摘要: 编程有时需要使用定长的容器(fixed size container)。实现旋转容器可以像下面这样:std::vector vec(size);vec[i % size] = newelem;但boost的circular_buffer提供更多功能,我们不需要重复造轮子了(DRY):#include... 阅读全文
posted @ 2015-01-29 12:16 ScottGu 阅读(508) 评论(0) 推荐(0) 编辑
摘要: You Only Need To Note This: only 1 single thread can acquire an upgrade_lock at one time. others are very straightforward. 96 vote 1800 INFORMATION is 阅读全文
posted @ 2015-01-20 16:57 ScottGu 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 唯一路径问题II Unique Paths II Follow up for "Unique Paths": Now consider if some obstacles are added to the grids. How many unique paths would there be? An 阅读全文
posted @ 2014-11-25 18:10 ScottGu 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 如何在JAVA中实现一个固定最大size的hashMap利用LinkedHashMap的removeEldestEntry方法,重载此方法使得这个map可以增长到最大size,之后每插入一条新的记录就会删除一条最老的记录。import java.util.LinkedHashMap;import j... 阅读全文
posted @ 2014-11-24 13:00 ScottGu 阅读(1344) 评论(0) 推荐(0) 编辑
摘要: Populating Next Right Pointers in Each NodeGiven a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLi... 阅读全文
posted @ 2014-11-20 00:36 ScottGu 阅读(155) 评论(0) 推荐(0) 编辑
摘要: Binary Tree Preorder Traversal Binary Tree Preorder Traversal Given a binary tree, return the preorder traversal of its nodes' values. For example:Giv 阅读全文
posted @ 2014-11-19 14:39 ScottGu 阅读(221) 评论(0) 推荐(0) 编辑
摘要: Linked List Cycle Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it without using extra space? # Definition for singl 阅读全文
posted @ 2014-11-18 17:32 ScottGu 阅读(378) 评论(0) 推荐(0) 编辑