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.’ ”

Monday, May 26, 2008

When upgrading Wordpress from 2.3 to 2.5 make sure you change your permalink.

My Life and Times › Permalink Settings — WordPress
Customize Permalink Structure

By default WordPress uses web URLs which have question marks and lots of numbers in them, however WordPress offers you the ability to create a custom URL structure for your permalinks and archives. This can improve the aesthetics, usability, and forward-compatibility of your links. A number of tags are available, and here are some examples to get you started.

Friday, May 23, 2008

External Drive NTFS for Macs!

How-to: Read and Write NTFS Windows Partition on Mac OS X - Stepcase Lifehack
How-to: Read and Write NTFS Windows Partition on Mac OS X

Updated: from MacFuse 0.1.0 Beta 6 to 0.1.7

Users running Mac OS X with Bootcamp Windows may struggle to modify or update your documents and files in the Windows partition - usually it is in NTFS File System format which you can read the drive natively in Mac OS X but not write onto it.

Recently Amit Singh, a Google employee, releases a implementation called MacFUSE which makes it possible to use any FUSE (File-system in USErspace) file systems in Mac. And the most useful FUSE is the NTFS-3G Read/Write Driver, which ables system to load NTFS with read and write capability. This is truly the greatest news for dual booting Mac OS X and Windows XP or Vista.

Without going into great deal of technical details and compilation of the source code, I found out users around Internet already came up with binary version (in DMG) of MacFUSE and ntfs-3g, ready to install (credit to ShadowOfGed at AppleNova). Here are the instructions on how to use MacFUSE and NTFS-3G. It does require a little of administration skills as it involves running commands in the Terminal.

MacFUSE/NTFS-3G works for me, but as this is an experimental software, so back up your data, and try it at your own risk.

* Download and Install MacFuse 0.1.7 DMG


This works great! I use it for my laptop to connect to my image drive!

How to scale twitter

Scaling Twitter redux--the ESB should be your best friend | Negative Approach - CNET News.com
Scaling Twitter redux--the ESB should be your best friend
Posted by Dave Rosenberg 1 comment

As we Twitt-iots sit around bemoaning the fact that we can't send each other useless junk on a flaky service, I thought I would take this chance to address the notion that this message-scaling problem is new.

It's not. It's very common, and it can be solved.

Scaling a messaging platform is why IBM sells a boatload of MQ series, why the AMQP protocol was developed, and why JMS is nearly ubiquitous. Pretty much every large enterprise has similar scale issues related to messaging, especially in financial services. But they don't have downtime, and if they did as frequently as Twitter, the people behind them would all get fired.

This is a topic I actually know something about. (Disclosure: my company develops an open-source enterprise service bus, or ESB, called Mule.) All of our use cases involve some kind of complicated messaging architecture, whether it be Web-service based, publish and subscribe, one to many, direct connection, etc. And most deal with data transformations and a vast array of protocols.

In my view, what Twitter needs is to adopt a bus-type of architecture that separates the transport from the application and uses a middleman to process the transactions. This is a very common enterprise scenario that needs to be applied. This is what an ESB does.



publish and subscribe!

Sars Information

Damn Interesting
The Heroes of SARS
Written by Matt Castle on May 23rd, 2008 at 1:00 am

On 21 February 2003, a physician in Hong Kong was feeling particularly unwell. He must have had an inkling that something serious was amiss, for his symptoms closely matched those of a number of patients he had treated in recent weeks: fever, aching muscles, headache, a dry cough, and shortness of breath. An alarmingly high proportion of these people had become critically ill, with inflamed, fluid-saturated lungs. Breathing was rendered somewhat difficult, and death frequently followed.

Wednesday, May 21, 2008

hi sir

hi sir this is a test blog! sorry i am testing my software

Monday, February 18, 2008




How many month's is each belly?
Posted by Picasa

Just like when i finished colleged!!


Degree no job guarantee in China - Los Angeles Times
WUHAN, CHINA -- Sun Yuanping skipped her college graduation ceremony for a job interview. It was an all-day affair and the bookish 22-year-old felt good about it. After all, she has degrees in marketing and botany from a well-regarded school in this central Chinese city, and she ranked in the top fifth of her class.

Sun never heard back from that prospective employer nor from dozens of other companies and government agencies where she has applied since she graduated in June. Recently, after tearful self-reflection and long nights tossing in bed, she pared down her expectations and began sending her resume to small businesses offering salaries as low as $140 a month, a third of what she had hoped to make.

As each jobless day passes and Sun lives off a $100 monthly allowance from her parents, she feels more and more guilty.


Saturday, February 16, 2008

Free Business Book Online!


Free business book is Web sensation - Yahoo! News
NEW YORK - The Oprah touch doesn't just work for traditional books. More than 1 million copies of Suze Orman's "Women & Money" were downloaded after the announcement last week on Winfrey's television show that the e-book edition would be available for free on her Web site, http://www.oprah.com, for a period of 33 hours.
ADVERTISEMENT

"I believe `Women & Money' is the most important book I've ever written," Orman said in a statement released Saturday by Winfrey. "So this was not about getting people to buy the book, but getting them to read it, and that was the intention behind this offer."

The download offer "has built excitement for Suze's book across all formats," Julie Grau, the book's publisher, said in a statement.


Monday, January 28, 2008

Go Rate Cut!


Stocks Rise on Rate Cut Hopes: Financial News - Yahoo! Finance
"Anticipation of another Fed rate cut is the main magnet in the market today," said Alfred E. Goldman, chief market strategist at A.G. Edwards & Sons Inc.

He was skeptical the gains would stick -- anything the Fed decides after its two-day meeting lets out Wednesday could be met with disappointment. If the rate cut is small or nonexistent, the market will likely be unsatisfied; if the cut is wide, the market may worry the economy is worse than it thought.

"If we do rally into a Fed rate cut, we have a lose-lose situation," Goldman said.

And traders who bet on the Fed's next move were pricing in a more than 80 percent chance of a half-point cut.

Living in the great depression

Shesh. reading all these articles sure puts things in perspective!

Money tales from the Great Depression

 

"FDR declared a bank holiday after he first became president. When it was over, the bank that my parents had some savings in failed Ñ it was gone. They lost all their savings Ñ about $1,000. Even as a young kid, I could understand this was a serious thing.

"Then my parents started having trouble paying their mortgage. Congress had passed a law setting up the HOLC (the Home Owners' Loan Corporation). You had to apply to them, and I remember my mother going down every day to the office of the HOLC to try to get them to give us relief Ñ to lower the payments on the mortgage Ñ similar to what they're talking about today, but for different reasons. One day my mother came home and said, 'They approved our application.' She broke down and said, 'We're not going to lose our house.' That was 1934; I'm going on 87. I was a young kid then, but I can still remember it clearly.

Great Depression



Money tales from the Great Depression
"FDR declared a bank holiday after he first became president. When it was over, the bank that my parents had some savings in failed — it was gone. They lost all their savings — about $1,000. Even as a young kid, I could understand this was a serious thing.

"Then my parents started having trouble paying their mortgage. Congress had passed a law setting up the HOLC (the Home Owners' Loan Corporation). You had to apply to them, and I remember my mother going down every day to the office of the HOLC to try to get them to give us relief — to lower the payments on the mortgage — similar to what they're talking about today, but for different reasons. One day my mother came home and said, 'They approved our application.' She broke down and said, 'We're not going to lose our house.' That was 1934; I'm going on 87. I was a young kid then, but I can still remember it clearly.

Monday, January 21, 2008

video game testing....



News: Testing Video Games Can't Possibly Be Harder Than an Afternoon With Xbox, Right? (Seattle Weekly)
The end of my first full day of testing is also the end of the first time I've played video games for eight straight hours, by far my longest-ever stretch. The last two hours, I feel nauseous. Severely so. When I get up to leave, I nearly fall over from dizziness and a massive headache. Was it the recycled air? The Mountain Dew fumes? I get up and use the women's rest room, which is empty and spotless. Later that night, I diagnose my condition as simulator sickness—the clear sign of a rookie.

Tuesday, January 15, 2008

macbook air


The Unofficial Apple Weblog (TUAW)
Apple stunned a nation, or at least those who haven't been paying attention to the rumors, today with the unveiling of a very thin new MacBook called the MacBook Air. 'The world's thinnest notebooks' starts at $1799 and comes with a 13.3 inch display (LED), a full keyboard, built-in 802.11n WiFi, Bluetooth, built-in iSight, and a multitouch trackpad that lets you use gestures to control a number of actions on the MacBook Air. Some other stats include:

* 1.6 GHz or 1.8 GHz Intel Core 2 Duo processor with 4MB L2 cache
* 2GB of RAM
* 80GB 1.8-inch hard drive (with optional 64 gig solid state drive
* 1 USB 2.0 port

Friday, January 11, 2008

How to Stream Divx and Mpeg4 to PS3 and Xbox 360

Taken from this thread this link.

0. Make sure you install windows media 11 first for XP.

1. Click on the arrow under the Library ( from Windows media Player)
2. Click More Options
3. Library
4. Configure Sharing
5. Check Share my Media
6. You should see under share my media an icon ( Unknow device) that's your PS3
7. Click on it and allow.
then click ok.
that's all
By LoveBeers7

1) Download the Combined Community Codec Pack
http://www.cccp-project.net/download.php?type=cccp

2) Download the proper WMP11 .mp4 registry key
http://www.sendspace.com/file/ud5r3f
unzip and double click to install

3) In WMP11 Library add your .mp4 folder or Dix Folder

I did this for my ps3! It works great! I now get divx shows straight off bittorrent and watch them on my ps3.

Mobile Google Docs Review On Blackberry 8830

This is a terrible application, I don't know why they even included it as part of the google apps for the blackberry 8830. I was expecting a actual mobile application that displays your current google documents, instead it launches the WAP browser which takes you to the mobile site. The mobile site shows wap versons of your documents, but you lose all your formatting. You might as well email the document to yourself instead.