People often make the mistake of putting " in place of `` in LaTeX documents. To repair this, the only easy solution is something like:
s/\(\s\)"/\1``/g
in VIM or sed.
I've seen alternate solutions posted but they're all too complicated. One recommendation was to switch to XeTeX, which sounds like overkill, and others all stated that a complicated perl script is required. The latter is technically true, but why isn't such a thing readily available?
Any other ideas?
Saturday, December 27, 2008
Sunday, December 21, 2008
Thursday, December 11, 2008
skill set
is it a marketable skill that I can bring down almost any computer system I'm given access too entirely unintentionally?
Friday, December 5, 2008
post rate
my post rate is too low I need to up it so that my front page doesn't show the same posts any more
Wednesday, December 3, 2008
scary
I think this is my worst nightmare:
http://antwrp.gsfc.nasa.gov/apod/ap081203.html
LA. Not the smiley.
http://antwrp.gsfc.nasa.gov/apod/ap081203.html
LA. Not the smiley.
Monday, November 24, 2008
.inputrc
New unix stuff!
This is, again, stuff I'd searched for forever but never found the right collection of terms. This is what bash readline is REALLY all about.
if you make an inputrc file, you can get awesome readline capabilities (similar to ipython). This post at lifehacker showed me how to do it. This site has a more complete description of how to use readline/inputrc.
Even better: VI command line editing .
There's also something called magic space but I don't know what purpose it serves all the time... it will replace 'magic' characters like !* and !& and !! with whatever command they represent if you hit space immediately after typing them (explained better here).
Wow. Awesome.
This is, again, stuff I'd searched for forever but never found the right collection of terms. This is what bash readline is REALLY all about.
if you make an inputrc file, you can get awesome readline capabilities (similar to ipython). This post at lifehacker showed me how to do it. This site has a more complete description of how to use readline/inputrc.
Even better: VI command line editing .
There's also something called magic space but I don't know what purpose it serves all the time... it will replace 'magic' characters like !* and !& and !! with whatever command they represent if you hit space immediately after typing them (explained better here).
Wow. Awesome.
Thursday, November 20, 2008
MOVIES!
Making movies is surprisingly difficult. No matter what language you use, apparently true movie files can only be made by stringing together images, i.e. there is no native movie-producing feature. Gnuplot can do some simple animations but to do anything sophisticated you need to start delving into variables, and for that I switch to a real language.
So, I returned to python. As usual, it took no more than a few hours of coding and learning to come up with something. But it bothers me that it took that long: I still think python is most deficient in its failure to create a default column-text reader like 'readcol' in IDL. I can't complain that much, though: I wrote my own in about 5 minutes.
Anyway, the key is to use the
I use
ImageMagick's convert can be used to stitch any kind of image into a movie given that you've installed an mpeg2 encoder (fink gave me
I had to use a smaller image size because a series of 1000x12kb files somehow chomped ~6-8 GB of RAM and swap space.
So, I returned to python. As usual, it took no more than a few hours of coding and learning to come up with something. But it bothers me that it took that long: I still think python is most deficient in its failure to create a default column-text reader like 'readcol' in IDL. I can't complain that much, though: I wrote my own in about 5 minutes.
Anyway, the key is to use the
.set_xdata and .set_ydata functions of a plot to update a canvas. I still don't have nearly as high a plotting speed as I'd like, but it works alright if I don't display to screen. Probably a different backend would be more effective but I don't like to mess with backends.I use
savefig(filename,dpi=50) to reduce the image quality so that it's easier for the animator to handle.ImageMagick's convert can be used to stitch any kind of image into a movie given that you've installed an mpeg2 encoder (fink gave me
mpeg2vidcodec ). The command is very simple:
convert -size 300x300 *.png movie.mpg
I had to use a smaller image size because a series of 1000x12kb files somehow chomped ~6-8 GB of RAM and swap space.
Subscribe to:
Posts (Atom)