The city commission may provide for and regulate the curbs and gutters that empty into the sidewalks or streets of the city; may regulate or prohibit (except as such power may be restricted by general law) the use of the streets, alleys, sidewalks and public grounds for signs, signposts, awnings, telegraph or telephone poles, wires for telegraph, telephone or electric lighting or power purposes, electric light or power poles and for posting bills and advertising matter; may regulate or prohibit the carrying of handbills, banners or placards on the streets, sidewalks or other public places of the city, and the gathering or holding of public meetings for any purpose therein or thereon. The city commission may compel any telegraph, telephone or electric light or power company, having previously erected poles and wires in the city, to remove such poles and wires to any location designated by the city commission. If the company fails to remove any poles and wires within ten days after written notification by the city, the city may remove such poles and wires at the expense of such company and may collect such expenses by execution. The city commission may require that only pedestrians use public sidewalks. The city commission may regulate the use of whistles and other signals by stationary engines and factories.