2014/01/07
Strangely, I see frequents drops of my entire WiFi connection (to an AirPort base station that's been solid before now) including to local (non-VPN'd) nodes as soon as I initiate the VPN connection (which also has been very solid before now).
Any clues?
2012/11/02
FileVault2 (FDE) trvia
I configured my Mac to require me to enter the boot volume's FileVault2 passphrase before login; no automatic retrieval using an account's (less secure) login password.
This worked great, then at some point later, I added a second "Standard" account (for my Grandmother's iPad :) and the next time I booted (it's not that often; thanks for making a really stable OS, Apple) I noticed that this account was able to log in directly.
Hmm; somehow when the account was created, it glommed on to the FileVault2 passphrase - not nice.
System Preferences gave me no way to turn this off; interesting-er. Neither "Users & Groups" nor "Security" was any help; "Security" didn't even have this account listed via the "Enable Users..." button (toward the bottom).
To the Intertubes!
Here's an interesting article from IACR (International Association for Cryptologic Research) with lots of background: Infiltrate the Vault: Security Analysis and Decryption of Lion Full Disk Encryption. It didn't help solve this problem, though it was a useful read; thanks, IACR.
And the jackpot, at Krypted.com: Encrypting Volumes in OS X Mountain Lion is how I found out about the "fdesetup" command. (That's "fde" as in "full disk encryption".)
(BTW: After disabling this new account (with "fdesetup remove"), I opened the "Security" preference pane and it is now listed (as disabled) where it previously wasn't shown at all.)
[2015/03/20 update: If the output of "fdesetup list" is empty, no users have the capability, and it's required (as desired) to enter the disk password before login.]
2012/05/23
DuckDuckGo Action for QuickSilver
using terms from application "Quicksilver" on process text ThisClipping tell application "Finder" to open location "http://duckduckgo.com/?q=" & ThisClipping end process text end using terms from
Save the above as something like DDG.scpt, into "~/Library/Application Support/Quicksilver/Actions"; to make it your default, drag it above other Actions - such as "Search with Google".
Now:
- Fire up QuickSilver as you normally would (ex: command-space).
- Type a dot (if required) for free-form text entry.
- Enter your query & press Return; done.
2011/10/04
Quick Look should display Spotlight comments as "alt text"
When hovering over a "Quick Look" display, Spotlight comments should be displayed just like "alt text" in a browser window.
2011/08/30
Lion: Hardware Growler crashes
And if you're using it faceless, you may not even notice for awhile - say, til you realize you're waiting for a Growl that'll never come.
Fortunately, this is easy to slap a bandage over, with a simple bash script (all on one line):
while true; do if [ $(ps jaxwwww|grep [H]ardwareGrowler|wc -l) = 0 ] ; then open /Applications/Growl-1.2.2/Extras/HardwareGrowler/HardwareGrowler.app; echo "$(date): launched one"; fi; sleep 1; done
(I know; a hard-coded path - you'll have to fix it if your path differs - if you know a better way, feel free post in the comments.)
I tried using a longer sleep, though the resource utilization was indistinguishable, so I left it at "1", which means it recovers almost instantly.
This can be "automated" even further: Into a text document, paste this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>WindowSettings</key>
<array>
<dict>
<key>ExecutionString</key>
<string>while true; do if [ $(ps jaxwwww|grep [H]ardwareGrowler|wc -l) = 0 ] ; then open /Applications/Growl-1.2.2/Extras/HardwareGrowler/HardwareGrowler.app; echo "$(date): launched one"; fi; sleep 1; done</string>
<key>Columns</key>
<string>44</string>
<key>Rows</key>
<string>15</string>
<key>WinLocULY</key>
<string>678</string>
<key>WinLocX</key>
<string>611</string>
<key>WinLocY</key>
<string>0</string>
</dict>
</array>
</dict>
</plist>
Save it as "something.term".
Double-click / launch the document and it opens Terminal.app for you. Add it to your Login Items, in the Users & Groups (nee Account) preference pane, and it's automatic.
(I believe the "WinLoc
2011/08/15
Lion: Use spacebar to scroll or page
Here are a few workarounds I've discovered:
1) Click in the area you want to scroll (ex: within a web page) and then press space.
2) Press the down or up arrows and then press space.
3) This is weird: Press a shift key and then press space!
2011/02/12
coreaudiod using too much cpu
There was plenty of idle, though it was enough of an irritant - especially since it had the highest cumulative CPU time of all processes - that I wanted to look into it.
(BTW: Nice concise man page for coreaudiod. :)
Interestingly, CPU usage dropped down under 2% as soon as I plugged in headphones, and jumped back up to 10% when I unplugged the headphones - very consistently, each time.
I profiled coreaudiod with Instruments (part of the Apple Developer Tools).
It was spending a lot of time in DspFuncHelper::process_IIR_xmm_LR(). The interesting symbols in the symbol stack under that: DspFuncEQ, IOAudioEngineUserClient, IOA_HWDevice, IOA_SingleDevice, IOA_Device, CAPThread.
I tried turning the iTunes EQ off. And then toggled it a few more times. No change. I tried quitting iTunes. Nothing I tried made a difference. I don't have any other audio apps (*) so I dropped it there.
There's some chatter online about it, though none seemed useful. (Mostly the standard voodoo of "Have you tried turning it off and on again?" (ref: The IT Crowd)
However there was one suggestion by a user named "bompi" in the Apple Discussions, to use launchctl to stop the process gracefully:
sudo launchctl stop com.apple.audio.coreaudiod
It automatically restarts - and even if you're listening to something at the time, there's only a very brief interruption.
I'd still like to figure out what happened, why, and how to prevent it, however this at least is a temporary fix.
*Correction: Obviously there are other apps that use audio, though no significant ones came to mind at the time. However, I do use Skype and that can obviously use audio - and I'd been conferencing about 12 hours earlier -- with some audio trouble (on my end only; the other side reported that it was fine). FWIW, it was Skype v5.0.0.7980 and I see that v5.0.0.7994 is available so I'll try that and see if that makes any difference...
2010/11/12
Apple to drop Xserve
This has been written about by some good folks:
- A Eulogy for the Xserve: May It Rack in Peace (By Chuck Goolsbee, via TidBITS.)
- On the Xserve thing... (By John Welch (Bynkii), with a link to his full MacWorld article.)
Apple's target market is the end user. Overwhelmingly.
As such, the server market has always been a straddle of the world of the end user and that of the IT department - though clearly there are still some markets where an Apple server is a great fit, such as organizations where there is no IT department.
However, the target for the Xserve in particular has moved - in large part, to the cloud (such as AWS (Amazon Web Services).
And the cloud is built, in large part, with commodity hardware - not Apple's business at all. The cloud is much less about serious high-quality equipment, as it is about lots of cheap stuff that is configured so that failure is fully expected; just toss it (while something else automatically takes over its load) and slot in another.
That's the hardware side, which is all Apple plans to drop (in January).
On to software:
Apple explicitly will continue to develop Mac OS X Server and will continue to develop some server configs based on its other CPUs; a Mac mini with Mac OS X Server is a very nice server - and fits Apple's target market much better. It's no Xserve - and many of us have no need for all the Xserve does -- nor any need to pay for it.
Though this transition will cause some pain for those of us who find great utility in the Xserve, this is a great move for Apple and aligns its resources where they fit best.
Oh - and by the way, here's a left-field idea:
Apple is in a far stronger position now, than when it first started selling Mac OS X Server. At which time, tightly tying it to Apple's hardware made great sense. And Apple's very firm policy (full price) on licensing even virtualized instances of Mac OS X Server, while rather painful, made a certain amount of sense too.
Now? The landscape is significantly different. The business case can be much more solidly made, that Apple could license Mac OS X Server on commodity hardware - including in the cloud.
A stretch, yes. But within reach.
2010/09/06
Strong passwords
Good idea - to help people choose stronger passwords - however:
- I certainly wouldn't want to tell anyone my password, especially over the Internet; I'll keep it between me and whatever service I need a password for. (Yes, as it notes at the bottom of the page "The password you enter is checked and validated on your computer. It is not sent over the Internet." however I'd have to read the code to confirm that - and that it hasn't been changed since the last time I read the code. An unlikely requirement for the intended audience.)
- I certainly wouldn't want to tell Microsoft in particular; regardless whether you trust them or not, they're a big target, so why take the chance of being "collateral damage"?
- The page has little intelligence behind it; here are some example strength ratings:
- Medium: qwertyuiopas (12 characters - straight across the keyboard)
- Strong: abcdefghijklmn (the first 14 letters of the alphabet)
- Strong: 12345678912345678912 (20 digits, in order)
- BEST: 28 of any letter.
- Medium: qwertyuiopas (12 characters - straight across the keyboard)
2010/06/28
Recipes for tm-diff (Time Machine difference)
- Ignore errors/warnings (ex: "Permission denied"):
tm-diff.sh folder1 folder2 2> /dev/null
- Find all files, regardless of their privileges/permissions:
sudo tm-diff.sh folder1 folder2
- Display disk usage, in "human-readable" sizes (ex: KB, MB, GB...):
tm-diff.sh folder1 folder2 | while read f; do du -h "$f"; done
- Display disk usage, with a grand total at the end (sizes in KB):
tm-diff.sh folder1 folder2 | while read f; do du -k "$f"; done | awk '{ sum += $1; print; } END { print sum; }' - Display the largest 50 files (sizes in MB):
tm-diff.sh folder1 folder2 | while read f; do du -m "$f"; done | sort -n | head -50
- Display the smallest 100 files (sizes in KB):
tm-diff.sh folder1 folder2 | while read f; do du -k "$f"; done | sort -rn | head -100
- Display a full listing (with mode/privileges, owner, group...):
tm-diff.sh folder1 folder2 | while read f; do ls -l -h "$f"; done
Notes:
- This presumes you've set your PATH so it'll find the tm-diff.sh script. (Or use its full path.)
- In the commands above, "folder1" and "folder2" of course represent the paths to the two Time Machine backup folders to compare; they'll look something like:
/VOLUMENAME/Backups.backupdb/USERNAME/2009-07-20-091153
- The script explicitly searches for regular files only; no directories or other special files.
- I use a read loop, since this will get the full path, including "special" characters like spaces and double-quotes.
- Sizes are in the classic style ("as God intended"): KB = 1024 bytes; MB = 1024 KB; GB = 1024 MB ...
- Most Time Machine backups contain tens of thousands of files, so these will take awhile. The ones that sort will display no files, until all of them have been found, to be sorted - so they will seem to take even longer.