Top "Hash" questions

A hash function is any well-defined procedure or mathematical function that converts a large amount of data into a small datum, usually a single integer.

How to convert ActiveRecord results into an array of hashes

I have an ActiveRecord result of a find operation: tasks_records = TaskStoreStatus.find( :all, :select => "task_id, store_name, …

arrays activerecord hash
Add a fragment to the URL without causing a redirect?

Is there is a way how to add hash # to my URL without redirect?

javascript jquery hash
What is Hash and Range Primary Key?

I am not able to understand what Range / primary key is here in the docs on Working with Tables and …

hash amazon-dynamodb primary-key database nosql
What is a elegant way in Ruby to tell if a variable is a Hash or an Array?

To check what @some_var is, I am doing a if @some_var.class.to_s == 'Hash' I am sure …

ruby arrays hash
Time complexity of accessing a Python dict

I am writing a simple Python program. My program seems to suffer from linear access to dictionaries, its run-time grows …

python hash dictionary complexity-theory
How to "EXPIRE" the "HSET" child key in redis?

I need to expire all keys in redis hash, which are older than 1 month.

hash redis
Change hash without reload in jQuery

I have the following code: $('ul.questions li a').click(function(event) { $('.tab').hide(); $($(this).attr('href')).fadeIn('slow'); …

jquery hash reload fragment-identifier window.location
How do I compare two hashes?

I am trying to compare two Ruby Hashes using the following code: #!/usr/bin/env ruby require "yaml" require "active_…

ruby hash
Hashing a dictionary?

For caching purposes I need to generate a cache key from GET arguments which are present in a dict. Currently …

python hash dictionary
Removing all empty elements from a hash / YAML?

How would I go about removing all empty elements (empty list items) from a nested Hash or YAML file?

ruby-on-rails ruby hash yaml