Researchers have shown how to write any magnetic pattern desired onto nanowires, which could help computers mimic how the brain processes information.