首页 > 其他
Django搭建及源码分析(一)
从最小linux系统安装Django,搭建Django环境,以及简单分析Django源码。
分类:其他   时间:2015-05-29 17:31:06    收藏:0  评论:0  赞:0  阅读:240
zabbix server is not running: the information displayed may not be current
一、1、关闭selinux及防火墙2、在/etc/hosts文件里加入ip及对应的主机名。3、修改配置文件:zabbix.conf.php /opt/data/apache2/htdocs/zabbix/conf/zabbix.conf.php --zabbix web目录下面编辑zabbix.co...
分类:其他   时间:2015-05-29 17:30:16    收藏:0  评论:0  赞:0  阅读:273
[转] OpenStack Kilo 更新日志
OpenStack 2015.1.0 (Kilo)更新日志原文:https://wiki.openstack.org/wiki/ReleaseNotes/Kilo/zh-hans目录[隐藏]1OpenStack 2015.1.0 (Kilo)更新日志1.1OpenStack对象存储(Swift)1....
分类:其他   时间:2015-05-29 17:29:16    收藏:0  评论:0  赞:0  阅读:457
限制文本框只能输入数字
分类:其他   时间:2015-05-29 17:28:56    收藏:0  评论:0  赞:0  阅读:233
寻找发帖“水王”
题目是这样描述的:“水王”发帖的数目超过了所有帖子的一半,有各个帖子的作者ID,求这个水王的ID编程之美给出了两种巧妙的解法解法一:ID排序,那么ID列表中的N/2项即为要找的ID(还要排序,时间复杂度为O(NlogN))解法二:通过查找,每次从列表中除去两个不一样的ID,最后就可以得出这个ID,时...
分类:其他   时间:2015-05-29 17:28:46    收藏:0  评论:0  赞:0  阅读:251
fedora21的使用
参考:http://tieba.baidu.com/p/3222136874 http://www.csdn.net/article/1970-01-01/2823459一、终端的快捷键设置->键盘->快捷键->自定义->+。在命令中输入/usr/bin/gnome-terminal快捷键可设为C....
分类:其他   时间:2015-05-29 17:28:36    收藏:0  评论:0  赞:0  阅读:236
Combination Sum II —— LeetCode
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Each number ...
分类:其他   时间:2015-05-29 17:28:06    收藏:0  评论:0  赞:0  阅读:245
TCP粘包和半包的处理方法
先把处理的方法的代码放这里:解析数据帧的代码:bool CSocket::findData(byte* buff, int& len){ for (int i = 0; i 0) { memcpy(swapBuff, buff + i + 4 + dataLen + 4, len...
分类:其他   时间:2015-05-29 17:27:46    收藏:0  评论:0  赞:0  阅读:395
Objective-C对象的申请空间与初始化
对象分配空间与初始化对象分配空间与初始化使用Objective-C语言创建一个对象有两个步骤,你必须:为新对象动态分配内存空间初始化新分配的内存,并赋初值不经过如上两步,一个对象就没有完全功能化。每个步骤都可以分步完成,不过一般的都是在用写在同一行的代码实现:Objective-c代码 idanOb...
分类:其他   时间:2015-05-29 17:27:26    收藏:0  评论:0  赞:0  阅读:257
无障碍阅读
WAI-ARIA无障碍网页应用属性完全展示byzhangxinxufromhttp://www.zhangxinxu.com本文地址:http://www.zhangxinxu.com/wordpress/?p=2277一、你至少应该知道ARIA是什么东西!WAI-ARIA指无障碍网页应用。主要针对...
分类:其他   时间:2015-05-29 17:27:06    收藏:0  评论:0  赞:0  阅读:195
8、Condition
java.util.concurrent.locksInterface ConditionCondition类似于传统的wait、notify/notifyAll方法(这些方法需要内部监听器)。Condition是在Lock之下,换句话说,有了Lock才可能产生Condition。在一个Lock之下...
分类:其他   时间:2015-05-29 17:26:06    收藏:0  评论:0  赞:0  阅读:244
点击某个功能 界面变化
页面起初效果:对应代码: 管理 管理 " class="hasChildren"> " target="siteFrame"> ...
分类:其他   时间:2015-05-29 17:25:56    收藏:0  评论:0  赞:0  阅读:164
颜色混合
Shader "Custom/multipass" { Properties { _MainTex ("Base (RGB)", 2D) = "white" {} } SubShader { Tags { "RenderType"="Opaque" } ...
分类:其他   时间:2015-05-29 17:25:46    收藏:0  评论:0  赞:0  阅读:125
另类分析SIGSEGV信号
关于SIGSEGV信号的含义就不解释了。网络上有很多解释。今天记录一下,自己遇到的一个问题,想了好几天都没想出来的。今天终于想到原因了。过程描述: 有个类 CBase,里面放了一个成员变量 DATA,这个成员变量是个 union结构。union结构里面数据长度不一样。然后,我有个std::li...
分类:其他   时间:2015-05-29 17:24:36    收藏:0  评论:0  赞:0  阅读:210
TCP 滑动窗口和 拥塞窗口
转http://coolshell.cn/articles/11609.html滑动窗口 -- 表征发送端和接收端的接收能力拥塞窗口-- 表征中间设备的传输能力TCP滑动窗口需要说明一下,如果你不了解TCP的滑动窗口这个事,你等于不了解TCP协议。我们都知道,TCP必需要解决的可靠传输以及包乱序(r...
分类:其他   时间:2015-05-29 17:24:26    收藏:0  评论:0  赞:0  阅读:285
【leetcode】Contains Duplicate
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the arr...
分类:其他   时间:2015-05-29 17:24:16    收藏:0  评论:0  赞:0  阅读:362
starling TouchEvent
private var beginY:Number;private function touchEventHandler(e:TouchEvent):void{ // TODO Auto Generated method stub var touch:Touch = e.getTouch(e....
分类:其他   时间:2015-05-29 17:24:06    收藏:0  评论:0  赞:0  阅读:258
Combination Sum III —— LeetCode
Find all possible combinations ofknumbers that add up to a numbern, given that only numbers from 1 to 9 can be used and each combination should be a u...
分类:其他   时间:2015-05-29 17:23:46    收藏:0  评论:0  赞:0  阅读:212
Contains Duplicate II
Given an array of integers and an integer k, return true if and only if there are two distinct indices i and j in the array such that nums[i] = nums[j...
分类:其他   时间:2015-05-29 17:23:06    收藏:0  评论:0  赞:0  阅读:249
开始研究AR领域,写下一些随笔来记录一下自己的学习过程吧
辞掉了纠结了很久的工作,终于下定决定离开这个是非之地。快过完自己的二十岁岁月,奔向三十岁了,觉得需要重新对自己的人生做个规划。一直对工作畏畏缩缩的,觉得多点自己掌控的空间可以更好的发展自己,就算是国企的官僚主义也没所谓,金子总会发光的。事实证明是我太天真了,长辈的教诲、自己的患得患失、所谓牺牲自己保...
分类:其他   时间:2015-05-29 17:22:36    收藏:0  评论:0  赞:0  阅读:502
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!