Multiple Windows/Buffers in Emacs
Emacs is like an endless box of goodies. Some of the basics I know well and a few advanced tricks. But then, I miss some of the other basics in my daily usage. Here is a tip that I donot want to forget, so figure, posting it here..
http://applications.linux.com/article.pl?sid=06/05/19/1440247&tid=13
stealing from that page:
Emacs window keybinding quick reference
Ctrl-x 2 splits the current window vertically.
Ctrl-x 3 splits the window horizontally.
Ctrl-x o cycles through the windows, left-to-right, top-to-bottom.
Ctrl-x ^ grows the active window one line.
Ctrl-x } widens the active window.
Ctrl-x { narrows the active window.
Ctrl-x + resizes all windows to equal size (height).
Ctrl-x 0 closes the active window.
Ctrl-x 1 closes all but the active window.
Ctrl-Meta-v scrolls the text in the next (i.e., not active) window.
Meta-x compare-windows searches for and jumps to mismatching text.
fancier stuff here: http://www.emacswiki.org/cgi-bin/wiki?SwitchingBuffers
[/linux]
permanent link: individual
||permanent link: story
||
permanent link: category
Apply for NIH grants through grants.gov with linux
I just went throught it. Grants.Gov does not (as of October 1st, 2006) provide a way of using the pureedge viewer or the citrix server (for machintosh) with linux. However, Eric DeWeaver has the following solution which worked for me. There was a brief glitch as he indicates on the web site but grants.gov or NIH solved it. For Upenn there is a local Windows server for this purpose which I could not get to work but Eric reported that at U Wisc, the similar idea works. So it is worth checking out.
http://www.aos.wisc.edu/~deweaver/grants.gov.howto.html
I think it is ridiculous that a federal organization such as NIH uses a mechanism that essentially endorses a particular operating system but to their credit, they *do* announce that this will be solved by 2007. They could be kinder to include instructions for linux, specially as you can see from the above URL, it is not something very complex or something like a hack. It is just using the citrix software again. Let's see how it goes.
[/linux]
permanent link: individual
||permanent link: story
||
permanent link: category
sshfs
I am just relaying this information on sshfs. I had tried it before and it seems to have gone a long way and works reasonably well now. See http://www.linuxjournal.com/article/8904
[/linux]
permanent link: individual
||permanent link: story
||
permanent link: category
find . -iname "*bar*.png" | xargs tar -rvf test.tar.gz
"-r" is the trick!
I stole this from http://www.devdaily.com/blog/Content/2/17/395/
[/linux]
permanent link: individual
||permanent link: story
||
permanent link: category
cut/paste chunks of input, organize etc.
This is one of my "self-notes". To cut at "_" and get the second field. I had files names look like DbFitstroke_072806_subjectST17.m . I wanted a list of dates.
the following gets the dates:
ls DbFitstroke_*.m |cut -f2 -d _ > studydatelist081606.txt
the following gets the subject ID's, notice nested cut commands.
ls DbFitstroke_*subject*.m |cut -f3 -d _ | cut -f2 -d t |cut -f2 -d T |cut -f1 -d .
combine two files as columns
paste -d _ subjectIDlist081606.txt studydatelist081606.txt > subjectdatefile.txt
[/linux]
permanent link: individual
||permanent link: story
||
permanent link: category