Mac OS X random things I found under several carpets./Be brave, call it what it is. DIARY.
I collected information about funny or confusing Mac OS X details, features, bugs and so on in a diary-like form in Stickies.app. Now it’s time to make this public.
2008-05-27
Spotlight: folder1/folderx/filename.txt and folder2/folderx/filename.txt appear to be in folder1 and folder2, not in folder1/folderx and folder2/folderx. Left hand: useful, right hand: confusing.
Proper English: You’ll sure have noticed that if you have two files with the same name and search for them with Spotlight, the name of the folder (directory…) they are in is displayed in gray letters after the file name. (Something like file1.txt – Stuff and file1.txt – Documents (Screenshot (!))). Now I think I’ll describe what I found out by giving you a step by step walkthrough how to reproduce it.
1. Take a folder of yours (I always take ~/Stuff for those sort of things).
2. (optional) create a sub-folder and give it a fancy name. Open it. (You don’t need to do this, but I like sub-folders. (Ask Nico, he’s always getting crazy about that (Hmm. I’m developing a lisp-like syntax for my writings.))). (<–this looks weird)
3. (*NOT* optional) create two folders in your sub-folder (or wherever you want ;-)). Call them … say “folder1″ and “folder2″.
4. Create a folder named “folderx” in each of the two folders you still know from step 3. It is important that the sub-folder is named the same in both folder1 and folder2. (You know what I mean?)
5. Create a file “file423.txt” (add some fancy numbers after the name to make sure it doesn’t appear somewhere else on your hard disk) in both “folderx”-es. This file’s name also gotta be the same in both folders. And it’s got to be *in* folderx.
6. Search for “file423.txt” (or however you called it) in Spotlight.
You will now see two entries: “file423.txt – folder1″ and “file423.txt – folder2″. ‘Huh’, might you think, ‘I put them in folderx, not folder1 and folder2… has some minister who sits in a wheelchair moved them around?’ (Especially when you – like I – find out this one when sitting in the train without internet connection). No, Spotlight is some sort of smart. It sees that even if it would write the folders after the files, it wouldn’t help because it still would be the same. So it goes up in the directory hierarchy till it finds out where the pathnames differ from each other, and prints that folder. The good thing: there *must* be a difference, otherwise the files would be in the same place (and have you ever seen two files named the same in the same place?). The bad thing is when you have… say /usr/local/gtk/include/gtk.h and /opt/local/gtk/include/gtk.h, it tells you that the one file is in /usr and the other one in /opt… that’s *really* confusing. A little snippet of the path would be betther in that case, I think. Somehting like “gtk.h – /usr/…/include/” and “gtk.h – /opt/…/include/”.
After installing z-OSX-Updates (10.4.z, 10.5.z) reinstall GNU coreutils if you like them. Because: OSX replaces them by its own coreutils. Nice, huh? Well, but PowerPC apps didn’t work for me (since about 05-15) … which was bad. With 10.5.3, they do work again *phew*.
My kernel was last changed on 05-23… hmmm… nice date …. Verschwoerungstheorie… huh… there was *no* software update around that date… or was there? HEEELP!!!
There are files appearing in my ~/Library/Application\ Support/pearLyrics/lyrics/ directory… which I have never listened to… help. I think they were created around 05-23 too
… actually 05-15.
2008-06-01
I still have got the problem with bezels in applications such as Mail or Colloquy, in which the number is displayed on the lower border of the bezel instead of centered (Sorry, I can’t find a screenshot of it.). That’s since … about 02-02 or so, and 10.5.3 hasn’t fixed it. It’s ultra-weird. Checking the source code in Colloquy, I could fix it with telling Colloquy to draw it to the upper border, now it’s centered again, but looks sluggish. The bug seems to be in [NSBezierPath AppendPathWithArcAndCenterOrSomethingLikeThat]. Funny thing is: this doesn’t happen on other user accounts, so I thought it had to be in ~. Now I logged out, moved ~/Library and ~/.[!.]* away (tarred the . files, but Library was too heavy, didn’t want to wait (/Stuff/Library should be enough, then, and Mac OS X definitely didn’t touch that directory). Now logged back in, seemed like a fresh user account (let alone the other data (pictures, documents, code) in ~). Started Colloquy on a local ircd, typed something… know what, the bezel problem still exists. WHY … WHY THE F*ING H*LL WHY?!?! I also moved aside my complete home directory and logged back in, but Mac OS X seemed to have noticed that and showed me “jannis2″ instead of “jannis” as home in the Finder. Not on Terminal, though. (Slowly this is becoming a sort of chaotic diary.) I am really going to reinstall Mac OS X if I can’t solve that problem. It’s *REALLY* *F’ING* *ANNOYING* *!!!!* !. Yes, it is. (Sorry.) Anyhow, it can’t have to do anything with a framework *in* the .app bundle, cause it only happens on my user account. (I could perhaps create a new one and move to that one, but don’treallywantthaty’know).
Can one turn off “check spelling as you type” globally somehow? Annoying, too. I know how to write most of the words out there. It always underlines words like “NSBezierPath”, “don’treallywantthaty’know”, “jannis” (although it should at least know my first name, damn it…), “AppendPathWithArcAndCenterOrSomethingBeautifulLikeThatNiceFunctionYouKnowWhatIMeanErYesIReallyThinkSo” and other funny things. But none of the proper English text is ever ever underlined. (Not even if I mistype something… no, that was a (bad (at least I commit it)) joke). Oh, wait, there are even cases where something that’s really *right* and *spelled correctly* is underlined, that’s when I use two languages (that is, German and English) in one context (be it a sentence, a chat, a mail conversation, whatever). Even in this Stickies.app it fools me: I turned it off clicking “Edit » Check Spelling While Typing”, switched to another stickie, and what happened? underlined me fflush(). !!!111one eleven!.
Talking of Stickies.app: this nice and light blue cyan (cymbaline cirrus-minor cyspedelic (erm…)) stickie is getting *very* large. But I can’t delete it or change its color, because I’ve got another (dark blue) sticky which says “blog about that blue sticky in the lower left corner”. Well. It’s taking most of the screen now, not just the lower left corner. I think when I’m on the Net again, I’ll just copy and paste what’s written here into my Blog. You must read it, then, not I ;^P.
2008-06-07
Today was a hard day. I deleted my user account, recreated it and moved all the data from my old home folder back here. I sorted out ~/Library, copied only the most important stuff. Especially did I have a look at Application Support and Preferences, where I only copied some things which I didn’t wanna have to configure again. I *did* reconfigure most of my apps. Now the bug with the bezels is fixed. I still don’t know why it was. Especially because I did only change my home folder, and manually moving it aside didn’t work. Why? … Has anyone had the same problem (or still has)? Well, this *is* a solution, but it is very tiring. Time Machine takes an eternity to backup all the little NetNewsWire files in ~/Library, by the way. Did cost me some nerves.
2008-06-20
13.50
Help. My MacBook blew my ears away today. Now I have found out what had lead to the problem: my httpd keeps crashing on launch, I don’t know why. Yesterday it still worked… I need to investigate this.
17.03
Now I found out that it’s the PHP module that makes my server crashing. Guess how I found out? By disabling all modules one by one. But I need PHP.
17.42
When Denis from MobileMacs mentioned it about Safari 4, I found that the iScrobbler Info window in the Finder has the option “open in 32 bit mode”. In the info.plist is written the following: /Users/jannis/Pictures/Screenshots/64-Bit\ Info.plist.png . By the way: I’m going to re-compile PHP. Nothing works.
17.50
Erm, hello? iScrobbler doesn’t work?! GRR!!! I’ll reinstall Mac OS X.
Igh? It works when turning on 32-bit mode. Does that mean that 64-Bit apps don’t work any longer? WTF? (By the way, Apache is also a 64-bit-process. But it worked without the libphp.so, so maybe only that one is compiled in 64 bit, or it doesn’t apply to all my 64-bit-apps.
18.01
Phew. It works again after I’ve done a PRAM reset. Does that mean that my mod_php work again?
18.05
Yes, it does. Good. Again a *big* PHEW!
2008-06-23
I put my MacBook into sleep mode (that is, I closed the lid) and – after a while – opened it again. Now I noticed that I hadn’t been asked for my password when opening it, which is bad. Going into System Preferences, although, I found that the checkbox for “Require password to wake the computer from sleep or screen saver” was checked. Unchecked it, checked it again, same case. Unchecked it, logged out, logged back in, checked it, worked. Anyway, I wonder why – though I didn’t investigate further where this option is saved, etc.. Anyone had the same problem or knows the answer?
2008-06-25
My Grayscale Icon collection is growing. By now, I got grayscale icons for *breathing deeply* Activity Monitor (Icon and CPU bars), Address Book, Mail, Console, Dashboard, Dictionary, Finder, iCal, Icon Composer, iPhoto, iTunes, Linkinus, NetNewsWire, Pages, Photo Booth, Photoshop, Preview, QuickShareIt, QuickTime Player, Safari, Smultron, Stickies, and TextEdit. I like the looks of a completely grayscale desktop very much.
2008-06-26
HardwareGrowler won’t keep running. I made a GeekTool entry that shows me if it runs, and if I start HardwareGrowler manually, ten seconds later it’s quitted again. It says EXC_BAD_ACCESS/KERN_PROTECTION_FAILURE in the crash log. That is, SEGV ;-). Need to check for a new version or try and debug it.
20.36
ouch. Just saw that I wrote ‘grep “HardwareGrowler” file && $error’ instead of ‘grep “HardwareGrowler” file || $error’… rocket science. Still, *sometimes* it crashes, or there wouldn’t be crash reports.
2008-07-23
Okay, HardwareGrowler crashes always when changing into sleep mode. Does anybody know how to execute a script when waking from sleep?
Leave a Reply (Some HTML allowed).