The base under the 'ball' itself, contains a magnet, which locks the ball in place. It can easily be positioned almost a full 360 degrees on all axxis (speaking about a physical lamp of course).
You probably had one like it when you were a kid ;)
Previews rendered with 3rd party render and HDRI (not included), but scene is setup to use standard 3dsmax Lighttracer. No additional plugins needed.