exercise. Seriously. Throw on some tunes, throw on some sweats, and run/walk/whatever and cogitate on it. Then take a shower and cogitate some more. If that doesn't work, get a hip flask and draw a tub (a spa is best). Failing that, sleep on it. The secret to writer's block is to recognize that the bulk of what you write won't really shine until you rewrite it anyway so don't be precious with it. Solve the problem and move on. And recognize that you might very well need to kill five days' worth of work with one days' revision but that the one days' revision is better than the five you're killing.
...but... but managers and professors have told me that you shouldn't want to code because all of the creative work is in system analysis! Coders can just be outsourced to India, right??? It's just gruntwork!! I guess that's what I get for going to college in the United States of Managers and Lawyers. I think eventually the US wants to just manage the rest of the worlds resources and people through wealth. As if we already didn't have a disconnect between employees and managers, eventually they want to push their employees out to different countries so they don't even have to know what they look like.
Your second point is where I tend to struggle. I get way too wrapped up in the idea of getting things exactly right the first time, which almost never happens.