自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(55)
  • 收藏
  • 关注

转载 从IIS定期重启服务开始

起因  手上的项目是.NET 做的,运行在Windows服务器的IIS上。消息推送的时候有利用WebSocket像客户端推送消息,由于IIS定时会重新服务回收资源,会导致WebScoket服务重启,期间一些消息会收到影响。暂时的解决方案可以使用定时计划在非高峰期回收资源(可以参考:https://www.cnblogs.com/Fishwood/p/3602041.ht...

2018-08-20 23:48:00 313

转载 初试 Elastic Search

一.背景项目数据库中有一张Task表,关联了很多其他的表(关联方式包括一对多,以及一对一)。需求是 支持根据其他表的数据和本身数据进行筛选和排序。如果直接使用联表进行查询,耗时比较长,用户反馈使用比较慢,而且搜索条件比较复杂。考虑使用Elastic Search 对数据进行处理后再查询,以提高查询的性能。二.方案采用最通用的ELK方案Step1: 安装...

2018-07-15 16:32:00 93

转载 索引分类

1.索引,主键,唯一索引,联合索引的区别http://blog.csdn.net/u011341352/article/details/477312552.创建‘联合索引’的意义?https://segmentfault.com/q/10100000003421763.聚集索引和非聚集索引http://www.cnblogs.com/julin-peng/p/4807843.h...

2017-04-26 21:04:00 66

转载 Nginx

在Windows上做的实验。1.下载:http://nginx.org/en/download.html 下 nginx/Windows-1.12.0直接浏览器打开localhost查看是否成功2.config基础1)congfig 结构 使用配置:主要配置用户组,windows下不指定;工作进程,错误日志等event{}:IO模型,连接参数等http{serv...

2017-04-25 14:03:00 65

转载 LINQ入门

LINQ 是C#中内置的查询语言,感觉和Sql比较类似,主要包括了LINQ to Object,LINQ to XML,LINQ to SQL为不同类型的数据提供了解决方案。暂时只看了LINQ to Object部分,后面的等我看完再补上。 从简单的数组开始,设有一个数组int[] nums存放者大量数据,现在用LINQ来查找其中>1000的存在,并从大到小排序。 var...

2017-04-08 16:42:00 85

转载 CSS学习

分享两个网址:www.w3school.comzh.learnlayout.com转载于:https://www.cnblogs.com/Run-dream/p/6658026.html

2017-04-02 00:50:00 47

转载 Keras 安装

虚拟机版本:VMWare 14系统版本:Ubuntu Kilyn 14前言:  由于毕业论文的关系,需要用到深度学习。在知乎上看到了台湾李宏毅教授的Deep Learning Tutorial的ppt, 对深度学习进行了深入浅出的讲解,在文章提到了Keras框架,并使用它进行了Mnist手写数字识别——类地位上似于Deep Learning中“Hello World”的...

2017-03-25 16:25:00 76

转载 火车进站

描述给定一个正整数N代表火车数量,0<N<10,接下来输入火车入站的序列,一共N辆火车,每辆火车以数字1-9编号。要求以字典序排序输出火车出站的序列号。知识点栈运行时间限制0M内存限制0输入有多组测试用例,每一组第一行输入一个正整数N(0<N<10),第二行包括N个正整数,范围为1到9。...

2016-03-29 21:32:00 338

转载 2016年网易笔试编程题2

题目描述:输入共两行,第一行为字典,以空格为界限,为一个个字符串第二行为用户输入,同样以空格为界限的一个个字符串。要求:找出输入的字符串是否在字典里,若不在,输出该字符串,并考虑是否能通过增加一个或者减少一个或者修改一个字符串来自动补全,输出修正后的字符串。解题思路:很容易想到求最长公共子串,考虑最长公共子串的长度和字典以及输入的关系。代码:i...

2016-03-23 21:39:00 80

转载 Java GC

参考链接:http://www.cnblogs.com/hnrainll/archive/2013/11/06/3410042.html1.Java中垃圾回收有什么目的?垃圾回收的目的是识别并丢弃应用不再使用的对象来释放和重用资源。2.Java GC机制主要完成3件事:确定哪些内存需要回收,确定什么时候需要执行GC,如何执行GC。3.Java内存区域...

2016-03-19 15:03:00 62

转载 Java Collection

参考链接:http://skyuck.iteye.com/blog/526358;www.nowcoder.comJava集合类提供了一套设计良好的支持对一组对象进行操作的接口和类。Java集合类里最基本的接口有:Collection:代表一组对象,每一个对象都是它的子元素。Set:不包含重复元素的CollectionList:有顺序的Collection,并且可以...

2016-03-18 02:14:00 126

转载 Java 线程(1)

1.创建Java种线程的创建方法有三种:1)继承Thread对象,实现run()方法 1 package thread; 2 3 public class MyThread01 extends Thread { 4 5 private static int i = 10; 6 7 @Override 8 publi...

2016-03-16 15:29:00 55

转载 2016/3/11 Java错题

来源:www.nowcoder.com1.Java中的集合类包括ArrayList、LinkedList、HashMap等类,下列关于集合类描述错误的是ArrayList和LinkedList均实现了List接口ArrayList的访问速度比LinkedList快添加和删除元素时,ArrayList的表现更佳HashMap实现Map接口,它允许任何类型的键和值对象,并允许将nul...

2016-03-11 11:00:00 305

转载 2016/3/10 Java 错题

1.What is the result of compiling and executing the following fragment of code:1 Boolean flag = false;2 if (flag = true)3 {4 System.out.println(“true”);5 }6 else7 {8 S...

2016-03-10 18:33:00 160

转载 2016/3/9 Java 错题集

1.publicinterfaceIService {String NAME="default";}默认类型等价表示是哪一项:    public static final String NAME="default";解析:接口中的变量默认是public static final 的,方法默认是public abstract 的 没记牢2.Java数据库连接库JDBC用...

2016-03-09 19:17:00 204

转载 Java Socket 编程实验总结

Client:1.使用Socket类  if (socket == null) socket = new Socket(address, 2333);//不要用1024之前的端口2.socket通过对其中的outputstream和inputstream操作实现通讯 if (writer == null) writer = new Print...

2015-05-03 01:16:00 162

转载 CSU 1290

1290: Random IntegersTime Limit:1 SecMemory Limit:128 MBSubmit:72Solved:45[Submit][Status][Web Board]DescriptionWe choose an integer K (K > 0). Then we generate N (N &gt...

2014-08-14 22:06:00 64

转载 CSU 1307

1307: City TourTime Limit:1 SecMemory Limit:128 MBSubmit:549Solved:124[Submit][Status][Web Board]DescriptionAlice想要从城市A出发到城市B,由于Alice最近比较穷(不像集训队陈兴老师是个rich second),所以只能选择做火车从A到B。...

2014-08-14 21:56:00 74

转载 CSU 1060

1060: Nearest SequenceTime Limit:1 SecMemory Limit:64 MBSubmit:370Solved:118[Submit][Status][Web Board]Description Do you remember the "Nearest Numbers"? Now here come...

2014-08-14 19:35:00 78

转载 Problem B SPOJ DCEPC11I

DescriptionVaibhav Sir and Saikat Sir, after completing their graduation, got a job together at a store.Their boss at the store was Sidharth Sir, who was very strict and did not want anyone...

2014-08-11 06:50:00 67

转载 Problem A SPOJ SUB_PROB

DescriptionString Matching is an important problem in computer science research and finds applications in Bioinformatics, Data mining,pattern recognition, Internet security and many more ar...

2014-08-11 06:43:00 159

转载 HDU 1754

I Hate ItTime Limit:3000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64u[Submit] [Go Back] [Status]Description很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中...

2014-08-07 14:28:00 64

转载 POJ 2352

StarsTime Limit:1000MSMemory Limit:65536KTotal Submissions:32191Accepted:14048DescriptionAstronomers often examine star maps where stars are represented ...

2014-08-06 08:31:00 56

转载 HDU 2222

Keywords SearchTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 33856Accepted Submission(s): 10955Problem DescriptionIn the modern...

2014-08-05 15:21:00 73

转载 POJ 2503 Babelfish

BabelfishTime Limit:3000MSMemory Limit:65536KTotal Submissions:32169Accepted:13832DescriptionYou have just moved from Waterloo to a big city. The people ...

2014-08-04 22:54:00 139

转载 Problem E SPOJ ROCK

DescriptionA manufacturer of sweets has started production of a new type of sweet calledrock. Rock comes in sticks composed of one-centimetre-long segments, some of which are sweet, and th...

2014-08-04 13:17:00 167

转载 Problem B Codeforces 295B 最短路(floyd)

DescriptionGreg has a weighed directed graph, consisting ofnvertices. In this graph any pair of distinct vertices has an edge between them in both directions. Greg loves playing with the ...

2014-08-04 10:35:00 83

转载 Problem A Codeforces 20C 最短路(dj,spfa)

DescriptionYou are given a weighted undirected graph. The vertices are enumerated from 1 ton. Your task is to find the shortest path between the vertex1and the vertexn.Input...

2014-08-04 08:46:00 87

转载 HDU 1166

敌兵布阵Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 42514Accepted Submission(s): 17988Problem DescriptionC国的死对头A国这段时间正在进行军事演习,所以C...

2014-08-01 15:05:00 53

转载 ZOJ 1709

Time Limit:2 Seconds Memory Limit:65536 KBThe GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular regi...

2014-07-31 11:24:00 67

转载 ZOJ 2165

Red and BlackTime Limit:2 Seconds Memory Limit:65536 KBThere is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile...

2014-07-31 10:28:00 72

转载 POJ 1915

Knight MovesTime Limit:1000MSMemory Limit:30000KTotal Submissions:21791Accepted:10155DescriptionBackgroundMr Somurolov, fabulous chess-gamer indeed, ass...

2014-07-30 14:44:00 55

转载 CSU 1122

1022: 菜鸟和大牛Time Limit:1 SecMemory Limit:128 MBSubmit:193Solved:89[Submit][Status][Web Board]Descriptionblue和AutoGerk是好朋友。他们的相同点是都喜欢研究算法,不同点是AutoGerk已是大牛而blue还是菜鸟。blue经常拿一些自以为...

2014-07-30 12:18:00 66

转载 CSU 1256

1256: 天朝的单行道Time Limit:1 SecMemory Limit:128 MBSubmit:159Solved:46[Submit][Status][Web Board]Description 在另一个平行宇宙中,有一个神奇的国度名叫天朝。天朝一共有N个城市(标号分别为1, 2, …, N),M条道路,为了方便交通管制,天朝的M条...

2014-07-29 14:52:00 65

转载 CSU 1240

1240: 低调,低调。Time Limit:2 SecMemory Limit:1 MBSubmit:146Solved:25[Submit][Status][Web Board]DescriptionStaginner总是喜欢把自已的名字写在他出的题目里。CSU-ACM协会的会长想,这孩子是不是想出名想疯了,于是决定考一考他。...

2014-07-29 08:59:00 59

转载 HDU 1874

畅通工程续Time Limit: 3000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 27010Accepted Submission(s): 9742Problem Description某省自从实行了很多年的畅通工程计划后,终于修建了...

2014-07-28 16:59:00 53

转载 CSU 1004

1004: Xi and BoTime Limit:1 SecMemory Limit:128 MBSubmit:273Solved:93[Submit][Status][Web Board]DescriptionBo has been in Changsha for four years. However he spends most of his ...

2014-07-28 06:40:00 115

转载 Problem F CodeForces 16E

Descriptionnfish, numbered from1ton, live in a lake. Every day right one pair of fish meet, and the probability of each other pair meeting is the same. If two fish with indexes i and j ...

2014-07-28 00:19:00 60

转载 Problem E CodeForces 237C

DescriptionYou've decided to carry out a survey in the theory of prime numbers. Let us remind you that a prime number is a positive integer that has exactly two distinct positive integer di...

2014-07-27 17:43:00 52

转载 Problem C FZU 1901

DescriptionFor each prefix with length P of a given string S,ifS[i]=S[i+P] for i in [0..SIZE(S)-p-1],then the prefix is a “period” of S. We want to all the periodic prefixs.Input...

2014-07-27 17:16:00 52

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除