The only way to determine the gender of a chick (until very recently!) is a visual check done after the animal is born.
Reply on news.ycombinator.com