A method for operating a memory module device. The method can include transferring a chip select, command, and address information from a host memory ...
分类:
其他好文 时间:
2014-08-04 20:38:38
阅读次数:
386
准备工作 NodeJS(NPM) Grunt & Bower: npm install -g grunt-cli bower(if fail, use sudo) npm install -g generator-angular yo angular npm install bower install execute grunt tasks like: grunt serve...
分类:
其他好文 时间:
2014-08-04 14:47:27
阅读次数:
279
1 什么是.NET?什么是CLI?什么是CLR?IL是什么?JIT是什么?它是如何工作的?GC是什么?简述一下GC的工作方式?.net的全称是.NET Framework 是一种托管代码的编程模型,采用系统虚拟机运行的编程平台以通用语言运行库(CommonLanguageRuntime)为基础支持多...
分类:
Web程序 时间:
2014-08-03 17:40:55
阅读次数:
461
UVA 10298 - Power Strings
题目链接
题意:本意其实就是,给定一个字符串,求出最小循环节需要几次循环出原字符串
思路:利用KMP中next数组的性质,n - next[n]就是最小循环节,然后n / 循环节就是答案
代码:
#include
#include
const int N = 1000005;
char str[N];
int ...
分类:
其他好文 时间:
2014-08-02 18:21:43
阅读次数:
282
求fibonacci数列前N个数的K次方和。通项公式:F[n]=((1+sqrt(5))/sqrt(5)-(1-sqrt(5))/sqrt(5))/sqrt(5)。有点乱,不过由于可以保证最后的结果是一个整数,所有所有的根号都可以化为整数进行取模和逆元运算。首先解二次同余方程,X^2=n (mod ...
分类:
其他好文 时间:
2014-08-02 15:19:53
阅读次数:
294
点击打开链接
多源多汇最大流,虚拟一个源点s'和一个汇点t',原来的源点、汇点向它们连边。
#include
#include
#include
#include
#include
#include
using namespace std;
const int maxn = 500 + 5;
const int INF = 100000000;
struct Ed...
分类:
Web程序 时间:
2014-08-01 23:13:32
阅读次数:
312
PHP运行模式:1)cgi通用网关接口(CommonGatewayInterface))2)fast-cgi常驻(long-live)型的CGI3)cli命令行运行(CommandLineInterface)4)web模块模式(apache等web服务器运行的模块模式)HTTPServer有三种架构比较流行:(1)Apache+mod_php5(2)lighttp+spawn-fcgi(3)..
分类:
Web程序 时间:
2014-08-01 20:05:32
阅读次数:
381
在做AMlogic项目的时候,配置按键后,发现电源键只能关机,不能开机,很是郁闷
后来发现是漏掉了一个地方没有配置,firmware/arc_power/irremote2arc.c 这个文件里面没有正确的配置好
1、#define IR_POWER_KEY 0xe51afb04 这个值需要配置成电源键的全码值,也就是用串口获取到的键值
2、unsigned int kk[] = { ...
分类:
其他好文 时间:
2014-07-31 20:56:37
阅读次数:
195
题目链接:http://poj.org/problem?id=3233解题报告:输入一个边长为n的矩阵A,然后输入一个k,要你求A + A^2 + A^3 + A^4 + A^5.......A^k,然后结果的每个元素A[i][j] % m。(n 2 #include 3 #include ...
分类:
其他好文 时间:
2014-07-31 20:43:37
阅读次数:
229