A4 | = 21.0cm × 29.7cm | = 8.27in × 11.69in |
A4 − 1in margins | = 15.92cm × 24.62cm | = 6.27in × 9.69in |
Letter | = 21.59cm × 27.94cm | = 8.5in × 11in |
12 December 2013
Paper Size
1in = 2.54cm
06 October 2013
Parameters and Arguments
Parameters are the things when you define the function. Arguments are the things when you call the function.
The only reason I'm remembering this is to be technically correct ("the best kind of correct!")
int f(int x) { return x + 1; } // x is parameter int main() { cout << f(2 + 3); } // 2 + 3 is argumentTerrible mnemonic:
- Parameters have parallel structure --- just [type name] [var name] or some variant thereof, nothing fancy.
- Arguments can include arithmetic operations, or any other kind of operations.
- Parameters are part of the function definition.
- Arguments are what actually arrive inside the function.
The only reason I'm remembering this is to be technically correct ("the best kind of correct!")
11 September 2013
26 August 2013
GIMP modes
http://docs.gimp.org/2.8/en/gimp-concepts-layer-modes.html
M = mask (top), I = image (bottom)
M = mask (top), I = image (bottom)
- normal: E = M
- dissolve: E = M or I, randomly picked per pixel
- multiply: E = M × I / 255
- darker
- divide: E = I × (256 / (M+1))
- brighter, brightens dark M parts strongly
- screen: E = 255 − (255 − M)(255 − I)/255
- brighter, equiv. "multiply" conjugated by inversion
- dodge: E = I × (256 / (256−M))
- brighter, brightens bright M parts strongly; equivalent to divide with inverted mask
- burn: E = 255 − (255 − I) × (256 / (M+1))
- darker, darkens dark M parts strongly
- hard light: super complicated
- for M in [0,128] it's multiply with 2M; for larger M it's all conjugated with inversion
- soft light: also complicated, I somehow doubt the documentation...
- grain extract: E = I − M + 128
- grain merge: E = I + M − 128
- difference: E = |I − M|
- addition: E = M + I
- subtraction: E = I − M
- darken: E = min
- lighten: E = max
- hue, saturation, brightness, value: takes that component from M and others from I
Bx
+0.25: ε → 1 → 8 → 13 → 20 → 35
+0.5: 35 → 55 → 85 → 125
+1.5: 125 → 200
+1: 200 → 250 → 300 → 350 → 400 → 450
+0.5: 35 → 55 → 85 → 125
+1.5: 125 → 200
+1: 200 → 250 → 300 → 350 → 400 → 450
01 June 2013
chem
R = 0.082 L⋅atm / mol⋅K
at STP (0°C, 1 atm): 22.4 L / mol
at STP (0°C, 1 atm): 22.4 L / mol
H = 1.008 C = 12.011 N = 14.007 O = 15.999 F = 18.998 Na = 22.990 Mg = 24.305 P = 30.974 S = 32.06 Cl = 35.45 K = 39.098 Ca = 40.078 Br = 79.904 I = 126.904
Subscribe to:
Posts (Atom)