2010-01-01から1年間の記事一覧

略語の前にtheをつけるか

Acronyms: When each letter is pronounced in most acronyms, capitalize every letter. Capitalize only the first letter in most acronyms with more than six letters. Leave out periods in most acronyms unless the result would spell an unrelated…

ダブルクオーテーションかイタリックフォントか

Either quotation marks or italic type can emphasize that an instance of a word refers to the word itself rather than its associated concept. http://en.wikipedia.org/wiki/Quotation_mark#Use.E2.80.93mention_distinction

Macの設定

Mac

インストールしたソフトウェア Remote Desktop Connection VirtualBox Chicken of the VNC ScreenSharingMenulet MacTex MacTeX 2010 で日本語 Adobe acrobat reader muCommander MacPorts gv gnuplot Xcode Office Microsoft Office 2008 OpenOffice.org jp…

MacにLaTexをセットアップする

以下のものをインストール MacTex http://www.tug.org/mactex/2009/ Drag & Drop pTeX(以下DDTeX) http://www2.kumagaku.ac.jp/teacher/herogw/ MacTeXは標準インストールし,DDTeXは以下にコピーした. /Applications/TeX/pTeX.apppTeX.appをダブルクリッ…

このシステムのローカルポリシーはこのユーザーが対話的にログオンすることこを許可していません

HPC

http://support.microsoft.com/?kbid=289289

内蔵HDDを外付けUSBーHDDにして中身取り出す方法

内蔵HDDをHDD1,外付けHDDをHDD2とする.#vgscan Reading all physical volumes. This may take a while... Found volume group "VolGroup00" using metadata type lvm2 Found volume group "VolGroup00" using metadata type lvm2それぞれのHDDの…

fixfiles relabelでエラー

#fixfiles relabel 実行時に /etc/selinux/targeted/contexts/files/file_contexts.homedirs: line 18 has invalid context というようなエラーが発生.# genhomedircon # touch /.autorelabel # reboot で解決参考URL https://bugzilla.redhat.com/show_…

SELinuxに移行した時のエラー

# service syslog start Starting system logger: syslogd: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory [FAILED] Starting kernel logger: klogd: error while loading shared libraries…

NFSでhome directoryをマウント

NFSサーバ側設定#vi /etc/exports /home client(rw) #exportfs -ra#vi /etc/sysconfig/nfs MOUNTD_PORT= STATD_PORT= LOCKD_TCPPORT= LOCKD_UDPPORT= #chkconfig portmap on #service portmap start #chkconfig nfs on #service nfs startiptablesで111,204…

Autofsを使う

couldn't locate nis+ table auto.master /etc/nsswitch.confautomount fileshttp://hyphenlink.blog48.fc2.com/blog-entry-69.html ホームディレクトリとしてローカルとリモートを混在させる. user1とuser2はリモート,それ以外のユーザはローカルに実体が…

Brute force attackをiptablesで防ぐ

iptables -A INPUT -p tcp --dport 22 -m state --state NEW -m recent --set --name SSH iptables -A INPUT -p tcp --dport 22 -m state --state NEW -m recent --update --seconds 60 --hitcount 8 --rttl --name SSH -j DROP参考URL http://kevin.vanzonn…

GUIなしCentOSでX Forwarding

まずはsshの設定(/etc/ssh/sshd_config) X11Forwarding yes次にxorg-x11-xauthのインストール #yum install xorg-x11-xauth最後にfirewallの設定(iptables) tcpの6010くらいを通す. リモートホスト側では, puttyの”Enable X11 forwarding”をチェック.ゲー…

Xlib: connection to ":1.0" refused by server Xlib: No protocol specified

xhost + Sounds like you are trying to access X as a non-authorised user. The only time I ever see those lines is when I have done "su" in a shell and then attempt to run a program. If this is the problem, then make sure you are the correct…

コメントアウトの仕方

一行 % hogehoge = 1; 複数行 %{ hogehoge = 2; hoge = hogehoge; %}

CentOSにXFCEを導入

#yum groupinstall XFCE #yum install switchdesk$switchdesk xfce $vim $HOME/.vnc/xstartup # Uncomment the following two lines for normal desktop: unset SESSION_MANAGER exec /etc/X11/xinit/xinitrc

Sambaでファイル共有する

selinuxを有効にしている場合に,ホームディレクトリを共有する場合, #setsebool -P samba_enable_home_dirs 1NFSでマウントしているフォルダをsambaで共有する場合 #setsebool -P samba_share_nfs 1pdbeditでユーザの登録が必要 http://www.searchman.info…

CentOSでgvインストール

EPELレポジトリを追加yumでgvインストール

指定の要素以外を取り出す

R >xx [1] 1 2 3 4 5 >x[-1] [1] 2 3 4 5 Matlab >>x=1:5 x= 1 2 3 4 5 >>x(setdiff(1:size(x,2),1) ans = 2 3 4 5 Matlabの方でもっといい方法はないものだろうか…

RMatlab

RとMatlabの相互インターフェイスインストール方法 http://www.omegahat.org/RMatlab/ http://www.stanford.edu/~dgleich/notebook/2009/09/rmatlab_using_r_from_matlab.html起動 $source RMatlab/inst/scripts/RMatlab.sh $matlab( -nojvm -nodisplay)>>in…

How to compile EEGLabImport on 64-bit Linux

Edit the following lines in defines.h (src/shared/defines.h), #if( defined( __BORLANDC__ ) && ( __BORLANDC__ > 0x0560 ) ) // bcc32 > 5.5.1 typedef unsigned long long uint64; typedef signed long long sint64; #else // __BORLANDC__ typedef un…

BCI2000 OfflineAnalysis on Linux

Comment out the following lines in OfflineAnalysis.m, if ~strcmp(computer, 'PCWIN') || verNum error('BCI2000 Offline Analysis currently works only on windows-based systems with version 7.x or greater of MATLAB or the MATLAB Component Runti…

A/Dの変換式

EXTのCALは500,CAL ADは6554,単位はmV EEGのCALは50,CAL ADは655,単位はuV EveのCALは100,CAL ADは100,単位はなし

R

インストール readline-devel libX11 libX11-devel libXt libXt-devel ./configure --enable-R-shlib make

Matlab

/usr/loca/matlab/R2009b/にインストールした場合 setsebool -P allow_execheap=1 chcon -t textrel_shlib_t /usr/local/matlab/R2009b/bin/glnxa64/* chcon -t textrel_shlib_t /usr/loca/matlab/R2009b/sys/java/jre/glnxa64/jre/lib/amd64/*参考URL:http…