The mayor and council shall have authority to prescribe by ordinance such other rules as the mayor and council in their discretion may deem necessary to grade, pave, drain, macadamize, or curb the streets and alleys of the city; to enforce by execution the costs thereof against adjacent property owners and railroad companies; and to provide how the agents or owners thereof shall be served with notice by personal service or by publication.