首页 > 2015年03月20日 > 全部分享
Unit16 When's your birthday?
When‘syourbirthday?Whenisyourbirthday?你的生日是什么时候?It‘sjustaroundthecorner.就快到了。Ineedtobuymyfriendapresent.Herbirthdayisjustaroundthecorner.Herbirthdayiscommingsoon.Herbirthdayisnearathand.
分类:其他   时间:2015-03-20 18:47:44    收藏:0  评论:0  赞:0  阅读:195
bloom filter(布隆过滤器)
今天中邪了, 觉得看看bloom filter。 看看海量数据处理的经典算法。  这是1970年提出来。  是用于检测一个元素是不是一个集合的成员。 如果检测结果为True, 则该元素不一定在该集合中。 如果检测结果为False, 表明该元素一定在这个集合中。 这说明bloom filter 具有 100%的召回率。 每个检测请求返回的结果只有两种, 也就是“在集合内(可能错误)” 和 “绝对不...
分类:其他   时间:2015-03-20 18:46:34    收藏:0  评论:0  赞:0  阅读:291
安卓基础(十五)
ActionBar的添加以及简单使用...
分类:移动平台   时间:2015-03-20 18:46:24    收藏:0  评论:0  赞:0  阅读:354
Win8.1开启Hyper-V并设置虚拟机联网
虚拟机用惯了VM,听说win8自带的hype-v不错比原来有了较大的改进,特地来试试。     win8开启hype-v的方式如下 安装完重启下就可以了。        接着说联网,Hype-v的设置个人感觉稍微比VM麻烦了那么一点,具体步骤可见这个链接:http://www.cr173.com/html/18692_1.html ,说白了就是把你的物理机的网络共享出来,类似于VM的...
分类:Windows开发   时间:2015-03-20 18:46:14    收藏:0  评论:0  赞:0  阅读:767
mtk硬件启动关闭蓝牙功能的项目:mtk 硬件ScanCode和keycode应用示例
项目要求:该项目由于没有使用android5.0,导致启动bluetooth的蓝牙audio slave功能必须使用第三方模组,该第三方模组,启动是通过android主板通过GPIO控制。UI界面是通过图形选择或者一个kpd组合按键来打开关闭或者是启动蓝牙搜索功能。 1,用户按键的侦测: 标准的行为,用户的组合按键,kernel里面向上层发送scancode,然后framework把s...
分类:其他   时间:2015-03-20 18:46:04    收藏:0  评论:0  赞:0  阅读:662
谈谈final
用final修饰类  这种情况很简单,这个类不能被继承。它"绝后"了。 用final修饰方法 这里可以分两种情况。 用final修饰private方法。其实也不能这么说,英文私有方法也被编译器隐式修饰为final,这意味着private final void f()和private void f()并无区别。 用final修饰public方法。 那么此方法不能被重写。  用fi...
分类:其他   时间:2015-03-20 18:45:54    收藏:0  评论:0  赞:0  阅读:292
排列数算法A(n,m)(n>=m)
#include using namespace std; int source[]={1,2,3,4,5,6,7,8,9},n=9,m=3,record[10],visited[10],counter=0; void output() { for(int i=0;i<m;i++) cout<<record[i]<<" "; cout<<endl; } void dfs(int step)...
分类:编程语言   时间:2015-03-20 18:45:44    收藏:0  评论:0  赞:0  阅读:422
两个超大数相乘
需要注意的都在代码注释里,自己看吧,欢迎讨论。 #include #include #include using namespace std; //模拟手工加法 string add(string str1, string str2) { int i; string str; int len_str1 = str1.length(); int len_str2 = str2....
分类:其他   时间:2015-03-20 18:45:34    收藏:0  评论:0  赞:0  阅读:302
XCode6报数组越界错误的问题
今天碰到一个很奇葩的问题, 调试了半天:  错误:“index 0 beyond bounds for empty array”,  意思就是说数据源数组为nil, 所以你调用直接取值自然就报错.      我叙述下我的场景:  1. 在UITaleView中创建cell, 数据源dataArray是存在并且数量为10, 然后我是[dataArray objectAtIndexindexPa...
分类:编程语言   时间:2015-03-20 18:45:24    收藏:0  评论:0  赞:0  阅读:333
快速幂算法的理解
首先给出代码:#include using namespace std; //计算a^bmodn int modexp(int a,int b,int n) { int ret=1; int tmp=a; while(b) { if(b&1)...
分类:编程语言   时间:2015-03-20 18:45:14    收藏:0  评论:0  赞:0  阅读:439
libcurl 编译详解
项目中适用libcurl,反正是开源的,那就编译就OK了,只是在使用过程中遇到了N多蛋疼问题,记录下来,为遇到同样问题的朋友提供个参考。     正常使用的编译,网上多得是列一下也     ./configure  --prefix=/usr/local/curl           安装的路径随便写。     make;make install     这样就搞定了。     我的问题...
分类:Web开发   时间:2015-03-20 18:45:04    收藏:0  评论:0  赞:0  阅读:1247
敏捷开发下该如何正确的看待人/天这件事?
只是改变个算法, 是毫无意义的……...
分类:其他   时间:2015-03-20 18:44:54    收藏:0  评论:0  赞:0  阅读:319
hdu3549 flow
水水maxflow~,练练手 #include #include #include #include using namespace std; const int MAXN=35,MAXE=1000*10; const int inf=0x3f3f3f3f; int e[MAXE][3];int head[MAXN];int nume=0; void adde(int i,int j,i...
分类:其他   时间:2015-03-20 18:44:44    收藏:0  评论:0  赞:0  阅读:263
简单自定义View
简单的自定义View下,参考李刚疯狂Andriod package com.utils.MyDemo; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.util....
分类:其他   时间:2015-03-20 18:44:34    收藏:0  评论:0  赞:0  阅读:235
单例模式(Java代码实现)
单例模式的定义 单例模式确保类只有一个实例,并且提供一个全局的访问点。...
分类:编程语言   时间:2015-03-20 18:44:24    收藏:0  评论:0  赞:0  阅读:278
JAVA学习笔记(一) - 基本数据类型
基本数据类型基本数据类型-定点型package com.itany.basejava.day02.demo01; /* * 基本数据类型-定点型 */ public class Test { public static void main(String[] args) { //1-整型常量值默认的类型是int;如果声明的变量的类型为byte,short,char时...
分类:编程语言   时间:2015-03-20 18:43:54    收藏:0  评论:0  赞:0  阅读:264
web报表工具FineReport使用中遇到的常见报错及解决办法(一)
FineReport使用中遇到的常见报错及解决办法(一) 这里写点抛砖引玉,希望大家能把自己整理的问题及解决方法晾出来,Mark一下,利人利己。   出现问题先搜一下文档上有没有,再看看度娘有没有,再看看论坛有没有。有报错要看日志。下面简单罗列下常见的问题,大多文档上都有提到的。   1、address pool is full: 含义:地址池满,连接数超过并发数上限。 解决办法: ...
分类:Web开发   时间:2015-03-20 18:43:44    收藏:0  评论:0  赞:0  阅读:467
【LeetCode从零单排】No15 3Sum
题目Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.Note:Elements in a triplet (a,b,c) must be ...
分类:其他   时间:2015-03-20 18:43:34    收藏:0  评论:0  赞:0  阅读:297
Android Studio 绑定git
Android Studio 在下面的工具栏上面有一个terminal在里面可以使用cmd命令,我们可以在里面绑定git,这样每次提交代码的时候就不用每次都出去了。 步骤如下: 1.File--Settings--Versoon Control--git--test来测试你的git安装是否正确。 2.点击开始--所有程序--找到git的文件夹--右键git bash属性--把目标的那...
分类:移动平台   时间:2015-03-20 18:43:23    收藏:0  评论:0  赞:0  阅读:415
【JAVA】【NIO】9、Java NIO SocketChannel
Java NIO的SocketChannel是连接tcp网络套接字的channel。有如下两种方式去创建: 1、打开一个SocketChannel,连接到网络上的一个server 2、当ServerSocketChannel收到一个连接,SocketChannel就创建了 打开SocketChannel SocketChannel socketChannel = SocketChannel...
分类:编程语言   时间:2015-03-20 18:43:14    收藏:0  评论:0  赞:0  阅读:335
2008条   上一页 1 ... 26 27 28 29 30 ... 101 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!