Archive for the 'General Macintosh' Category
A friend recently needed a Fortran compiler, and I pointed her to the useful high performance computing. However, things didn’t work and that’s because the program also needed to Apple’s developer tools – which include a compiler, etc. – to install properly.
Xcode is usually included somewhere when you buy a new Mac. Either a disc image hiding somewhere on the hard drive or on the DVD that came with your machine. If all those things fail, or you don’t want to look around, it’s also available at the ADC site for free. You simply must register for free ADC “Online Membership.” The advantage of downloading is that you will get the latest version. Be advised to make sure you’re getting a version of Xcode that works on your version of OS X.
The latest Xcode runs on the latest OS X, so today that means that Xcode 3.1 works on Leopard only. You should be able to find an older version for Tiger.
At the web site, look for Developer Tools and then Xcode 3.1.
The only real trick after downloading them and installing them is to customize the install, and I only do this to save disk space. But unless you’re going to develop a real Mac OS X app, you don’t need all the documentation and examples. It’ll save you about half a gigabyte. You want to uncheck “Core Reference Library” and be sure that the “UNIX Development Support” is checked.

Tags: apple, compiler, Leopard, unix, xcode — .
The PDF tracking software Papers is now up to version 1.8. It includes support for NASA ADS and other search engines and I have mentioned it in the past now and then.
This update to 1.8 may have happened some time ago, but the program continues to be improved and I think becomes more useful with each update.
Tags: ADS, papers, pdfs — .
Macworld | Editors’ Notes | OS X turns VII – Yes I bought OS X 10.0, and no I couldn’t do much of anything with it – it was too slow. When 10.1 came out a few weeks later though, you could definitely sense the way the Mac was going and clearly it’s been a great ride for Apple and OS X fans over the years. Now we see OS X working it’s way onto iPhones and iPods – no one would have guessed that 7 years ago.
Anyway, so Happy Birthday MacOS X, from all of us here at Mac Singularity.
Tags: apple, OS X — .
Papers now looks to be the killer app for finding and organizing PDFs of journal papers in astronomy. I’ll need to check out the bibtex export ability and such of it, but it was already quite handy and with ADS and arXiv now bulit-in; it’s even better.
Via a comment from the authors on the old Paper post.
As an aside, Macbooks and Macbook Pros dominated the AAS convention in Austin, perhaps even more so than usual. One of these years I should just do an entrance poll into the exhibit hall at AAS and ask people what platform they use. What do you all think, 60-70% Macs now? Surely something like that among laptop usage, but I would imagine there is still plenty of Linux on desktop machines.
Tags: ADS, arxiv, bibtex, journal articles, papers, pdfs — .
Ok, so I’ve obviously been doing a lot of Leopard posts. I’ll try to round things up here.
I should say that if you’re upgrading, uninstall unsanity’s “application enhancer” and be advised that it may be installed by some other utility you use – I think it appears as a preference pane if it’s installed. Old versions seem to cause some problems with Leopard. I stay away from things like Application Enhancer for this reason. Oh, the Logitech Control Center foolishly installs APE and so you may have it without knowing it. I have never installed any 3rd party mouse drivers – I just plug in their mice and it works so I never knew what the drivers would do.
Personally, I think Leopard is a great upgrade. As John Gruber pointed out, it’s almost a death by 1000 cuts approach. Yeah, there are big new features like Time Machine and Spaces but there are lots of small improvements in a lot of ways. The new Network system preference pane, the new Software Update (with a “not now” option for restarts). The most comprehensive review (which still doesn’t touch on everything new) is of course John Siracusa’s at Ars Technica, which also talks about the additional abilities added for developers.
Time Machine makes it absurdly easy for backing up, even with a laptop. Every time I plug in the firewire drive Time Machine immediately starts churning and does a backup and it usually is over in a few minutes. I thought Synk was easy but this is even easier. I like the data detectors ability in Mail for adding events to iCal. Spotlight is much faster. I’m starting to miss features from Leopard when I come to work to my Mac Pro so … that’s usually a good sign. However, stacks are annoying (especially since the icon for a folder in the dock now can be especially meaningless and indistinguishable).
The biggest problem to astronomers is that all this X11 business is annoying for those of us who use X11 a lot. I think in the long term this move to a new codebase, etc. will be positive but for now, for me, the problem with no full screen X11 is a deal breaker. I’m going to try the revert-to-Tiger X11 tonight and see how that works. Hopefully, we’ll see improvements to X11.app shortly in Leopard itself. If you don’t use Leopard full screen, there are still some things are still buggy in Leopard. Namely, there seem to problem with the “Application” menu, an xterm always launches, and some programs (like ds9) don’t like the DISPLAY variable trickery that X11.app now uses. And, X11 doesn’t seem to play nicely with Spaces.
However, the upside is that you can use the Terminal.app to launch x11 programs now without weird crashes about DISPLAY not found or whatever. I think eventually this will go well, but for now Leopard’s X11 has some problem. I wish they had just held back on the changes until everything was up and running.
So, if you’re in the middle of some X11-intensive project, I wouldn’t go buy Leopard and install it today, as you may encounter some unexpected bumps. I put Leopard on my Macbook which pretty much does no IRAF or IDL these days so my astronomical productivity is unaffected.
Tags: apple, Leopard, OS X — .
Updated at the bottom | Second Update
So, here’s the quasi-official word from Ben Byer, one of Apple’s x11 developers on Apple’s x11-users list.
Biggest architectural change in Leopard for X11: Switched from XFree86 codebase (based on, IIRC, X11R6.8) to X.org codebase (X11R7.2)
Biggest user-visible change: launchd support for X11. The only situation where you should need to manually start X11.app is if you are only running remote X11 applications.
The way that this is accomplished is by some slight-of-hand with the $DISPLAY variable — if you look, it should be something like “/tmp/ launch-vbXRyu/:0″. If an X client connects to this, it will actually connect to launchd, which will start Xquartz if needed and pass the client’s socket to the server.
All of that should be invisible to you; the X client library (libX11.dylib) was modified to support this, and all X11 applications link against this library. “DISPLAY=:0″ would still work if X11.app is already running, but it will not trigger X11 to launch.
Two biggest bugs:
Fullscreen support is broken. I know many of you will hate me for this — it stopped working when we switched codebases, and I was unable to get it working again. I’m hoping that some of you developers may be able to help me us fix this. Until then, those of you who need this functionality should be able to use the X11 package from Tiger instead. (Yes, I know you can’t officially download that from www.apple.com — I would like to see that change and am working on making that happen; no ETA. You may be able to find a copy of it lying around somewhere.)
Do not start X11.app from the Dock. It will do strange things — you’ll get two icons. This is due to the aforementioned “launcher” in /Applications/Utilities/X11.app not being the same as the real server, which is now located at /usr/X11/X11.app.
I should also note that the DISPLAY variable mojo doesn’t seem to play nice with darwin ds9, since it looks like the ds9 launch script is checking the DISPLAY variable for something it likes.
You can use Tiger’s X11 on Leopard, and instructions for that have been written up here. Not too complicated but you’ll need a Tiger DVD of some kind.
Update Here is more on the history of Apple’s distribution of X11
Update II A pretty good summary of what’s going on with X11 is found at this post on the Macosxhints forum.
Tags: Leopard, unix, x11 — .
This Leopard review points out something that has troubled me since I first heard of Time Machine:
Unfortunately, Time Machine has a serious problem: there is no way (that I can find) to remove a file from a Time Machine backup. This is a pretty glaring omission. After all, Leopard has a “secure empty trash” feature that lets you throw away files so that they can’t be recovered with forensic tools. What’s the point of erasing a file on the hard drive and then overwriting the disk sectors seven times if Leopard is going to keep a copy of the file in the Time Machine backup?
Agreed. It seems like while handy to have backups, sometimes you just want a file totally gone. Though, I store anything sensitive (like financial items, etc.) on an encrypted disk image. However, if Time Machine is backing things up every hour – it could grab such a file before one has time to copy to a secure disk image. So, while you can turn Time Machine off for specific folders, etc – it’d still be nice to have some way to obliterate all copies of a file from the past, as well as the future.
You can delete all backups though I doubt they’re done “securely” with overwrites. See below.
Tags: backup software, security, time machine — .
A new SDK for Papers is out that allows developers (or anyone) to write search engine plugins for Papers, the excellent journal paper management program that I have mentioned previously. Alas, I know next to nothing about Mac programming, so try as I might to understand the SDK and how to make a plugin that let us search ADS from within Papers, it looks beyond my abilities.
So, maybe someone out there reading this would like to give it a shot?
.
UPDATES BELOW
So, Daring Fireball dubbed George Ou a “jackass of the week” for this post declaring that Vista’s font rendering puts OS X “to shame.”
Alas, something went awry in Ou’s comparison because he seemed to be showing OS X’s “best for CRT” text smoothing setting. See below the difference between what Ou purports to be OS X’s font rendering and what it actually can be on an LCD.

As has been pointed out, what makes for “good” font rendering is highly subjective, but Ou could have taken the time to actually look in the Appearance preference pane and try some other settings. (I think one has to quit and re-launch a program before the new font smoothing settings take effect.)
Update By default it appears that the Mac is “automatic” which, I would assume for a laptop sets it to “Medium (Best for Flat Panel)”. I’m guessing for some reason “automatic” was producing the “Best for CRT” setting in whatever machine Ou was on – I don’t know why though.
Update II Indeed, the post has been updated as Ou’s comment suggests. I’d argue that font rendering on screen is somewhat a matter of taste. Here’s some more on the differences between Vista and OS X Font rendering. I don’t have access a Vista machine so I can’t add them myself, and Ou’s examples are a different size than mine for some reason (font sizes in browsers no doubt.) You can see all of the renderings now compared at the original post.
Update III There are many other discussions about font rendering especially now that Safari on Windows uses the Mac-style font smoothing.
.
So, I admit I only recently installed SM(supermongo), and only have used it slightly. Between IDL, grace(installable via Fink or there are binaries for MacOS X at the HPC site), and Plot, I just don’t see why any Mac user would make plots in SM. It requires gnuplot-esque scripts/programs, and just seems in general a pain and esoteric.
Perhaps it is powerful, perhaps for automated plot creation from certain kinds of data, it’s great, but I don’t understand its popularity. Has anyone used all the above tools and yet prefers SM? If so, please post a comment. I’m curious if I’m missing something.
For casual plotting, say from analysis that I do in IDL, I just do quick plots in IDL itself, and I’ve written a fair number of simple IDL routines that call plot or ploterr or other people’s plotting programs. This works for day to day plotting, and is easy to integrate into my other IDL programs. For almost all plots for publication, I have always used the aforementioned grace, which I installed with Fink.
If if I wasn’t already familiar with grace, I’d probably try this unfortunately under-named program, Plot. It seems pretty good, but since it’s very similar to Grace except with all the options in different places, so I’ve just stayed with the familiar Grace. But, I vastly prefer a graphical interface like this for tweaking than altering parameters via some script. I have also used gnuplot. It was a nightmare. I recreated in grace in one hour what it took days to get gnuplot to do, and do poorly. I abandoned gnuplot as a first year grad student.
Anyway, I know sm must have its fans, so if that’s you, let me know why you like it below. But, please note if you’ve used any other plotting program.
Update I’m baffled by the “something else entirely” winning unless it’s non-astronomers voting for Excel. Whatever you are voting for, could you post a comment and tell me? Also, I recently got a new Macbook, and installing Grace via Fink was a royal pain requiring a selfupdate via rsync and then a very long compile-fest because they don’t have a binary available. It’s hard to recommend with all that pain, but I maintain it’s much better than SM.
Update II Ploticus sounds vaguely familiar (see in the comments), but not so much python/matplotlib. These sound like IDL/SMish sort of plotting though. Personally, I still prefer a GUI – hence my like for xmgr Grace.
Update III I certainly get the desire to have a plot automagically made while one is doing data reduction, analysis, etc. This is one reason I like IDL. However, I prefer to be able to finely tune the appearance in a GUI for a plot designed for publication. I suppose it’s a learning curve thing. Granted, once you write one sm script to plot a spectra … you’re set for all other spectra. However, I’m not convinced for my own work that the time/effort spent learning how to write such a script is worth it, since I’m obviously rather comfortable with Grace. (It’s worth noting for a certain repetitive plots I have used IDL.)
.