现在位置: 首页 > taxonomic发表的所有文章
排名第一的BitDefender 简介:BitDefender杀毒软件是来自罗马尼亚的老牌杀毒软件,二十四万超大病毒库,它将为你的计算机提供最大的保护,它包括 1.永久的防病毒保护;2.后台扫描与网络防火墙;3.保密控制;4.自动快速升级模块;5.创建计划任务;6.病毒隔离区。   BitDefender专业版下载地址,最高版本,有汉化,有算号器 http://www.orsoon.com/Software/Catalog179/6484.html http://soft.mumayi.net/Software/Catalog101/2615.html SN:82E04-6AFBA-1DA94-7B539 排名第二的Kaspersky 简介:Kaspersky(卡巴斯基)杀毒软件来源......
阅读全文
  • 02月
  • 20日
综合 ⁄ 共 2111字 评论关闭
A:边界不用处理,直接暴力遍历原始数组 #include<stdio.h> #include<string.h> char a[150] = " qwertyuiopasdfghjkl;zxcvbnm,./"; int main() { char c; char v[150]; while(~scanf("%c%*c", &c)) { scanf("%s%*c", v); for(int i = 0; v[i]; i++) { for(int j = 1; a[j]; j++) { if(a[j] == v[i]) if(c == 'R') printf("%c", a[j-1]); else if(c == 'L'......
阅读全文
  • 04月
  • 11日
综合 ⁄ 共 4447字 评论关闭
在网络程序中,一个进程同时处理多个文件描述符是很常见的情况。select()系统调用可以使进程检测同时等待的多个I/O设备,当没有设备准备好时,select()阻塞,其中任一设备准备好时,select()就返回。 select()的调用形式为: #include <sys/select.h> #include <sys/time.h> int select(int maxfd, fd_set *readfds, fd_set *writefds, fe_set *exceptfds, const struct timeval *timeout); select的第一个参数是文件描述符集中要被检测的比特数,这个值必须至少比待检测的最大文件描述......
阅读全文
  • 04月
  • 05日
综合 ⁄ 共 3801字 评论关闭
Windows Embedded CE offers a rich set of features that you can use to customize a platform. Component services, networking capabilities, multimedia support, and many other capabilities are contained within individual operating system features. You can choose from a wide range of operating system features through the catalog items in Platform Builder. You can build a customized operating system design from a combination of these catalog items. Some catalog items require that other catalog ......
阅读全文
  • 04月
  • 03日
综合 ⁄ 共 632字 评论关闭
原文可见 OpenCV中的一个函数 函数原型为: C++: int waitKey(int delay=0) Python: cv2.waitKey([delay]) → retval C: int cvWaitKey(int delay=0 ) Python: cv.WaitKey(delay=0) → int 函数功能: waitKey()函数的功能是不断刷新图像,频率时间为delay,单位为ms。 返回值为当前键盘按键值。 所以显示图像时,如果需要在imshow("xxxx",image)后加上while(cvWaitKey(n)==key)为大于等于0的数即可,那么程序将会停在显示函数处,不运行其他代码;直到键盘值为key的响应之后。 delay>0时,延迟"delay"m......
阅读全文
首先给出期望最大值化算法在高斯混合分布中的应用,我们用《Pattern Recognition and Machine Learning》中第九章中的符号: 假设有个观测数据组成的集合,个高斯分布, E步: ,,。 M 步: , , , ,。 ————————————————————————————————————————————————————— 并行的期望最大值化算法: 假设有个观测数据组成 的集合,个高斯分布,首先把这个观测数据,分成份(可以是不等分也可以是等分),假设这个子集,分别有 个观测数据,其中,然后,把这个子集,分别分布到个Mapper上,则: E步: 第一个Mapper,就算关于第一个子集的......
阅读全文
  • 12月
  • 14日
综合 ⁄ 共 4067字 评论关闭
转自http://www.cnblogs.com/leadzen/archive/2008/02/12/1067474.html       在设计类时,构造函数和析构函数往往需要十分的小心。平时不太注意构造函数和析构函数抛出异常,但这却会造成内存泄漏等问题。转载李老师的博客,讲的很清楚:   构造函数和析构函数分别管理对象的建立和释放,负责对象的诞生和死亡的过程。当一个对象诞生时,构造函数负责创建并初始化对象的内部环境,包括分配内存、创建内部对象和打开相关的外部资源,等等。 而当对象死亡时,析构函数负责关闭资源、释放内部的对象和已分配的内存。   在对象生......
阅读全文
  • 12月
  • 13日
综合 ⁄ 共 3796字 评论关闭
Problem Description Ignatius had a nightmare last night. He found himself in a labyrinth with a time bomb on him. The labyrinth has an exit, Ignatius should get out of the labyrinth before the bomb explodes. The initial exploding time of the bomb is set to 6 minutes. To prevent the bomb from exploding by shake, Ignatius had to move slowly, that is to move from one area to the nearest area(that is, if Ignatius stands on (x,y) now, he could only on (x+1,y), (x-1,y), (x,y+1), or (x,y-1) in ......
阅读全文
  • 12月
  • 06日
综合 ⁄ 共 1878字 评论关闭
菜鸟 : <!-- 把数据源注入给Session工厂 --><bean id="sessionFactory"   class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">   <property name="dataSource">    <ref bean="dataSource" />   </property>  <!-- 配置映射文件 -->   <property name="mappingResources">    <list>     <value>com/alonely/vo/User.hbm.xml</value>    </list>   </property></bean><!-- 把Session工厂注入给hibernateTemplate --><......
阅读全文
  • 11月
  • 23日
综合 ⁄ 共 2240字 评论关闭
组合数学。。。。 Code Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 7202 Accepted: 3361 Description Transmitting and memorizing information is a task that requires different coding systems for the best use of the available space. A well known system is that one where a number is associated to a character sequence. It is considered that the words are made only of small characters of the English alphabet a,b,c, ..., z (26 characters). From all these words we consid......
阅读全文
  • 11月
  • 21日
综合 ⁄ 共 826字 评论关闭
题目大意:有一些奶牛在一些牧场里,这些牧场有些单向边,牧场中的牛按照单向边行走,问有哪些牧场所有牛都能到达。 思路:图的连通性本来应该是tarjan或者并查集什么的,但是这个题数据范围是在是太弱了,所以就搜索就行了。 CODE: #include <cstdio> #include <cstring> #include <iostream> #include <algorithm> #define MAX 10010 using namespace std; int cows,points,edges; bool have_cow[MAX]; int head[MAX],total; int next[MAX],aim[MAX]; bool v[MAX]; int cnt[MAX],blocks; inline ......
阅读全文
  • 03月
  • 25日
综合 ⁄ 共 3038字 评论关闭
文章目录 1.配置两条NAT规则 2.编写一个Netfilter HOOK 3.使用专门的虚拟设备 问题描述与解决方案 还是老问题,Linux系统中通过iptables配置的NAT无法在双向通信环境中使用,你无法配置一条NAT规则实现对两个方向主动发起的流量做NAT,解决这个问题的方案有好几种: 1.配置两条NAT规则 iptables的NAT配置本身就是先match再执行一个target,因此一条规则只能表示一种转换策略,要想实现“来自x的数据包的源地址转换为y,去往y的数据包的目标地址转为x”这样的逻辑,必须使用两......
阅读全文