LinkedIn laid him off, so he decided to finish his science fiction novel. Now he's struggling to find a new job.