Saturday, July 21, 2012

convert images to dxf

It's actually a vectorization problem. Autotracer.org can do the job.

Tuesday, July 17, 2012

The Elements of Matlab Style

The Elements of Matlab Style 
By Richard K. Johnson

For future uses if needed.

Friday, June 8, 2012

Free PDF White Margin Cropping Tool

There's a nice package called "briss" that does just that. Several features are: 

  • What you see is what you get
  • Ad hoc adjustment of cropping area
  • Stacks all pages into a single layer so that one can see how much cropping is needed

Friday, June 3, 2011

octave and gnuplot

There are two terminal types for gnuplot that I know of, one is win, the other is wxt.

wxt has more functions than win and is therefore preferred.

To make sure octave uses wxt instead of win, simply set the environment variable GNUTERM = wxt by "right clicking My computer - Advanced - Environment Variables", remember to restart octave.

And it is possible that the plot terminal might freeze for some reason. One work-around to this is to add the following commands

replot;
grid on;

to the end of the script.

Thursday, March 10, 2011

pdf tool--Multivalent

I use it to split pdfs, as far as which is concerned it is easier than pdftk.

Note that the release Release20091027 has the tools package removed. Use a previous release instead

http://www.ziddu.com/download/1794145/Multivalent.tar.gz.html

Examples:

1. Subset the first 20 pages and three copies of the last.

java tool.pdf.Split -page 1-20,last,last,last contract.pdf

2. Rearrange pages to all odd followed by all even.

java tool.pdf.Split -page odd,even for-non-duplex-copier.pdf

3. Delete page 5.

java tool.pdf.Split -page 1-4,5-end contract.pdf

4. Insert blank page after cover page.

java tool.pdf.Split -page 1,b,2-end report.pdf

5. Split page ranges into multiple PDFs by separating ranges with semicolons.

java tool.pdf.Split -page "1-12;13-20;21-end" book-with-chapters.pdf

5. Split page first 1000 pages into multiple PDFs of 100 pages each.

java tool.pdf.Split -page "1-1000/100" big.pdf

7. For double-sided printing on a non-duplex printing, split the first 11 pages into a PDF with the odd pages and another PDF with the even pages. Since there is an odd number of pages, the PDF with the even pages is given an additional blank page in order to match the number of odd pages.

java tool.pdf.Split -page 1-11 -doublesided handouts.pdf

8. Given a PDF with rearranged pages, you can conveniently recover the original order with the backmap operator to the -page option. For example, if the PDF has all the odd pages followed by all the even pages, for a page order of 1,3,5,...,2,4,6,..., then the following back maps this ordering to the original 1,2,3,4,5,6,....

java tool.pdf.Split -page odd,even,backmap odd-even.pdf

If the odd pages are in one PDF and the even in another, you can first use the Merge tool.

Tuesday, December 1, 2009

Installing 1 Windows and 2 linux OSes

Installing 1 Windows and 1 GNU/Linux on one machine doesn't need much care. What if I want to install 2 Linux OSes?

Recently I installed Windows 7, along with Mint Linux and Fedora 9 (for special use). My procedure was Windows 7 -> Mint -> Fedora 9. It turned out there are several things to take care of:

1. One on hard disk there can only be maximally 4 primary partition. Mint and Fedora each requires at least 1 primary partition, which leaves for Windows 7 only two primary partitions.

2. Fedora shares the SWAP partition with Mint

3. Since Mint has a much more beautiful grub than Fedora (personal opinion), I didn't select install boot loader when I installed Fedora. After the installation I went back to Mint and edited menu.lst correspondingly, specifying where Fedora should boot and which kernel to use.

Saturday, December 13, 2008

James Clerk Maxwell Foundation

http://www.clerkmaxwellfoundation.org/index.html