首页 > 其他
在服务器上创建用户
创建用户tianjiewang后,发现在自己权限不够 vim /etc/sudoers or gedit /etc/sudoers root ALL=(ALL) ALL tianjiewang ALL=(ALL) ALL 然后访问/var/log/nginx -bash: cd: /var/log/nginx/: Permissio...
分类:其他   时间:2015-05-21 17:29:17    收藏:0  评论:0  赞:0  阅读:140
timer控件 倒计时 顺时计时 重置计时
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace Remind{ public partial class For...
分类:其他   时间:2015-05-21 17:27:57    收藏:0  评论:0  赞:0  阅读:250
位操作
按位与运算符(&) 参加运算的两个数据,按二进制位进行“与”运算。 运算规则:0&0=0;   0&1=0;    1&0=0;     1&1=1; 即:两位同时为“1”,结果才为“1”,否则为0 例如:3&5  即 0000 0011 & 0000 0101 = 0000 0001   因此,3&5的值得1。   负数按补码形式参加按位与运算。 “与运算”的特殊用途: (1)清...
分类:其他   时间:2015-05-21 17:27:47    收藏:0  评论:0  赞:0  阅读:184
UVA 10054 The Necklace
10054 The Necklace My little sister had a beautiful necklace made of colorful beads. Two successive beads in the necklace shared a common color at their meeting point. The figure below shows a segme...
分类:其他   时间:2015-05-21 17:27:37    收藏:0  评论:0  赞:0  阅读:258
程序员的量化交易之路(6)-Esper之处理模型(5)
3 处理模型(Processing Model) Esper的处理模型是持续的:更新监听器listener和订阅者subscriber,当事件到来时,根据声明对事件流、视图、过滤和输出等。   监听器的接口是com.espertech.esper.client.UpdateListener,必须实现update方法,这个函数会在结果到来时触发。   3.2 插入流(Insert Stre...
分类:其他   时间:2015-05-21 17:26:47    收藏:0  评论:0  赞:0  阅读:210
leetcode 3 -- Longest Substring Without Repeating Characters
leetcode 3 – Longest Substring Without Repeating Characters 题目: Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without r...
分类:其他   时间:2015-05-21 17:26:17    收藏:0  评论:0  赞:0  阅读:202
几何对象的结构和类
为了使用绘图函数,应该先了解绘图所用到的几种表示几何对象的结构和类。这些结构和类分别定义在头文件windef.h和afxwin.h中。 1.点 1)点结构POINT 点数据结构POINT用来表示一点的x、y坐标: typedef struct tagPOINT {     LONG x;     LONG y; } POINT; 2)点类CPoint...
分类:其他   时间:2015-05-21 17:26:07    收藏:0  评论:0  赞:0  阅读:132
Nginx中的原子操作
在不支持原子操作的处理器上Nginx提供了自己的原子操作,但是该原子操作使用C语言模拟的: static ngx_inline ngx_atomic_uint_t ngx_atomic_cmp_set(ngx_atomic_t *lock, ngx_atomic_uint_t old, ngx_atomic_uint_t set) { if (*lock == old) { ...
分类:其他   时间:2015-05-21 17:25:57    收藏:0  评论:0  赞:0  阅读:230
SVN的基本配置和常用命令
首先下载: Slik-Subversion-1.8.0-win32.msi 这是Server TortoiseSVN-1.8.0.24401-win32-svn-1.8.0.msi 这是Client接下来建立仓库:C:\Users\acer>svn helpC:\Users\acer>svn help 用法: svn [options] [args] Subversion 命令行客户...
分类:其他   时间:2015-05-21 17:24:37    收藏:0  评论:0  赞:0  阅读:187
【Permutations II】cpp
题目:Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2]have the following unique p...
分类:其他   时间:2015-05-21 17:21:26    收藏:0  评论:0  赞:0  阅读:133
openMSP430之openmsp430-loader
openmsp430-loader This simple program allows the user to load the openMSP430 program memory with an executable file (ELF or Intel-HEX format) provide....
分类:其他   时间:2015-05-21 17:19:58    收藏:0  评论:0  赞:0  阅读:169
创建自定义表单
自定义表单模块可以用来获取网站前台用户的信息。自定义表单需要与一个内容类型结合使用。它可以用来创建“联系我们”以及“订阅”之间称为关联的的部件/页面 。该信息被储存在Orchard中并可以导出。 开启自定义表单模块 自定义表单模块与一个内容类型结合使用,以获取前台的输入信息。这种信息被提交后可以存储...
分类:其他   时间:2015-05-21 17:19:27    收藏:0  评论:0  赞:0  阅读:241
Yii::log 正式环境不起作用
Message RoutingMessages logged usingYii::logorYii::traceare kept in memory. We usually need to display them in browser windows, or save them in some p...
分类:其他   时间:2015-05-21 17:18:17    收藏:0  评论:0  赞:0  阅读:346
70 Climbing Stairs
斐波那契 f(n) = f(n -1) + f(n -2);public class Solution { public int climbStairs(int n) { int f1 = 1; int f2 = 2; if (n == 1) { ...
分类:其他   时间:2015-05-21 17:17:37    收藏:0  评论:0  赞:0  阅读:246
Bootstrap3模态垂直居中
1 2 3 4 5 1 function openDialog() {2 var modal = $('#myModal').modal({ keyboard: false, backdr...
分类:其他   时间:2015-05-21 17:17:17    收藏:0  评论:0  赞:0  阅读:402
Objective-C基础知识
内联函数“内联函数”是一个很老的概念,在其他语言譬如C++语言中也出现了。所谓“内联函数”指的是“有函数的结构,但不具备函数的性质,类似于宏替换功能的代码块”。在实际应用中,常常把规模较小、逻辑较简单的操作定义成内联函数,定义内联函数只要在函数前面加上inline关键字修饰即可;站在编译器的角度,处...
分类:其他   时间:2015-05-21 17:16:57    收藏:0  评论:0  赞:0  阅读:166
AD按键:
原理:利用数组分压+AD采集;优点:一个IO口可以做成多个按键,节省IO口(矩阵键盘在>4时优点才能体现出来);可备用作为AD基准输入。缺点:不能做成组合按键(或者电阻要精确选择);且离IO口越近优先级越高。按键的识别收到精度的影响(消兜:抖动时间几毫秒到几十毫秒,所以连续读4次(每次8ms)直到读...
分类:其他   时间:2015-05-21 17:16:47    收藏:0  评论:0  赞:0  阅读:239
用vlc搭建简单流媒体服务器(UDP和TCP方式)
这段时间用到了流媒体数据传输的TCP和UDP方式,感觉vlc可以做这方面的demo,这里总结下,也方便我以后查阅。简介VLC主页:http://www.videolan.orgVLC不仅仅是个播放器,也可以作为流媒体服务器使用。这个网上有相关的资料,我就不多说了。声明下本文用的VLC版本:2.0.3...
分类:其他   时间:2015-05-21 17:16:17    收藏:0  评论:0  赞:0  阅读:183
解决Office PowerPoint 2007 输入汉字卡死
已经是很久之前就有的问题了,只要PPT里边一打中文就会卡死,百度了好多都是XP系统解决方法。还不容易搞了一个,这次终于解决了。原网址http://jingyan.baidu.com/article/e3c78d6472efbb3c4c85f5ba.html欢迎大家支持正版。现象在往ppt中写入中文的...
分类:其他   时间:2015-05-21 17:14:20    收藏:0  评论:0  赞:0  阅读:266
SSIS 2012 Error: An Integration Services class cannot be found
升级SSIS到SQL Server 2012,服务器只安装了SSIS一个功能,应用程序执行dtsx包时报错如下:An Integration Services class cannot be found. Make sure that Integration Services is correctl...
分类:其他   时间:2015-05-21 17:13:48    收藏:0  评论:0  赞:0  阅读:359
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!