No — Apple did not perform “Little Boxes” for *Weeds*; the version used as the show’s main-title song in its early seasons was sung by Malvina Reynolds, the songwriter who wrote the song, and the show later used a different artist’s cover…
A certain scientific railgun is a fictional weapon, but its name points at a real principle: a railgun uses electromagnetic force, not explosives, to fling a projectile.