现在位置: 首页 > prefab发表的所有文章
  • 06月
  • 16日
综合 ⁄ 共 6010字 评论关闭
       两个月前,应普元《银弹》杂志编辑的邀请,写了篇有关“流程”与“微内核”方面的文章,标题为“微内核过程引擎的设计思路和构架” 。如今第七期普元杂志已经出刊,现讲全文转登于个人博客。普元《银弹》原稿地址:http://gocom.primeton.com/modules/gSpace/modules/techresource/article1803.htm         阅读完本篇之后,再阅读我不久之前写的《揭秘jbpm流程引擎内核设计思想及构架》,可能更容易理解本文的一些主旨。也建议大家参考我几年前写的《工作流模型分析》、《工作流授权控制模型》、《工作流组织模型》、《工作流引......
阅读全文
  • 03月
  • 27日
综合 ⁄ 共 701字 评论关闭
无线路由器的天线接头部分,一般都设计有可以弯折的连结件,同时在弯折角度90°、45°、0°的部分有卡榫固定,方便用户让天线呈现如上三种角度。受测的无线路由器是华硕的RT-N66U,天线是随机附赠的5dBi全向棒状天线。 我们在android手机装上“Wifi分析仪”这款APP来测试信号强度。因为场地受限的关系,将无线路由器的信号输出功率调至50mW,手机上则是自动。两个装置相距约5米,中间有一道1cm厚的玻璃隔断。我们最高把华硕RT-N66U的射频信号输出功率调整到200mW。   上图是天线调整成90°、45°、0°和混搭时,在手机上所测到的无线......
阅读全文
  • 02月
  • 20日
算法 ⁄ 共 1781字 评论关闭
Problem Description The professors of the Bayerische Mathematiker Verein have their annual party in the local Biergarten. They are sitting at a round table each with his own pint of beer. As a ceremony each professor raises his pint and toasts one of the other guests in such a way that no arms cross. Figure 2: Toasting across a table with eight persons:no arms crossing(left), arms crossing(right) We know that the professors like to toast with someone that is drinking the same brand of b......
阅读全文
  • 02月
  • 20日
综合 ⁄ 共 441字 评论关闭
#include<stdio.h> #include<algorithm> using namespace std; int a[5005]; int n; int dfs(int l, int r) { int re = r - l + 1; //水平刷最下那层的 int now = 199999999; for(int i = l; i <= r; i++) { now = min(a[i], now); } for(int i = l; i <= r; i++) { a[i] -= now; } for(int i = l; i <= r; i++) { if(a[i] && !a[i-1]) { int j = i; while(a[j + 1]) j++; now += dfs(i, j); } } //除了水平刷之后其他方法的最小的 retur......
阅读全文
  • 05月
  • 05日
综合 ⁄ 共 897字 评论关闭
from:http://www.cnblogs.com/chaosimple/archive/2013/07/04/3171251.html 在Word 2007中添加参考文献及其引用的方法 以前写文章的时候忽略了在文章中添加参考文献及其引用的方式,文章各式显得不太正式,在网上进行了相关搜索,将方法整理如下: 1、将光标停留在需要插入文献的地方[1],选择菜单栏上的“引用 -> 插入尾注”,此时默认会在文档末尾或者当前章节的末尾出现罗马数字的尾注。如图1所示: 图 1 插入尾注 2、点击“注脚”菜单栏右侧的箭头进入注脚设置菜单,格式编号选择阿拉伯数字,尾注位置若默认是节的结尾......
阅读全文
  • 04月
  • 30日
综合 ⁄ 共 3050字 评论关闭
Overview of Dial-up Networking (DUN) Profile (Data Terminal Role) Windows Embedded NavReady supports the Bluetooth Dial-up Networking (DUN) profile. Bluetooth DUN lets a Bluetooth-enabled device connect to another Bluetooth-enabled device that has a wireless modem, so that it can use that device as a modem to connect to the Internet or to other dial-up services. With the DUN profile in Windows Embedded NavReady, you can enable users of a Windows Embedded NavReady powered portable navi......
阅读全文
  • 04月
  • 29日
综合 ⁄ 共 325字 评论关闭
 非常简单的一道贪心算法的题目,只要从最大面值的钞票开始不断的运用除法和取模运算就可以了,先前看到有人用dp做,真心感觉有点屠龙刀切白菜容易伤着自己~ # include<cstdio> # include<iostream> using namespace std; int main(void) { int n; int m; while ( (cin>>n)&&n ) { int ans = 0; for ( int i = 0;i < n;i++ ) { cin>>m; ans += m/100; m %= 100; ans += m/50; m %= ......
阅读全文
  • 04月
  • 26日
综合 ⁄ 共 8791字 评论关闭
火星移民(mars) 【问题描述】 在2xyz 年,人类已经移民到了火星上。由于工业的需要,人们开始在火星 上采矿。火星的矿区是一个边长为N 的正六边形,为了方便规划,整个矿区被分 为6*N*N 个正三角形的区域(如图1)。 整个矿区中存在A 矿,B 矿,C 矿三个矿场,和a 厂,b 厂,c 厂三个炼矿厂。 每个三角形的区域可以是一个矿场、炼矿厂、山地、或者平地。现在矿区管理局 要求建立一个交通系统,使得矿场和对应炼矿厂之间存在一条公路,并且三条公 路互不交叉(即一个三角形区域中不存在两条以上运输不同矿的公路)。两个三角 形区......
阅读全文
  • 04月
  • 08日
综合 ⁄ 共 2332字 评论关闭
A. Cards time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output User ainta loves to play with cards. He has a cards containing letter "o" and b cards containing letter "x". He arranges the cards in a row, and calculates the score of the deck by the formula below. At first, the score is 0. For each block of contiguous "o"s with length x the score increases by x2. For each block of contiguous "x"s with length y the score de......
阅读全文
  • 03月
  • 22日
综合 ⁄ 共 12174字 评论关闭
14、文件权限管理 三种基本权限  R 读权限 W 写权限 X 执行权限  (1)查看文件和目录的权限  ls –l 文件名 显示信息包含:文件类型(d 目录,- 普通文件,l 链接文件),文件权限,目录子目录或文件的硬链接数,文件的属主,文件的所属组,文件的大小,文件的创建时间,文件的名称 -rw-r--r--  1 itcast users  2254 2006-05-20 13:47 tt.htm 从第二个字符起rw-是说用户itcast有读、写权,没有运行权,接着的r--表示用户组users只有读权限,没有运行权,最后的r--指其他人(others)只有读权限,没有写权和运行权。 (2)更改操作权......
阅读全文
  • 02月
  • 02日
综合 ⁄ 共 3413字 评论关闭
最近想把公司原来用CVS管理的代码迁移到SVN中去。主要是因为SVN是整个版本库共享一个版本历史,比较方便完整的Checkout某个工程。而且SVN还有一些CVS所不具有的良好特性,比如支持对目录版本进行管理,支持重命名和移动等。 上网查了下,大部分人用cvs2svn来将CVS版本库迁移到SVN中。但是cvs2svn似乎要用Python来运行,我向来对这个日本人发明的脚本不感兴趣,所以希望能找到其它方案。最后发现SVN Importer。SVN Importer不仅可以进行CVS版本库到SVN版本库的迁移,而且还可以迁移PVCS、VSS、ClearCase、MKS、StarTeam等VCS(Versi......
阅读全文
  • 01月
  • 19日
综合 ⁄ 共 1505字 评论关闭
题目大意:(同poj1741,刷一赠一系列) CODE: #include <cstdio> #include <cstring> #include <iostream> #include <algorithm> #define MAX 40010 #define INF 0x3f3f3f3f using namespace std; int points,edges,k; int head[MAX],total; int next[MAX << 1],length[MAX << 1],aim[MAX << 1]; bool v[MAX]; int cnt[MAX]; int _size,size[MAX],root,_total; int dis[MAX],p; char s[10]; inline void Add(int x,int y,int len); void Work(int x); void GetRoot(int x,int......
阅读全文