首页 > 2015年07月09日 > 全部分享
redis安装报错
在centos6.6x86_64安装redis的报错及解决方法:1、make的时候注意:如果make的时候提示如下错误:cc:error:../deps/hiredis/libhiredis.a:Nosuchfileordirectorycc:error:../deps/lua/src/liblua.a:Nosuchfileordirectorycc:error:../deps/jemalloc/lib/libjemalloc.a:Nosuchfi..
分类:其他   时间:2015-07-09 22:45:57    收藏:0  评论:0  赞:0  阅读:548
Zabbix基于Proxy分布式部署实现Web监控
前言在日常运维工作中,难免会遇到这样或那样的故障,如何能在第一时间发现故障,并及时定位故障原因,保证业务不受影响,我想这应该是做好一个运维必须要掌握的技能。但人力不可能实时掌控系统的变化,于是监控系统应运而生,监控便是运维的眼睛,把监控和性能管理做好后,运..
分类:Web开发   时间:2015-07-09 22:45:47    收藏:0  评论:0  赞:0  阅读:779
ZOJ 1047 Image Perimeters
Image Perimeters Time Limit: 2 Seconds      Memory Limit: 65536 KB Technicians in a pathology lab analyze digitized images of slides. Objects on a slide are selected for analysis by a mouse cl...
分类:其他   时间:2015-07-09 22:44:17    收藏:0  评论:0  赞:0  阅读:280
C++ 华为OJ 二阶魔方
OJ 二阶魔方这道题目,是很基础的一个实现,不需要太多思想和算法,实现较为简单,主要问题在于在于函数比较冗长。注意细节,既能给出正确结论。可以在自定义函数中通过switch ... case 语句实现 魔方旋转。...
分类:编程语言   时间:2015-07-09 22:44:07    收藏:0  评论:0  赞:0  阅读:482
STL算法设计理念 - 二元函数,二元谓词以及在set中的应用
demo 二元函数对象 #include #include #include #include using namespace std; template class SumVector { public: T operator()(T t1, T t2) // 二元函数对象 { return t1 + t2; } protected: private: }; void...
分类:编程语言   时间:2015-07-09 22:43:56    收藏:0  评论:0  赞:0  阅读:405
Tomcat启用HTTPS(生成证书、配置Tomcat服务器)
Windows下的配置: 第一步:为服务器生成证书 使用keytool 为 Tomcat 生成证书,假定目标机器的域名是“ localhost ”, keystore 文件存放在“ d:\tomcat.keystore ”,口令为“ password ”,使用如下命令生成: > keytool -genkey -v -alias tomcat -keyalg RSA   -valid...
分类:Web开发   时间:2015-07-09 22:43:46    收藏:0  评论:0  赞:0  阅读:373
JBoss vs. Tomcat
JBoss 支持Servlet、Web Server和其他J2EE FeaturesServlet引擎使用Tomcat的内核SSL性能比Tomcat快4倍(据说)支持.net、PHP、CGI支持EJB比较耗费资源 Tomcat 是Servlet和JSP容器,Web Server轻量级、节省资源Spring+Tomcat是完美配合(据说)...
分类:其他   时间:2015-07-09 22:43:36    收藏:0  评论:0  赞:0  阅读:261
SpringMVC工作原理
上面的是springMVC的工作原理图: 1、客户端请求提交到DispatcherServlet  2、DipatcherServlet接收到这个请求之后将根据请求的信息,调用HandlerMapping获得该Handler 3、DispatcherServlet 根据获得的Handler,选择一个合适的HandlerAdapter。 4、Handler对数据处理完成以后将返回一个Mo...
分类:编程语言   时间:2015-07-09 22:43:21    收藏:0  评论:0  赞:0  阅读:242
Android-69-音视频开发:AnyChat for Android SDK
弄了一下午,搜到两个版本的AnyChat for Android SDK开发包,其中一个下载地址:...
分类:移动平台   时间:2015-07-09 22:43:06    收藏:0  评论:0  赞:0  阅读:334
leetcoder 46-Permutations and 47-Permutations II
Permutations Given a collection of numbers, return all possible permutations. For example, [1,2,3] have the following permutations: [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], and [3,2,1]...
分类:其他   时间:2015-07-09 22:42:56    收藏:0  评论:0  赞:0  阅读:778
[LeetCode][Java] 4Sum
题目: Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target. Note: ...
分类:编程语言   时间:2015-07-09 22:42:46    收藏:0  评论:0  赞:0  阅读:320
leetCode 38.Count and Say (计数和发言) 解题思路和方法
Count and Say  The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, ... 1 is read off as "one 1" or 11. 11 is read off as "two 1s" or 21. 21 i...
分类:其他   时间:2015-07-09 22:42:37    收藏:0  评论:0  赞:0  阅读:1339
LeetCode222 Count CompleteTree Nodes(计算完全二叉树的节点数) Java 题解
题目: Given a complete binary tree, count the number of nodes. Definition of a complete binary tree from Wikipedia: In a complete binary tree every level, except possibly the last, is completel...
分类:编程语言   时间:2015-07-09 22:42:26    收藏:0  评论:0  赞:0  阅读:789
span中内容随着数字长度的增加而增大
场景:导航条中数据,当数据量不大时,只会显示几页,数字只有1,2,3,4..,数字写在span标签中, 则span不需要多宽,设置固定宽度就可以,但当数据量非常大的,例如:日志管理--有增 删 改就有记录,且记录会一直保存,不会删除。这时成千万的数据量显示,转到最后一行时,页数就可能为几百万条,显示7位数字,span标签宽度就要增加了,要随着数字长度的增加需增大。CSS设置,设置个最小宽度,内间距...
分类:其他   时间:2015-07-09 22:42:16    收藏:0  评论:0  赞:0  阅读:304
跟着实例学习设计模式-静态工厂
静态工厂设计模式是创建型设计模式。 设计意图:实例化出我们需要的类对象,这些对象可以实现不同的功能,也可能只实现一个功能! 类图关系: 通过类图关系我们可以看到静态工厂负责创建OperationFather类的对象,我们来看一下实例代码。 我们是想实现一个计算器,计算器的功能暂时有加法、减法功能,以后可能随时增加新的功能如乘法、除法等。如果使用一般的做法,实际上我们写一个类就可以实现。...
分类:其他   时间:2015-07-09 22:42:06    收藏:0  评论:0  赞:0  阅读:373
学习easyui疑惑(四)
这篇文章我将着重写一下关于我这两天做用到easyui做table所遇到的问题,对于easyui所提供的便捷式插件我觉得应该给予肯定,但是同时对于easyui在做table方面的不足在这里说明一下。 首先展示一下我这两天所做的一个table页,这个页面有点难看,但是基本的要求算是实现了,学了两天的jquery算是有个交代吧。 上图: 效果就是折叠式效果,每项中...
分类:其他   时间:2015-07-09 22:41:46    收藏:0  评论:0  赞:0  阅读:318
寻找回文数的python的实现
寻找回文数寻找回文数也是一个比较好玩的题目,也是学习python的一个简单的filter()函数的应用解决方法:即按照回文数的特点进行即可。方法一:一行代码解决#coding=UTF-8 #寻找回文数 def is_palindrome(n): s=str(n) return s[0:len(s)//2]==s[-1:len(s)//2:-1]...
分类:编程语言   时间:2015-07-09 22:41:36    收藏:0  评论:0  赞:0  阅读:185
LeetCode215:Kth Largest Element in an Array
Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element.For example, Given [3,2,1,5,6,4] and k = 2, return 5.Note:...
分类:其他   时间:2015-07-09 22:41:26    收藏:0  评论:0  赞:0  阅读:252
第三章:初始化 OpenGL 4.0
这一章将正式介绍 OpenGL 4.0。我们将涉及3个部分,初始化 OpenGL 4.0、关闭、渲染。我们将在前面教程的基础上添加 OpenGL 4.0 渲染。...
分类:其他   时间:2015-07-09 22:41:17    收藏:0  评论:0  赞:0  阅读:377
可以替代浮动的inline-block
浮动有个缺点:脱离了原来的文档流,导致父容器无高度。使用inline-block不会脱离文档流,且无忘记清空浮动的困扰 并排的div都设置position:inline-block,vertical-align:top...
分类:其他   时间:2015-07-09 22:41:07    收藏:0  评论:0  赞:0  阅读:214
1652条   上一页 1 2 3 4 5 6 ... 83 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!