rss2email.ru | На что подписаться? | Управление подпиской |
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 другие подписчики этой ленты также читают >> |
- There's something in the air…
Today, Apple updated their home page with the graphic above showing what appears to be Apple’s man slogan for Macworld 2008.
Many readers are predicting that “air” is the name of a new line of MacBooks from Apple that will be released tomorrow. Other’s are guessing it has something to do with wireless networking or WiFi. I’m guessing no one really has a clue.
Tomorrow at 9am PST, Steve Jobs will deliver his infamous keynote speech and is sure to release and announce things that will make your head explode.
Tune in tomorrow for commentary and updates on new announcements related to all things Macworld.
Комментарии к сообщению:
http://theappleblog.com/2008/01/14/theres-something-in-the-air/#comments - Creator of Lost & Alias is a Certified Apple Fanboy
I was getting my weekly dose of TED Talks when I saw J.J. Abrams as a speaker. If you haven't ever heard of TED Talks, Abrams' is a great one to start with. His antics are hilarious and it results in a strong presence on-stage.
In his talk, he discusses the element of mystery behind his shows as well as the impact of the digital age on filmmaking. The real takeaway from his talk is (mind you, I'm paraphrasing) "He loves him some Apple." My favorite quote from him: "This Powerbook challenges me. What are you going to write worthy of me?"
This complete, self-proclaimed Apple fan watches Stevenotes and uses his Powerbook on stage. For the record, he was just as surprised as the rest of us to see Lost behind Steve Jobs when they announced TV Shows on iTunes.
Apple 'Heart' image from Insanely Great Tees.
Комментарии к сообщению:
http://theappleblog.com/2008/01/14/creator-of-lost-alias-is-a-certified-apple-fanboy/#comments - Community Activity: January 14, 2008
- MacWorld 2008 Predictions
- Rotatable Displays
- MacHeist Bundle - are YOU taking the plunge?
- Memory chip in 17″ Powerbook G4
- Parallels
Комментарии к сообщению:
http://theappleblog.com/2008/01/14/community-activity-january-14-2008/#comments - Hidden Gems In Leopard: OpenSnoop
I have a confession to make: I have not always been a Mac person. For the period of time between the retirement of System 9 and Panther (yes, it took Apple showing a real commitment to Unix for me to give them a shot again), I abandoned our fine operating system for greener pastures, well, green screen at least. Work drove me into Windows (as it has for about 90% of the workers out there) but my real outlet was anything Linux, BSD or Solaris-related. There was nary a distro that did not cross my hard drive (virtual or otherwise) and I was very happy programming, scripting and living life on the command line, with an occasional, lingering trip into X11 when necessary.
OS X changed all that, since Apple managed to make Unix look very good while keeping all of the real power that lies beneath the GUI.Now, one may be able to argue the aesthetics of Leopard (hey, Panic should be happy, it took Leopard to finally drive me into purchasing CandyBar), but none can dispute the gems that await those who dare to invoke the Terminal, and I’ll be taking the opportunity over some of the coming posts to dwell on the nuggets that bear a deeper look. For those that are not as comfortable with the more textual side of their systems, I’ll be making these trips as painless as possible (you may not need to delve into the Utilities folder to find the Terminal icon at all).
The first stop is a little utility called
opensnoop
. Leopard ships with something called DTrace that gives developers and administrators the ability to take a peek at what all running code is doing in a flexible and dynamic way. Giving DTrace the coverage it deserves is beyond a simple blog post, but there are some smaller utilities - likeopensnoop
- that take advantage of the power of DTrace, but on a more targeted scale which are worthy of a minor exposition.The main purpose of theopensnoop
utility is to provide a report of file opens as they occur. Curious as to what really happens when Safari opens a web page? Want to see what files are accessed from that latest program you downloaded? You can find the answers withopensnoop
.If you can get to a terminal prompt, the simplest way to see what this utility does is to just type:
sudo opensnoop
Non-Terminal folks can just run the
OpenSnoop.app
application from the OpenSnoop App Archive (354KB ZIP file). (Either way, you’ll be asked to enter your password sinceopensnoop
requires higher-level privileges to run.)Output will look something like the following, though your listing contents should be very different:
UID PID COMM FD PATH 501 286 SystemUIServer 17 /System/Library/CoreServices/Menu Extras/Spaces.menu/Contents/Resources/SpacesBackground.pdf 501 218 Finder 11 /.vol/234881026/571978 501 286 SystemUIServer 17 /System/Library/CoreServices/Menu Extras/Spaces.menu/Contents/Resources/SpacesBackground.pdf 501 286 SystemUIServer 17 /System/Library/CoreServices/Menu Extras/Spaces.menu/Contents/Resources/SpacesBackground.pdf 0 110 WindowServer 4 /var/log/windowserver.log 0 110 WindowServer 4 /var/log/windowserver.log 501 286 SystemUIServer 17 /System/Library/CoreServices/Menu Extras/Spaces.menu/Contents/Resources/SpacesBackground.pdf
For each line:
UID
is the numerical ID of the owner of program that has the file opened.PID
is the process ID of the program that has the file openCOMM
is the actual name of the process (this is something we care about)FD
is the numerical file descriptor (ID) of the file being accessedPATH
is the full OS X path to the file being accessed (this is also something we care about)
The sample output is what occurred when I switched to/from Spaces 1 & 3. Just that simple case shows how interesting
opensnoop
can be since we see that theSystemUIServer
andWindowServer
were both invoked when I worked just a little bit with Spaces and thatSpacesBackground.pdf
was loaded from one of the Spaces app bundles.While this is useful in-and-of itself, we can use
opensnoop
for more targeted and detailed inspection. The following command:sudo opensnoop -avgn Safari
(Non-Terminal users can run the
SnoopSafari.app
from the archive)Produces the following output when I tell it to go to
google.com
:TIME STRTIME UID PID FD ERR PATH ARGS 8071248908 2008 Jan 10 21:33:13 501 1153 17 0 /Users/bob/Library/Caches/com.apple.Safari/Cache.db-journal Safari\0 8071249029 2008 Jan 10 21:33:13 501 1153 18 0 /Users/bob/Library/Caches/com.apple.Safari Safari\0 8071249636 2008 Jan 10 21:33:13 501 1153 24 0 /var/tmp/etilqs_rjFUOz2TEh7AaoG Safari\0 8075981916 2008 Jan 10 21:33:18 501 1153 18 0 /Users/bob/Library/Caches/Metadata/Safari/History/.tracked filenames.plist Safari\0 8075982865 2008 Jan 10 21:33:18 501 1153 18 0 /Users/bob/Library/Caches/Metadata/Safari/History/http:%2F%2Fgoogle.com%2F.webhistory Safari\0 8075983663 2008 Jan 10 21:33:18 501 1153 18 0 /Users/bob/Library/Caches/Metadata/Safari/History/http:%2F%2Fwww.google.com%2F.webhistory Safari\0 8075984521 2008 Jan 10 21:33:18 501 1153 18 0 /Users/bob/Library/Caches/Metadata/Safari/History/.tracked filenames.plist Safari\0 8075980917 2008 Jan 10 21:33:18 501 1153 18 0 /.vol/234881026/713654 Safari\0 8077969298 2008 Jan 10 21:33:19 501 1153 18 0 /Users/bob/Library/Safari/.dat0481.441 Safari\0 8077966383 2008 Jan 10 21:33:19 501 1153 18 0 /Users/bob/Library/Safari/.dat0481.440 Safari\0 8080982146 2008 Jan 10 21:33:23 501 1153 18 0 /Users/bob/Library/Safari/lock/.dat0481.442 Safari\0 8080983115 2008 Jan 10 21:33:23 501 1153 18 0 /Users/bob/Library/Safari/lock/details.plist Safari\0 8081191826 2008 Jan 10 21:33:23 501 1153 18 0 /Users/bob/Library/Safari/lock/details.plist Safari\0 8081192743 2008 Jan 10 21:33:23 501 1153 18 0 /Users/bob/Library/Safari/lock Safari\0 8081193635 2008 Jan 10 21:33:23 501 1153 18 0 /Users/bob/Library/Safari/.de0481.443 Safari\0
The extra fields are the Unix-coded time, the translated timestamp, the error code (if any) and the file being accessed. This is a more verbose listing, but we will not see any file data from application other than Safari. You can substitute “Adium” or “Finder”, etc for “Safari” on the command line and I’ve included
SnoopAdium.app
,SnoopFinder.app
andSnoopFirefox.app
within the archive.Hopefully, you are beginning to see the power of this small utility.While there are many options for you to explore within
opensnoop
, one of the more interesting ones is the “-x
” flag, which only displays the failed opens (I’ve includedSnoopFailed.app
in the archive as well). It’s always good to peek at what applications are looking for but cannot find, especially if you are having trouble with your system or a particular application.I’m working on a more generic GUI front-end toopensnoop
and will let you know when I have something worth sharing.These apps were all built with the extremely useful Platypus tool (which is in my developer folder once again post-Leopard install). If there’s a particular “snoop” app you’d like me to whip up, drop a note in the comments and I’ll do my best to crank’em out (I’ll post the other apps either on my .Mac iDisk or my personal site).
Комментарии к сообщению:
http://theappleblog.com/2008/01/14/hidden-gems-in-leopard-opensnoop/#comments - Safari losing your cookies?
Since upgrading to Leopard (and thus upgrading to the newest version of Safari), I’ve had the unfortunate problem of Safari throwing all my cookies right out the window.
Every 4-6 weeks I’d fire up Safari only to realize that all logins to various sites were lost, making me either go through each site’s password-retrieval system or try to dig through Wallet to try and find it.
The bug doesn’t seem to have a real “fix” but there is something you can do to solve the problem easily each time it happens (assuming you use Time Machine).
- If you’re currently running Safari, be sure to quit before proceeding.
- In Finder, navigate to
~/Library/Cookies
. There will most likely only be one file in the folder, which is namedCookies.plist
. - With that Finder window open, launch Time Machine and go “back in time” to the last time you used Safari and had functioning cookies. Select the
Cookies.plist
file and Restore it. - Once the file has been restored, relaunch Safari and your previous, working set of cookies should now be functional.
Each time this happens, be sure to submit the bug to Apple by going to the Safari menu and clicking on “Report Bugs to Apple…”. They read them and the more people send in about bugs, the sooner those bugs will get fixed.
Комментарии к сообщению:
http://theappleblog.com/2008/01/13/safari-losing-your-cookies/#comments
rss2email.ru | отписаться: http://www.rss2email.ru/unsubscribe.asp?c=6893&u=24004&r=311667163 управлять всей подпиской: http://www.rss2email.ru/manage.asp |