MobileMe Sync Problems – Resolved

Apple’s MobileMe service stopped syncing for me, claiming there was one conflict, which it wouldn’t let me resolve. Here are the steps and a Python script that fixes it.

Not very long ago, I noticed my iPhone was no longer pushing data up to MobileMe, and further investigation showed that my laptop was also having problems syncing.

The MobileMe icon had an exclamation mark in it, it told me there was 1 conflict, and if I tried to resolve it, nothing happened. If I attempted a sync, it’d attempt it, but I’d get a system log full of errors with no obvious signs of successful data synchronization.

I was seeing ominous system log failures in Console like this repeated many times:

Conflict Resolver[276] [110660] |ISyncRecordGraphNode|Warning| Warning: Failed to look up record with Id: 09000000-0000-0000-1234-430001005678
Conflict Resolver[276] [110660] |ISyncRecordGraphNode|Warning| Warning: Failed to get entityName for record with Id: 09000000-0000-0000-1234-430001005678 (record = (null))
Conflict Resolver[276] [110660] |Conflict Resolver|Error| failed to look up parent relationshipName for entityName: (null) (exception = *** -[NSCFArray initWithObjects:count:]: attempt to insert nil object at objects[0])

There were other strange messages like this:

Conflict Resolver[276] [110660] |UI Helper Proxy|Error| failed to look up UIHelper for attributeName: calendar on entityName: (null) (exception = *** -[NSCFArray initWithObjects:count:]: attempt to insert nil object at objects[0])

And this (my personal favorite as it has a sense of humor):

Conflict Resolver[276] [110660] |UI Helper Proxy|Warning| No data type returned for property “calendar” on entity “(null)”, displaying on blind faith…

And also this:

Conflict Resolver[276] [110660] |Conflict Resolver|Warning| Conflict Resolver: *** -[NSCFArray initWithObjects:count:]: attempt to insert nil object at objects[0]
Conflict Resolver[276] *** -[NSCFArray objectAtIndex:]: index (-1 (or possibly larger)) beyond bounds (2)

My guess is that MobileMe has some globally unique identifier that represents one of my sync-able objects, and for some reason it’s missing. That in turn throws off some collection count, and when things don’t balance out between what was expected and what was loaded, a software exception happens.

At that point, I was fairly sure I needed to converse with MobileMe support. Apple has free chat-based support services, but it’s buried. Really buried. Really, really, buried.

  1. Go to http://www.apple.com/support/mobileme/
  2. Expand Syncing With MobileMe
  3. Click Troubleshooting MobileMe Sync issues
  4. Click Chat Now at the bottom of the page.

It’s a good idea to have your machine and your MobileMe data backed up. TimeMachine, SuperDuper!, or Carbon Copy Cloner will help you do this.

Unregister and Re-Register the Machine


Bring up Apple / System Preferences… / MobileMe. Go to the Sync tab, and at the bottom click on Advanced…

Then select the computer name in the list, and a Stop Syncing Computer… button will appear. Press it. Confirm with Unregister.

Then press the Register Computer button. Press Done.

Check and set the synchronize with MobileMe to Manually. Leave the preferences panel up, you’ll be back in a second.

Blow Aware the Sync History


You’ll need to reset your sync history which requires the iSync tool and a Python script run at the command line:

  1. In the Finder, choose Applications from the Go menu, then double-click iSync.
  2. Choose Preferences from the iSync menu.
  3. Click the Reset Sync History button.
  4. When the window opens to confirm the reset, click Reset Sync History.
  5. Close the Preferences window.
  6. Quit iSync.
  7. Open the Utilities folder (located inside the Applications folder) and double click the terminal.
  8. Paste this command in the Terminal and press return: “/System/Library/Frameworks/SyncServices.framework/Versions/A/Resources/resetsync.pl full” – without the quote marks. There will be no output.
  9. Quit terminal.

Re-sync


Select the items you want sync’d. Change the Synchronize with MobileMe back to Automatically.

You might get prompted with a request to sync immediately. If you are trying to push everything on your machine to MobileMe, stepping on what’s there, then press cancel and follow the next step. Otherwise confirm and skip the next step.

This next part is optional and you do at your own risk, assuming you have a backup and this is what you intended to do:
Press the Advanced… button. Click Reset Sync Data… and select the direction you want to sync, most likely computer to MobileMe.

At this point, the conflict disappears, but you’re no long able to sync either. Move on to resetting the preferences.

Resetting Preferences for MobileMe


In the MobileMe preferences pane, select the Account Tab, and click Sign Out… Confirm with Sign Out.

Now provide a bogus username and password like: blah@me.com / blahblahblah

You’ll get a name or password invalid message, but your log will show some interesting stuff.

/Applications/System Preferences.app/Contents/MacOS/System Preferences[352] Warning: Removed .Me password
[0x0-0x2c02c].com.apple.systempreferences[352] com.apple.CSConfigDotMacCert-blah@me.com-SharedServices: Already loaded
com.apple.launchd.peruser.501[206] (com.apple.CSConfigDotMacCert-blah@me.com-SharedServices) Throttling respawn: Will start in 6 seconds
com.apple.launchd.peruser.501[206] (com.apple.CSConfigDotMacCert-blah@me.com-SharedServices[470]) Exited with exit code: 1
/System/Library/CoreServices/FileSyncAgent.app/Contents/MacOS/FileSyncAgent[462] PIDFilePath() => ‘/Users/yourname/Library/FileSync/01254cc20d18/.pid’

Sign back in. Once again, go to the Sync tab and set Synchronize with MobileMe to Automatically.

You will get a message that says “A computer named [your machine name] is already registered with MobileMe synchronization server.” If so, press the “Use same name” button.

You may see this in the logs, not to worry:

System Preferences[352] First pass at computer registration failed with error: Error Domain=DotMacProxyErrorDomain Code=-100 UserInfo=0x200e73280 “A computer with this name is already registered with MobileMe.”
System Preferences[352] First pass at computer registration failed with error: Error Domain=DotMacProxyErrorDomain Code=-100 UserInfo=0x200e5fa20 “A computer with this name is already registered with MobileMe.”
System Preferences[352] LightweightMallornLoginSession is registered.

Now check off the items you want sync’d again and press the Sync Now button.

If you are trying to move all of your machine’s data to MobileMe, select the correct replace option when prompted.

And just to be sure that it didn’t do a partial sync, press Sync Now a second time, just incase the automatic setting jumped the gun before you finished selecting all the desired items.

Your syncing woes should be resolved.

But what about me.com?


At this point it’s a good idea to head over the your web account by going to me.com and logging in.

Check to make sure your data is there.

At this point in time there is known issue with me.com in which the calendar and the contact data does not appear. It is a known problem. Apple is aware of it. It is specific to your profile (other MobileMe accounts aren’t affected). And you need to contact support (see above) and open a trouble ticket. Apple only knows this as a “contacts and calendar loading issue” it has no formal title.

The error you see will be this message on a grey screen: MobileMe is unable to load your contacts. MobileMe could not load your information from the server. Try reloading the page. If this problem persists, contact MobileMe Support.

You can try and clear out your Safari cookies and cache, but realistically this won’t work as other browsers, like Firefox, show the same thing.

  1. First click the log out button and close the MobileMe (me.com) window.
  2. Click the safari title (next to the Apple logo) and select “empty cache.”
  3. Next click the safari title and select preferences.
  4. Click the security tab.
  5. Click “show cookies” then hit “remove all”.
  6. Now close the preferences.
  7. After all that open a new browser window and log back into MobileMe.

Apple can fix the problem by escalating to the next level of support, and this is most likely more desirable than closing your MobileMe account and opening another, which will force your MobileMe account name to change.

Seeing in Black and White

I just had an interesting thing happen: I saw in black and white. That’s what my brian actually saw with the unaided eye. Here’s the cool part, I tell you how I reproduced it. It was like nothing I’d experienced before. It was beautiful.

A few moments ago, I just had a very interesting and unique experience. I saw in black’n’white. I’d never had this happen before in my life. First I’ll describe the experience, then how I did it, which, curiously enough was repeatable.

“It was clearly not imagination… It was a greyscale world that I physically saw, like a black and white movie, but a zillion times sharper, far more dynamic range, and in 3D.”
With the totally unaided eye, my brain saw my surroundings, in broad daylight, in black and white. The only exception was that objects which were normally bright red had an ever slight red hue to them, but it was only brilliant red objects that did this.

The effect lasted about 7-10 seconds in duration before the color faded back in, almost as if the saturation was being brought up from near nothing to normal.

To convey the effect, this is much like the image I saw:

Seeing in Black and White

When I moved my eyes to look at other parts of the scene, the effect diminished, but if I kept focusing on one spot, like a child’s staring contest, the effect would hold longer. This was very much the inverse of the behavior of an after-image, where if you stay still it fades, but if you rapidly blink, it returns.

The black and white effect composed of the entire field of view. And as it gently faded back to normal, it affected more of the center of the field of view first:

Seeing in Black and White

It only took 2-3 seconds for normal color to return. There was no pain or any form of discomfort before, during, or after. I’m in very good health.

It was as if the signals from the cones were being ignored by the brain, but the signals from the rods were fine. I remember that the detail was astounding, and that the tone of the grass was very similar to the sky, though I’ve been unable to represent that as closely as I’d like in my photographic simulation.

I’m certain you’ve personally woken up in the morning and upon your eyes adjusting to the light have seen the image fade in, not focus, but as your brian assembles bits of the information into meaningful images, like it’s adapting to light after not being exposed to it for a long while.

Here’s how I did it.


I’m going to err on the side of giving too much information, some that might not be relevant, primarily because I don’t know what actually caused it. However, I was able to recreated it, on demand, several minutes later by experimentation; the effect lasted even longer. It was wondrous.

Being inside for the better part of the morning, I figured I’d go outside an lay in the sun for a few minutes. So, I lay down on my back on our driveway which has a slight incline. It was about thirty minutes past noon, and the sun was slightly overhead just off center to my right, enough that it was still bright enough that just closing my eyes was uncomfortable, so I criss-crossed my arms over them to put them in shadow, though I could still tell it was very bright out with my eyes closed. The weather was 89°F, I was in direct light, and there were few clouds in the sky.

I rested this way for about 10 minutes, and I did so just to the point where my eyes were fully relaxed and no longer concerned about the brightness of the light though my eyelids. Also, I wasn’t quite drifting off, but relaxed as you might be just taking in warmth of a nice day at the beach.

What led to the discovery was that I heard a car drive by and so I sat up quickly, opening my eyes. Two things stood out. One, this gave me a slight head-rush, though I’d describe it weak at best. Two, my eyes had not adjusted to the light fully. And, although while bright, it wasn’t uncomfortable, there was no blinding whitewash, no pain, and no caused for squinting required — I was looking away from direct light.

That’s when I noticed the scene seemed extremely washed out and monochromatic; it looked like a black and white photograph.

Thinking my mind or eyes were playing tricks on me, I moved my eyes, but the effect lasted longer than a second, though faded as I looked at more “new” material in my field of attention.

The reds came rushing back in first, with greens right after. It wasn’t one color than another, it was overlapped. I became visually more aware of reds, as that happened, greens started replacing the grey tones as well, and by the time greens were normal, the other colors like purples and blues from the nearby flowers in our garden were already present.

This part will be hard to describe because there’s no English equivalent for it, but it wasn’t like I was seeing in black and white, but rather the absence of color.

I know that sounds identical from a logic standpoint, but the perception was an absence of something, not the presence of something. Intellectually, I knew there had to be color, I just wasn’t seeing it.

It was a greyscale world that I physically saw, like a black and white movie, but a zillion times sharper, far more dynamic range, and in 3D.

It was clearly not imagination, nor dream, it was very real and perceptible.

That’s what made me want to try and repeat it.


Though this time around, if I could get it to work, I’d plan a more scientific excursion. So I selected an area of our yard with brilliant colors, our flower garden, which would be my baseline.

First, I waited about 5 minutes and looked at the area, taking in all the things I should be expecting to see. The area was already in normal color after the effect had faded long ago, but I wanted to be sure.

Seeing in Black and White

So, I laid back down with the intention of trying to get the head rush. I shielded my eyes in shadow, and waited for them to relax and get comfortable, and then waiting a moment, quickly sat up and stared at the area I knew had colorful flowers, a bright red car, and tons of green grass. I made sure I would focus only in one area, trying to stare out to infinity, much as you’d do for those 3D posters, though I was more trying to keep my eyes in a relaxed state because I wanted them in focus.

The preparation this time around took merely a minute or two. The head-rush was again weak from sitting up quickly. I turned in the direction I had planned and opened my eyes.

It’d worked.

The effect returned just as before, but lasted this time about 20 seconds and the effect was just as strong until I couldn’t help myself and look at the astounding detail in scene around me, which caused the effect to fade.

Since I had more time to study the scene, this is when I actually noticed the reds within the black’n’white image in my head. The B/W effect seemed more pronounced when I didn’t move my eyes, relaxing them.

When I turned to look at other things, color would seep in, and if I held my eyes relaxed in the same spot, the color would fade back out partly, much the same way as you can make objects in your blind spot vanish by holding your vision still long enough. That same kind of fading away was what I saw, but with color.

I suspect the effect is caused less by the head rush and more by the eyes being exposed and conditioned to bright light (even with the eyes closed, or maybe the red light through the eyelids saturates the cones like a red filter, though I did not see a green after image). When the eyes are opened, there’s a whole rush of visual information, and I suspect the brain is compensating for the overload by taking in shapes, detail, and tone and then overlaying color after the signal settles. I wasn’t aware that visual processing of color was an independent process.

This led me to two very interesting side thoughts.

One, I’ve always wondered if while under hypnosis people really saw things but said they didn’t, or whether their honestly perceived it. I now know it’s possible to perceive things differently than the visual input as actually providing.

Two, the black and white image was astonishingly detailed in greyscale, much like an Ansel Adams image. Being able to produce this effect on demand to view how a scene might be photographed in black and white is a fantastic tool to have in one’s photographic arsenal.

I hope science doesn’t declare this is bad for you, because I’m going to do it again!

[UPDATE: I can’t get it to happen inside, seems bright sunlight is required.]

For models just starting out

If you scan through many modeling websites, you’ll see there’s a common question asked by new comers who want to be models: “What do I need to do to become a model?” Ironically, that question often goes unanswered, even on professional sites. Maybe it’s that the answer is a little more complex than a quick answer. However, as a photographer, I decided to take a shot at answering the question.

If you scan through many modeling websites, you’ll see there’s a common question asked by new comers who want to be models: “What do I need to do to become a model?”

Usually members skip that question. I’m not sure why. Maybe it’s that the answer is a little more complex than a quick answer. Perhaps it’s that a good portion has to deal with genetics. It could even be experienced models don’t want the new competition entering the field.

I decided to take a shot, however, at answering the question.

What can I do to become a modelQ: What can I do to become a model?

A: To a writer, the advice is read as much as you can. To a model, I’d say look at as much as you can — in particular other photos of models.

Analytically, try to figure out what it is about the models you like. Is it their pose, is it their facial expression, do they look into the camera? Try to emulate that pose in the mirror.

Study books on posing. And if you’re really clever, study books on photographic composition. If you can deliver what the photographer is trying to capture, you’ll make life so easy he’ll be raving about you.

Another thought is to find pictures of models that look like you. There are some web sites where you can beam up a picture of yourself and it will give you celebrity matches. Perhaps hair styles, makeup, and clothes that work for them will also work for your looks and body type.

Take care of your body; keep your skin clean and healthy. Apart from good diet, steer clear of all the things you know you should. Modeling is based upon looks, and you have it in your control to keep them.

Know your body, be comfortable with it, and find make up that works for you. Photographers often go for the natural look, so keep that in mind the next time you want a sprawling tattoo or obvious body piercing. These won’t necessary stop you from being a model, but it can raise unnecessary barriers to entry. Imagine a bank looking to fill a teller position, which candidate has the higher probability of landing the job: someone dressed in punk with a lip ring and colored spiked hair, or, the candidate in an pressed shirt, tie, and jacket. Both might be equally capable and friendly, but one will have a harder time than the other.

Work on building a decent portfolio. The best way to do this is to find local photographers you trust and negotiate a Time for Prints/CD shoot. It costs you nothing but some time, and in return you get some great pictures.

Ideally, you want more photos that you know what to do with. Cull them down to the best of the best, you don’t need to show every photo you have. Make sure you get a variety of looks. You want to show you’re versatile. Demonstrate that you’re adaptable.

Post your portfolio where photographers can see you, and let them know about your availability, interest, and boundaries. You may get more TFP offers, you may get fixed rate sessions, you may get a set hourly rate. Take only the jobs you feel comfortable with.

Seek opportunities where the photography is going to get exposure, even if you have to do it at a reduced rate. The more exposure you get, the more you’ll be able to command later.

It’s important not to let things get to your head. When a model without serious experience wants to be compensated as someone who’s done it as a career, opportunities can start to dry up. Photographers just want to take the picture, not deal with a diva. Think of it much like a job interview; you wouldn’t hire someone to be your doctor if they simply wanted to be a doctor all their life and took a class in first aid. Experience is important. And you can get all you want with TFP/CD.

Be professional, be on time, and know when to say no. Consider setting up a website, something which doesn’t say “I got a MySpace account.” Show your styles and answer the who/what/when/where/why about yourself; let people know how to contact you, and get back with them promptly. Sometimes photographers are working under horrific deadlines, and reaching a viable model is all that’s needed. A quick response can give you the edge.

You might want to forge a relationship with a makeup artist and/or a favorite photographer. If you have a solid relationship with good communication and trust, the photo sessions will go seamlessly and productively. They in turn will become part of a mini-network and potentially bring opportunities to your door that you’d otherwise not have known about.

Eventually, demand may increase, and if it does you may want to get an agent. Usually it’s a while before one gets that far. You might not even need one.

Modeling is a competitive field, with new and younger models entering all the time. Switch your mental role about how you’d market yourself and you’ll see what you need to do to become that. You’re selling an image: yours.

Models: Getting Discovered

As a photographer, I spend a good deal of time looking a model profiles, cataloging possible candidates. There’s a pretty stark line between existing models and those that want to be models. The fidelity of the line, however, may be hard to see from the modeling side of the table.

New models can increase their chances by applying a few little secrets that will help your profile from quietly getting skipped over.

I doubt it’s too far of a stretch to assume that the primary goal of anyone with an online modeling profile is to increase their personal chances of getting approached with a modeling gig.

As a photographer, I spend a good deal of time looking a model profiles, cataloging possible candidates. There’s a pretty stark line between existing models and those that want to be models. The fidelity of the line, however, may be hard to see from the modeling side of the table.

This blog entry is aimed at helping new comers increase their chances by passing on a few little secrets that will help your online modeling profile from quietly getting skipped over. You’ll get inside the minds of those looking at your profile photos, as to be better match yours to what they’re looking for.

Getting Discovered as a Model

We’ve all met a waitress who says she’s an actress and is waiting to be discovered. But as an non-emotionally invested third party, it evident to you know what’s wrong: she’s waiting tables, when she should be acting, in anything, if not for the exposure, then the experience.
RULE #1: Don’t wait to be discovered, get yourself out there — don’t say what you want to be, do what you want to be.

If you can’t take quality photos of yourself, find a photographer online and negotiate a TFP/CD deal (it’s free), then post those photos to your profile.

Clients and photographers have to know what you look like. That means in the modeling world, photos speaks volumes. The more, the better. A model that expresses desire (“I’ve always wanted to model my whole life”), but has no photos has given no point of reference to make a casting decision. Worse yet, this is precisely the kind of person a scammer can target by playing to emotional appeal.
RULE #2: You can’t be discovered with an empty portfolio. Post photos.

First impressions count, and you know this to be true from when you meet new people at social engagements. It’s also true for a virtual encounter. The first thing people will see is your avatar — your profile’s picture should be of you. Low-res, grainy images are unflattering.
RULE #3: Choose a good quality profile picture that makes people want to click on it.

If your profile picture is your resume, which is designed to get a larger slice of follow-on attention, then your profile photos are your interview which showcases what you’re capable of. Unfortunately this is the point where, after a quick browse, many profiles get skipped over.

The problem is not so much the model, but the presentation. If there isn’t enough detail to tell what a model looks like, it’s just about the same as not having any photos.
RULE #4: Presentation is everything.
(MUST READ: See my blog post titled Online Model Portfolios: 7 Common Problems to avoid making a bad online portfolio.)

Speaking of getting noticed, consider how most people find your portfolio: it isn’t by searches or random browsing, it’s by your activity on the system. Participate. Leave comments, join groups, start discussions, post photos. Anything you do raises the chance of someone seeing your profile picture and clicking on it.
RULE #5: Participate to be seen.

All of the rules boil down to effectively selling yourself, in particular, your image. Show the product (you) in the best possible light (your photo gallery) and market it (raise awareness by getting it seen more often).

FIX: undefined symbol: apr_ldap_ssl_init

Did an update to Ubuntu Jaunty and Apache stopped working with the message “undefined symbol: apr_ldap_ssl_init”. This post is how I fixed it.

This is a geek entry for resolving the problem:

* Restarting web server apache2
/usr/sbin/apache2: symbol lookup error: /usr/sbin/apache2: undefined symbol: apr_ldap_ssl_init [fail]

Non-geeks will want to move along…
Continue reading “FIX: undefined symbol: apr_ldap_ssl_init”

Invisible Drive on OS X

The hard drive icon on my OS X’s Finder was no longer appearing on my desktop; here’s how I fixed it.

I happened to sign on to my desktop Mac and noticed something very strange, the Harddisk icon was no longer on the desktop.

Other clever tricks for looking at the file systems showed the file was most certainly present, although Finder operations were treating the volume as if the hard disk was hidden or invisible. The drive was there when I used terminal and did $ ls -l /Volumes

Finder Preferences showed that icons should be shown, but just the drive icon wasn’t appearing.

Then I found this aritcle, which suggested firing up the Script Editor and running this script:

tell application “System Events”
set visible of disk “NameofDisk” to true
end tell
tell application “Finder” to quit
delay 1
tell application “Finder” to launch

I believe I got myself into trouble by accident when I did the last disk repair using Disk Warrior or Disk Utility. Somehow the operation marked the drive as invisible. Undoing it was as simple as asking the system to make it visible again.

Hibernate Schema Update Problems

For a while I’ve been having problems trying to get a SchemaUpdate working with Hibernate. Turns out the problem was me, not Hibernate. Newly created tables had a blank ACL, and I just needed to set them.

I’ve been using Hibernate for relational persistence for a while now, and I have to say it’s been working out pretty well.

That was, until I went to do a SchemaUpdate.

The moment I did an alternation of a table, or created a new entity, things went sour, and I was unable to read my old data. Was it me, or was it Hibernate?

could not initialize a collection
PSQLException: ERROR: permission denied for relation newtablejustadded

It was me.

Turns out Hibernate’s update was working just fine. There was no magic versioning or class hashing going on, detecting the change to the database.

The problem was the ACL was blank for the newly created entity table (I was using Postgres).

By issuing this command, all was fine again:

GRANT INSERT, SELECT, UPDATE, DELETE, REFERENCES ON newtable TO GROUP agroupIwasusing;

Since it took a while to figure out what was going on, I thought I’d post this to help others that follow a similar, yet frustrating, path.