Partial metering is especially useful when photographing a backlit subject because it prioritizes exposure on the subject itself, ensuring they aren’t rendered too dark against a bright background. The trade-off is that the background often becomes overexposed, but this can be used creatively.
means: convert the string '100' into an integer, interpreting it as a binary number.
A floating point error usually refers to the small inaccuracies that occur when computers represent and calculate with decimal numbers.
from decimal import Decimal, getcontext
The decimal module in Python is designed to avoid the floating point errors we just talked about. By using Decimal objects, you can represent numbers exactly as decimal fractions, and you can even control the precision of calculations with getcontext.
Macro lenses have an extremely shallow depth of field (DOF), often measured in millimeters or less, because of the high magnification and short focusing distance. This is why only a tiny part of the subject is sharp while the rest quickly falls out of focus.
squish (something) if something soft squishes or is squished, it is pushed out of shape when it is pressed
slog: to walk or travel somewhere steadily, with great effort or difficulty
tedious: lasting or taking too long and not interesting
decent: of a good enough standard or quality
conundrum: of a good enough standard or quality
game (for something/to do something) ready and willing to do something new, difficult or dangerous
slouch: to stand, sit or move in a lazy way, often with your shoulders and head bent forward
Bill Gates spent significant time at Harvard’s Aiken Computation Laboratory during the mid-1970s. As a student, Gates often used the lab’s PDP-10 computer for intensive programming, sometimes racking up hundreds of hours of computer time monthly and, along with Paul Allen, was noted for using university resources for early commercial projects.
emulate something (computing) (of a computer program, etc.) to work in the same way as another computer, etc. and perform the same tasks
the pecking order: (informal, often humorous) the order of importance in relation to one another among the members of a group
idle: (of machines, factories, etc.) not in use
chunk: (informal) a fairly large amount of something
frenzied: involving a lot of activity and strong emotions in a way that is often violent or frightening and not under control
sabotage something to prevent something from being successful or being achieved, especially deliberately
bust: (North American English) a thing that is not good
tuck something + adv./prep. to push, fold or turn the ends or edges of clothes, paper, etc. so that they are held in place or look neat
A bootstrap loader is a specialized, small program residing in firmware (ROM/BIOS/UEFI) that initializes hardware and loads the operating system (OS) kernel into memory upon powering on a computer.
magnum opus: a large and important work of art, literature or music, especially one that people think is the best work ever produced by that artist, writer, etc.
An object is any value that lives in memory in Python (numbers, strings, lists, functions, classes, user‑defined things, etc.).
An instance is an object viewed in relation to its class/type, i.e. “this object is an instance of that class.”
In Python, a constructor is the special method that runs automatically when you create an object from a class, usually used to set up initial attributes.
class Person:
def __init__(self, name, age): # constructor
self.name = name
self.age = age
p = Person("Alice", 30)
Assuming a Dog class exists,
type(Dog('Rover'))
Python evaluates it like this:
- Dog('Rover') creates a new instance (object) of the Dog class, with 'Rover' passed to its constructor.
- type(...) then returns the type of that object.
So the result is the class itself
myList = [[1,2], ['apple'], [3,4,5]]
listLen = len(myList)
- myList is a list containing three sublists:
- [1, 2]
- ['apple']
- [3, 4, 5]
- When you call len(myList), Python counts the top-level elements of myList, not the items inside each sublist.
false = False
- False (capitalized) is a built-in Boolean constant.
- false (lowercase) is just a variable name you created. Python is case-sensitive, so false and False are completely different things
Tuples in Python are immutable — once created, you cannot add, remove, or change their elements.
In Python, while True: means “keep looping forever” because the condition after while is always True.
Here’s the breakdown:
- while is a loop that repeats as long as its condition is true.
- True is a Boolean constant that never changes.
- So while True: creates an infinite loop — the code inside will run endlessly until you manually stop it (like pressing Ctrl + C in a terminal) or break out of it with a break statement.
sepal(萼片): a part of a flower, like a leaf, that lies under and supports the petals (= the thin colored parts that make up the head of the flower). Each flower has a ring of sepals called a calyx.
petal(花瓣): a delicate colored part of a flower. The head of a flower is usually made up of several petals around a central part.
calyx(花萼): the ring of small green leaves (called sepals) that protect a flower before it opens
stamen(雄蕊): a small, thin male part in the middle of a flower that produces pollen and is made up of a stalk supporting an anther. The center of each flower usually has several stamens.
gynoecium(雌蕊): a small, thin male part in the middle of a flower that produces pollen and is made up of a stalk supporting an anther. The center of each flower usually has several stamens.
carpel(心皮): the part of a plant in which seeds are produced
On APS-C, the smaller sensor applies a crop factor (≈1.6× for Canon), so the lens behaves like a 29–216mm equivalent on full-frame. On a full-frame body, the same lens gives its true 18–135mm range.
On the Canon EOS 1500D, exposure compensation in Shutter Priority mode may appear ineffective because the camera automatically adjusts aperture to maintain correct exposure. If the lens reaches its aperture limits, compensation has no visible effect.
ISO Settings: If ISO is fixed, the camera has fewer options to adjust exposure. In Auto ISO, the camera may override compensation by adjusting ISO instead.
How to Make Exposure Compensation Work
- Use Aperture Priority (Av) or Program (P) Mode: These modes give the camera more flexibility to adjust shutter speed or aperture, so compensation is more effective.
- Enable Auto ISO: This allows the camera to adjust ISO when aperture limits are reached, making compensation visible. (咁點解唔自己調 ISO?)
solder: to join pieces of metal or wire with solder
toggle switch: an electrical switch that you move up and down or backwards and forwards
avid: very enthusiastic about something (often a hobby)
holy grail: a thing that you try very hard to find or achieve, but never will
add-on: a thing that is added to something else
hitch: a problem or difficulty that causes a short delay
mainframe: a large, powerful computer, usually the center of a network and shared by many users
pore over: to look at or read something very carefully
devise: to invent something new or a new way of doing something
conceive: to form an idea, a plan, etc. in your mind
viable: that can be done; that will be successful
tweak: to make slight changes to a machine, system, etc. to improve it
rocketry: the area of science which deals with rockets and with sending rockets into space; the use of rockets
Traf-O-Data was a 1970s business partnership formed by Bill Gates, Paul Allen, and Paul Gilbert to analyze raw traffic data from pneumatic road counters and create reports for traffic engineers. While only moderately successful and ultimately a failure, it was the precursor to Microsoft, providing essential experience with Intel 8008 microprocessors and data processing.
Micro Instrumentation and Telemetry Systems, Inc. (MITS), was an American electronics company founded in Albuquerque, New Mexico that began manufacturing electronic calculators in 1971 and personal computers in 1975.
proclamation: an official statement about something important that is made to the public; the act of making an official statement
clunky: (of technology) old-fashioned; not well designed
prototype: the first design of something from which other forms are copied or developed
In Python, there is no difference between using double quotes ("Samson") and single quotes ('Samson') when defining a string. Both represent the same type of string object.
print("Samson") # Output: Samson
print('Samson') # Output: Samson
In Python, __init__ is a special method used in classes. It’s often called the constructor, because it runs automatically whenever you create a new object (an instance) from that class.
In Python, class names are typically written with a capitalized first letter.
Class: A blueprint or template. It defines what attributes (data) and methods (behavior) its objects will have.
Object: A specific instance created from that class. Each object has its own data but follows the structure defined by the class.
machine: a piece of equipment with many parts that work together to do a particular task. The power used to work a machine may be electricity, steam, gas, etc. or human power.
mechanics [uncountable] the science of movement and force
mechanism: a method or a system for achieving something
country in southern Asia bordering the Arabian Sea; originally comprising two parts—West Pakistan (now Pakistan) and East Pakistan (now Bangladesh)—separated by about 1000 miles (1600 kilometers) of northern India; a dominion 1947–56, an Islamic republic since 1956, and a member of the Commonwealth of Nations 1956–72; formed from parts of former British India; capital Islamabad area 307,374 square miles (796,095 square kilometers), population 207,863,000
www.merriam-webster.com/dictionary
巴勒斯坦
Palestine
Palestine, region of Southwest Asia along the eastern Mediterranean, generally regarded as consisting of the southern coastal area between Egypt, where Asia meets Africa, and Tyre, which in ancient times was the most prominent of the Phoenician city-states.
- Runs the current cell and moves to the next one.
- Equivalent to executing code in that cell.
- VS Code (with Python extension)
- By default, it can send selected code to the terminal or Python Interactive window.
- Sometimes it runs code in the terminal instead of the interactive window, depending on your settings.
- You can customize this in Keyboard Shortcuts by mapping Shift + Enter to Python: Run Selection/Line in Python Interactive Window.
In Python, the keyword def is used to define a function. Functions are reusable blocks of code that perform a specific task when called
In Python, the return statement is used inside a function to send a value back to the caller. It’s one of the most important ways to control the flow of data in your program.
Examples
Returning a value:
def square(n):
return n * n
result = square(4)
print(result) # Output: 16
append something (to something) to add something to the end of a piece of writing
def greet(name):
print("Hello,", name)
x = greet("Samson")
print(x) # Output: None
- Use return when you want your function to produce a value that can be used later.
- Skip return when your function’s job is just to perform an action (like printing or updating a file)
- With return → function is like a vending machine (you get something back).
- Without return → function is like a loudspeaker (it just outputs sound, but you don’t get a reusable object).