Why does HashMap allow only one null key? [closed]
Closed 10 years ago.
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.
Mapping a list of optional values to an optional list of values
I have encountered the following pattern while programming in Haskell (but the pattern could occur in any language supporting lists, option types, and mapping of a function over a list). I have types a
and b
and a function
Mapping a list of optional values to an optional list of values
I have encountered the following pattern while programming in Haskell (but the pattern could occur in any language supporting lists, option types, and mapping of a function over a list). I have types a
and b
and a function
How to find out if a tile is being covered by a polygon?
Given a (intersecting) polygon, I’d like find out which tiles are being covered by the polygon.
How to find out if a tile is being covered by a polygon?
Given a (intersecting) polygon, I’d like find out which tiles are being covered by the polygon.
Reduce Operations on Distributed Databases
I would like to ask you about optimizing reduce operations (e.g. count) on multiple databases.
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: