Questions tagged [mnemonics]
138 questions
91
votes
23 answers
A mnemonic for the order of CSS margin and padding shorthand properties
I can never remember the order of the shorthand property for setting the margin or padding in one declaration. That is:
margin-top: 2px;
margin-bottom: 4px;
margin-left: 3px;
margin-right: 8px;
may be written as
margin: 2px 8px 4px 3px;
Yes…

dland
- 4,319
- 6
- 36
- 60
35
votes
15 answers
How to remember in CSS that margin is outside the border, and padding inside
I don't edit CSS very often, and almost every time I need to go and google the CSS box model to check whether padding is inside the border and margin outside, or vice versa. (Just checked again and padding is inside).
Does anyone have a good way of…

Hamish Downer
- 16,603
- 16
- 90
- 84
22
votes
1 answer
what does shutil (in Python) mean?
I knew what this module is for, I just don't know why they choose this name - shutil. It is hard to remember this kind of "random" name if I don't know where it come from. Please give me some hints, thanks.

Justin
- 233
- 2
- 4
18
votes
5 answers
Assembly JLE jmp instruction example
How do you use the jump family of instructions?
This is what they've got:
JL label
"It" jumps if it is less than or if it is not larger than or equal to.
My question is what is it in this sentence? Say I have a variable in ebx and I want to jump…

bobobobo
- 64,917
- 62
- 258
- 363
17
votes
6 answers
Please teach me a good mnemonic for remembering "slash" vs. "backslash"
I have a colleague who keeps confusing slashes "slash" and "backslash" (As in: "Should I escape such-and-such with a slash?" My answer: "No.")
I'm trying to teach him the difference but so far just telling him the name of the symbol doesn't seem to…

rix0rrr
- 9,856
- 5
- 45
- 48
15
votes
5 answers
Does anyone have a useful mnemonic for implementing Comparator?
Every time I need to implement a comparator, I get stuck trying to remember when I should return -1 and when 1, and I have to look it up.
I mean, obviously -1 is less, so it implies that first is less than second. But whenever I say that to myself,…

itsadok
- 28,822
- 30
- 126
- 171
15
votes
10 answers
Intuitive way of understanding hexadecimal html color codes?
Is there an intuitive way, or a good mnemonic, for understanding the correspondence between colors and their hexadecimal values?

unmounted
- 33,530
- 16
- 61
- 61
10
votes
2 answers
How to get proper public address from mnemonic phrase for Solana?
I am trying to get proper public address for Solana wallet using solana-web3.js at my react-native test project
import { Keypair} from '@solana/web3.js';
import * as bip39 from 'bip39';
import * as bip32 from 'bip32';
const derivePath =…

Mikenso
- 121
- 2
- 6
10
votes
3 answers
How do you remember the differences between rvalue, lvalue, etc?
This question is great because it has answers on what are the differences between rvalue, lvalue, xvalue, glvalue, and prvalue. The top answer has a decent explanation of each, and I understand their differences when I read them. However, I'm having…

Cornstalks
- 37,137
- 18
- 79
- 144
9
votes
1 answer
How to have the menu mnemonic underline appearing always?
When a mnemonic character "_" is added to the menu text, we have to press the Alt key to make the mnemonic underline appear. How to let the menu mnemonic underline appear always before we press Alt?

user2671610
- 153
- 4
8
votes
6 answers
CSS Mnemonics: How do you remember whether # or . is for class or id?
#test is the selector for id="test"
.test is the selector for class="test"
but how do you remember which way round they are (eg not .=id)

servermanfail
- 2,532
- 20
- 21
8
votes
8 answers
Remembering the Ternary Operator Syntax
Anyone have a good trick to remember the standard ternary syntax?
Specifically whether the '?' or ':' comes first. I have consistently gotten this backwards over the years.

Matthew Rapati
- 5,648
- 4
- 28
- 48
8
votes
2 answers
What is a mnemonic in java?
I can find a bunch of info talking about mnemonics but nothing about what they are. Can someone help me here?

Jon Aird
- 823
- 1
- 9
- 18
7
votes
1 answer
What is the purpose of a keyboard mnemonic on a label control?
What's the point of adding mnemonic on a label control in C#?
I have a label with the text "&SomeText".
What event is triggered when i press ALT+S (I've tried OnClick but it's not fired)

Gabriel
- 1,435
- 3
- 17
- 24
7
votes
1 answer
Going from BIP39 (mnemonic) to BIP32 (public/private keys)
I'm looking to develop some code, that creates Bitcoin private and public keys from a mnemonic. My current understanding of this process is:
entropy > nmemonic > seed > public/private keys > public address
I am using Trezor's nmemonic library and…

Robert Johnstone
- 5,431
- 12
- 58
- 88