- Go to https://trac.macports.org/browser/trunk/dports and find the revision and directory you want. In my case, it was 91935 and devel/automake
- Go to some temporary directory (one accessible to everybody; see step 5)
- svn co -r 91935 http://svn.macports.org/repository/macports/trunk/dports/devel/automake
- cd automake
- Change read/write permissions and/or ownership so that macports can access Portfile and potentially files. For example, sudo chown -R macports:macports Portfile files
- sudo port install
- You can check the newly-installed version with port installed automake
Friday, September 28, 2012
Macports madness
How to install older versions with MacPorts:
Wednesday, July 4, 2012
More black-and-white photos
I've taken some more photos (3 rolls of 120 and 1 roll of 35mm) since my last post; here are some that I liked:
The last two were with a 20mm lens on 35mm film and I thought the exaggerated sense of perspective was interesting. The last one was a handheld 1/8 second exposure so I took a couple shots (because processing this film is cheap!) and just hoped for the best. I should've turned on the oscilloscope and captured an interesting waveform, though. Note the computer desktop background!
I don't know if this is a limitation of the film format, my equipment, or my scanning, but the medium-format photos (the first three) show a lot more detail and less grain than the 35mm photos.
The last two were with a 20mm lens on 35mm film and I thought the exaggerated sense of perspective was interesting. The last one was a handheld 1/8 second exposure so I took a couple shots (because processing this film is cheap!) and just hoped for the best. I should've turned on the oscilloscope and captured an interesting waveform, though. Note the computer desktop background!
I don't know if this is a limitation of the film format, my equipment, or my scanning, but the medium-format photos (the first three) show a lot more detail and less grain than the 35mm photos.
Sunday, June 24, 2012
Batch image resize
I came back from Vancouver with more than 1000 photos on my digital camera, each of which is 4-6 MB when saved at the camera's maximum 4928 × 3264 resolution (with "normal" jpeg compression).
This is a bit much, and even after pruning out the bad photos (blurry, etc) there were still quite a few that I wanted to keep but had absolutely no intention of printing at poster sizes or substantially cropping. My largest monitor is 1680 × 1050, an HD TV is 1920 × 1080, and even the absurd new MacBook Pro is "only" 2880 × 1800. So I decided that 3056 × 2024 was large enough for these photos.
Next came the task of actually resizing several hundred photos. I am running OS X 10.6 (Snow Leopard). Initially I tried Gimp, but the batch-processing GUI turned out to be extremely difficult to install, and writing my own command-line scripts was more work than I was really looking for right now.
Finally I got ImageMagick, which I installing using MacPorts (a Linux-like package manager for OS X), and its mogrify program turned out to be exactly what I was looking for. The command is simply:
mogrify -resize 3056x3056 *.jpg
mogrify -resize 3056x3056 *.jpg
And the results look pretty good. This resize dropped the pixel count from 16.1 MP to 6.2 MP and average file size from 5.3 MB to 2.5 MB.
Wednesday, June 13, 2012
Switzer falls
Went hiking Sunday near Switzer falls in the Angeles National Forest. Lots of stream crossings, and this one in particular was guarded by this lizard:
As we got closer, he did some push-ups to warn us off. I crossed first, eventually scaring him off, but he came right back. Here he is standing up to SC:
Not sure what he is. Maybe a Western fence lizard? Apparently the way to tell is to look at their underside.
As we got closer, he did some push-ups to warn us off. I crossed first, eventually scaring him off, but he came right back. Here he is standing up to SC:
Not sure what he is. Maybe a Western fence lizard? Apparently the way to tell is to look at their underside.
Saturday, May 26, 2012
AirFish
A fish-shaped airship!
It's an Air Swimmers shark to which I've added a microcontroller, radio, and inertial sensors.
Tuesday, May 1, 2012
Friday, April 27, 2012
SSH keys
If you would like not to type in your password every time you connect to a remote server (and it really does make a difference), this is what you want:
http://en.wikipedia.org/wiki/Ssh-keygen
and if you want multiple private keys:
http://www.karan.org/blog/index.php/2009/08/25/multiple-ssh-private-keys
http://en.wikipedia.org/wiki/Ssh-keygen
and if you want multiple private keys:
http://www.karan.org/blog/index.php/2009/08/25/multiple-ssh-private-keys
Tuesday, April 24, 2012
Prevent mouse from waking computer from sleep
On Windows 7:
Control panel → Mouse → Hardware tab → Properties → Change Settings → Power Management tab → uncheck "Allow this device to wake the computer"
Convoluted much?
Control panel → Mouse → Hardware tab → Properties → Change Settings → Power Management tab → uncheck "Allow this device to wake the computer"
Convoluted much?
Monday, April 23, 2012
Subscribe to:
Posts (Atom)









