自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(17)
  • 资源 (15)
  • 收藏
  • 关注

原创 求解sizeof(X)

Aim: 求解sizeof(X) definition:  1)对界(a)e.g.对齐的位置: 从0开始算; 对齐条件n指开始元素位置编号是n的整数倍 2)占多少字节(b):根据数据类型储存空间算 3) sizeof指的一共占的字节数, 与对界和数据类型存储空间有关 sizeof(X) = Fun(a, b), 对于参数b根据硬件有关当硬件固定是参数b固定,参数a需要计算。对界本身有两种

2014-06-19 17:52:23 1200

转载 vs2010 安装openssl

1)下载官网perl ActivePerl window

2014-04-23 11:04:43 864

原创 centos 杂记

1) permission deny: chmod 777 +filename 2) search file yum search +filename

2013-06-29 23:49:20 448

原创 c 语言 内存 bug

1) segment fault 2) aborted 这两个一般都是数组越界 指针越界 就查loop里面的赋值就行 gdb  r par1 par2 par3

2013-06-28 05:18:18 594

原创 centos 安装 g++ 和其他develop tool

centos使用yum安装gcc  yum -y install gcc yum -y install gcc-c++  yum install make -- 或者 yum groupinstall "Development Tools" -- 或者 yum install gcc gcc-c++ kernel-devel

2013-06-25 17:06:16 787

原创 first latex document

\documentclass[11pt, oneside]{article} \usepackage{amsfonts} %insert any mathematical symbols \usepackage{amssymb} \usepackage{amsmath} \usepackage{algorithm} %adding pseudo-code

2013-05-10 19:10:09 584

原创 LATEX 学习1

1)ctex 设置字体 http://bbs.ctex.org/forum.php?mod=viewthread&tid=60905 设成 frontsize = 11 FONT_NAME="Times New Roman" 2)行间距 \linespread{1.1} 3)单个页面方向横过来 \usepackage{pdflscape} \begi

2013-05-10 17:59:49 680

原创 gmp 读取文件 stdin

一行一行读取 解决多读一行的问题  注意不能用!EOF判断结尾 #include #include int main(int argc, char *argv[]){ FILE *f; char *c; int counter = 0; if((f = fopen("./stage1.input","r")) ==NULL){ printf("cannot open

2013-03-03 18:25:36 613

原创 测试双层loop

test1: compiler directive in outer layer #include #include int main(){ int i,j,k, tid; #pragma omp parallel for private(j,k,tid) for(i = 0; i < 300; i++){ for(j = 0; j<

2013-02-22 07:50:48 436

转载 互斥锁 条件变量 信号灯 --我看过最好的一篇

原文地址:http://blog.chinaunix.net/uid-27164517-id-3282111.html 互斥操作:   对共享资源的访问, 要对互斥量进行加锁, 如果互斥量已经上了锁, 调用线程会阻塞, 直到互斥量被解锁. 在完成了对共享资源的访问后, 要对互斥量进行解锁。     死锁主要发生在有多个依赖锁存在时, 会在一个线程试图以与另一个线程相反顺序锁住互斥量时发生.

2013-02-20 18:06:03 841

原创 测试reduction

测试是否reduction能负责在循环任何地方的值 主要是把total放在不同的地方 看看最后结果是否和想要结果一致 此处total是shared的在用之前已经被赋值 测试程序1: #include #include int main(){ int i,j,k, tid,total; total = 0; #pragma omp parallel pr

2013-02-20 05:36:29 406

原创 openmp--test how many threads used

should add the compiler directive: #include #include int main(){ int tid; #pragma omp parallel tid = omp_get_num_threads(); printf("thread = %d\n",tid); return 0; } resu

2013-02-16 04:44:18 400

转载 os 堆和栈

1)堆: 堆是大家共有的空间,分全局堆和局部堆。全局堆就是所有没有分配的空间,局部堆就是用户分配的空间。堆在操作系统对进程 初始化的时候分配,运行过程中也可以向系统要额外的堆,但是记得用完了要还给操作系统,要不然就是内存泄漏。 2)栈 栈是线程独有的,保存其运行状态和局部自动变量的。栈在线程开始的时候初始化,每个线程的栈互相独立。每个函数都有自己的栈,栈被用来在函数之间传递参数。操作系统在切

2013-02-11 05:33:38 551

原创 pthread 杂记1

1)解决 undefined reference to 'pthread_create' undefined reference to 'pthread_join' 编译时候   gcc xxx.c -o xxx -lpthread 2)

2013-02-09 05:33:24 383

原创 centos 手动安装gmp

在gmp文件目录下--》open terminal ./configure make make check sudo make install 如果sudo模式出现not sudoers 参照上篇文章

2013-02-07 22:58:51 2570

转载 centos 修改xxx is not in the sudoers file. This incident will be reported

用sudo时提示"xxx is not in the sudoers file. This incident will be reported.其中XXX是你的用户名,也就是你的用户名没有权限使用sudo,我们只要修改一下/etc/sudoers文件就行了。下面是修改方法:   1)进入超级用户模式。也就是输入"su -",系统会让你输入超级用户密码,输入密码后就进入了超级用户模式。(

2013-02-07 22:53:40 866

原创 菜鸟学c语言杂记1

编译器: gcc 编译方法: gcc -pedantic -Wall -std=c99  gcc -pedantic -Wall -std=c99 test1.c -o test 这个可以看到warning 文件EOF 输入的时候用 CTRL+D结束输入

2013-01-26 00:23:33 325

GMP中文简介.pdf

GMP中文简介 用于c语言高精度计算,中文翻译版 便于阅读

2013-02-12

Applied Multivariate Statistical Analysis

This market leader offers a readable introduction to the statistical analysis of multivariate observations. Gives readers the knowledge necessary to make proper interpretations and select appropriate techniques for analyzing multivariate data. Starts with a formulation of the population models, delineates the corresponding sample results, and liberally illustrates everything with examples. Offers an abundance of examples and exercises based on real data. Appropriate for experimental scientists in a variety of disciplines.

2017-03-23

Using OpenMP - Portable Shared Memory Parallel Programming.pdf

Using OpenMP - Portable Shared Memory Parallel Programming.pdf

2013-02-12

html 最经典的login 界面

html5 login 界面 白色底面 html5+css3的最经典案例

2012-03-23

Cryptography

Cryptography Nigel Smart的书 pdf版

2014-04-02

miniserver

miniserver 简单的server 用来present 页面是没有问题的!先读readme安装的时候

2012-02-23

bristol crypto exam

bristol crypto exam 以及答案

2014-04-02

精通⽐特币 Andreas M Antonopoulos

精通⽐特币 Andreas M Antonopoulos

2017-03-23

Using-OpenMP-Examples-Distr.zip

Using-OpenMP-Examples-Distr.zip

2013-02-12

java 读取文件

这个特别好用,我自己试过的~比其他网上找到的都好用

2012-03-23

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除