1、随机生成10个0~100之间的随机数组成数组import java.util.Random;import java.util.Arrays;public class TestRandom { public static void main(String[] args) { Random ran....
分类:
其他好文 时间:
2014-09-17 02:17:11
阅读次数:
331
补充关于内存的一些基础知识,主要是为了理解DPDK,没有涉及太深。
RAM分为SRAM(static random access memory)和DRAM(dynamic random access memory)。
主存DRAM由大至小,由上往下可做以下拆分:channel > DIMM >...
分类:
其他好文 时间:
2014-09-17 01:04:21
阅读次数:
422
Color getRandColor(int fc,int bc){//给定范围获得随机颜色
Random random = new Random();
if(fc>255) fc=255;
if(bc>255) bc=255;
int r=fc+random.nextInt(bc-fc);
int g=fc...
分类:
其他好文 时间:
2014-09-16 23:45:31
阅读次数:
217
问题来源:\ThinkPHP3.1.3_full\ThinkPHP\Lib\Core\App.class.php 中 init()方法 if(C('OUTPUT_ENCODE')){ $zlib = ini_get('zlib.output_compression'); if(empty($zlib...
分类:
Web程序 时间:
2014-09-16 20:23:20
阅读次数:
270
*Export Aborted Export aborted because fatal Lin error were founds. These are listed in the problems view. Either fix these before running Export Again, or turn off "Run full error check when expor...
分类:
移动开发 时间:
2014-09-16 19:18:02
阅读次数:
287
打乱了,找线索,拼起来,再背。
import random
s = '''
However, even NRZI can have long series of zeros (or ones if transitioning on "zero"),
and thus clock recovery can be difficult unless some form of run length l...
分类:
其他好文 时间:
2014-09-16 14:19:20
阅读次数:
350
@echo off echo 修改计算机器名... set pcname=WinXP-%random:~-3% echo Windows Registry Editor Version 5.00>ComputerName.reg echo [HKEY_CURRENT_USER\Softwa...
分类:
其他好文 时间:
2014-09-16 14:02:10
阅读次数:
278
CREATE TABLE dbo.pageStore( ID int NOT NULL, StoreName varchar(50) NULL, OwnerOccupation varchar(50) NULL, CONSTRAINT PK_pageStore PRIMARY KEY CLUSTER...
分类:
其他好文 时间:
2014-09-16 12:35:20
阅读次数:
171
--list集合中有一个模型,根据里面某一个字段排序:list = list.OrderByDescending(m => m.CreateTime).ToList();--会产生随机数0-9999 Random random =new Random(); string num = random.N...
分类:
其他好文 时间:
2014-09-16 12:03:30
阅读次数:
150
gem5模拟器提供了四个不同的CPU模型,两个不同的系统模型以及两个不同的内存系统模型,并且支持多种指令集(ARM、ALPHA、MIPS、Power、SPARC和x86),其中可以再ARM、ALPHA和x86三种架构上运行Linux。gem5的许可证是基于BSD的,这就为工业界和学术界的合作搭建了一个好的桥梁。虽然开发一个Full-system的模拟器是很复杂的,但gem5正在借助开源的强大合作力(如mailing lists,wiki,web-based patch reviews,a publicly ...
分类:
其他好文 时间:
2014-09-16 09:16:30
阅读次数:
364