一、简介
Samba是一个能让Linux系统应用Microsoft网络通讯协议的软件,而SMB是Server Message Block的缩写,即为服务器消息块
,SMB主要是作为Microsoft的网络通讯协议,后来Samba将SMB通信协议应用到了Linux系统上,就形成了现在的Samba软件....
分类:
其他好文 时间:
2014-05-15 09:44:29
阅读次数:
292
题目链接:点击打开链接
题意:给定n个点 m个询问
下面n-1行给定一棵树
m个询问 x y
问把树转成以x为根 y的父节点是谁
第一种情况lca==y那就是x的第 dep[x] - dep[y] -1 父亲,依次向上爬山坡,利用倍增的二进制加速。
第二种就是Father[y];
#include"cstdio"
#include"iostream"
#include"queue"
...
分类:
其他好文 时间:
2014-05-15 09:11:44
阅读次数:
397
1 #include 2 #include 3 using namespace std; 4 5
template class Queue; 6 template ostream & operator &); 7 8 template
class QueueItem...
分类:
其他好文 时间:
2014-05-15 02:01:47
阅读次数:
406
这是我今天遇到的一个最棘手的问题,耗费了一下午的时间终于解决了。不知道为什么,今天做这个web项目时突然遇到下面这样一个错误:typeExceptionreport
message
descriptionTheserverencounteredaninternalerror()thatpreventeditfromfulfillingthisrequest.
exception
org.ap..
分类:
其他好文 时间:
2014-05-15 00:29:29
阅读次数:
328
/proc/sys/net/ipv4/tcp_max_tw_buckets
默认的太小了net.ipv4.tcp_syncookies = 0这个参数是怎么得来的?其实是通过ab 简单的压力测试,/var/log/message
里面会有内核的报错信息。
分类:
其他好文 时间:
2014-05-14 22:56:49
阅读次数:
349
c++ primer 模板与泛型编程 Queue模板的实现...
分类:
编程语言 时间:
2014-05-14 20:45:26
阅读次数:
362
Master-Worker模式适合在一个任务可以拆分成多个小任务来进行的情况下使用。packagecn.fcl.masterworker;
importjava.util.HashMap;
importjava.util.Map;
importjava.util.Queue;
importjava.util.concurrent.ConcurrentHashMap;
importjava.util.concurrent.ConcurrentLinked..
分类:
编程语言 时间:
2014-05-14 18:26:04
阅读次数:
243
在UI线程中创建子线程——》在子线程中获取网络图片--》在线程中通过Message传递二进制图片给Handler,--》Handler在handleMessage()中处理消息packagecom.example.android_handler_message;
importjava.io.IOException;
importorg...
分类:
移动开发 时间:
2014-05-14 18:24:57
阅读次数:
410
1UIAlertView类似于Android中的Dialog,简单用法如下:UIAlertView*alertView=[[UIAlertViewalloc]initWithTitle:@"Title"message:@"Messate"delegate:nilcancelButtonTitle:@"Cancle"otherButtonTitles:nil,nil];[alertViewshow];2UIActionSheet底部弹出的对话框,较常用,简..
分类:
移动开发 时间:
2014-05-14 16:24:55
阅读次数:
332
staticint_osip_message_parse(osip_message_t*sip,constchar*buf,size_tlength,intsipfrag){inti;constchar*next_header_index;char*tmp;char*beg;tmp=osip_malloc(length+2);if(tmp==NULL){OSIP_TRACE(osip_trace(__FILE__,__LINE__,OSIP_ERROR,NULL,"Couldnotallocatememory..
分类:
其他好文 时间:
2014-05-14 16:06:25
阅读次数:
296