
Packing Many On/Off Switches Into One Number: Bitmasks for Permissions and IPs
Store a dozen user permissions in one numeric column, check whether an IP address is in an allowed range, and avoid the traps JavaScript sets when you work with bits.
Intermediate
