Tag: sh

57 votes
13 answers
1.4K views
On - window.location.hash - Change?

I am using Ajax and hash for navigation. Is there a way to check if the window.location.hash changed like th

avatar
Dorian
0 1 0 9
asked 07 September, 2021
56 votes
18 answers
1.7K views
How to convert List to Map?

Recently I have conversation with a colleague about what would be the optimal way to convert List to Map in Ja

avatar
Benton
0 1 0 9
asked 07 September, 2021
60 votes
16 answers
2.4K views
Why should hash functions use a prime number modulus?

A long time ago, I bought a data structures book off the bargain table for $1.25. In it, the explanation for

avatar
Hilario
0 1 0 9
asked 07 September, 2021
58 votes
17 answers
372 views
JavaScript hashmap equivalent

As made clear in update 3 on this answer, this notation: var hash = {}; hash[X] does not actually hash the ob

avatar
Tana
0 1 0 9
asked 07 September, 2021
61 votes
16 answers
1.5K views
How does a hash table work?

I'm looking for an explanation of how a hash table works - in plain English for a simpleton like me! Fo

avatar
Thurman
0 1 0 9
asked 07 September, 2021
60 votes
0 answers
1.9K views
SCANF probably not reading the correct value

If you enter more than five characters in the "name" field the function giving wrong output,otherwise if the

avatar
Nereida
0 1 0 9
asked 07 September, 2021
54 votes
22 answers
1.2K views
How do CSS triangles work?

There're plenty of different CSS shapes over at CSS Tricks - Shapes of CSS and I'm particularly puzz

avatar
Freida
0 1 0 9
asked 07 September, 2021
60 votes
30 answers
2.4K views
What are the differences between a HashMap and a Hashtable in Java?

What are the differences between a HashMap and a Hashtable in Java? Which is more efficient for non-threaded

avatar
Eddie
0 1 0 9
asked 07 September, 2021
55 votes
30 answers
1.5K views
How can I refresh a page with jQuery?

How can I refresh a page with jQuery?

avatar
Majorie
0 1 0 9
asked 07 September, 2021
66 votes
14 answers
2.5K views
Secure hash and salt for PHP passwords

It is currently said that MD5 is partially unsafe. Taking this into consideration, I'd like to know which

avatar
User demo
0 1 0 9
asked 07 September, 2021