2013记录整理

来源:互联网 发布:网络作家稿费 编辑:程序博客网 时间:2024/06/15 23:15
53楼 XiaJing20060721昨天 11:13发表[回复][引用][举报][删除]
Use of hpcc in single multicore machine

$cp _hpccinf.txt hpccinf.txt
$mpirun -n 4 hpcc
$cat hpccoutf.txt

hpcc in cluster
$mpirun -n 20 -hostfile mpi_hostfile hpcc
52楼 XiaJing20060721昨天 11:07发表[回复][引用][举报][删除]
Some Errors during the installation of hpcc

(1)
error:
make[1]: /usr/bin/g77: Command not found
make[1]: *** [../../../../hpcc] Error 127
solution:
In Make.Linux_PII_CBLAS file modify "LINKER = /usr/bin/g77" to "LINKER = /usr/bin/mpif77.openmpi"

(2)
error:
/usr/bin/mpif77.openmpi -DHPL_CALL_CBLAS -I../../../include -I../../../include/Linux_PII_openmpi_CBLAS -I/usr/lib/openmpi/include -fomit-frame-pointer -O3 -funroll-loops -o ../../../../hpcc ../../../lib/Linux_PII_openmpi_CBLAS/libhpl.a /usr/lib/atlas-base/libcblas.a /usr/lib/atlas-base/libatlas.a /usr/lib/openmpi/lib/libmpi.a -lm
/usr/lib/openmpi/lib/libmpi.a(btl_openib_component.o): In function `device_destruct':
(.text+0x257): undefined reference to `ibv_destroy_cq'
collect2: ld returned 1 exit status
make[1]: *** [../../../../hpcc] Error 1
solution:
MPdir = /usr/lib/openmpi
MPlib = $(MPdir)/lib/libmpi_f77.a
51楼 XiaJing20060721昨天 11:05发表[回复][引用][举报][删除]
Installation of hpcc from source under ubuntu

hpcc(HPC Challenge benchmark, htt p://icl.cs.utk.edu/hpcc/),
HPC(High-performance computing)
Make sure these packages are installed first: openmpi or mpich, cblas,atlas.

1.Download hpcc
2.tar -xvf hpcc-1.x.x.tar.gz
3.Investigate arch file in hpl/setup folder and select one to modify.
4.modify Make.Linux_PII_CBLAS
MPdir = /usr/local/mpi
#change it to : MPdir = /usr/lib/openmpi

MPlib = $(MPdir)/lib/libmpich.a
#change it to :MPlib = $(MPdir)/lib/libmpi_f77.a


LAdir = $(HOME)/netlib/ARCHIVES/Linux_PII
LAlib = $(LAdir)/libcblas.a $(LAdir)/libatlas.a
#Location of Linear Algebra library,libcblas.a and libatlas.a
# LAdir = /usr/lib/atlas-base

LINKER = /usr/bin/g77
#changed to :LINKER = /usr/bin/mpif77.openmpi
5.rename the modified Make.Linux_PII_CBLAS to Make.Linux_Openmpi_byxiajing and copy to hpl folder.
6.excute make command: $make arch=Linux_Openmpi_byxiajing
50楼 XiaJing200607215天前 11:28发表[回复][引用][举报][删除]
IPwatchD is a simple daemon that analyses all incoming ARP packets in order to detect IP conflicts.
[root@host log]# cat /etc/ipwatchd.conf
#IPwatchD configuration file
# See ipwatchd.conf(5) for more details

#iface_configuration automatic
iface_configuration manual
iface eth0 active
#iface eth0:0 passive
defend_interval 0
user_script /usr/sbin/ipwatchd-script
syslog_facility daemon
49楼 XiaJing200607212013-11-30 11:41发表[回复][引用][举报][删除]
How to prevent swim-goggles from fogging up.
I googled "swim goggles fog " and found the best and cheapest method, dish soap plus spit(Saliva), according to Madcat's answer 8 years ago at http:/ /answers.yahoo.com/question/index?qid=20060607221223AACAOMf
48楼 XiaJing200607212013-11-18 17:55发表[回复][引用][举报][删除]
The new line characters of text files created in window is \015\012 , but in linux it is \012 , so when use "paste" and "join" command to process text from win, it will cause "two line" problem which should be only one line.The solution is to delete character \015 first.

$tr -d '\015' <DOS-file >UNIX-file

htt p://stackoverflow.com/questions/2613800/how-to-convert-dos-windows-newline-to-unix-newline-in-bash-script
47楼 XiaJing200607212013-11-18 16:37发表[回复][引用][举报][删除]
getconf - Query system configuration variables
DESCRIPTION
-a Displays all configuration variables for the current system and their values.
46楼 XiaJing200607212013-11-18 12:11发表[回复][引用][举报][删除]
htt p://lists.gnu.org/archive/html/help-gsl/2006-12/msg00027.html

At Tue, 19 Dec 2006 13:25:14 -0500,
Sebastien Maret wrote:
> I am a bit confused by the different headers in the GSL that define
> the physical constants. The reference manual only mention
> gsl_const_mksa.h and gsl_const_cgsm.h. The former defines the constant
> in MKS units and the second one in CGS. But the source distribution
> also have gsl_const_mks.h and gsl_const_cgs.h. What are those?

Hello,

Those are old versions, preserved only for backwards compatibility.
The manual documents the recommended versions.

> Is there any reason why the SI system is called MKSA in the reference
> manual and not simply MKS? Does the A stands for ampere? What about
> the M in CGSM?

A = ampere
M = magnetic gauss

--
Brian Gough
(GSL Maintainer)
45楼 XiaJing200607212013-11-16 17:42发表[回复][引用][举报][删除]
Install Guest Addition.
VirtualBox 4.2.3 update to VirtualBox 4.2.18
Host:3.2.0-27-generic-pae #43-Ubuntu
Guest:2.6.32-358.23.2.el6.centos.plus.i686

#yum install gcc
#yum update kernel*
#yum install kernel-devel.i686
#yum install kernel-headers.i686
44楼 XiaJing200607212013-11-09 11:26发表[回复][引用][举报][删除]
c language: sizeof
In the programming languages C and C++, the unary operator sizeof is used to calculate the size of any datatype, measured in the number of bytes required to represent the type.
43楼 XiaJing200607212013-11-07 21:01发表[回复][引用][举报][删除]
Problem:
make all
Building target: xjLapackTest
Invoking: GCC C Linker
gcc -L/home/xj/t/temp/lapack-3.4.2/ -o "xjLapackTest" ./src/xjLapackTest.o -llapack -llapacke -lrefblas -lgfortran
/home/xj/t/temp/lapack-3.4.2//liblapacke.a(lapacke_dgels_work.o): In function `LAPACKE_dgels_work':
lapacke_dgels_work.c:(.text+0x1f5): undefined reference to `dgels_'
lapacke_dgels_work.c:(.text+0x30a): undefined reference to `dgels_'
collect2: ld returned 1 exit status
make: *** [xjLapackTest] Error 1


Solution:
Change the order of library,liblapacke first, then liblapack , librefblas , libgfortran
42楼 XiaJing200607212013-11-04 21:26发表[回复][引用][举报][删除]
http:/ /askubuntu.com/questions/304773/command-line-web-browser-using-ssh-is-there-any-way-i-can-use

You could use SSH as a proxy and then use a local browser to use that proxy.

ssh -ND 8080 user@server.example.com

That sets a SOCKS proxy. Just edit your browser's proxy settings to IP: localhost Port: 8080 and your traffic is going out over SSH.

Unset the HTTP proxy box. It's a completely different thing. I have just tested this with Firefox, if you set HTTP (with all checked), it doesn't work. If you set SOCKS alone, it works. – Oli♦ Jun 6 at 12:38
41楼 XiaJing200607212013-11-04 11:00发表[回复][引用][举报][删除]
ntsysv - simple interface for configuring runlevels

/etc/sysconfig/network-scripts/ifcfg-eth0
把ONBOOT="no"改为yes
40楼 XiaJing200607212013-10-27 10:21发表[回复][引用][举报][删除]
http:/ /pydoc.net/Python/mwavepy/1.3/
'''
**mwavepy** is a compilation of functions and class's for microwave/RF
engineering written in python. It is useful for things such as
touchstone file manipulation, calibration, data analysis, data
acquisition, and plotting. mwavepy can be used interactively through
the python interpreter, or in scripts.

This is the main module file for mwavepy. it simply imports classes and
methods. It does this in two ways; import all into the current namespace,
and import modules themselves for coherent structured referencing
'''
Package Name:mwavepy
Version:1.3
Summary:Object Oriented Microwave Engineering
Author:Alex Arsenovic, Lihan Chen
License:gpl
Re: XiaJing200607212013-10-27 10:36发表[回复][引用][举报][删除]
回复XiaJing20060721:https://code.google.com/p/mwavepy/
39楼 XiaJing200607212013-10-17 16:22发表[回复][引用][举报][删除]
[xj@localhost temp]$ rpm -qi openmpi.x86_64
Name : openmpi Relocations: (not relocatable)
Version : 1.5.4 Vendor: CentOS
Release : 1.el6 Build Date: Fri 22 Jun Source RPM: openmpi-1.5.4-1.el6.src.rpm
Size : 7484518 License: BSD, MIT and Romio


...
[xj@localhost temp]$ rpm -qi compat-openmpi.x86_64
Name : compat-openmpi Relocations: (not relocatable)
Version : 1.4.3 Vendor: CentOS
Release : 1.el6 Build Date: Thu 08 Dec Source RPM: compat-openmpi-1.4.3-1.el6.src.rpm
38楼 XiaJing200607212013-10-16 16:56发表[回复][引用][举报][删除]
Axel tries to accelerate HTTP/FTP downloading process by using multiple connections for one file. It can use multiple mirrors for a download. Axel has no dependencies and is lightweight, so it might be useful as a wget clone on byte-critical systems.
37楼 XiaJing200607212013-10-13 16:35发表[回复][引用][举报][删除]
PC1
Intel® Pentium(R) Dual CPU E2180 @ 2.00GHz × 2
ubuntu 12.04(precise)
xx@xx:/$time pi 1000000 > /dev/null
real 0m6.688s
user 0m6.564s
sys 0m0.116s


PC2
Intel® Core(TM)i3 CPU M390@2.67GHz × 4
ubuntu 11.04(natty)
xx@xx:/$time pi 1000000 > /dev/null
real 0m4.932s
user 0m4.852s
sys 0m0.056s
36楼 XiaJing200607212013-10-13 16:04发表[回复][引用][举报][删除]
check if the host is active. for i in {1..255};do ping -c 3 192.168.1.$i > /dev/null; if [ $? -eq 1 ] ;then echo $i;fi ;done
Re: XiaJing200607212013-10-13 17:03发表[回复][引用][举报][删除]
xx@xx:~$ nmap -sP 192.168.1.0/24
Starting Nmap 5.21 ( http://nmap.org ) at 2013-10-13 16:59 CST
Nmap scan report for bogon (192.168.0.1)
Host is up (0.0039s latency).
Nmap scan report for bogon (192.168.0.33)
Host is up (0.00012s latency).
Nmap scan report for bogon (192.168.0.55)
Host is up (0.046s latency).
Nmap done: 256 IP addresses (3 hosts up) scanned in 3.03 seconds

nmap -sP: Ping Scan - go no further than determining if host is online
Sometimes you wish to scan a whole network of adjacent hosts. For this, Nmap supports CIDR-style. addressing. You can append /numbits to an IPv4 address or hostname and Nmap will scan every IP address for which the first numbits are the same as for the reference IP or hostname given. For example, 192.168.10.0/24 would scan the 256 hosts between 192.168.10.0 (binary: 11000000 10101000 00001010 00000000) and 192.168.10.255 (binary: 11000000 10101000 00001010 11111111), inclusive. 192.168.10.40/24 would scan exactly the same targets.
35楼 XiaJing200607212013-10-13 10:41发表[回复][引用][举报][删除]
http :/ /developer.amd.com/tools-and-sdks/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/downloads/
下载 amd-driver-installer-catalyst-13-4-linux-x86.x86_64.zip,AMD-APP-SDK-v2.8.1.0-lnx32.tgz
34楼 XiaJing200607212013-08-15 12:24发表[回复][引用][举报][删除]
8.15光复日,光复指收回失去的领土,也指恢复已亡的国家。今天央视报道的标题是"8.15日本战败投降日"。前者以"中国"为主语,后者以"日本"为主语。个人认为央视更应该在指责日本侵略的同时强调亡国的原因,不然历史还会重演。
33楼 XiaJing200607212013-08-08 20:09发表[回复][引用][举报][删除]
submarine movie, Crimson Tide.
32楼 XiaJing200607212013-07-10 18:05发表[回复][引用][举报][删除]
Verbatim #53071 1TB External HardDisk
HD Tune Pro: Hitachi HTS541010A9E Information
Firmware version : JA0OA480
Serial number : J520007DGLTVNB
Capacity : 1000.2 gB (931.5 GB)
Buffer size : 8192 KB
Sector size : 512 bytes
Standard : SATA 2.6 (3.0 Gb/s)
Supported mode : UDMA Mode 6
Current mode : UDMA Mode 4
Avergae speed : 74 MB/s
Rotation speed : 5400 RPM

S.M.A.R.T : yes
48-bit Address : yes
Read Look-Ahead : yes
Write Cache : yes
Host Protected Area : yes
Device Configuration Overlay : yes
Firmware Upgradable : yes
Automatic Acoustic Management: no
Power Management : yes
Advanced Power Management : yes
Interface Power Management : yes
Power-up in Standby : yes
Security Mode : yes
SCT Tables : yes
Native Command Queuing (NCQ) : yes
Trim : no
31楼 XiaJing200607212013-07-05 20:25发表[回复][引用][举报][删除]
GParted uses libparted to detect and manipulate devices and partition tables while several (optional) filesystem tools provide support for filesystems not included in libparted.
30楼 XiaJing200607212013-06-18 21:15发表[回复][引用][举报][删除]
BBC How to Build...
Series 1
Britain's engineering companies reveal how they build the world's most amazing machines
*Britain's Secret Engineers
3/3 Workers at British defence contractor QinetiQ reveal some of their secretive projects.
First broadcast: 11 Jul 2010
*A Jumbo Jet Engine
2/3 The story of the thousands of people who design, build and test Rolls-Royce jet engines.
First broadcast: 04 Jul 2010
*A Nuclear Submarine
1/3 Documentary following the construction of the Astute nuclear submarine.
First broadcast: 27 Jun 2010
29楼 XiaJing200607212013-06-18 21:13发表[回复][引用][举报][删除]
How to Build...
Series 2
Britain's engineering companies reveal how they build the world's most amazing machines
* A Satellite
3/3 Following manufacturer Astrium as they build a state-of-the-art communication satellite.
First broadcast: 27 Nov 2011
* A Super Car
2/3 Following Formula One racing team McLaren as they build a road car, the MP4-12C.
First broadcast: 20 Nov 2011
*A Super Jumbo Wing
1/3 A film following some of the people who work at the two main Airbus factories in the UK
28楼 XiaJing200607212013-05-15 21:36发表[回复][引用][举报][删除]
ubuntu 11.10 nautilus 变慢的原因是开启了Assistive Technologies。关掉后,nautilus恢复打开文件夹的速度。
27楼 XiaJing200607212013-04-23 17:15发表[回复][引用][举报][删除]
utf8 字符:
26楼 XiaJing200607212013-04-23 08:31发表[回复][引用][举报][删除]
电子自旋共振 Electron Spin Resonance
25楼 XiaJing200607212013-04-09 10:07发表[回复][引用][举报][删除]
linux command:
nm - list symbols from object files.
strip - Discard symbols from object files.
strings - print the strings of printable characters in files.
tzselect - view timezones.
24楼 XiaJing200607212013-04-04 09:32发表[回复][引用][举报][删除]
解压大量文件夹里包含多个分卷zip压缩的多个分卷rar压缩的文件。
xjpwd=$(pwd) ;for i in * ;do if [ -d $i ]; then cd $xjpwd/$i ;
for j in *.zip;do unzip -o $j ; done ; for j in *.rar ;do
unrar e $j ; done ; fi
; cd $xjpwd ;
done
23楼 XiaJing200607212013-03-26 11:46发表[回复][引用][举报][删除]
判断是否每周的杂志都有。ST=$(date --date='2013-01-04' +%s); for i in {0..52};do FN=$(date --date="@$((ST+60*60*24*7*$i))" +%Y_%m_%d) ;FN2="AAAS_SCIENCE VOL 339_$FN.pdf";if [ -e "$FN2" ];then echo -e "\t\t\t $FN2 exist" ;else echo $FN2 ;fi ;done
22楼 XiaJing200607212013-03-25 11:57发表[回复][引用][举报][删除]
GJB 5239-2004 射频吸波材料吸波性能测试方法
GJB2038-1994 雷达吸波材料反射率测试方法
SJ 20524-1995 材料屏蔽效能的测试方法
21楼 XiaJing200607212013-03-25 11:52发表[回复][引用][举报][删除]
南京航空航天大学图书馆 ◇国家标准目录◇航空行业标准 ◇军用标准 http://202.119.70.12/biaozhun/
20楼 XiaJing200607212013-03-24 14:57发表[回复][引用][举报][删除]
批量更名,将一位数变为两位数,便于排序。
for i in {1..5};do for j in {1..9} ; do if [ -e $i.$j.pdf ] ; then mv $i.$j.pdf $i.0$j.pdf ;fi ; done ;done
19楼 XiaJing200607212013-03-23 13:32发表[回复][引用][举报][删除]
Indexed png file can not add watermark, but RGB png file can.
18楼 XiaJing200607212013-03-21 14:49发表[回复][引用][举报][删除]
http://library-genesis.com/
17楼 XiaJing200607212013-03-17 20:13发表[回复][引用][举报][删除]
abacom LochMaster 4.0 is a developers tool for strip board projects.
abacom sPlan is a software with already many thousands enthusiastic users. You need a software to design your schematic circuit diagrams easy and fast? You won’t get pass sPlan!
http://www.abacom-online.de
16楼 XiaJing200607212013-03-17 20:09发表[回复][引用][举报][删除]
OpendTect is an open source seismic interpretation software system for processing, visualizing and interpreting multi-volume seismic data, and for fast-track development of innovative interpretation tools.
15楼 XiaJing200607212013-03-16 08:52发表[回复][引用][举报][删除]
IFTOP(8) IFTOP(8)
NAME
iftop - display bandwidth usage on an interface by host
14楼 XiaJing200607212013-03-09 19:45发表[回复][引用][举报][删除]
Geophysical Data Analysis: Discrete Inverse Theory: MATLAB Edition

Active Geophysical Monitoring" by Junzo Kasahara
13楼 XiaJing200607212013-02-01 11:34发表[回复][引用][举报][删除]
~/.bashrc
alias ls='ls --color=auto --time-style=long-iso'
$ls -l
drwxrwxr-x 3 xiajing xiajing 4096 2013-01-05 11:04 testf
-rw-rw-r-- 1 xiajing xiajing 41569 2012-09-10 16:14 test.txt
12楼 XiaJing200607212013-01-30 22:38发表[回复][引用][举报][删除]
GUILE(1)
NAME
guile - a Scheme interpreter
SYNOPSIS
guile [-q] [-ds] [--help] [--version] [--emacs] [--debug] [-l FILE] [-e FUNCTION] [] [-c EXPR] [-s SCRIPT] [--]
DESCRIPTION
GNU Guile is an interpreter for the Scheme programming language.

$ info guile-tut-1.8
11楼 XiaJing200607212013-01-27 09:19发表[回复][引用][举报][删除]
EOG(1) EOG(1)
NAME
eog - a GNOME image viewer
10楼 XiaJing200607212013-01-26 15:49发表[回复][引用][举报][删除]
NAME
scp — secure copy (remote file copy program)
SYNOPSIS
scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit] [-o ssh_option] [-P port] [-S program]
[[user@]host1:]file1 ... [[user@]host2:]file2

scp ./file.py xiajing@192.168.1.xxx:~/xjwork2013/
9楼 XiaJing200607212013-01-26 15:42发表[回复][引用][举报][删除]
When using mayavi library on remote machine by ssh, get the error:
Unable to access the X Display, is $DISPLAY set properly?

solution:
ssh -X remote machine
8楼 XiaJing200607212013-01-25 23:35发表[回复][引用][举报][删除]
python:nan
>import numpy as np
In [87]: a=np.arange(5)/1.0
In [88]: a[3]=float('nan')
In [89]: a
Out[89]: array([ 0., 1., 2., nan, 4.])
In [90]: np.isnan(a)
Out[90]: array([False, False, False, True, False], dtype=bool)
7楼 XiaJing200607212013-01-16 16:06发表[回复][引用][举报][删除]
xiajing@xj-HP:/$ sudo du --max-depth=1 | sort -n
du: cannot access `./proc/2867/task/2867/fd/4': No such file or directory
du: cannot access `./proc/2867/task/2867/fdinfo/4': No such file or directory
du: cannot access `./proc/2867/fd/4': No such file or directory
du: cannot access `./proc/2867/fdinfo/4': No such file or directory
du: cannot access `./home/xiajing/.gvfs': Permission denied
0 ./proc
0 ./sys
4 ./cdrom
4 ./mnt
4 ./selinux
16 ./lost+found
64 ./tmp
908 ./dev
1188 ./root
6700 ./bin
8108 ./sbin
10028 ./media
17868 ./etc
22016 ./boot
158784 ./lib
388852 ./opt
634172 ./var
4493388 ./srv
9035248 ./usr
44946576 ./home
59725180 .
6楼 XiaJing200607212013-01-10 22:58发表[回复][引用][举报][删除]
Linux video:
Motion is a program that monitors the video signal from
one or more cameras and is able to detect if a significant
part of the picture has changed. Or in other words, it can
detect motion.
5楼 XiaJing200607212013-01-06 23:18发表[回复][引用][举报][删除]
SMA is available both in Standard and Reverse Polarity. Reverse polarity is a keying system accomplished with a reverse interface, and ensures that reverse polarity interface connectors do not mate with standard interface connectors. Amphenol accomplishes this by inserting female contacts into plugs and male contacts into jacks.
4楼 XiaJing200607212013-01-06 16:39发表[回复][引用][举报][删除]
Some Video Editing free software:
Avidemux mp4-avc, filter, can add logo
Kdenlive , Tryed but crashed
LiVES
PiTiVi Tryed also crashed
3楼 XiaJing200607212013-01-06 14:12发表[回复][引用][举报][删除]
Analysis and Design of Metamaterials
A dissertation submitted to the
SWISS FEDERAL INSTITUTE OF TECHNOLOGY ZURICH
for the degree of
Doctor of Sciences
presented by
Matthew Mishrikey
S.B., M.Eng., Massachusetts Institute of Technology, Cambridge MA, USA
born November 2, 1980
2楼 XiaJing200607212013-01-04 10:06发表[回复][引用][举报][删除]
Problem:
xiajing@xj:~$ wget http://blog.csdn.net/xiajing20060721/article/details/8463245

--2013-01-04 10:09:22-- http://blog.csdn.net/xiajing20060721/article/details/8463245
Resolving blog.csdn.net (blog.csdn.net)... 117.79.93.222
Connecting to blog.csdn.net (blog.csdn.net)|117.79.93.222|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
2013-01-04 10:09:22 ERROR 403: Forbidden.

Solution:
xiajing@xj:~$wget -U "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070802 SeaMonkey/1.1.4" http://blog.csdn.net/xiajing20060721/article/details/8463245

--2013-01-04 10:10:17-- http://blog.csdn.net/xiajing20060721/article/details/8463245
Resolving blog.csdn.net (blog.csdn.net)... 117.79.93.222
Connecting to blog.csdn.net (blog.csdn.net)|117.79.93.222|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 21222 (21K) [text/html]
Saving to: `8463245'
1楼 XiaJing200607212013-01-04 09:38发表[回复][引用][举报][删除]
The h5py package is a Pythonic interface to the HDF5 binary data format.

It lets you store huge amounts of numerical data, and easily manipulate that data from NumPy. For example, you can slice into multi-terabyte datasets stored on disk, as if they were real NumPy arrays. Thousands of datasets can be stored in a single file, categorized and tagged however you want.
0 0
原创粉丝点击