Thursday, March 03, 2005

Working with binary files in CVS.

Upshot:

Add files with


cvs add -kb file


If you accidentally added a file as text and want to switch it to binary:


cvs admin -kb file

Wednesday, March 02, 2005

How to do a variable menu in CCP4i Tcl:

First, add a typedef for the new varmenu we are about to create:


set typedef(_input_columns) { varmenu INPUT_COLUMNS_LIST INPUT_COLUMNS_ALIAS 8 }



Then, add code to the place where you want to change the varmenu (for example, a subroutine like "add_an_input_column".


UpdateVariableMenu $arrayname initialise [llength $array(INPUT_COLUMNS_LIST,0)] INPUT_COLUMNS_LIST $columns INPUT_COLUMNS_ALIAS $columns


Then add code for INPUT_COLUMNS to your .def file:


INPUT_COLUMNS,0 _input_columns ""
INPUT_COLUMNS_LIST,0 _list_of_text {"test1" "test2" }
INPUT_COLUMNS_ALIAS,0 _list_of_text {"TESTT1" "TESTT2" }


Finally, create the widget as you would do so normally:
                                                                     
CreateLine line label "Input columns" widget INPUT_COLUMNS
Although it is hard to find out how to completely turn off syntax highlighting in vim, it is quite simple. To turn off highlighting in vim, create a .vimrc file and put "syntax off" inside it.


csness-fwnc0200 29 [~] % cat .vimrc
syntax off

Tuesday, March 01, 2005

Tcl Wiki has some good links to resources to learn Tcl and Tk. I found lots of good resources for Tcl, but Tk seems harder to find good program samples. Maybe these links will help.
umm, hello? why wasn't I told of plotutils before? it looks awesome, if seldom updated


-rw-r--r-- 1 0 0 1986497 Sep 25 1997 plotutils-1.3.tar.gz
-rw-r--r-- 1 0 0 2161722 Jan 29 1998 plotutils-2.0.tar.gz
-rw-r--r-- 1 0 0 2213149 Jun 01 1998 plotutils-2.1.1.tar.gz
-rw-r--r-- 1 0 0 2301517 Jul 24 1998 plotutils-2.1.4.tar.gz
-rw-r--r-- 1 0 0 2341836 Aug 22 1998 plotutils-2.1.5.tar.gz
-rw-r--r-- 1 0 0 2360867 Oct 07 1998 plotutils-2.1.6.tar.gz
-rw-r--r-- 1 0 0 2189094 Apr 25 1998 plotutils-2.1.tar.gz
-rw-r--r-- 1 0 0 2819122 Mar 18 1999 plotutils-2.2.tar.gz
-rw-r--r-- 1 0 0 3124258 Oct 07 1999 plotutils-2.3.tar.gz
-rw-r--r-- 1 0 0 3316030 Jul 04 2000 plotutils-2.4.1.tar.gz
-rw-r--r-- 1 0 0 3304075 Jun 26 2000 plotutils-2.4.tar.gz


still, not too bad, good dedication, good gradual increase in size, fairly well spaced apart, with a bugfix coming soon after the release. the api looks cool too.


I want to make scientific graphs that are to the standards of Tufte. Is that too much to ask for?

grep -A4 Resl ~/CrankTests/generated-feb0805/jia*/run/1-shelx/logfile | less

Monday, February 28, 2005

FORTRAN-2000.com (ha ha!) presents us this wonderful link to setting up cvs via ssh. later, links to abc for def and hkl for xyz.
cool, retro! iviews - Postscript editor.

Sunday, February 27, 2005

wow, a blast from the past: the hitchhikers guide to the galaxy game. like on the apple ][. neato!

the game

and

the walkthrough.

Saturday, February 26, 2005

an indepth review of the ipod shuffle
the grand sofitel demure amsterdam. take my advice, only stay in the presidential suite, you'll thank me later. great neighbourhood as well, right by the dam.



for discriminating guests, you'll want to stay in the maria di medici presidential suite. check the safe for a false bottom, and you'll find a little gift from me.

• To learn the interpretation of a Patterson crossword table, you should read
the following article: G.M. Sheldrick (1997) Meth.Enzym. 276:628
ok kids, ready for this? a bunch of perl+xml links for you (and me!):

The Source page:

Perl and XML

more Perl and XML

xml and sax machines part one and part two

schematron - Web Content Validation with XML::Schematron

XML and modern CGI applications.

XML::LibXML - An XML::Parser Alternative

Transforming XML With SAX Filters.

Writing SAX drivers for non-XML stuff. interesting.
linkfest

gnuplot slides (in pdf).

xmlsh - a shell for interacting with xml

a hack to get barcharts in gnuplot.

why oh why isn't there a free plotting program out there that does graphics worthy of Tufte? Tell me!
ipod shuffle on linux.

Friday, February 25, 2005


Position dependence of non-polar amino acid intrinsic helical propensities1

Michael Petukhov, 1, Victor Muñoz1, Noboru Yumoto2, Susumu Yoshikawa2 and Luis Serrano1

We have interpreted the results from these experiments with the model of the helix/coil transition (AGADIR), that indicates that the intrinsic helical propensity is position dependent. Gly, Val and Ile are more favorable at the first turn than in the middle of the -helix, while for Leu and Met we observe the opposite behavior.

Thursday, February 24, 2005

All of the USF (Uppsala Software Factor) manuals.
CNS map format
psychedelic drugs in the treatment of ocd. interesting.
secondary structure predictions