首页 > 其他
Debian Iptables防火墙配置
iptables很强大,这只是介绍我小小的fllow debian wiki 然后简单的设置了下iptables,以后再根据需求具体设置首先 (查看当前iptables配置,我装的debian默认安装了)sudo iptables -L如果没配置过的话,输出是(什么作用都没起到)Chain INPU...
分类:其他   时间:2015-01-27 00:14:00    收藏:0  评论:0  赞:0  阅读:282
使用ContentProvider共享数据
独占共享XML文本二进制文件数据量大(数据库,开源)这些都是进程独享的/ Content Provider可以进程共享1.extends ContentProvider,并重写以下方法public boolean onCreate()public Uri insert(Uri uri, Conten...
分类:其他   时间:2015-01-27 00:13:40    收藏:0  评论:0  赞:0  阅读:300
数论小结1.
从白书上面的习题开始版切....但是发现时间不够了....今天粗略的做了不少题目.....但是有些题目感觉实在是比较诡异.......感觉考的话也不太可能...不过还是写下来吧. 1.Uva 10673 已知x, k, 求 x = p * floor(x / k) + q * ceil(x ...
分类:其他   时间:2015-01-27 00:13:30    收藏:0  评论:0  赞:0  阅读:200
代码控制数据流量开关
/** * 操作数据流量 * GPRS网络开关 反射ConnectivityManager中hide的方法setMobileDataEnabled 可以开启和关闭GPRS网络 * @param isEnable * @throws Exception ...
分类:其他   时间:2015-01-27 00:13:10    收藏:0  评论:0  赞:0  阅读:286
【leetcode】Find Peak Element
Find Peak ElementA peak element is an element that is greater than its neighbors.Given an input array wherenum[i] ≠ num[i+1], find a peak element and ...
分类:其他   时间:2015-01-27 00:13:00    收藏:0  评论:0  赞:0  阅读:166
【BZOJ】【3052】【WC2013】糖果公园
树分块 老早(大约一个月以前?)就听说这道神题了……orz rausen 一直拖到现在才做……发现还是不会呢= = 只好也去Orz了Hzwer和zky http://hzwer.com/5250.html http://blog.csdn.net/iamzky/article/details...
分类:其他   时间:2015-01-27 00:12:50    收藏:0  评论:0  赞:0  阅读:192
解析xml
cs代码using System;using System.Collections.Generic;using System.Linq;using System.Security.Cryptography.X509Certificates;using System.Web;using System....
分类:其他   时间:2015-01-27 00:12:10    收藏:0  评论:0  赞:0  阅读:306
【博弈论】BZOJ 1115-石子游戏
题意:有N堆石子,除了第一堆外,每堆石子个数都不少于前一堆的石子个数。两人轮流操作 每次操作可以从一堆石子中移走任意多石子,但是要保证操作后仍然满足初始时的条件 谁没有石子可移时输掉游戏。问先手是否必胜。这个题是一个阶梯博弈的问题。一开始没有接触过,各种度娘然后搞懂了,赶快记下来。何为阶梯博弈?简单...
分类:其他   时间:2015-01-27 00:11:30    收藏:0  评论:0  赞:0  阅读:307
【leetcode】Symmetric Tree
Symmetric TreeGiven a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric...
分类:其他   时间:2015-01-27 00:11:20    收藏:0  评论:0  赞:0  阅读:171
管道,消息队列,共享内存!
2015.1.26星期一,阴天linux中使用的较多的进程通信方式主要有一下几种:1.管道(Pipe):管道可用于具有亲缘关系进程间的通信,有名管道,除了具有管道所具有功能外,它 还允许无亲缘关系进程的通信2.信号(signal):信号是在软件层次上对中断机制的一种模拟,它是...
分类:其他   时间:2015-01-27 00:11:00    收藏:0  评论:0  赞:0  阅读:381
SharedPreferences和PreferencesActvity
软件参数设置,轻量级存储类文件放在/data/data//shared_prefs指定文件名不要带有后缀,默认以xml保存三种方式得到preference区别:1.public SharedPreference getPreferences(int mode) 通过Activity对象获取,获取的是...
分类:其他   时间:2015-01-27 00:10:52    收藏:0  评论:0  赞:0  阅读:379
[翻译] WPAttributedMarkup
WPAttributedMarkuphttps://github.com/nigelgrange/WPAttributedMarkupWPAttributedMarkup is a simple utility category that can be used to easily create a...
分类:其他   时间:2015-01-27 00:10:40    收藏:0  评论:0  赞:0  阅读:355
bower学习(转)
来源:http://www.ddhigh.com/2014/09/bower%E5%BF%AB%E9%80%9F%E5%85%A5%E9%97%A8/感谢作者分享~简介bower是twitter的又一个开源项目,使用nodejs开发,用于web包管理。如果越来越多得开源项目都托管在github上,b...
分类:其他   时间:2015-01-27 00:10:30    收藏:0  评论:0  赞:0  阅读:488
poj1050-To the Max
头疼,做道水题。。DescriptionGiven a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greate...
分类:其他   时间:2015-01-27 00:09:30    收藏:0  评论:0  赞:0  阅读:271
动态申请内存和释放
申请 new1 int *pint = new int(1024);//开辟一片内存空间,用来保存一个int类型的变量,该存储空间的初始值为1024(初始值可以不写),new返回该内存空间的地址并将该地址赋值给指针变量pint2 int *pia = new int[4]; //开辟一片内存空间.....
分类:其他   时间:2015-01-27 00:09:00    收藏:0  评论:0  赞:0  阅读:241
[leetcode] 01 Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:其他   时间:2015-01-27 00:08:20    收藏:0  评论:0  赞:0  阅读:253
ng-grid入手
简介ng-grid是基于AngularJS和JQuery的富表格控件,由AngularUI Team领衔开发,到目前为止已有2354次Commit,1076个Fork。AngualrUI:http://angular-ui.github.io/ng-grid: http://angular-ui.g...
分类:其他   时间:2015-01-27 00:08:10    收藏:0  评论:0  赞:0  阅读:317
【leetcode】Anagrams
AnagramsGiven an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.Anagrams:即字母个数和字母都相同,但是字母顺序不相...
分类:其他   时间:2015-01-27 00:08:01    收藏:0  评论:0  赞:0  阅读:330
[LeetCode] String to Integer (atoi)
Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, please do not see below and ...
分类:其他   时间:2015-01-27 00:06:20    收藏:0  评论:0  赞:0  阅读:288
const1
1. const的最初动机是取代预处理器#define来进行值替代 #define只做些文本替代,它既没有类型检查概念,也没有类型检查功能,所以预处理器的值替代会产生一些问题。 这些问题在C++中可以通过使用const来避免。 2....
分类:其他   时间:2015-01-26 23:02:10    收藏:0  评论:0  赞:0  阅读:467
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!