Tuesday, February 24, 2015

makebst \enquote command error

The makebst program can crete custom commands within .bbl files.
If such a command, like \enquote{} is giving a compilation error,

try to delete the temporary (non-source) files and recompile the .tex

Monday, February 23, 2015

SVN diff

The difference between working copy and HEAD; the changes which would need to be made to what is now in the repository (HEAD), to produce your working copy:
svn diff -r HEAD --old=
Of possible interest, the difference between BASE and HEAD; changes that have been checked into the repository since you last updated working copy:
svn diff -r BASE:HEAD 
And of course the difference between BASE and working copy; the changes you have made since you last updated working copy:
svn diff 

There are three versions being discussed: BASE, working copy, and HEAD.
  • BASE: as last checked out / updated. What working copy would revert to after using svn revert
  • working copy: local modifications to which has been checked out / updated as recently as BASE
  • HEAD: latest modifications in repository. Equivalent to BASE iff no changes have been committed since was checked out / updated as working copy.
 Src: http://stackoverflow.com/questions/3773345/check-diff-against-file-on-the-server

Wednesday, February 18, 2015

ImageJ 3DViewer - maximize image resolution

To maximize resolution for 3DViewer, set resampling factor to 1


Tuesday, February 17, 2015

Bash set variable to command output

In addition to the backticks, you can use $(), which I find easier to read, and allows for nesting.
 
OUTPUT="$(ls -1)"
echo "${OUTPUT}"

Quoting (") does matter to preserve multi-line values.

Src: http://stackoverflow.com/questions/4651437/how-to-set-a-bash-variable-equal-to-the-output-from-a-command

Matlab new page size scraps plot axis markers

-Run a script to generate only one plot
-Change page size in print preview / export setup
-Run the uniformticks script (x-axis shown here):

%% render uniform ticks digits on X axis
% input: number of decimals after decimal point
function uniformticks_x(deci) ;


command = ['%0.' mat2str(deci) 'f|'] ;
ticks = get(gca, 'Xtick') ;
set(gca, 'XTickLabel', sprintf(command, ticks));

Ubuntu Matlab Plot Fonts

That was the elusive information we needed: I looked at my 11.04 that worked (I was the OP on the other thread) and compared font paths. What you need to install is:

xfonts-100dpi and
xfonts-75dpi

logout and log back in again and you should be away laughing! (worked for me on a fresh install)


Src: http://ubuntuforums.org/showthread.php?t=1762805

Wednesday, February 4, 2015

bash: Simple way to move files only from one location to another

In the case you have many files to move, and your folder tree has nothing special, use

mv ./*.* destination_path

This will also move directories containing a dot in the name and will ignore files without extensions...quick hack