Avatar 20
Rodrigo @rodrigo

Designer, Software Writer and Philosopher. Co-Founder of Codegestalt and Master21

Today I was struggling with OS X once more. Some user profiles on the Macs of one of my clients just stopped working completely. After entering the password they would hang forever at the login screen, throwing some LSD segmentation fault: 11 errors in the Console. After some searching on the web I've found a solution that solves the problem, although the cause for the problem is still unknown. Here's the simple solution:

I didn't solve the problem per se, but used the simple workaround:
Create a new Admin account
In Settings - Users & Groups, delete the offending account, but - IMPORTANT - choose to keep its home folder.
Go to /Users/, the offending account home folder is now named ' (Deleted)'
Rename it to the original name
Create the account again with the same name as before, and - IMPORTANT - choose to use the existing home folder.
Apparently this cleans enough up to allow a non-problematic login. I still did not find the problematic kext or service or whatever the launch services choked on.

https://forums.developer.apple.com/thread/25876

or Cancel

“If you forcibly unwrap an optional and that optional turns out to be nil, it will cause a trap, stopping your application.
A safer way to unwrap an optional is optional binding. Optional binding works within a conditional if-let statement: You assign the optional to a temporary constant of the corresponding non-optional type. If your optional has a value, then the assignment is valid and you proceed using the non-optional constant. If the optional is nil, then you can handle that case with an else clause.”

if let r1 = reading1,
   let r2 = reading2,
   let r3 = reading3 {
    let avgReading = (r1 + r2 + r3) / 3
} else {
    let errorString = "Instrument reported a reading that was nil."
}

Excerpt From: Hillegass, Aaron. “Cocoa Programming for OS X: The Big Nerd Ranch Guide, 5/e (Big Nerd Ranch Guides).”

or Cancel

“Arrays are strongly-typed. Once you have declared an array as containing elements of, say, Int, you cannot add a String to this array.”

Excerpt From: Hillegass, Aaron. “Cocoa Programming for OS X: The Big Nerd Ranch Guide, 5/e (Big Nerd Ranch Guides).”

or Cancel

"Travel will give you a knowledge of other countries, it will show you mountains whose outlines are quite new to you, stretches of unfamiliar plains, valleys watered by perennial streams;" ... "But travel won't make a better or saner man of you. For this we must spend time in study and in the writings of wise men, to learn the truths that have emerged from their researches, and carry on the search ourselves for the answers that have not yet been discovered. This is the way to liberate the spirit that still needs to be rescued from its miserable state of slavery"

– Seneca

or Cancel

"What good does it do you to go overseas, to move from city to city? If you really want to escape the things that harass you, what you're needing is not to be in a different place but to be a different person."

– Seneca

or Cancel

Just wasted 30 minutes trying to configure clamav. I seriously need to start reading the config files. I was able to solve the initial error Can't Open/parse The Config File /usr/local/etc/clamav/freshclam.conf? by commenting out the line # Comment or remove the line below. #Example. Silly me!

or Cancel