Questions tagged [mnemonics]

118 questions
86
votes
22 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
  • 3,996
  • 4
  • 34
  • 58
33
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
  • 15,325
  • 14
  • 82
  • 80
17
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
  • 183
  • 1
  • 4
16
votes
4 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
  • 57,855
  • 58
  • 238
  • 337
13
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
  • 27,343
  • 27
  • 120
  • 167
13
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
  • 30,568
  • 14
  • 58
  • 61
11
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
  • 8,945
  • 4
  • 40
  • 45
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
  • 34,193
  • 13
  • 69
  • 132
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,476
  • 17
  • 21
8
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
  • 143
  • 4
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,488
  • 4
  • 25
  • 48
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,336
  • 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
  • 4,937
  • 9
  • 48
  • 84
7
votes
3 answers

Java Swing: Can I set a button mnemonic that doesn't require pressing alt?

For example, say I have a series of toolbar-style buttons across the top of my application's main window. I want to attach a mnemonic to one of these that's just a single keypress, like F3. When you set the mnemonic to KeyEvent.VK_F3, the user has…
Electrons_Ahoy
  • 30,983
  • 34
  • 101
  • 126
7
votes
2 answers

Windows standard for mnemonics

Are there any mnemonic standards for Windows? For example -- the menu bar, actions on the menu bar (e.g. Alt+f to file menu but ctrl+s to do the save under the file menu), and controls. I'm asking because we have a search screen with many controls…
Kenny Mann
  • 871
  • 10
  • 24
1
2 3 4 5 6 7 8