上一页 1 ··· 145 146 147 148 149 150 151 152 153 ··· 164 下一页

2017年4月28日

【C语言】求一个数的绝对值

摘要: //求一个数的绝对值 #include <stdio.h> int absolute_value(int num) { if (num < 0) { num = ~(num - 1); } return num; } int main() { printf("%d\n", absolute_valu 阅读全文

posted @ 2017-04-28 16:58 wgwyanfs 阅读(1349) 评论(0) 推荐(0)

git rebase 使用

摘要: Git Community Book 中文版书上。摘录例如以下: 一、基本 git rebase用于把一个分支的改动合并到当前分支。 如果你如今基于远程分支"origin",创建一个叫"mywork"的分支。 $ git checkout -b mywork origin 如果远程分支"origin 阅读全文

posted @ 2017-04-28 15:20 wgwyanfs 阅读(229) 评论(0) 推荐(0)

linux下tomcat内存溢出

摘要: 有时候系统程序比較多,会出 outofmemory, permgen space等内存等问题 首先监控是否有流没有关闭。常见的如 inputstream ,connection等,最好在finally中关闭 其次建议用jcondole监控一下程序。在命令行直接输入jcondole,就能够监听内存和线 阅读全文

posted @ 2017-04-28 13:40 wgwyanfs 阅读(131) 评论(0) 推荐(0)

leetcode - Remove Duplicates from Sorted Array II

摘要: Follow up for "Remove Duplicates": What if duplicates are allowed at most twice? For example, Given sorted array A = [1,1,1,2,2,3], Your function shou 阅读全文

posted @ 2017-04-28 12:29 wgwyanfs 阅读(104) 评论(0) 推荐(0)

HDU 4810 Wall Painting (位操作-异或)

摘要: OJ题目:click here~~ 题目分析:给n个数。从这n个数中选择i个数,共同拥有c(n , i)种情况。将每种情况中的i个数异或,将这c(n , i)个异或结果求和,就得到第i个输出结果,i属于[1 n]。 求x个数的异或,等于分别对x个数的同一二进制位进行异或,然后加权求和。于是将n个数表 阅读全文

posted @ 2017-04-28 11:10 wgwyanfs 阅读(142) 评论(0) 推荐(0)

J - MANAGER(2.4.5)

摘要: J - MANAGER(2.4.5) Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64u Submit Status Description One of the programming paradigm in p 阅读全文

posted @ 2017-04-28 09:54 wgwyanfs 阅读(170) 评论(0) 推荐(0)

怎样使用npm打包公布nodejs程序包

摘要: 作者:zhanhailiang 日期:2014-11-20 不论基于不论什么语言开发内部项目,我们常常会在内部封装一些极具通用性的功能模块。假设我们认为该通用模块对其他团队有可取之处,全然能够将其开源出去。npm就是公布nodejs程序包的最优工具。 1. 首先在npmjs.org注冊一个账号:(可 阅读全文

posted @ 2017-04-28 08:22 wgwyanfs 阅读(229) 评论(0) 推荐(0)

2017年4月27日

JQuery Jcrop—JQuery Jcrop 图像裁剪工具学习

摘要: options 參数说明:名称默认值说明allowSelecttrue同意新选框allowMovetrue同意选框移动allowResizetrue同意选框缩放trackDocumenttruebaseClass"jcrop"基础样式名前缀。说明:class="jcrop-holder",更改的仅仅 阅读全文

posted @ 2017-04-27 21:34 wgwyanfs 阅读(241) 评论(0) 推荐(0)

sharepoint 2013 自己定义列表查看页面附件打开新页面方法 dispform attachments open new page

摘要: 我们在sharepoint的列表中,打开某一条数据,假设那条数据有附件。打开附件的时候。总是会把当前的页面给替换掉。怎样在点击附件的时候,打开新页面。能够用一下一段脚本来处理。 <script> $(document).ready(function () { if ($("#idAttachment 阅读全文

posted @ 2017-04-27 21:01 wgwyanfs 阅读(143) 评论(0) 推荐(0)

linux no space left on device的解决的方法(iNode满导致)

摘要: 今天在腾讯云的server被攻击后,apache启动报错,查找原因发现是磁盘空间不够no space left on device, 诡异的是df命令磁盘占用仅55% 继续查找原因。发现是iNode已满。即没有索引空间 这就好办了,首先定位哪个文件夹占用iNode最多,命令例如以下: find */ 阅读全文

posted @ 2017-04-27 20:31 wgwyanfs 阅读(225) 评论(0) 推荐(0)

上一页 1 ··· 145 146 147 148 149 150 151 152 153 ··· 164 下一页

导航