let $mathcal{r}$ be a commutative ring with identity, let $a$ and $b$ be two $mathcal{r}$-algebras and $varphi:blongrightarrow a$ be an $mathcal{r}$-additive algebra homomorphism. we introduce a new algebra $atimes_varphi b$, and give some basic properties of this algebra. generalized $2$-cocycle derivations on $atimes_varphi b$ are studied. accordingly, $atimes_varphi b$ is considered from th...