Just as it's forbidden to cook from one day of Yom Tov (festival day) to the second day of Yom Tov, so too it's asur (forbidden) for a person to cook or do preparations from the first day of Rosh Hashanah to the second day of Rosh Hashanah.
One could have thought that since we look at the two days of Rosh Hashanah as Kedushah, as one long holy day, one could have thought that maybe it's considered one day, so I could prepare from one to the other because it's looked at as one day. We only use that concept to be stringent. We don't use that concept to be lenient. And since today we know that the first day is really the proper day, it's prohibited for a person to cook or do preparations from the first day of Rosh Hashanah to the second.
But Hacham Ovadia brings an interesting trick that a person could use. On the first day of Rosh Hashanah, if they have a hot plate that goes on via a timer, they could put their food on the hot plate while the timer is off, while the hot plate is off. If later the timer kicks in and heats up the food, it's acceptable because you're not actively doing the preparation: you're putting it on when it wasn't hot, and it's only happening via causation. So that's not an issue of preparation, and therefore he says it's permissible. So if one prepares their timer in advance, they'd be able to put food onto a cold hot plate while it's still the afternoon of the first day, and then the timer turns on, and that would be able to heat it up for the second night.

