Relative Content

Tag Archive for map

Long dictionary/map key vs shorter key + equality check for an auth cache

I’m implementing an API key based authentication scheme and I’m caching valid API key entries (hash, scope etc.) in a memory cache. For the cache key, I had been using the first 8 characters of the base 64 representation of the key hash. I did this because there are 64^8 (281,474,976,710,656) possible keys, so I thought that would be more than enough.

Adding values to HashMap

I want to add values to a HashMap, which would be used by methods in the same class. I have two solutions:

Determine exact coordinates for a map image?

My brother suggested that I should write a web app that lets students create and print blank maps. A blank map is a map that contains country borders, waters etc. but no text labels. The first use case is the following:

Determine exact coordinates for a map image?

My brother suggested that I should write a web app that lets students create and print blank maps. A blank map is a map that contains country borders, waters etc. but no text labels. The first use case is the following: