Saturday, January 5, 2008

The Apple Blog (2 сообщения)

 rss2email.ruНа что подписаться?   |   Управление подпиской 

  RSS  The Apple Blog
The Apple Blog, published by and for the day-to-day Apple user, is a prominent source for news, reviews, walkthroughs, and real life application of all Apple products.
http://theappleblog.com
другие подписчики этой ленты также читают >>


  • Time Machine Scheduler

    It’s fairly well accepted by most commenters at this point that Time Machine may be one of the biggest features to be part of Leopard. Even those users who managed their own backup solutions - and many still do, including myself - applaud it for making backups both easy and intuitive for the average end user. (I credit it for having dramatically reduced panicked phone calls from friends and family about missing files, and that alone made the effort of updating oh-so worth it.)

    However, many of us would also like ways to change the frequency of its backups. By default, Time machine runs once an hour, saving a daily backup at the end of the day and a weekly backup at the end of the week. This behavior continues until the drive it was pointed to is full, at which point it begins to delete the oldest backups. Almost immediately, people wanted a way to change the frequency - even if, like me, half the reason was the annoyance of those bright-blue, flashy LED’s on the external hard drive as it spins up every hour in the middle of the night.

    An earlier hint at Mac OSX Hints had users editing a .plist file to change the frequency of backups. This hack consisted of editing com.apple.backupd-auto.plist, specifically the following lines:

    <key>StartInterval</key>
    <integer>3600</integer>

    A change to that integer value - which is in seconds, by the way - and Time Machine would theoretically back up on your schedule, not Apple’s. However, that seems to cause more problems than it solved, in my experience. Specifically, now Time Machine backs up whenever it likes. (It seems to be about once a day, give or take an hour or so, not once every three hours, as I set it to be.) Upon inspection, it appears that the file’s permissions are broken. Repairing permissions in Disk Utility hangs, and attempting to manually do so, even on a duplicate, causes Finder to crash.
    …Let’s just say that method is Not Recommended, then.

    Alternatively, there is now this - Time Machine Scheduler.  Time Machine Scheduler does not meddle with the .plist files - it simply runs its own daemon to create a backup.  It can be set for any length of time between 1 and 12 hours, as well as optionally running a backup upon loading.  You have the option of either installing Scheduler and its daemon, in which case you do not need to open TMS, or simply running it from the .app when you want to make a backup. It is also fully compatible with existing Time Machine backups - the preference pane will show that Time Machine is off, but it reads the TMS-created backup and date of last backup without trouble.

    There is also the option to mount and unmount the Time Machine backup drive automatically, although I have not tested this.  (I have a partitioned drive, and the other partitions are in frequent use, so I don’t bother.)

    tms.png

    This method works very well for me, at a reliable three hours.  It takes the same amount of time to run backups, as well as to load and unload the normal Time Machine interface, and, thank heavens, it actually does it every three hours.  Why Apple didn’t include the option to change the backup frequency all along boggles me.

    I will note that a third way to do this is to use Lingon to edit the plist files.  I have not tried it, but I thought I would mention it, for  those who might be interested.  How about you?  Have you tried Lingon?  Time Machine Scheduler?  Did the original .plisthack work for you?

    (Time Machine Scheduler and Lingon are both free utilities, available at the links above.)


    Комментарии к сообщению:
    http://theappleblog.com/2008/01/04/time-machine-scheduler/#comments



  • iWork hates Subversion

    Or does Subversion hate iWork? I was just hit with the iWork/SVN bug that seems to be infamous among those using the two products concurrently. The problem, essentially, is the way that iWork—Pages, Numbers, and Keynote—and Subversion store their files.

    It’s well-known that, for some time, Apple has chosen to package certain files as bundles; they appear in the Finder as single files, but from the Terminal and the file system proper, they are directories. Subversion (SVN, the popular version control system), like CVS (Concurrent Versioning System—another, earlier versioning system), stores its state files containing information about the current revision, the main repository, and so forth, within special directories inside each directory under Subversion control.

    I have been using SVN to manage revisions of my writing—a prudent thing, you might agree, as it is both easier and more robust than the “track changes” feature of Pages (or Microsoft Word, for that matter). However, the problem lies in those .svn subdirectories that are part of every directory under Subversion control.

    When Pages (or Numbers or Keynote) saves a file, it appears to do so by completely overwriting what is already present: the .svn directory is erased in the process. Attempting to commit those changes to the central repository for safekeeping illustrates the problem:

    SVN failure

    Files (directories? bundles?) are therefore left high and dry, and the entire point of revision control becomes moot. Since iWork does not support built-in revision control (unlike Microsoft Office), utilities such as CVS or SVN would be the next best option—if they weren’t cut down by the file bundle notion.

    Ideally, Apple would decide whether file bundles—files such as applications, plugins, and iWork files—were actually files or directories and treat them as one or the other in all cases. It seems that file bundles are here to stay in their present state, at least for the foreseeable future, however.

    While there are several workarounds [1][2], perhaps the most logical solution is to migrate from Subversion to a different revision control system that does not suffer this problem, such as Mercurial, Git, or GNU arch. None of these three keeps local state information within subdirectories of the working copy.

    It is unknown whether other bundle-type files are susceptible to SVN and CVS impotence.


    Комментарии к сообщению:
    http://theappleblog.com/2008/01/04/iwork-hates-subversion/#comments






rss2email.ru       отписаться: http://www.rss2email.ru/unsubscribe.asp?c=6893&u=24004&r=311667163
управлять всей подпиской: http://www.rss2email.ru/manage.asp