If a function is bounded almost everywhere, then globally bounded? Let $f: \mathbb{R} \to \mathbb{R}$ be a function that is bounded almost everywhere. Then is it bounded? 
If so, what is the main idea or method in tis proof, and can I generalize this for upto what?

Let $f$ map the irrationals to $0$ and the rationals to themselves. Since the rational numbers form a countable set, it has measure $0$. Then f is bounded almost everywhere but is not bounded.
More generally, on any infinite set, one can define a function that is bounded almost everywhere but is not bounded. Simply take a countable subset $x_1,x_2,x_3,\ldots$ and send $x_i$ to $i$ and other elements to $0$.
