If you are publishing something related to the company's business, you will probably need to get the company's permission. A big company will probably have a formal way to handle this, possibly as part of its puiblic relations and/or intellectual property management activities. In a small company it might just be a matter of getting your manager's approval. Doing that is a good idea anyway, since you don't want to be personally liable for accidentally publishing something that is commercially sensitive!
If it's not related to the company, then I would have thought the company affilation is irrelevant - i.e. don't mention the company at all.