That's a good article, but I notice it doesn't include any of the new line of organic approved insecticides containing Spinosad.
Since your plant is an edible houseplant, you don't want to use any noxious chemicals on it. You need a method that is safe for your consumption (I assume you use the rosemary leaves for cooking?)
I'd try a home made oil spray consisting of two tsp. of cooking oil plus a couple of drops of dish soap mixed in a quart of water in a spray bottle. Shake it up so the oil distributes, and keep shaking it as you spray. Cover the whole plant, including stems and undersides of the leaves with a spray of the oil and leave it on for an hour or so. Then rinse the whole plant off with water (or a spray with a tiny bit of just dish soap) to remove the oil.
Repeat this treatment in 5 days to a week, then again in another week. The oil smothers the insects, but you must repeat the treatment in case there are eggs that will hatch after the first treatment. Repeating kills off the succeeding generations.