mencoder -ss 00:38:46 -endpos 00:05:40 -oac copy -ovc copy movie.avi -o excerpt.avi
00:38:46 is the start position and 00:05:40 is the duration
Friday, August 26, 2011
Thursday, August 11, 2011
Latex: Pushing floats to the end of a document
The endfloat package is kind of fancy but the problem I faced with it is that I was renumbering figures in the middle of the document and the latex referencing algorithms were handling it fine, but when the figures appeared at the end of the document their numbering was screwed up.
There is an easy way, however, to push the figures to the end of the document as I wanted. From some hints here about how LaTeX decides whether there is enough space on a page to put in a figure
in the preamble does the trick, by fooling LaTeX into deciding there is NEVER enough space to put figures on a page until it is all out of text and has to just dump the figures as best as it can, one to a page.
There is an easy way, however, to push the figures to the end of the document as I wanted. From some hints here about how LaTeX decides whether there is enough space on a page to put in a figure
\renewcommand{\textfraction}{1.0}
\renewcommand{\floatpagefraction}{0.9}
in the preamble does the trick, by fooling LaTeX into deciding there is NEVER enough space to put figures on a page until it is all out of text and has to just dump the figures as best as it can, one to a page.
Labels:
latex tricks
Tuesday, August 9, 2011
Latex + Unicode = XeTeX
Never bothered to figure out what this xetex thing was. Turns out it can handle unicode. For texmaker just replace pdflatex command with xelatex and use a unicode aware font (e.g. \usepackage{helvet}) and things should work
Labels:
latex
Sunday, August 7, 2011
Updating Eclipse
From here
Help->Install New Software->Add site-> http://download.eclipse.org/releases/indigo (or whatever release you are going to)
Help->Check for updates
And eclipse should update itself with no fuss.
Help->Install New Software->Add site-> http://download.eclipse.org/releases/indigo (or whatever release you are going to)
Help->Check for updates
And eclipse should update itself with no fuss.
Monday, August 1, 2011
migrating existing svn repo to git (and use with eclipse)
- Install git
- sudo gem install svn2git --source http://gemcutter.org (here)
- svnserve -d (start readonly svnserver on local machine)
- mkdir new directory and cd into it
- svn2git svn://localhost/path/to/local/svn/repo
- Install EGit and restart.
- (Eclipse) new pydev project -> browse to existing folder
- Set up git locally (here)
- set up to use git
- team -> remote -> push -> (url from your project page)
- git svn clone file: did not work because of a file format problem (Expected FS format '2'; found format '4' at /usr/local/git/libexec/git-core/git-svn line 1535)
Labels:
source control
Subscribe to:
Posts (Atom)