In all fairness, I have to side with the President on this one, if all those morons on his staff worked for me, I'd be pretty hot as well. (just kidding)
The article claims the President said: “God dammit, how the f–k don’t you know this?!” and “Get the f–k out of here!”, but it fails to say who the President is talking to or what the topic is.
If the President is talking to a high-ranking military advisor about something important that they should clearly know, I believe that while still inappropriate, it is excusable.