tag:blogger.com,1999:blog-201392892024-03-18T23:58:00.844-04:00durin42's random tangentsAugie Facklerhttp://www.blogger.com/profile/10401940579917768706noreply@blogger.comBlogger21125tag:blogger.com,1999:blog-20139289.post-29333240355059306102009-06-22T21:00:00.000-04:002009-06-22T21:59:07.615-04:00Get command-as-meta in Cocoa Emacs 23I've been running the <a href="http://atomized.org/wp-content/cocoa-emacs-nightly/">Cocoa Nightlies</a> of emacs lately. It's been mostly nice, although I switched back to 22 for a while because meta became super by default, and I couldn't figure out how to change it. The solution is to either go into <pre>M-x Customize -> Environment -> Ns</pre><br />or put<br /><pre><br />;; Command is meta in OS X.<br />(setq ns-command-modifier (quote meta))<br /></pre><br />in your emacs startup files. You'll also need to install an <a href="http://dl.getdropbox.com/u/16265/emacsclient">updated emacsclient</a> since the one for emacs 22 won't work with 23.Augie Facklerhttp://www.blogger.com/profile/10401940579917768706noreply@blogger.com2tag:blogger.com,1999:blog-20139289.post-45646723173971438622009-04-11T13:58:00.002-04:002009-04-11T14:01:24.760-04:00ZFS on OS X and Hanging UpdatersI was finishing off my taxes today, and while trying to apply the updater for TaxCut the updater would just hang. It'd completely max out one core of my MBP, and not ever do anything. Finally, in a moment of desperation, I fired up Instruments and started sampling it, and it was getting stuck in a Carbon routine about getting filesystem info. Unmounting my ZFS partition and trying the updater again caused it to go through instantly, with no issues.<br /><br />Instruments is Made. Of. Awesome.Augie Facklerhttp://www.blogger.com/profile/10401940579917768706noreply@blogger.com0tag:blogger.com,1999:blog-20139289.post-58590190195674343962009-02-02T22:00:00.000-05:002009-02-02T23:48:29.306-05:00shepherd: Re-run tests automatically on saveFor the past few months I've been using a tool I wrote called <a href="http://bitbucket.org/durin42/shepherd/">Shepherd</a> to help run my tests for me when I'm doing a fast edit/re-test cycle. Shepherd is an OS X only shell tool (although I'd like to see equivalents for other platforms) that uses FSEvents to watch a directory for edits and re-run the tests only when the right kind of file has been edited. This is nice for a couple of reasons: Your editor doesn't need to know tests are being run, and it'll automatically re-run the tests if the code changes for some other reason, like an hg revert.<br /><br />There are some bugs (^C in the middle of a test run doesn't actually stop the in-progress test run, for example), but it's been a valuable tool for me, and I'm quite late in blogging about it so others can try it out. The code is hosted on BitBucket, so if you have improvements to make, please publish them there in a fork or queue so I can pick them up!Augie Facklerhttp://www.blogger.com/profile/10401940579917768706noreply@blogger.com0tag:blogger.com,1999:blog-20139289.post-58917167884918767552008-06-30T22:20:00.002-04:002008-06-30T22:23:51.669-04:00Nokia 6085 with iSyncWell, I have an iPhone, but A doesn't, so we just got her a Nokia 6085, which is a huge step up from the Samsung she had. To get it working with iSync, I took <a href="http://klauskjeldsen.dk/2007/06/08/free-nokia-6300-isync-plugin/">this plugin</a> for the 6300 and replaced 6300 with 6085 in all the plists, and it just worked neat as you please.<br /><br />Syncing over bluetooth is kinda cool. Maybe Apple could work out some minimal ability to sync (say) calendars, contacts, and iTunes play counts over bluetooth, leaving the "big" files for when you've got a wire?Augie Facklerhttp://www.blogger.com/profile/10401940579917768706noreply@blogger.com0tag:blogger.com,1999:blog-20139289.post-33974569250364074242008-05-17T12:34:00.001-04:002008-12-10T11:06:12.304-05:00<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiefC8UZqE-420ugRjsIRslQ5_nFvoaVse9rWle04eC0M8p5Dbkhk2FoHN4bbzjhWDI2Rb0vZ1A14tnhcXq0778r-RyTktYoRDAUgJ0D4RABsZkbqm_LYW5i5yK0x2P6Q0R6s1bAA/s1600-h/inept_form.png"><img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiefC8UZqE-420ugRjsIRslQ5_nFvoaVse9rWle04eC0M8p5Dbkhk2FoHN4bbzjhWDI2Rb0vZ1A14tnhcXq0778r-RyTktYoRDAUgJ0D4RABsZkbqm_LYW5i5yK0x2P6Q0R6s1bAA/s320/inept_form.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5201386192367839970" /></a>This just makes me sad. I was booking a hotel room at a major hotel chain, and I got to this form and just started laughing. Am I weird in that I was tempted to try and screw up their system by using those characters?<br /><br />Also, what kind of place is it that makes a form this not-robust in 2008? That's just <i>asking</i> for trouble.Augie Facklerhttp://www.blogger.com/profile/10401940579917768706noreply@blogger.com1tag:blogger.com,1999:blog-20139289.post-29031761458358240302008-04-23T10:18:00.003-04:002008-04-23T10:20:51.201-04:00Using ConfigParser on StringIOConfigParser is one of those bits of Python that is sadly under-documented. Recently I had need of using ConfigParser on a non-file, which meant using StringIO. Sadly, I couldn't find any examples of how to do this. After a little experimenting, I found that this works:<br /><pre><br />dummy_config = """[pinky]<br />narf: True<br />troz: True<br />"""<br />config = ConfigParser.ConfigParser()<br />s = StringIO.StringIO(dummy_config)<br />config.readfp(s)<br />print config.sections()<br /></pre><br />So there you have it: the secret is the readfp() method, which is mentioned in the output of PyDoc, but Google barely knew about.Augie Facklerhttp://www.blogger.com/profile/10401940579917768706noreply@blogger.com0tag:blogger.com,1999:blog-20139289.post-13338752057163772492008-03-31T23:53:00.002-04:002008-04-01T00:04:03.808-04:00setuptools and Subversion 1.5Heads up: if you do not patch setuptools, installs from svn working copies *will* error out when you upgrade to Subversion 1.5. This isn't a big deal, really. If you're not using the new features, you can easily downgrade your working copy (left as an exercise for the reader, since I don't want to empower that kind of bad behavior). That said, if you are like me, you want to just fix setuptools. I figured out the patch. It's actually trivial, since they are already parsing the entries file in a sane way, all that needed to happen was to bump the accepted version of the entries file in the setuptools sources and move on with my day. Unfortunately, they have been totally silent on the patch. As such, I'm posting it here so that Google at least has a chance of finding this and making the world able to fix this problem. Here's the <a href="http://durin42.com/rnd/setuptools_patch.txt">patch</a>:<br /><pre><br />Index: setuptools/command/egg_info.py<br />===================================================================<br />--- setuptools/command/egg_info.py (revision 61076)<br />+++ setuptools/command/egg_info.py (working copy)<br />@@ -217,9 +217,9 @@<br /> data = f.read()<br /> f.close()<br /> <br />- if data.startswith('8'):<br />+ if data.startswith('8') or data.startswith('9'):<br /> data = map(str.splitlines,data.split('\n\x0c\n'))<br />- del data[0][0] # get rid of the '8'<br />+ del data[0][0] # get rid of the '8' or '9'<br /> dirurl = data[0][3]<br /> localrev = max([int(d[9]) for d in data if len(d)>9 and d[9]]+[0])<br /> elif data.startswith('<?xml'):<br />Index: setuptools/command/sdist.py<br />===================================================================<br />--- setuptools/command/sdist.py (revision 61076)<br />+++ setuptools/command/sdist.py (working copy)<br />@@ -86,7 +86,7 @@<br /> f = open(filename,'rU')<br /> data = f.read()<br /> f.close()<br />- if data.startswith('8'): # subversion 1.4<br />+ if data.startswith('8') or data.startswith('9'): # subversion 1.4 or 1.5<br /> for record in map(str.splitlines, data.split('\n\x0c\n')[1:]):<br /> if not record or len(record)>=6 and record[5]=="delete":<br /> continue # skip deleted<br /></pre><br />If this works for you (and you <em>are sure</em> you are using svn 1.5 client binaries ("head -n 1 .svn/entries" prints "9"), please head over to the <a href="http://www.python.org/community/sigs/current/distutils-sig/list/">distutils SIG list</a> and mention that it works for you. Of course, if you're reading this and you can be more of an authority than I can (I read the <a href="http://svn.collab.net/repos/svn/trunk/subversion/libsvn_wc/README">the libsvn_wc docs</a> (search "The entries file")), please comment over there if the patch is right, or give me feedback so I can submit a more resilient patch.Augie Facklerhttp://www.blogger.com/profile/10401940579917768706noreply@blogger.com2tag:blogger.com,1999:blog-20139289.post-11193828405531502932008-02-17T21:23:00.004-05:002008-02-17T21:26:34.772-05:00New PodcastI've been following a few podcasts intermittently (mostly CarTalk), but the latest one I really like is <a href="http://code.google.com/p/pcloadletter/">PC LOAD LETTER</a>. They're covering open-source issues and things like the history of Subversion. Using the issue tracker in Google's project hosting, they are taking questions from the audience. I'd recommend listening to the first episode as an intro, and then any others available (at this point, just one other episode).<br /><br />Go add it to your iTunes feeds now - you'll probably learn something interesting, or at least be entertained.Augie Facklerhttp://www.blogger.com/profile/10401940579917768706noreply@blogger.com0tag:blogger.com,1999:blog-20139289.post-54086891988894575232008-01-20T13:48:00.001-05:002008-01-20T14:34:47.972-05:00Time Machine and Xcode Love Disk SpaceI was idly looking at my Time Machine backups today and noticed that Time Machine backs up Xcode's build directories. It struck me as wrong because, after all <a href="http://developer.apple.com/documentation/MacOSX/Reference/Backup/Reference/reference.html">Backup Core</a> provides <a href="http://developer.apple.com/documentation/MacOSX/Reference/Backup/Reference/reference.html#//apple_ref/doc/uid/TP40004700-CH3-SW1">a function</a> to exclude files and folders from being backed up. Xcode should (maybe optionally?) call this against all built product directories and intermediate product directories.<br /><br />This is bug <a href="rdar://problem/5696811">5696811</a> and was filed on 1-20-2008.Augie Facklerhttp://www.blogger.com/profile/10401940579917768706noreply@blogger.com0tag:blogger.com,1999:blog-20139289.post-15234753785411179882007-11-29T14:57:00.000-05:002007-11-29T15:19:22.176-05:00System SpelunkingI got bored, so I started poking around inside OS X this week. Here's some of the interesting (to me) tidbits:<br /><br /><h3>Time Machine</h3><br />Used to be called Peabody? Hitting Time Machine with <a href="x-man-page://1/strings">strings(1)</a> shows three keys of the form com.apple.peabody.* - This is (probably) a reference to <a href="http://en.wikipedia.org/wiki/Wayback_machine">Mr. Peabody's Wayback Machine</a> which allowed one to see what the past looked like. Another curiosity here, in the prefpane's Localizable.strings, we see FILEVAULT_WARNING_TIGER. Does this mean that Time Machine used to work on Tiger?<br /><br /><h3>Screen Sharing</h3><br />Perhaps this used to be called Liason? The icon name inside the app bundle is liason.icns. This is a little odd because the app controller is SSAppController. Maybe they just used their refactoring support there but didn't change the icon name. Also, there's an -isLeopard; selector in here - maybe this was designed to work on 10.4 as well? I might try grabbing the app and shifting it over to a 10.4 machine to see what happens. Liason is definitely a cooler name than Screen Sharing.<br /><br /><h3>Probably not new, but interesting anyway:</h3><br /><ul><br /><li>Network Utility has "stroke" in its resources, it's a simple command-line portscanner. It's even nice enough to give you usage if you fail to give it sane arguments.</li><br /><li>Apple is really inconsistent about their standards for shipping nibs. Boot Camp has classes.nib, info.nib, keyedobjects.nib, and objects.nib, but over in Address Book I saw keyedobjects.nib and designable.nib.</li><br /></ul><br />I've never noticed designable.nib before. It's XML text, and it looks like the new "xib" format introduced with IB 3. In fact, you can open designable.nib using IB 3 if you change the extension to xib and it'll work. <a href="x-man-page://1/locate">locate(1)</a> indicates a bunch of these scattered throughout the system. Does anybody know what these are for? There's one in my dev build of Adium, so I don't think it has something to do with using xib files, because we don't do those yet.Augie Facklerhttp://www.blogger.com/profile/10401940579917768706noreply@blogger.com1tag:blogger.com,1999:blog-20139289.post-76321897384907316822007-10-18T12:42:00.001-04:002007-10-18T13:00:00.874-04:00Some days, you just get that lucky.I was browsing <a href="http://code.google.com/hosting/">Google Code Hosting</a> randomly last night, looking at various OS X related tags, and I found a real gem of a tool that looks like the best thing since sliced bread.<br /><br />The tool is <a href="http://code.google.com/p/relocation-tool/">relocation-tool</a> or rtool. It's this nifty little shell script that lets you take foo.dylib and make it into foo.framework! I've not played with swapping out dylib dependencies with frameworks yet, but it looks like it can do that too.<br /><br />I just tested the tool on a copy of <a href="http://serf.googlecode.com">Serf</a> and it worked great. It also worked on libsvn_wc.<br /><br />Hopefully there will be a future post about how to get gstreamer and all dependencies rebuilt into frameworks.Augie Facklerhttp://www.blogger.com/profile/10401940579917768706noreply@blogger.com0tag:blogger.com,1999:blog-20139289.post-44028895267374426022007-07-04T23:26:00.000-04:002007-07-04T23:35:52.671-04:00Apple and AirportI've gotten fed up with the 10.4.10 problems on AirPort for my MacBook Pro. It's been unbelievably flaky.<br /><br />So I did what any self-respecting geek would do: I ran a backup, then started screwing around with system internals.<br /><br />I'm pleased to report that if you replace IO80211Family.kext in 10.4.10 with the version from 10.4.9 the problems go away. I'm now back up to my old speed.<br /><br />Lest you become dismayed, the driver *does* load. I'm absolutely sure. The key is some permissions have to be set right or the system will refuse to load the kext (try with kextload manually for a helpful error message).<br /><br />Note that I'm not willing to offer much (if any) help to people to allow them to do this. If you want to go mucking around in system internals, it's at your own risk and I'll have no part in helping you shoot your own foot. I have <i>no</i> idea how well Software Update will handle swapping kexts like this, so be wary on the whole.<br /><br />But my wireless works fast and without flakiness again. No speed stalls or random dropouts yet!Augie Facklerhttp://www.blogger.com/profile/10401940579917768706noreply@blogger.com0tag:blogger.com,1999:blog-20139289.post-19458676558284932672007-06-23T19:40:00.000-04:002007-06-23T20:18:27.972-04:00MenubarVia <a href="http://boredzo.org/">Peter</a>, <a href="http://boredzo.org/blog/archives/2007-06-23/whats-in-your-menubar">What's in your menubar?</a>:<br /><br /><img src="http://durin42.com/images/screenshots/menubar.png" /><br />Left to right:<br />1) Spotlight<br />2) Fast User Switching<br />3) Time<br />4) Battery Status<br />5) Volume<br />6) Wireless<br />7) Bluetooth<br />8) Network Throughput (<a href="http://www.ragingmenace.com/software/menumeters/">MenuMeters</a>)<br />9) CPU Usage Bars (<a href="http://www.ragingmenace.com/software/menumeters/">MenuMeters</a>)<br />10) RAM Use (<a href="http://www.ragingmenace.com/software/menumeters/">MenuMeters</a>)<br />11) <a href="http://growl.info">Growl</a><br />12) <a href="http://www.sccs.swarthmore.edu/users/08/mgorbach/MacFusionWeb/">MacFusion</a> (<a href="http://code.google.com/p/macfuse/">MacFUSE</a> GUI)<br />13) <a href="http://adiumx.com/">Adium</a>Augie Facklerhttp://www.blogger.com/profile/10401940579917768706noreply@blogger.com0tag:blogger.com,1999:blog-20139289.post-30996696323780146192007-01-10T15:33:00.000-05:002007-01-10T15:39:03.565-05:00Presentation on PerianLast night I gave a presentation to <a href="http://www.cawug.org/">CAWUG</a> about <a href="http://perian.org">Perian</a>. It's intended for developers, and it was received fairly well. I've posted the <a href="http://durin42.com/perianPres/">contents of the presentation</a> so other people can take a look at it.<br /><br />The other presentation was <a href="http://www.rentzsch.com/">Rentzsch</a> on NSXReturnThrowError (to be renamed soon), which is a horrifying set of macros that make error handling in mixed Cocoa/Carbon/C++/posix code easier.Augie Facklerhttp://www.blogger.com/profile/10401940579917768706noreply@blogger.com0tag:blogger.com,1999:blog-20139289.post-1155231207427462052006-08-10T13:28:00.000-04:002006-08-10T13:33:27.490-04:00Report an Apple bug .... Thursday?I don't usually uncover enough Apple bugs to actually remember to do RAABF, so you get RAABT.<br /><br />Filed as <a href="rdar://problem/4675523">4675523</a><br /><br /><br />Summary:<br />Extremely long file names can cause copy operations to FAT32 filesystems to fail silently without any warning if multibyte characters are present in the file name.<br /><br /><br />Steps:<br />1) Produce a long (250+ character) file name with multibyte characters, such as:<br />"05 V. 1 Im Tempo Des Scherzo. Wild herausfahrend - 2 Langsam - 3 Langsam - 4 (Trombone) - 5 Im Anfang sehr zurückgehalten - 6 Wiedersehr breit - 7 Ritenuto - 8 Wieder zurückhaltend - 9 Sehr langsam und gedehnt (_der grosse Appell_) - 10 Langsam. Mis.m4a"<br />2) Place the file in a folder<br />3) copy the folder to a FAT32 volume<br />4) try and open the file from the FAT32 volume<br /><br />Expected results:<br />The file opens and is usable.<br /><br />Actual results:<br />The file probably vanishes upon the first click, preventing a double click. If you manage to double-click, the file will "not be found."<br /><br />Regression:<br />None known.<br /><br />Workarounds:<br />Don't use long file names with multibyte characters. Note that this has a potential data loss impact for users, particularly when copying music libraries, as multibyte characters and the classical genre seem to be joined at the hip on my machine.Augie Facklerhttp://www.blogger.com/profile/10401940579917768706noreply@blogger.com0tag:blogger.com,1999:blog-20139289.post-1152761071711063652006-07-12T23:13:00.000-04:002006-07-17T00:05:05.693-04:00PerianFor the past couple of weeks or so my "other" spare time project has been <a href="http://trac.cod3r.com/perian">Perian</a> which eventually will be a sort of swiss-army knife for QuickTime to read various formats, and maybe even eventually export to a few of them. My target is to support as many things as possible from <a href="http://ffmpeg.mplayerhq.hu/">ffmpeg</a> and its associated libraries.<br /><br />Today, I'm pleased to say we're releasing version 0.1, numbered so low because it barely does anything special yet. For the moment, it handles AVI files fairly reliably. I've found only one file it can't handle correctly, and I'm still trying to figure out what's special about it. It handles both DivX and XviD encoded AVIs without trouble. I'm now using only Flip4Mac and Perian for my playback needs in QuickTime, and I've not needed to touch VLC for any AVI (save the one oddly-encoded one).<br /><br />In the future, it should also handle <a href="http://en.wikipedia.org/wiki/OGM">ogm</a> and <a href="http://en.wikipedia.org/wiki/Matroska">mkv</a> files cleanly, as well as additional associated codecs.<br /><br />Get the release <a href="http://durin42.com/Perian_0.1.dmg">from here</a> and be sure to let me know about any bugs you encounter.Augie Facklerhttp://www.blogger.com/profile/10401940579917768706noreply@blogger.com0tag:blogger.com,1999:blog-20139289.post-1152687463882560812006-07-12T02:53:00.000-04:002006-07-12T02:57:43.896-04:00Esoteric Rez ErrorsI seem to be managing to break things on a more regular basis. Tonight, it was <a href="x-man-page://1/Rez">Rez</a>.<br /><br />I got the error <code>/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11: ### /Developer/Tools/Rez - SysError 2 during open of "sys/types.h".</code><br /><br />Sure sounds ominous to me. SysError 2? That looks up to be an address error, if it's an old-style error number. Horrors!<br /><br />A good deal of testing later (wherein I <i>should</i> have tried Rezzing something else, but for whatever idiotic reason didn't) I have determined this error is (mostly) harmless. It means that somewhere, someplace, you included a header file Rez deemed unworthy. Note that it won't necessarily even include anything else in that header. Isn't it magic?<br /><br />Moral: check your headers and keep them simple when you're using Rez.Augie Facklerhttp://www.blogger.com/profile/10401940579917768706noreply@blogger.com0tag:blogger.com,1999:blog-20139289.post-1152420951339780522006-07-09T00:45:00.000-04:002006-07-09T00:55:51.350-04:00bfobserver Sucking RAMBy now most of the people involved with Mac development know about the bfobserver "<a href="http://groups.google.de/group/comp.sys.mac.system/browse_thread/thread/dfc0557a3bdf862c/e8368455c0510120?hl=de">python</a> <a href="http://elliotth.blogspot.com/2006/06/attack-of-mac-python-zombies.html">zombie</a> <a href="http://lists.apple.com/archives/xcode-users/2006/May/msg00839.html">bug</a>." One thing most of those posts don't seem to mention is that bfobserver can eat prodigious amounts of RAM without actually going zombie. "Whaa?" I hear you say? Yes. I just was using my iBook and noticed it had a rather <i>extensive</i> 2 GiB set of swapfiles, which is well over the norm for me (varies depending on what I do, usually 512 MiB GiB if Xcode isn't open and Safari is sucking RAM down at its usual rate). Closing Xcode and Safari usually cures almost all RAM-hog issues for me, but here it dropped things down to 1.5 GiB, which still seemed gihuge for running, well, Finder and Dock.<br /><br />I looked around a bit with a few tools, then thought to go to Activity Monitor and see what had large VM sizes. Ran the launchd command to kill bfobserver (<code>sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.dnbobserver.plist</code>) and then immediately my VM dropped back down to 512 MiB just like that.<br /><br />Why Apple is putting this tool on by default is beyond me, it just seems to be causing more harm than good.Augie Facklerhttp://www.blogger.com/profile/10401940579917768706noreply@blogger.com2tag:blogger.com,1999:blog-20139289.post-1150685268920350102006-06-18T22:46:00.000-04:002006-06-18T22:50:21.100-04:00Debugging Java used in Cocoa apps with the Objective-C Bridge:<br /><br />In relation to some work I was doing with Adium, I became frustrated at the lack of any way to deal with debugging java classes that are used via the Cocoa-Java bridge. In a moment of desperation, I sought out various means of debugging or profiling, and I accidentally found a valid solution:<br />add <br /><pre>-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n</pre><br />to the JVM arguments as specified in your application's Info.plist.<br />The way to do this is as follows:<br /><pre><key>VMOptions</key><br /><string>-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n</string></pre><br /><br />You can then connect to the application using the java debugger of your choice, the line to do this with jdb is <pre>jdb -attach 8000</pre><br /><br />I've heard that I should try using something like Eclipse, so if you aren't up on debugging in the Java world I guess it's worth giving that a look. I've also heard good things about IntelliJ, but that costs a reasonable chunk of money.Augie Facklerhttp://www.blogger.com/profile/10401940579917768706noreply@blogger.com0tag:blogger.com,1999:blog-20139289.post-1150083915525866202006-06-11T22:10:00.000-04:002006-06-11T23:45:18.380-04:00I've not seen these listed related to Mac stuff elsewhere, so I'm posting here in hopes that next time I have this problem and I have forgotten how to fix it I'll be able to Google it and find this...<br /><br />I was building ffmpeg from source into static libs, then working on building those into something else. Somewhere along the line I got the error<br /><br />/usr/bin/ld: staticLibs/libavcodec.a(mem.o) has local relocation entries in non-writable section (__TEXT,__symbol_stub1)<br /><br />the fix is to add "-read_only_relocs suppress" to OTHER_LDFLAGS, and then you should be sitting pretty. I'm betting this isn't a good setting to need on, but at least it makes the build happen.Augie Facklerhttp://www.blogger.com/profile/10401940579917768706noreply@blogger.com0tag:blogger.com,1999:blog-20139289.post-1144566444148179082006-04-21T15:06:00.000-04:002006-04-24T21:37:40.176-04:00Report an Apple Bug Friday #1:<br /><br /><b>Preview's Scale to Page feature doesn't</b><br /><br />Summary: When asking preview to scale a full-page image (right to the page border) down to actual printable area, Preview naively shrinks to the chosen paper size, not the printable image size. The result of this is that the image gets cut off when printed.<br /><br />Steps to reproduce:<br />1. Pick an image that goes right to the border of your display (such as <a href="http://domainofthebored.blogspot.com/">Peter's</a> <a href="http://geocities.com/iamtheboredzo/vi_tutorial/vi_tutorial-QWERTY-Color.pdf">vi tutorial sheet</a> )<br />2. Print, ensuring that the "Scale to Fit" box is checked.<br /><br />Expected results:<br />You get a sheet of paper out of the printer which includes the whole image<br /><br />Actual results:<br />The printer margin is blank, since the printer can't print there, but there are parts of the image which should have been printed there.<br /><br />Regression:<br />None known.<br /><br />Notes:<br />GraphicConverter gets the scaling correct every time.Augie Facklerhttp://www.blogger.com/profile/10401940579917768706noreply@blogger.com0