Is it permissible for one to masturbate in order not to commit fornication?
This is called committing the milder of the two evils such as eating a carcass in fear of death, and this happens when committing fornication is very likely to occur.
Talking to one's fiancée in Ramadan with romantic talk may lead to arousal, and if pre-ejaculate fluid (Madhy) is discharged as a result, it does not break the fast. However, it is advised to avoid actions that provoke desire and lead to this outcome. If semen (Mani) is discharged as a result, it does break the fast.
The discharge of Madhy doesn't invalidate one's fasting but it invalidates the ablution and his clothes must be washed because they are impure in this case. As for Mani, it breaks one's fast and making up invalidataed is obligatory, beside; a Muslim suitor should abstain from these matters during Ramadan and not to degrade the holy month to this extent. And Allah Knows Best.
What is the ruling on working for a company that manufactures cigarettes?
All Perfect Praise is due to Allah, The Lord of The Worlds
Working for a company that manufactures cigarettes is forbidden because smoking itself is forbidden, so its production, selling and circulation are forbidden as a result since they aid in committing sin, and whoever aids in that is like the sinner himself. And Allah Knows Best.
How is night prayer offered?
Night prayer is offering voluntary prayer after Maghrib and before Fajr (Dawn). As for Tahajjud, it is offering voluntary prayer at night after waking up voluntarily, and for Allah`s sake as He Says (What means): "And pray in the small watches of the morning: (it would be) an additional prayer (or spiritual profit) for thee: soon will thy Lord raise thee to a Station of Praise and Glory!" [Al-Isra`/79]. Offering Tahajjud is better than offering voluntary prayer before going to bed.