Tuesday, June 24, 2008

serialversionUID generator for intellij

IntelliJ IDEA « Just Five Minutes
Cleaning up code I launched serialver to create serialVersionUIDs for some serializable classes. Wondering why IntelliJ IDEA did not seem to provide a generator for UIDs, I browsed the code inspection settings and it turns out that there actually is one - but it is disabled by default. To use it, go to

Settings -> Errors -> Serialization issues -> Serializable class without ’serialVersionUID’

When editing a Serializable class without a serialVersionUID field set, IDEA now displays a warning and provides a Quickfix (Alt+Enter) to generate one.

props to this guy!

Thursday, June 19, 2008

chinese is the new black

China Journal : In South Africa, Chinese is the New Black
In South Africa, Chinese is the New Black

A high court in South Africa ruled on Wednesday that Chinese-South Africans will be reclassified as “black,” a term that includes black Africans, Indians and others who were subject to discrimination under apartheid. As a result of this ruling, ethnically Chinese citizens will be able to benefit from government affirmative action policies aimed at undoing the effects of apartheid.

In 2006, the Chinese Association of South Africa sued the government, claiming that its members were being discriminated against because they were being treated as whites and thus failed to qualify for business contracts and job promotions reserved for victims of apartheid. The association successfully argued that, since Chinese-South Africans had been treated unequally under apartheid, they should be reclassified in order to redress wrongs of the past.

Wednesday, June 18, 2008

how to control your anger

Soccer Parents: Why They Rage
Jay Goldstein’s tips for not becoming one of those parents

When you feel your anger rising at something you see on the field:

* Controlled deep breathing exercises (inhale for 4 seconds and exhale for 8 seconds)
* Suck on a lollipop (Occupies your mouth and reminds you that you’re there for your child.)
* Visualize a relaxing experience like floating on water.
* Repeat a calm word or phrase.
* Do yoga-like muscle stretches.
* Replace angry thoughts with rational ones, such as “This is my child’s game, not mine,” or “Mistakes are opportunities to learn.”
* Don’t say the first thing that comes into your head. Count to 10 and think about possible responses.
* If you did not see the game, first ask your child “How did you play?” rather than “Did you win?”
* Praise your child’s effort, then, maybe, comment on the results.
* Use humor, but avoid harsh or sarcastic humor. Picture the referee wearing Elton John glasses.

Thursday, June 12, 2008

who is the mommy!

Cover Story - When Mom and Dad Share It All - Adventures in Equal Parenting - Lisa Belkin - NYTimes.com
Harlyn Aizley, mother of a 6-year-old daughter, describes the moment that her then-partner, Faith Soloway, first took their newborn in her arms in the delivery room. “Just moments after I gave birth,” Aizley writes in the anthology “Confessions of the Other Mother: Nonbiological Lesbian Moms Tell All,” “Faith scooped up the baby, cooed into her squishy newborn face and said: ‘Hello there. I’m your mommy.’ I wanted to kill her. Faith, that is. I wanted to be Mommy, the only Mommy.”

Thursday, June 05, 2008

pick up your pooo

Scoop It Up or Pay - On Patrol With Enforcers of the Dog Law - NYTimes.com
He could see all the telltale signs of negligent intent: the irritated expression, the hurried pace, the absence of a plastic bag in the pocket. “People who pick up have time,” he said earlier. “You can look at some people right away and say, ‘This person is not going to pick up after their dog.’ ”