base for the topology of baire space N^N

I'm having some problems finding the topology for the Baire space $\displaystyle \mathbb{N}^{\mathbb{N}}$.

This is what I've found in one book:

http://i50.tinypic.com/2qtwr6f.jpg,

and this is what I've found in another one:

http://i46.tinypic.com/29mr5zr.jpg.

My question is, are these two topologies the same?

That is, are the sets $\displaystyle U_{n_1, \ldots, n_m}$ and the sets $\displaystyle N_{\sigma}$ the same, for $\displaystyle \sigma=n_1, \ldots, n_m$?

Thank you.