This post helped me out
API documentation on agpy
I finally processed agpy through sphinx and made some nice html documentation. http://agpy.googlecode.com/svn/trunk/doc/html/agpy.html
Applescripting out that VIM error
I have a frequent problem where my VIM window is too large for my macbook screen but it fits on my external monitor, so when I unplug the external the VIM file bar gets stuck behind the Mac OS menu bar. It's a huge pain to fix this normally, but I wrote/stole an applescript to fix the problem:
try tell application "Vim" activate end tell tell application "System Events" tell process "Vim" set size of the first window to {1000, 200} set position of the first window to {50, 50} end tell end tellend tryArt mimicing reality
An artist who likes painting astronomical objects: Marianne Beacham Gallery
astro-better post
I contributed to a post on Astro Better asking about mosaicing software.
Astronomy gets some recognition
First off, this guy does some amazing work, like measuring the galactic rotation curve. He got recognized by the Colbert Report. Sweet.
Awk sexagesimal to decimal conversion
In VIM I often need to convert columns of RA/Dec from Sexagesimal into Decimal format. %!awk '{ra = ($2+$3/60+$4/3600)*15; dec = $6+$7/60+$8/3600; print $1,"ra=",ra,", dec= ",$5,dec}' The far more irritating inverse operation: `` %!awk '{h=($2/15); h=h-(h%1); m=($2-h*15)/15*60; m=m-(m%1); s=($2-h*15-m*15/60)/15*3600; d=-($3-$3%1); am=(-$3-d)*60; am=am-(am%1); as=(-$3-d-am/60)*3600; printf "%s %02i:%02i:%02.2f, -%02i:%02i:%02.2f %s %s %sn" , $1,h,m,s,d,am,as,$4,$5,$6}' ``
Back to site editing
I'm editing class web pages, php, cgi, etc. again. I don't think I ever really understood how to do this, but I'd like to know how to use PHP to fold text. That would be sweet. I found it by googling this time. This is really the right way to do things: http://help.blogger.com/bin/answer.py?hl=en&answer=42214 Of course, it's pretty disappointing that it doesn't work with the non-classic template for blogger.
BASH discoveries, readline questions
1. `` shopt -p `` Maybe my hostname completion worked and then stopped working because the bash option hostcomplete was not set. Duh! Why? I don't know. Anyway, `` shopt -s hostcomplete`` solves the problem. `` nocaseglob `` is also pretty cool (case insensitive tab completion) 2. it's really hard to search for readline stuff on google. Can anyone explain to me how BASH readline works? I would REALLY like to make bash readline work like ipython, in which you can start typing a command and hit the 'up' key to search through the history for anything beginning with the stuff you've typed up to that point. But I can't even find documentation for the ipython readline! Any hints, anyone? 3. my desktop at work blocks ssh connections. I can ssh into some computers and then into it, but not directly into it. ...as usual, I made a list where not-a-list would have sufficed, and I had to add the last thing because a 2-item list is dumb.
BGPS public release