biocdb experiments
A pretty well curated expression data for breast cancer, overian cancer and colon cancer.
Saturday, May 15, 2010
Saturday, May 08, 2010
Thursday, April 15, 2010
Redefine the X11 Meta Key in Mac OS X « Tyler Kieft
Redefine the X11 Meta Key in Mac OS X « Tyler Kieft
There is a way to switch which key that Mac OS X recognizes as meta by using an X11 keyboard mapping preference file. First, uncheck the “Use the system keyboard layout” option in X11 preferences. You may also have to disable the “Enable keyboard shortcuts under X11″ option as well. Then, create (or add to) the file ~/.Xmodmap and insert the following six lines:
clear Mod1
clear Mod2
keycode 63 = Mode_switch
keycode 66 = Meta_L
add Mod1 = Meta_L
add Mod2 = Mode_switch
It clears the keymappings for alt and escape and then reassigns them to the reverse of what they were before. Restart X11 and it should pick up the changes.
Saturday, April 10, 2010

My mac starts talking to me
Something strange had happened. I was pressing some combination of buttons in Mac and it started to speak and read everything to me. After some search.... the answer came to light. So, I must have pressed a combination of "option" and F5. You can disable it either press the key combination again, or you can go to System Preference > Universal Access and turn it off as in the figure below.
Monday, January 25, 2010
Friday, January 15, 2010
Yet Another Linux Blog » Blog Archive » bash: fork: Resource temporarily unavailable
Yet Another Linux Blog » Blog Archive » bash: fork: Resource temporarily unavailable: "bash: fork: Resource temporarily unavailable
I keep running into that error message on my Mac at work!
Turns out the default max number of processes is not friendly to those of us that like to have LOTS of terminal windows open. Luckily, another sysadmin has already written up a nice post on where to change the limit: echo “limit maxproc 256 512″ >> /etc/launchd.conf"
I keep running into that error message on my Mac at work!
Turns out the default max number of processes is not friendly to those of us that like to have LOTS of terminal windows open. Luckily, another sysadmin has already written up a nice post on where to change the limit: echo “limit maxproc 256 512″ >> /etc/launchd.conf"
Tuesday, May 19, 2009
Implementing array in Stata
The simplest way in my opinion is to use
local `localname' : word `i' of `array'
Below is my example renaming a batch of variables from snp1or to snp74or with the corresponding SNP name.
local snpname rs10116277 rs1011970 rs10120688 rs1063192 rs10738604 rs10738607 rs10757260 rs10757261 rs10757278 rs10757282 rs10757283 rs10811650 rs10811658 rs10811659 rs10965187 rs10965197 rs10965215 rs10965232 rs10965235 rs10965243 rs12003027 rs13298881 rs1333034 rs1333040 rs1333050 rs1412829 rs1412831 rs1412832 rs1537370 rs1537375 rs1547705 rs16905597 rs16905599 rs1759417 rs17761319 rs17761446 rs2069421 rs2069422 rs2069423 rs2069425 rs2069426 rs2106119 rs2151280 rs2157719 rs2285329 rs2383207 rs2383208 rs2811708 rs2811709 rs2811712 rs2811715 rs2891169 rs3088440 rs3217973 rs3217976 rs3217980 rs3217981 rs3217982 rs3217983 rs3217985 rs3217986 rs3217987 rs3217988 rs3217989 rs3217992 rs3217993 rs3217994 rs3218018 rs3218020 rs3731213 rs3731217 rs3731225 rs3731238 rs3731239
local i 1
foreach var of varlist snp1or-snp74or {
local mysnp : word `i' of `snpname'
label var `var' `mysnp'
local i = `i'+1
}
The simplest way in my opinion is to use
local `localname' : word `i' of `array'
Below is my example renaming a batch of variables from snp1or to snp74or with the corresponding SNP name.
local snpname rs10116277 rs1011970 rs10120688 rs1063192 rs10738604 rs10738607 rs10757260 rs10757261 rs10757278 rs10757282 rs10757283 rs10811650 rs10811658 rs10811659 rs10965187 rs10965197 rs10965215 rs10965232 rs10965235 rs10965243 rs12003027 rs13298881 rs1333034 rs1333040 rs1333050 rs1412829 rs1412831 rs1412832 rs1537370 rs1537375 rs1547705 rs16905597 rs16905599 rs1759417 rs17761319 rs17761446 rs2069421 rs2069422 rs2069423 rs2069425 rs2069426 rs2106119 rs2151280 rs2157719 rs2285329 rs2383207 rs2383208 rs2811708 rs2811709 rs2811712 rs2811715 rs2891169 rs3088440 rs3217973 rs3217976 rs3217980 rs3217981 rs3217982 rs3217983 rs3217985 rs3217986 rs3217987 rs3217988 rs3217989 rs3217992 rs3217993 rs3217994 rs3218018 rs3218020 rs3731213 rs3731217 rs3731225 rs3731238 rs3731239
local i 1
foreach var of varlist snp1or-snp74or {
local mysnp : word `i' of `snpname'
label var `var' `mysnp'
local i = `i'+1
}
Subscribe to:
Comments (Atom)


