Friday, December 23, 2011

Don't terrify your kids in Christmas

Kids are afraid of Santa.

You get in lines to get your kids scared by taking them to take picture with a fictitious character? how silly is that. Besides Santa, kids are also afraid of big dolls their size or strangers (don't bring them close to your rarely-ever-visit friend)

Ok, when your kid gets older that won't be a problem anymore.

Merry Christmas to those who read/subscribe to my blog.

Thursday, December 22, 2011

2012 predictions

Election 2012
With no obviously-better-choice-than-the-incumbent Republican candidate, I predict Obama will get re-elected!

Tech
Android and iPhone will continue to battle with no winner needed. They can co-exist (like Apple and Microsoft coexist in desktop for decades). In the phone market, I am afraid Microsoft phones will be like Palm Pre. Microsoft Windows and Windows desktops will completely dead if people can do everything with their Android/IPads. But that day isn't here yet! The pads need a file system (like c:\mystuff) and an Office Suite at least. Otherwise pads will just be a portable browser and that can just run little apps.

World Events
Now that's hard to predict. Conflicts will continue and I just hope US is not going into another war. All these people worrying about China dominating militarily will prove to be like the ancient Chinese story of a man scaring of the sky collapse onto him. I hope to see: the new young leader of North Korea will learn a thing or two about its neighbors and at least reduce the famine in that country.

Higgs Boson
I do NOT predict the Higgs Boson be found in 2012 despite huge expensive machines. It does not seem to be easy (otherwise people found it long ago). All that to explain a fairly basic question, "why do things have mass".

2012 is not the end
I predict there will be 2013, despite the Mayan doomsday prophecy.

Thursday, December 15, 2011

End of War

The end of the Iraqi war is finally here. This is an excellent news coverage.

So our nation is tricked into war for Weapons of Mass Destruction. And the guy who says that just get away with that? Imagine this, I say FIRE and call 911 but there isn't fire. I probably will get charged for this misdemeanor, right?

For Americans, the ceremony on Thursday marked an uneasy moment of closure, with no clear sense of what has been won and lost. As of last Friday, the war had claimed 4,487 American lives, with another 32,226 Americans wounded in action, according to Pentagon statistics.

It was wrong to go to this war. Wrong for the thousands of Americans to lose their lives, and wrong for the many more civilians who lost their lives too. It is billions of dollars lost too.

This war ended in confusion: there is no clear sense of what has been won and lost.

Towers of Hanoi

News says, there are fires in some office tower of Hanoi. Details here.

I hope everyone is ok... I wonder if the news reporter has a computer science background. Why not simply call it office building?

The Towers of Hanoi is a famous mathematics/computer puzzle that every computer science student should know about.

Start with 3 pegs and a bunch of disks of various size. The goal is to move them from peg 1 to peg 3. The rules are simple: you can only one disk at a time and you cannot put a big disk on top of a small disk.

Now, write a program to solve this.

This can be solved ultra elegantly with recursion (and other methods), and I've seen that in high school.

If you interview an "architect" and he has no clue what it is immediately show him the door.

Monday, December 12, 2011

Book Donation

Yesterday I donated a big box of old books to a dropbox outside of the supermarket. They cost hundreds of dollars. Some are computer books for some obsolete technology. Some are college textbooks that are no longer useful.

Donating them is better than tossing them to the garbage. Some people may still find interesting stuff in there. The dropbox says if nobody wants them they will be recycled.

Recycle that paper! That is the #1 landfill item that can be recycled. I hope my books' next reincarnation will be a best seller.

Computer books used to be big business. Alas things are changing so fast. By the time a book is made it is already outdated. Perhaps a subscription service is a great idea.

I even tossed a draft copy of my book to it. Hope someone will find it interesting.

Tuesday, December 6, 2011

Kung Fu pays off

A robber got beaten up bad by a martial art expert. See story here.

That's exactly the purpose of martial art: to fend off villains.

However, I don't recommend martial art experts try to fight someone with a gun.

Of course, someone will misuse martial arts to be villains themselves, and perhaps kill his own master, and the good big brother must revenge in tears. Now that's a classic kung fu story scheme. This storyline I never get tired of.

Monday, December 5, 2011

Earth 2.0

This is exciting discovery... an earth-like planet. See here.

Ooh it sounds like a warm weather, roomy place: "2.4 times the size of Earth, and has a temperature of about 22C."

However, it is 600 lightyears away.

I am not even sure if human can ever get on Mars, our neighbor planet (and it is ok not to go there, that $ has better use on earth).

We aren't going nowhere. It is merely science fiction to migrate to the Moon or Mars. It is too harsh to live there, and too far to go even if you find a new place lightyears away... unless you got some sort of warp engine (which is just science fiction).

We are grounded on earth. Please love the Earth. Recycle that can. Make less waste. Don't play with nuclear weapons.

Wednesday, November 30, 2011

"Chok"

If you watch any recent Hong Kong made TV show, you are likely to see the word "Chok", spelled in English.

It is uncomfortable to see a supposedly Chinese word written out as English.

Ah, its origin is 擢. See here.

Its current use is non-standard and low class. Yuck.

Tuesday, November 29, 2011

Microsoft will fall apart?

Article says Microsoft's business could collapse. See article here.

Ok, the logic is basically the following: IPad outsells the PC, and Windows phone is not going to be hot, developers leaving the .NET platform, Office cash cow will no longer be relevant and boom their whole business collapse.

I agree with some of the points but I do not think Microsoft will just collapse. Their stuff are too deeply rooted. There are plenty of folks running Windows XP even it is a decade+ old.

Microsoft is formidable, it showed it can knock out leaders. In the old days... Boom! They knocked WordPerfect out. Boom! They knock Netscape out.

Sometimes even if their products are mediocre they still win. Early versions of Visual C++ did not even have try/catch from standard C++. (Details here) MFC was horrible yet people embraced it. Hmm, was there really good alternatives? Delphi was way way better than Visual Basic and now it is as relevant as the ancient Greek god it references, and Visual Basic reincarnated itself to an inferior looking C#. Nope, C# does not (and will not ever) beat Java.

But they do not always knock the leader out successfully. Do you know someone with Zune player? (I don't)

But they can be a mighty contender. The XBOX knocked quite some marketshare out of Sony and Nintendo in gaming world.

If Microsoft continues to innovate, yes people will still pay.

IPad is not going to dominate the world of computing. It is good for casual web browsing, casual gaming, even movie viewing, but not for heavy duty use (like programming or serious gaming)! I cannot imagine myself able to have a great time with a first person shooter on the IPad or play a version of Street Fighter on it. The IPad does not even get as good wifi signal as my cheap PC laptop and my Android phone. It is overrated!

I think Windows 8 will be the MOST important release for Microsoft. It better be way better than IPad or Android for Microsoft/Nokia to stand a chance. However, given all that tiles that I see so far in previews... I have failed to share enthusiasm.

In order for someone to switch, you need to be BETTER. I switched from yahoo map to google map because I like the ajax feature. I don't bother to use Bing because google map serves me well. Are Microsoft phones better than the Android/Iphone that people will dump them and go to a Windows phone?

I do NOT believe Microsoft will fold altogether, but it will shrink to smaller.
I do NOT believe the PC will go away altogether either. The IPad is not that capable to do so.

Tuesday, November 22, 2011

Super committee failure

Headlines all over the place says the "super committee" has failed. Some details here. And this is causing the Dow Jones to drop.

Both sides stand firm... this is a deadlock. Imagine this, get 6 Coke fans and get 6 Pepsi fans in the room to vote for the best tasting cola. You are not going to get results.

Waita minute, did the constitution give power to the Vice President for tie-breaking? Ok this is not exactly a 50-50 senate vote. I am not so sure if the constitution provides the answer in case Congress can't agree on things. How much $ do we pay these congressmen just for debating? That $ can be used to reduce the deficit a bit I bet.

Look people, country first (is that some candidate's slogan)? Gotta do BOTH of collecting more money and spending less.

Imagine you have a big credit card bill, how do you pay for it? You need to be BOTH making more $ and spending less. No debate needed.

To solve the gridlock, how about get another person in the committee... a RANDOM citizen. Like jury duty.

Wednesday, November 16, 2011

Failed restaurants at same spot

There is a donut restaurant in my neighborhood that ran out of business. Although it has good ratings on yelp but it still didn't survive for too long. I wish they post a sign saying "thank you customers". I supported your business!

In a previous incarnation, it was a Mexican restaurant... before that it was an excellent Chinese restaurant. Unfortunately the fate are all the same.

Restaurants need to be in a place where a lot of people walk by, like a business district, or close to some shopping area. That neighborhood isn't it. Even if you make 70 cent profit on that $1 donuts if no one is buying you are going to run out of business. But alas, the rent of a good location must be very expensive.

A successful restaurant needs excellent decorations (tons of money to be poured in first) and good food and service. It isn't so easy.

Friday, November 11, 2011

HTML5 Canvas in Action!

f(x) = (For trig functions, use Math.sin, Math.cos, Math.tan)
Your browser does not support the canvas element.

Monday, November 7, 2011

Chinese Calendar

It is the 100th anniversary of the Xinhai Revolution. Yes, xinhai 辛亥 is the year.

Every Chinese ought to know a thing or two about this important history. But alas, many don't. Come on people, at least read a bit about it. I will smack the next guy who says, "what's the use of knowing that". Yes there isn't a lot of practical use. The mentally retarded don't know that information either and they live a happy lives too.

Rather than discussing the history, which I know little (better than none), I'd like to discuss the ancient calendar.

In ancient China, there isn't BC/AD years like the rest of the world use. They cycle 60 names for their years, using 10 "Heavenly Stems" and 12 "Earthly Branches". See here for glorious details. And those have minimal Chinese education know that "花甲" or "甲子" means 60, a cycle.

For DECADES I didn't understand. Waita minute, 10 and 12... Should the cycle be 120?

The way they increment years is strange 甲子, then 乙丑. Both heavily stems and earthly branches increment by 1. I never bother to figure out when they use up the tenth value of the stems.

Here is the complete list...

甲子 乙丑 丙寅 丁卯 戊辰 己巳 庚午 辛未 壬申 癸酉
甲戌 乙亥 丙子 丁丑 戊寅 己卯 庚辰 辛巳 壬午 癸未
甲申 乙酉 丙戌 丁亥 戊子 己丑 庚寅 辛卯 壬辰 癸巳
甲午 乙未 丙申 丁酉 戊戌 己亥 庚子 辛丑 壬寅 癸卯
甲辰 乙巳 丙午 丁未 戊申 己酉 庚戌 辛亥 壬子 癸丑
甲寅 乙卯 丙辰 丁巳 戊午 己未 庚申 辛酉 壬戌 癸亥

The world is a better place by calling this rather obscure naming system as obsolete.

Friday, November 4, 2011

On Job Creation

Someone needs to be bold to start new companies, expand existing companies to create jobs.

Sometimes, it starts with a Big Hairy Audacious Goal, such as Microsoft's "A computer on every desk and in every home" in the old days. Ok, it certainly needs a new BHAG now, that's another story.

Now, a good BHAG can create new business and solve the unemployment in the short term, and have tremendous big impact in the long term.

I have a couple grand BHAG ideas.

1. Solar panels on every rooftop.
2. Americans students do better.

You know solar panels can tap on the sun's enormous amount of energy to generate some electricity on your own. Yes I know it is expensive to set up but it will save money in the long run. (Ok I don't know how it will survive a foot of snow in winter though) Look at how many homes to install, now that's jobs jobs jobs.

About the depressing American student performances, yes we can do better. Yes we can! We test and test students and report they are losers. No one ever go over tests to tell them why they get problems wrong. Come on students, it takes effort to learn. There should be a lot more after-school training centers to help students stay off street and learn something.

There should be: a national effort to promote learning through a TV channel, broadcast good education programs 24x7. And I am talking QUALITY programs, not adults in 40s learning fractions. (Now that's jobs for those screen writers and film workers not working in Hollywood).

To start a business, you need to be psychologically bold, willing to take risks. You need some money. An more importantly is, you need capable friends with similar vision. Without these? you will continuously look for a job in the diminishing job market.

There should be more people with BHAG. There's gotta be more Steve Jobs out there.

Waita minute, even a smaller goal will do, how about a goal of making the BEST burgers or wonton soup? Start hiring!

Thursday, November 3, 2011

Google Translate now wants $

Look! Google Translate API now wants money. It used to be free!

If translate.google.com is free, why is the API not free?

There used to be a google dictionary that offers definition, now it is not there anymore! Ok, I'll use the Wiki dictionary instead: http://en.wiktionary.org/wiki/hello.

My VocabList app needs to be tossed out because it relied on these. Webservices, clouds? I hope you're not betting your lifesavings on it.

Wednesday, November 2, 2011

Starbucks and Create Jobs

I learned about Create Jobs For USA from Starbucks.

Jobs Jobs Jobs. There are too few jobs out there and you need job to get insurance. Without insurance you go instant bankrupt if you need any medical care. (now that's an issue! healthcare is too expensive!!) Unless the president hires you, he can't directly solve your unemployment issue, so someone gotta start somewhere.

This Create Jobs For USA... seems to work like helping the poorest people in Africa by offering them loans so they can help themselves. Yikes, soon we may be needing medications from World Vision because we can't afford the ultra expensive healthcare here.

I admire Starbucks' effort to do this.

Besides unemployment numbers, one other figure depresses me, and that's the low performances of American students.

TO BE CONTINUED...

Monday, October 31, 2011

Northwestern Revisited

It is awesome experience to bring your child back to your alma mater.

20 years ago I was there as a freshman. If things are to change many times in a decade, let's double that amount of changes for 2 decades. There are quite a few new buildings made within the 20 years... the main parking lot is unpleasantly chopped to make place for one... and there are few more buildings (some are architecturally not so pleasant) are blocking some once-clear views. Those building climbing plants have gone out of control, devouring a lot more percentages of the surface area of some buildings.

Norris Student Center was my favorite hangout place. I walked by the lagoon, studied there, and banged on the video games when I get bored. What happened to the grass near the lagoon? It seems like no one mows that weed that is at least 3 feet high! Inside the Norris Center... oh my gosh, what happened to the nice furniture? It is now replaced by cheap cheap plastic chairs. What happened to the neon light "1999"? At 1990, 1999 seemed to be a very distant future.

"Look, daddy attended school here" is not so comprehensible to my son now. Here, proudly wear this toddler T-shirt bought at the student center.

Thursday, October 27, 2011

Write Your Alderman

Dear Alderman:

Someone encouraged me to write you to show some concern about some budget cuts for the public library.
Details here.

Sorry, I live under the rock here I don't even know who you are.

I found a list of alderman here but I am not even sure what ward I am in.

I went to the city's website that is supposed to a map here but all I see is a blank page. Now it isn't that difficult to program google maps perhaps you should consider hiring me for fixing it first.

-A Concerned Citizen

Tuesday, October 18, 2011

I am saddened about China

A two-year old got hit-and-run in China, twice, a dozen+ people ignored.
Details here

The article says "Internet users have flooded microblogs decrying the apathy of the people who left her for dead." Ok, I am going to make that number++

This is OUTRAGEOUS.

Add that to the list of fake milk powder, poor railroad accident rescue efforts and other scandals.

China has become a world of me-me-me-first. Good Samaritan laws should be set NOW. Oh, good Samaritans are blamed and fined? Now that's outrageous. At least call the police, ok?

Throw stones at those who ignored the poor kid like they do to each other during the Cultural Revolution!

The prime minister or the president ought to say a thing or two about this incident.

China still has a LOT to work on despite its economic growth.






Monday, October 17, 2011

Cancer Awareness Month

You may have seen pink ribbons every where. Yes it is Breast Cancer Awareness Month.
You have succeeded in making me aware.

But look, this is even on Parking Meters!


Is the city donating some money on every quarter I put in that thing? Don't put a ribbon there if the city is not going to.

The parking meters eat more money than laundry machines during my college years or video games I played. Ouch.

Yes, breast cancer is horrible and we are well aware. But other cancers deserve some attention too.

Apple should donate some money to pancreatic cancer (or all forms of cancer) research on every new iPhone, iPad, iWhatever it sells. That will generate a ton of money.

But yikes, are the money put in good use? or poured into the fat pocket of drug companies?

Tuesday, October 11, 2011

Occupy Wall Street

Alas, a lot of people are suffering, and are occupying the Wall Street.

See some stories they have to tell here.

People have lost jobs, can't find new work, can't afford the house they have,  can't pay the bills, etc. Everyone has their story to tell.


I question any use of occupying Wall Street... just what do you want them to do? Empty their wallets and distribute their fortunes to you?

Many folks are college grads terrified by not able to find work with loans on their back. Yes I see your concern.  Many now question whether going to college is worth it. Let me tell you this: if you have a chance to go college and you don't go your chance of getting work is even more grim. Go to college to learn something. Go to a vocation school (such as fixing air conditioners or CTA tracks) if a job is all you have in mind. I think education should not be so focus on job.

It is perhaps more effective to occupy college tuition collection departments to demand lower tuition or ditch it for public universities?

It is perhaps more effective to occupy Washington(!) to lower that income tax.


Rather than begging for jobs that are so hard to find, sometimes I think there should be more spawning new business. Start with humble hotdog stands, burger shops, chop suey house... how about barbershop, grocery store?


For those who can write a program or two, show what you can do for $20 an hour while some shops charge $100+ (and pay programmers overseas $10).  Yes, I know those silly people won't listen to you.

Politicians: if you can meet some demands you win 99% of votes. Even the most powerful rich people can only give you one vote each.

So, 99%... go ahead, vent your frustration, but please not for too long. Actively seek your next possible moves. Good luck.

Friday, October 7, 2011

Goodbye Steve Jobs

The world saddened to learn the news that Steve Jobs passed away at 56. He revolutionized the world in many ways. Recent Apple products set the world on fire.
Pancrea cancer grabbed his life so young. It has also taken the life of Randy Pausch, the inspiring professor who has given the Last Lecture.

Most people if not all tends to like Steve Jobs. On the other hand, Bill Gates also revolutionized the world in many ways, yet Gates is probably not as popular. I guess people are just jealous of him being the richest man in the world selling Window$.

I think Apple's success has a lot to do with its uniqueness.

Apple's one button simple interface has to do with Steve Jobs' buddhist religion, which defines Apple's unique minimalist approach.
Jobs decides to use metals or great colors while the rest of world uses beige (or black) boxes for computers.

Yes, people judge anything by its covers! and by strategic advertising.

Not all Apple products were successful, however. Notably the Apple Newton. I never played with one myself, just how bad it was?

I am never a big Apple fan.

My biggest complain with Apple is its embracing of Objective C, acquired from its NeXt OS.

If Apple uses a more intuitive language such as Java, even C++, that will allow developers to have a easier time programming for the Mac products.

Apple won't play Flash. <period>. The world doesn't complain loud because people like Mac products so much and this is just a minor "shortcoming". Flash sites just have to give in. If you have an IPhone, you MUST use AT&T (or Verizon). I want freedom.

Everyone should try to learn a lesson or two from Steve Job's remarkable success story.

Here is one lesson. Even if you have a LOT of money and access to the best doctors, when the lord of death comes it is time to go.

Thanks to Steve Jobs for revolutionizing the world. Thanks to awesome engineers who make those gadgets possible.

Wednesday, October 5, 2011

Men in trouble

Look folks, men are in trouble.

The message coincides with many ideas of another book I read by James Dobson... men are in trouble. Many guys refuse to grow up and are so incapable. More men (20%) are not even working, distant from family. "Where are the decent men?"

Ok, here is my question: where are the decent women? Having a good education and job automatically make you "decent"?

I am sure there are thousands of decent men in the army, and we are sending them to Iraq and Afghanistan to risk their lives.

And the blame is on video games (as the picture show). Yes, too much video game is bad for you. However, some video games may be good for you. It develops your problem solving skills and hand-eye coordination, and it is good stress relief.

We may need to say to a number of our twenty-something men, "Get off the video games five hours a day, get yourself together, get a challenging job and get married." It's time for men to man up.


Sadly, those unman men are not going read anything to get enlightenment to become a man.

But yikes, where are the jobs?! No job => go right back into the video games.

Another blame is on movies. Is a movie about an upright man with kids interested in calculus going to win at the box office? Maybe. If the plot of the movie is about discovering the fundamental theorem of calculus. Ok, hollywood, go ahead, make such movie.

To fix men, one step is to fix the economy.

Tuesday, October 4, 2011

Music and Fractions

At a kids music lesson place (in LA) I saw a post luring parents to sign up. "Research says music boosts your kids reading skills and math skills. They understand fractions better."

Sure. If you can have your kids sit still and count with you while reading notes they will learn to read (notes) and count with you, 1-2-3-4. and "1 e & a".

Waita minute, the alphabets starts with A and stops at G. The piano starts with C and cycles C D E F G A B... no H and beyond. That # and b stuff has no place in regular alphabets.

Music is perfect example of fractions: Whole notes: divide it to get half notes, divide further into quarter notes. Ah, there are triplets too to handle to denominator of 3.


Ok little piano whiz. Take this: 1/5.

Let me ensure this, parents: pizza is just as good example for fractions (if not better).  Do not feel your kids MUST take piano lessons.

Piano (and other instruments), however, lets you appreciate music, which can add a lot of essence to life. And it takes tremendous discipline to learn any instrument well.



Monday, October 3, 2011

Visiting LA

I have been to the biggest city in America: New York. I live in the third biggest city. I decided to visit the second biggest city in the sunny area: Los Angeles. It has Disneyland and Hollywood is nearby and it ought to be a good place to go for vacation.

Orbitz is a great place to start planning for any vacation. I like its clear layout and ease of use. Ok, United offers good flight prices? I am going for it. Yikes United charges $25 for each big luggage. Ok... Now it will only offer you drink and water. You now have to pay for its food. They don't even give you peanuts and almonds now. I am not a very tall guy so legroom is not a big problem in economy. I have never been on First Class and will probably never pay more to get a bit more comfortable for just a few hours of flight.

LAX is an alright airport... but not as pretty as O'hare or other airports I've been.

LA... has SO MANY visitors. On a non-holiday weekday I lined up for 1.5 hours to get to the rental car. OMG.
In my past experience with Hertz, the cars come with a navigator and I didn't even have to ask for it. LA is a place full of highways and a navigator is a must-have for first time visitors. They don't have it pre-installed! Oh no.
Fortunately they have a little internet booth (that costs money) so I can type up the address of the hotel on google maps to print out directions.
Oh my, it takes TWO HOURS to get to the hotel. Traffic is ultra horrible, and I need to change highways (freeways) maybe 5 times.

LA's highways are kind of old, not as well paved as it should be, and the signs are super old.
LA is supposed to be a very smog filled polluted city, but it isn't the case on the days I was there.

Yikes, it has A LOT of ghettos area, very worn out throughout the city of LA. However, the outer cities (suburbs) are very nice.
I visited Irvine. Oh my it is VERY nice business area. I wish I work there and can afford to live there.

There are MILES of Chinatown-like little plazas spread in various suburbs with hundreds of very nicely done interior designed Asian restaurants. They are mostly Taiwanese. Where are the Hong Kong folks hiding?

Hollywood Blvd... is mostly ghetto until you reach the Kodak Theater and the Chinese theater there. Do not join any tours unless you want a tour guide to talk to you via headphone and very interested in Hollywood history and the movie industry.

Now there is a huge contrast uphill on to the beautiful buildings of the Beverly Hills where the rich-and-famous live in mansions.

The Getty Museum is one awesome place in LA. It is a beautiful art museum up on the mountains and it is free. You only pay $15 parking.
Parking throughout LA is MUCH cheaper than Chicago. Gas is cheaper than Chicago too.

Disneyland is only so-so. It won't be so fun if you have seen the big one in Orlando.

Universal Studios is nice.

The Farmers Market is nice relaxing area full of eating-places-on-the-street. There are Chinese food booth run by entirely non-Chinese.

Santa Barbara has some awesome beaches but some people placed crosses all over to remind you so many people have lost their lives in Afghan and Iraq. It has got a very nice shopping area close to the Santa MOnica Pier.

Tuesday, September 20, 2011

17 Everyday Facts You Know Are Correct -- That Are Totally Wrong

Here is an interesting list that may violate your understanding
  • The Great Wall of China is not visible from space
  • Dropping a penny from the Empire State Building is not deadly
  • We do not use just 10% of our brains
  • Dogs don't sweat by salivating
  • Human beings do not have only five senses
  • Alcohol does not make you warmer
... and finally
  • Men don't think about sex every seven seconds
See here (Chinese) or here (English).

Monday, September 19, 2011

Ipad Review

I played with the most beloved tech product ever, the IPad.

Ooh, Star Trek like tablet is finally here. Its sleek design melted everyone's heart. Beaming however, will remain science fiction.

First, you need ITune to start using it. Can't use IPad without it. No ITune? Gotta download one. Itunes will copy your songs from your computer onto it.

Of course this is slim, ultra portable, starts up fast. Finally, a machine that doesn't require bootup like a Windows machine. (Waita minute, phones are always on too) Excellent battery life, and it doesn't get too hot like some laptops.

It is excellent for web browsing sitting on a sofa. But remember: IPad does not play Flash, or non MP4 formats. Lacking a keyboard is no big problem (the on screen keyboard is nice and responsive). However, there is no cursor, none whatsoever, your finger is your cursor. Select a bunch of text to copy-paste? This will be hard to do. And if you craft an email, there is no way to do an ASCII friendly single quote. Keyboard input will ALWAYS beat screen text input, yes you can buy one from apple.

The standard apps Notepad and Calendar and of course Safari are all awesome.

The self rotating feature may be cool. But I disliked it spins 180 degrees. Sometimes I INTEND to read upside down ok? (as in chess match looking at black pieces). Fortunately it is possible to lock it.

So, the Ipad is excellent for web viewing or ebook viewing (yikes, books are so expensive to download). Excellent for chess (so you never lose your pieces) Yes there are endless apps to play with.

I give it 3 stars (out of 4)

Wednesday, September 14, 2011

Sad news but bad headline

Oh I am sorry to hear bad news about an elderly lady died of carbon dioxide at a McDonald's. The following is from CNN:
I am sure lawsuits will result and lawyers will work hard. But the headline is wrong. CO2 not CO2. Chemistry demands subscript... It would be quite interesting if a headline nearby claims so American students fail science. I am never fond of chemistry... It's over my head. But I manage to pass my high school class.

Monday, September 12, 2011

Past 911 10 year anniversary

I am glad there weren't any new terror attacks at the 911 10th year anniversary. Obama said this, "Today, America is stronger and al Qaeda is on the path to defeat"

I am not so sure about the first part. In 2001, economy was booming, and unemployment numbers were quite low. Gas price was $1.69 a gallon and I didn't even think about gas when I bought that less-than-very-fuel-efficient car.

I am not so sure about the second part either. Can you really defeat all the terrorists out there when all they live for is jihad? Even the all covered up women are learning to use grenades and AK47s.

If they have inhabitable space, have an economy of some sort, perhaps they think about something else other than jihading.

If Al Qaeda is going to strike again, they'll probably choose a day when we're least prepared, like celebrating holidays or some sport team's victory. I wonder how much $ was spent on the extra security measures. Now that's jobs jobs jobs: everyone train to be a security guard.

Friday, September 9, 2011

911 10th anniversary

The 10th anniversary of 911 is coming soon. I am sure everyone old enough will have vivid memory of that day. What were you doing on that day?

I remember that day had perfect weather... and I have some code to implement. I was at a client's office (my ONLY work experience to work outside of my company) Then soon after the first plane hit. I am not sure how to react. My first reaction was... why so panic? Yikes it may be a  horrible accident but miles and miles away, ok? I got stuff to work on.

Then soon after the 2nd plane hit I was told to go home. I am still puzzled.

Oh it was a terrorist attack!

Yikes, even one plane was hijacked it will be on headlines for days, 4 planes? and 2 crashed into the World Trade Center and one onto the Pentagon? OMG. Now I realize this is serious.

Then the videos of the planes crashing in re-run many many times.

10 years later, bin Laden dead, but we are still into War on Terror and no complete end in sight.

10 years later, jobs changed a few times. That code I worked on that day is probably no longer used (It was some ASP and VB6 stuff)


Tuesday, September 6, 2011

Wrong phone direction

Phones are getting ever larger and heavier, like somebody struggle to get weight loss and then the weight has come back. Ok this is not perfect analogy. Phones are getting much more powerful. Cool that crisp screen and huge storage lets you watch a movie on it.

But folks, is it easy to carry such big thing around? You will need a belt and a clip. No device should alter what you wear.

Look, phones should be small. To watch a movie and other heavy duty tasks, get a tablet. Another thing with phones: gone are the cursor keys. Most newer phones require you to tap on it. Ok, that is fine for most cases. What if you want to go to a precise location? Let's say, chess. I want to move that pawn in e2 (not d2 or f2, ok?) What about battleship, what about 19x19 GO. Cursor is better in these situations. Keep the cursor keys please. The 0-9 keypad is probably gone like rotary phones, and they are best when you have to really call somebody (new).

So, I want a small phone, vivid screen, hopefully with cursors. Can somebody make one.

Tuesday, August 30, 2011

Preparing Clergy for War

There are army clergy in training for war.

I am not exactly sure why clergy need to expose to danger and it is kinda crazy to proclaim "Love others as thyself" and then either sprinkle enemies with bullets (or run away from it). Well they are there to perform funeral service for the fallen.

I love the "Love others as thyself" part and I have some difficulty with the "God will deliver me to the promise land so let's kill all the enemies" messages.

If the entire country is to sit down for a sermon, the topic should be this, "Look, let's find a way for peace".



Wednesday, August 24, 2011

Washington Monument Cracked

Oh wow, earthquake hit the east coast and cracked the : Washington Monument.

When there is a earthquake the first thing I look at is the magnitude, if it is under 7, it probably doesn't do much harm.

Washington has a lot of memorials and the Washington Monument is quite unique...
I do not understand why the monument has to look like that. Perhaps it is a missile in disguise! (Ok, that's probably not the case)

Every American should know this about Washington: he was not the first American president! Sure, Washington was first president under the Constitution, but the Constitution was not the first document that runs the country.

Remember the Article of Confederation? Read about the forgotten presidents before Washington here.

Wednesday, August 17, 2011

3/4 not ready for college

Today's Sun Times headline says,
Three of four state grads not ready for college, ACT scores show.

The article itself focus on science, the Related Documents give you more data in details. Yes, this is quite depressing for Illinois.

But is the ACT really a good predictor of college success?

That science test (when I took it) was merely a reading comprehension kind of test. Does it really measure science knowledge?

ACT Math is very easy. Come on teen, you can do this. I hate the term "college algebra" there is nothing college about it.

The English part is very reasonable. It tests your understanding of grammar rules and it is something you can actually prepare for, unlike crazy antonym test of arcane words you have not seen nor will ever see in the SAT.

How come we have 2 tests for college admission? I vote we whack the SAT and embrace the ACT. SAT scoring was 2*Verbal+Math. That is DISCRIMINATION to math!




Google honors Fermat

Look, Google honors Fermat and the Fermat's Last Theorem:



It is 410th birthday, I wonder if there is any significance to this number.
Read more here if you like.

Fermat's Last Theorem looks somewhat like the Pythagorean Theorem, but no triangle is involved here. No integers will make this equation work if n>2. xn+yn=zn. Of course n=2 is the Pythagorean Theorem and you know 3-4-5 is a Pythagorean Triple.

People tend not to know anything else with Fermat... he has a lot of significant contributions to Number Theory, which makes people believe he actually had a marvelous proof.

All students interested in math should take Number Theory... and you don't need to know anything about calculus to succeed... Much of Number Theory deal with integers only.

You will then able to explain: why can you determine if a number is divisible by 9 by adding up the digits to see if that is divisible by 9. Example: 6561 is divisible by 9 because 6+5+6+1 = 18 is divisible by 9.

Ok, is someone going to say, so what?

The answer is this: so you know something about the numbers and it is cool to say "congruent modulo".

Tuesday, August 9, 2011

Raising Boys

Raising Boys is a great book for parents of boys. I listen to James Dobson "Focus On the Family" on the news radio when I commute to work a decade ago. I admire his ability to communicate ideas so effectively through radio and writing.

In this book, he painted a horrible picture describing the hostile environment for boys to grow up. The disappearing father role, feminism, failing school systems, and um, lifestyles different from the traditional family make it difficult to raise boys to become upright men.

The father... is so important for boys. Come on, guys, don't abandon your kids. Statistics paint horrible picture: kids without fathers are likely to be resentful criminals. Even if the fathers don't provide food and shelter, some fathers don't pay enough attention to the boys. There is an account of the author talking to a 50+ year old man, in tears, telling him the story of his father not ever show up in his football games and even if he does, he didn't stay to watch him play. Look dads, pay attention to your kids achievements!

Idiot dads think they'll spoil kids if they give them encouraging words when they win something. WRONG. I WILL tell my son I am proud of him if he accomplishes something, and I WILL show up in his sports events (or chess tournaments) if he is into those.

Look, the family structure is so important. The statistics of the number of single mom/dad families are quite saddening. Yes, there are arguments, but please don't give up taking care of the kids.

Failing school systems bother me. I shake my head whenever I read statistics about dropouts and that kids are so incapable. Some of the teachers are gosh so incapable that they can't even divide fractions. COME ON. The public elementary schools do the same stuff year after year and students still don't know anything.

Dobson believes school can wait, and home schooling is great. He thinks some boys are not capable of sit still and listen until older, and all they can get from schools are ideas that promote feminism and homosexuality agendas and therefore hostile. I beg to differ on this point: I do not think the parents should act dual roles as teachers and kids need to learn how to get along with other kids.

Yes, boys need parents, especially a loving father.

Good fathers already knows this, and most bad fathers probably never read something like this.

You do not need to be a PhD or read volumes to find out how to be a good parent. Your parents probably didn't read a whole lot about parenting either (and yet you turn out to be a reasonably good kid right?) If you grew up correctly, you know what to do. It is instinct.

Friday, August 5, 2011

Goodbye DOS EDIT

The good old DOS Editor is gone in Windows 7. You cannot type "edit foo.txt" anymore to create a quick text entirely in DOS prompt. Yes, you can use notepad nowadays.

Before there was fullscreen editor in DOS, there was edlin, and I never used it.

The MS-DOS editor made sense, and ooh you can even use the mouse. It was HUGELY BETTER than the Unix vi. Ok, it is a matter of preference. :wq!

Monday, August 1, 2011

Fairwell bookstores

Bookstores are great to-go places, for kids and adults. Reading bring so much enrichment to life as we read know-hows and wisdom from authors.

However, the uprising of the internet shopping caused bookstores to suffer because of the low prices that real stores cannot offer. (Look, online stores have no staff to feed and no rent to pay). And now, electronic readers have come along, the demand for paper copies is even less.

Bookstores have suffered to a point of collapse. The Borders stores are closing soon.

Sorry Borders, I admit browsing books at your store and buy them online.

Now with the GOING OUT OF BUSINESS signs hanging, I decided to buy a book from you. I bought Garry Kasparov's Checkmate Tactics. I browsed through this excellent book months ago and it was still there. That is exactly the reason why stores are closing. No one is buying! This is my first chess book ever. It is excellent and when I am done I'll write a review.

I also bought Prime Obsession to read about the Prime Number Theorem and the great unsolved problem: the Reimann Hypothesis.

Although at a discounted price, I still would pay less on Amazon. But I decided to give this extra dollars to Borders, to thank it for providing me a place to read, to wander into.

Although movies are all over on the internet, it hasn't yet killed the theater, for the social aspect for it. (Mr. Rights need to take Ms. Right candidates some place right?) Unfortunately it has killed most bookstores.

Transformer 3 done wrong

The movie makers still don't know the Transformers after the 3rd time around.

First, Sentinel Prime is a fresh good idea for the movie. We have already seen the martix before. But primes are supposed to be the ultimate good guys and should not overshadow the evil of Megatron. Ok, for something brand new, perhaps using Sentinel Prime as evil is ok. Megatron is a complete wimp in this movie. Come on.

Waita minute Sentinal, just why do you want the space bridge to bring Cybertron over? The movie makers do not even have a complete storyline.

If Sentinal Prime is going to be the bad guy, why doesn't he take the matrix when Optimus offers it?

The first hour of the movie is nonsense human activity that can be collapsed to 5 minutes. And when the actions come, the robots lack reason to cause mayhem and they lack character. Come on, Shockwave isn't a wacky snakelike drill. Starscream is the most interesting decepticon with an interest to overthrow Megatron that all 3 movies don't bother to build upon this. 3 movies... where are the Combiners? The vacuum Devastor from the second movie does not count. Where are the dinobots. I won't bother asking to see Omega Supreme and Metroplex.

After 3 movies, the movie makers still don't understand the character of Optimus Prime. (Giving him a jetpack is a good idea, though) That last scenes is too short too brutal. Optimus and Megatron are arch rivals of millions of years, if Optimus can ax him up singlehandedly that should have happened million years ago. Optimus shooting the defeated Sentinel? Come on, only Decepticons are brutal, as seen in Megatron killing the 4 autobots in the 1986 movie. Outrageous! Optimus Prime deserves some respect. He should forgive Sentinel (and that makes the autobots heroic). Megatron (Galvatron) should be thrown out (not destroyed) like in the 1986 movie.

Where the heck are the teamwork of the autobots? What the heck are the 2 small autobots with one of them smoking? Perhaps the last scene should be Bumblee and others rush to help and Decepticons retreat (like good old cartoons). With the Decepticons defeated, perhaps the autobots can use that space bridge to go back to Cybertron to build a new golden age to end everything nicely (The 1986 movie has done that).

Rosie is awesome (but too skinny), I like her better than Megan Fox.

Tuesday, July 26, 2011

God Created the Integers

Every math enthusiast should take a look at this big Stephen Hawking volume: God Created the Integers.

No, Hawking didn't write all 1000+ pages. He collected some classic texts of great mathematicians, preceded with a short bio and sprinkled commentary throughout. Amazon reviewers say the Lucasian professor made some mistakes. Yes, I wish Hawking will correct them all too.

It is awesome to read Euclid, Archimedes, Newton and other great mathematicians in their own (translated) words. They don't write like mathematicians today write, such as "I will say...." I do not understand much of the writings, of course.

The lives of the mathematicians are interesting to read about too. Some suffer horrible circumstances in life. It is also interesting to read about the feuds of some of them. Gosh, Newton and Hooke don't get along! He also attacked the heck out of Liebniz on calculus. Besides being a great physicist, I think Hawking is an awesome writer too.

However, I do have some complains about the book. Some footnotes and commentaries are in some ultra small fonts that requires magnifying glasses. It is ok to split this work into multiple volumes. To distinguish text from comments how about a complete different font, or boxes, or other means of typography?

Now about the title, "God Created the Integers" is a short form of the quote "God created the integers all else was the work of man".

Now I am no distinguished mathematician (not even a decent student) but I beg to differ. Integers themselves are also the work of man. Zero and the negative numbers are invented (and are significant milestone of mathematics).

I would say it is more appropriate to say "God Created the Natural Numbers".

Thursday, July 21, 2011

Glad you're back, Atlantis

The final voyage of the Space Shuttle came back safely. Details here. Hooray!

The 30 years of Space Shuttle flights span glorious pages of human achievement history. Yes, we still mourn the loss of the Challenger and Columbia.

Now United States needs to ask Russians for a ride to space to do something on the Space Station. I am not so sure if we still need to patch the Hubble.

Welcome home, Atlantis.

Wednesday, July 20, 2011

Where did your tax money go?

You can generate yourself a Federal Taxpayer Receipt here.

Look at that breakdown of your tax dollar:



26.3% goes to National Defense!
7.4% on debt interests
4.8% for education

What if you do not agree on this breakdown? Hit the feedback button? Write your congressman? Or run for congress yourself?

Monday, July 18, 2011

Complain to the Mug Shots in the Tribune

The Chicago Tribune is no doubt an important part of Chicago history. But who is buying the expensive paper copies now? I am afraid not that many. I hope they remain afloat with the ads on their web edition.

Ok, click on news articles, your attention will probably be redirected to the criminal suspects' faces on the Mug Shots section. Some are quite fearsome looking followed by horrible crime description underneath: robbery, weapons, sex abuse of boys. Horrible! But when you click on the horrible criminals you don't get the detail of that particular criminal but you get to the first criminal (ok, suspect) out of hundreds.

I wanted to see the news article, but not the criminals (but I got shown the horrible faces of the criminals)
Now, when I want to see the detail of the criminal, I get to see another criminal but not the one I clicked on.

This Mug Shot stuff should be on its standalone page. Shield the readers from these fearsome people please.

Yikes, there are so many criminals out there doing horrible things!

Tuesday, July 12, 2011

Debt Ceiling

The hottest talk of the day is the debt ceiling. I am reading all about it here. There is a limit of so much money that United States can borrow... Oh, and the debt ceiling was raised many times in the past to keep the government running... so why not lift it again?

Ok, if we keep lifting it, it is then meaningless. Why even have such (arbitrary) limit?

Come on, you can't keep borrowing. Imagine you don't make enough money and you keep using your credit card.

The unpopular remedies to this are simple: cut stuff or increase tax. Just like how you do your personal finance: stop buying things or make more money.

Here is what I propose: do BOTH, at least temporarily. Get the deficit down first! Yes, it will be unpopular but do it now is better than do it later.

If that limit is useless, take it out entirely.

Thursday, July 7, 2011

Mark Zuckerberg's Law of Sharing

Exponential equation (and logarithms) are useful!

See, Mark Zuckerberg talked about it.


Does Mark Zuckerberg have to show the graph of 2x?

According to this article, he demonstrates logarithm by using 2^50 as an example of folding paper 50 times.

Ok, trying to inform people with logarithms (that high school students should know about)? Do you know that folding something 12 times is the WORLD RECORD. Read it here.

Some people mock Zuckerberg is no Steve Jobs. Well, no doubt, facebook is a big success. Most likely, however, nobody ever cares about YOUR presentation nor care your wardrobe.

Ok, I think 2^x is over simplification of sharing. If you send me uninteresting things? I won't share. Exponential growths stops at me.

Wednesday, July 6, 2011

Trying Go

"Go" is a strange name for the 4000+ year old ancient board game. It is actually short for igo, the Japanese name of this black-and-white-surround board game. Countless generations of intellectuals play this game of simple rules but of incredible depth.
I think everyone should at least look at this game to see why so many people are hooked.

Now, where do you find someone to play with? No one has time for you.

But the computer will gladly play with you. Today's phone apps are even more convenient. I recommend this Android game:
Go Free. Excellent UI, excellent game play.

The real game of 19x19 is long, who has time and patience for that? Amateurs should start at 9x9 to get a taste of this.

Gosh, simple rules, but I get defeated hard. Gotta watch your back as you try to capture your opponent's pieces (by surrounding).

I will never be truly good at any classic board games, because it takes an incredible mind to do well.

But hey, these are games. Have fun.

Wednesday, June 22, 2011

Paragraph that speaks for itself


Aoccdrnig to rscheearch at Cmabrigde uinervtisy, it deosn't mttaer waht oredr the ltteers in a wrod are, the olny iprmoetnt tihng is taht the frist and lsat ltteres are at the rghit pclae. The rset can be a tatol mses and you can sitll raed it wouthit a porbelm. Tihs is bcuseae we do not raed ervey lteter by it slef but the wrod as a wlohe.


and someone wrote a scrambler program to further illustrate this:
http://jtnimoy.net/itp/cambscramb/

Monday, June 20, 2011

Movie: Waiting for 'Superman'

This is an awarding winning documentary about the failing American Public Education system that requires a 'Superman' hero to save. Ok, Superman can fly, is super strong, bulletproof, have laser eyes, x-ray vision and breath that can freeze you. He is only afraid of Kryptonite.... but even if he is here, can he solve all the problems?

I am afraid not.

He can't punch the heck out of the failing teachers who say, "I get paid rather you learn something or not", or the evil unions who protect them. Ok, he can probably block a bullet or two in the horrible gun violence conflicts.

Statistics play a strong role in this movie... Ok there are so many percent WILL dropout, so many percent a few grades behind, etc. After watching this film, my head spins a bit. There are many pieces of heart-breaking statistics like only a handful of percentages have decent math skills at a certain grade, and the dropout rates are so high. There are dropout factories that create thousands of dropouts a year. The movie is not so focused. I wish Mr. Canada speak longer in one session and not broken pieces. (He is a captivating speaker that I don't mind listening to for an hour.) Another thing, is it my DVD player or TV? the whole documentary is so dark, like I am watching a worn out VHS tape from the 80s.

It is saddening to see the lottery system for so many people trying to get into the so few good schools.

I wish the movie interview the teacher unions more, let them talk about what they think about the poor teachers that can't be fired killing the future of the students.

This movie seems to suggest that if you get a college degree or even a high school degree, your future will be bright. But let me tell you this, it is still hard to find work even if you get a 4.0 GPA for your masters. Microsoft and other high tech companies prefer to hire those cheaper labor from overseas.

Is CLOSING poor performing schools altogether a solution? Unless there are toxic things on the ground, I think schools should remain OPEN, just find a way to fire the under-performing people that can't teach.

Here is what I believe in: See, if we can send people to the moon and even give a strong blow to Al Quaeda, America CAN FIX ITS OWN SCHOOL SYSTEM.

Here is one idea: install cameras in EVERY classroom and monitor the classes. Good teachers will WELCOME this to broadcast their fantastic lessons. Seek and fire the horrible teachers who can't teach (and there is the evidence). And that will curb the naive kids throwing paper at the teacher while writing on the board.

Make laws to strip powers off the unions. Come on, there isn't a computer programmers union that gives us tenure (and there probably SHOULD be one to be fair)

DO NOT ABANDON the children! Once upon a time I saw an ad featuring someone like Mother Theresa that says something like this, "Give your unwanted children to me"

If the students don't know certain skills by certain age, do you simply abandon them? Come on, these kids just need someone to teach them.

There is ought to be a way for kids to re-enroll back to school after dropout, and there should be some volunteers organization to provide free tutoring (and I will sign up for that).

Every kid who wants to learn ought to be taught.

OMG, it is a vicious cycle and a downhill spiral: bad economy => bad neighborhood => poor performing students

I give the movie: 2-and-a-half stars.

Friday, June 17, 2011

Programming IQ test

InfoWorld published some Programming IQ Test. It is a bit of a geeky test and have terrible slow interface. <yawn/>

Don't feel bad if you don't know it all.

Programming... boils down to the SMARTNESS and KINDNESS of the programmer. Even with excellent tools the idiots and the over-engineering morons will make unmaintainable mess. Kindness refers to the documentations sprinkled throughout (and outside) the code.

Friday, June 10, 2011

Dow fall

I do not understand stocks. Neither do most of you, I'm sure.

Ooh, panic there, it falls below 12k and it is headline news here.

Ok, this is triggered by all sorts of news and things happening globally.

Ok, let's look at it differently. How about a 1 year chart. See
here.

The big picture says we are pretty much going uphill if I interpret correctly and I am not too worried. I worry not too much about things that I cannot control.

I think a happy life is when numbers don't affect you. I am not betting my life savings on stocks.

Doers get no credit, but the teller does

It is the person who tells you what to do who gets the credit, not the person actually doing the work.

Ask any student: who built the Great Wall? Ok, many students will simply don't know. But for those who do, the answer will be Emperor Qin (and not the poor slaves who lay the bricks or those architects). The teller gets credit AND don't have to get hands dirty. Emperor Qin probably has no idea how to do it himself but he is able to make people listen to him.

Forward 2000+ years. Who earns more money than you by simply tell you to do things (and keep asking you status) even he has no idea how to do it?

It is the managers.

And even if something is successful who gets the credit?

It feels especially bad when the tellers are 10 years younger.

Rank-and-file doers should aim for the awesome occupation of just telling people what to do.

Tuesday, May 31, 2011

Look at these garbage!

News says the new mayor agreed it is the right thing to close the beach when people gets too hot and get sick.

Yes, I agree too. Although it must be disappointing for those people who wanta have some summer fun.

It was a hot memorial day, and THOUSANDS of people went to the beach. I know because I was at Lake Shore Drive stuck for an hour+.

OMG, LOOK AT THOSE GARBAGE! How irresponsible are those people. COME ON. They are polluting the beach big time!

Get cops out there to give them tickets for garbage throwing and the city can instantly get a ton of cash.

LOOK beach people, use common sense, get a lot of water with you to prevent heat stroke, and COME ON, PICK UP THAT GARBAGE. That garbage can filled up? Get it on your own garbage bag and take them with you.

Ok, Memorial Day is not working. It is supposed to remember those who were lost in battles. But besides those who actually lost love ones, everyone else seem to be just barbecuing. Just call it the Long Weekend Day.

Friday, May 27, 2011

Minor complains for the Android built-in calculator

I love to play with calculators. They are fun toys and relief you from mundane calculation routines.

Just about every phone comes with a calculator app. I have some minor complains with the default Android calculator.

I love the test case of dividing by 0. This is the only taboo function in the calculator world. 1 / 0 is... ∞ (infinity)?
Ah ha, once you get ∞, you can add stuff or subtract stuff from it... of course still infinity.

I beg to differ for this answer. Dividing by 0 is undefined, not infinity!

There is a Advanced Panel, with trigs and log function there. Ok, let me try other invalid operations like log of a negative number, it tells me "Error". Good.
Why can't "Error" be used in dividing by 0?

Technically, even log of a negative number is defined when you involve the complex numbers, but dividing by 0 is not.

Now, sin(30). Why is it not 1/2? Oh it is stuck in radian mode.

There are PLENTY of Android calculator apps out there, and I am not going to bother to build my own. I built a 4 function calculator and RPN calculator in Turbo Pascal in high school.

Wednesday, May 25, 2011

OUTRAGEOUS Windows 7 issue

Windows 7 does not show the handy IME pad for entering handwritten Chinese.

A lot of people are seeing this. See
here.

No workaround, no fix.

Come on, this works perfectly in Windows XP.

You select Chinese keyboard in Control Panel and it will give you hand recogniztion for Korean and Japanese? Thanks for the extra, but where the hell is the Chinese IME.

Outrageous!!

Other than this, Windows 7 works fine until I discover another outrageous issue.

Tuesday, May 24, 2011

Yahoo 10 year anniversary

My yahoo email address has the year 2001 in it. That's because josephmak is taken when I try to open up such account and it suggested me to add the current year back then with it.

It is 2011... I had the yahoo account for a DECADE.

Back then, messenger was kinda new. Yahoo account was created so my coworkers can chat. I witnessed years of messenger getting matured, and web email interface getting better.

That job was gone, so are jobs after that. A decade is a long time... coworkers still appears connected but we are no longer chatting (and that's ok).

It hurts when trying to contact some old colleagues and get ignored. It won't be so fun when I see them again, especially if they ever need to work under me.

Ooh, yahoo email has an update. See here. Oh, it seems to be better than the previous ajax version. Nice try.

Yahoo email is decent. Gmail's conversation model is a bit wacky but I get used to it now. Both are free and that's great, and I NEVER pay attention to the ads.
I like hotmail the least.

Friday, May 20, 2011

End of World tomorrow?

May 21, 2011: another pointless prediction that the world will end based on groundless interpretation of the Bible.

Just how many times people have failed predicting the end of the world? I'll let you google around.

Let's look at this May 21, 2011 prediction for a moment: here.

Look, what makes you think that statement to Noah "Seven days from now I will send rain on the earth" point to the end of the world? The calculations that follows are simply... nonsense.

This guy has plenty of Bible quotes, but didn't bother to look at some real ones such as Jesus talk about he will come like a thief. Are you able to predict thieves?

But the sad news is: there are people who may actually believe this and someone paid money for those billboards.

Read that Bible. Don't just listen to someone else quote chunks of it.

Did someone else predict 2012? We'll see.

Friday, May 13, 2011

Distrubutions Plushies

Statisticians will love these: Distrubtion Plushies.

I used to know some glorious details about them... of course, the most famous being the normal distribution.

Yes, that's the bell curve.

It is mathematically saying... most people are average, a few of them will stand out extraordinary good, and a few will be extraordinary bad.

There are teachers who grade on the curve... even if you get 50 points in an exam you probably are still not getting an F... it depends on how your other classmates are doing.

I BEG TO DIFFER in this grading scale. All my students can get perfect scores if I teach them right.

The normal distribution function begs to be integrable to get analytical answers, but sorry, it simply can't be integrated, because it involves ex^2. Nope, u-substitution is not going to work, and by-part isn't going to work either.

But OMG, although the indefinite integral cannot be evaluated, but the definite integral from -infinity to +infinity can... and there is this surprising relationship between e and pi!

See Gaussian Integral for details. This is one reason Gauss is the prince of mathematics.

And if you have never heard of Gauss, you did not have an decent education.

Monday, May 2, 2011

Obama got Osama

Osama bin Laden is dead. this is extremely significant milestone... and some sort of justification to YEARS of military action (which depletes American resources quite a bit). We did this just one time, before the 10th anniversary of 911. So he is dead... in Pakistan, not Iraq or Afghanistan.
That Ak-47 that Osama always has behind him was not able to help him kill one or two US troops.

Does this mean Al Queada is done? I am afraid not. There will be revenge. America must continue to be on high alert!

Waita minute, just why did Osama plan 911? Ah, he is just a mad man? This is what he has to say:

"Allah knows it did not cross our minds to attack the towers but after the situation became unbearable and we witnessed the injustice and tyranny of the American-Israeli alliance against our people in Palestine and Lebanon, I thought about it. And the events that affected me directly were that of 1982 and the events that followed - when America allowed the Israelis to invade Lebanon, helped by the U.S. Sixth Fleet. As I watched the destroyed towers in Lebanon, it occurred to me punish the unjust the -same way (and) to destroy towers in America so it could taste some of what we are tasting and to stop killing our children and women. Osama bin Laden, 2004


It is a cycle of revenge going on here.

Let's break the cycle of violence with LOVE and FORGIVENESS?

I know what you gonna say, Come on, it is NAIVE to even think that.

But waita minute it may just WORK. How about leave them alone... give Palaestine and Lebanon some aids (instead of bombs). Let that violent neighbor live peacefully together. How about a turn-in-your-guns-for-food program. (Gee, I am not working on that post)

If you ask EVERY human being.. dude, do you prefer violence or food? I suppose everyone would want food, even the "bad guys".

Perhaps it is time to think naively to break the cycle of violence.

Friday, April 29, 2011

Google map on Android

Google Map is awesome and easy to use on javascript. Don't believe me? Go here.

Well if it is so easy, and Android can show html/javascript, why not do in javascript and then have Android display it? Boom, it did't work for me, perhaps I am missing something.

You can try the MapView API, and get a key... details in here.

Throw away the easy javascript stuff, they don't apply in the MapView API.

Waita minute, just what do you want to use google map for? just about everything has been already done by someone else? like getting directions from point A to B, put little balloons at certain locations etc.

Well I need google map for drawing polygons as outline for states.
Sample use: draw red and blue states for election results.

But I have another use to draw states, stay tuned.

Drawing states is not so easy. It would be easy if every state is a rectangle like Wyoming. First I need to get latitude/longitude data... and eventually I found them on the web. But wait, the earth is not flat! If I treat it like regular x-y coordinates they will look funny... so I will need google map...

I tamed it and am able to draw states in any color I specify.

Friday, April 22, 2011

Android 300 Tang Poems

Soon I will release another educational free app, featuring the 300 Tang Poems.

These classic poems are fundamental for a classic Chinese education. Unfortunately today's students know so few of these. There are already a few apps (some free) on these poems, but alas, they are in simplified Chinese.

These classics ought to be read in its original form!

Here is a complete list. Yikes, in frames?

A few surprises, 詠鵝 is not part of the 300? (actually, 320)

This is usually regarded as the simplest (and cutest) of Tang Poems for kids.
鵝,鵝,鵝,
曲頸向天歌。
白毛浮綠水,
紅掌撥清波。

Oh, this one is not? 關雎 with the classic line: 窈窕淑女,君子好逑. Oh this is from another text (詩經, way before the Tang Poems 300)

See, this reflects how LITTLE I know about classic poetry.

Tech note: I went through helluva time copy/paste the text into xml, then the xml gets parsed and put into a SQLite database on the Android.
Once the data is set, it is straightforward to query by category, by author, and get individual poems.

Sorry, no English translations, and no simplified Chinese version.

Tuesday, April 12, 2011

No Space Shuttle for Chicago

Aww, no space shuttle for Chicago.

Details here.

Just what is the criteria for getting one? Was there a bid? It would be a great tourist attraction for Chicago. The space shuttle is truly amazing breakthrough for space exploration and making today's satellites possible, and thanks for putting the Hubbles telescope in orbit.

Adler planetarium... I will visit you again soon even if you don't have the shuttle.

Thursday, April 7, 2011

Apple's weaknesses?

I saw this article in headline. Oh there are 3 big weaknesses of the iPad:
1. It needs to plug in to a computer
2. not integrated tightly with social things like facebook
3. limited selection of videos

These are just minor complains. Look, the iPad is a hugely successful product and won the heart of many. (Although I don't have one). Android pads are good contender but no one knows sleek design like Apple. Look at the basic Android apps for things like notepad and calendar and compare that to iPad. Though Objective C is HORRIBLE but Apple does have a great UI and great exterior that other devices are hard to beat.

So for those who envy Apple: face it, their products are pretty. Unless something VERY bad happens like it explodes, Apples are here to stay. Let the world have BOTH Android and Apple.

Tuesday, April 5, 2011

Job ads, recruiters, and companies are ALL THE SAME

Hi, we need a senior programmers who can do , at a fast growing company. We won't talk to you unless you have consulting experience.


Everyone is looking for superheroes to solve all their problems.

So many companies are ALL THE SAME. They offer to sell you bodies to create some apps for you by charging you for as many people for as many hour as they can. Their salesmen know how to draw pictures but have absolutely no idea how to accomplish anything. After clueless people lure the clueless customers they try to hire senior programmers to get things done.

I am BORED at the openings, BORED at the all-the-same bodyshop companies.

I want to work for an unique company doing interesting things.

Why do they look for the superheroes all the time? because there are few, if not none.
A successful company should grow their employees to be the superheroes and keep them happy.

Monday, March 28, 2011

My Android Apps live on Android Market

My 3 apps are now on the market!
https://market.android.com/search?q=Joseph+Mak&c=apps

To sell apps on the app market, you need an google account (of course), and you need to pay $25.

Your apk files need to be signed, here is details:
http://developer.android.com/guide/publishing/app-signing.html.

But first you have to export your app as unsigned first. See here for details.
http://forum.xda-developers.com/showthread.php?t=492822

Google requires you to have a BIG icon: 512x512 and at least 2 screenshots, with specified dimensions, one acceptable format is: 320x480. So use the emulator get some screenshots and zoom it to be the right size.

I have a new blog for exclusively for android:
http://josephmakandroid.blogspot.com/

Thursday, March 24, 2011

Sorting

In my first job out of college, one day I was told to query some data... and SQL was new to me. Gosh, computer science without knowledge of database is not so adequate for work because people want data, not determining if your algorithm is O(n2) or O(n log n), or if your problem is NP-complete or not. The ORDER BY clause saved me from pulling out the quicksort algorithm.

Fast forward many years, one day I take a look at some source code of a colleague (JSP file) and found the BUBBLE SORT algorithm!
What a surprise... Ok, that data is not from SQL so the ORDER BY clause can't help us here, but... buble sort on the presentation layer? this is not good strategy.

Ok, before you boo on the Bubblesort algorithm as poor O(n2) algorithm, let me tell you this: the quicksort is also O(n2) and a lot more ugly to write on your own.
Bubblesort is perfectly fine if your items to sort is not a whole lot.

The beauty of java is that many things are implemented for you already. How about Collections.sort? Stuff your items in an ArrayList, provide your own compareTo and voila.

I recently found out there is also Collections.shuffle too. This is ideal if you have to implement something like a card game.

So many objects so many methods within each... How do you learn them all?

So many new toys, some are here to stay, some are temporary hype.

Perhaps there ought to be continuous education program for people to stay updated. Perhaps it may be good business idea to open "tech update" classes...

Do I blame that colleague for being STUPID? No, as long as the code works.
That colleague was just not informed.

Sudoku Generator

I am impressed with this Sudoku Generator. And the python source code is right there.

You can generate puzzles on the fly in HTML, PDF or PostScript.

A LONG time I wrote a Sudoku solver (in java)... by recursion trial-and-error backtracking like solving the Eight Queens puzzle.

Being able to solve Sudoku classify yourself as a real programmer from a handwaving-ppt-generating, don't-really-know-any-programming "architect". Architects earn my respect if they can do-the-talk. Example: please don't talk web-service if you can't actually implement one.

Coming soon: I may turn that python into java and crank out my own puzzles.

Tuesday, March 22, 2011

AT&T again

I remember the day I had my FIRST cell phone. Cell phones were available for a long time I just didn't need one... my philosophy was this:
if you can't find me at home and can't find me at work, chances are: you don't need to find me. I got answer machines in both places
One day the weather was bad I made it to work and a cell phone company come to my company for promotion... gee, I could use it to call for help if I get stuck in snow.
So I got a phone, and it is in my glovebox. Thankfully I never needed it to call emergency.

The plan was 50 minutes a month.

I had it for several years. Then cell phone market exploded, my phone becomes a dinosaur.
Then AT&T becomes SBC then later I became a Verizon customer, and by then I needed to upgrade the dinosaur to something cool at the time.
My philosophy has changed: don't call me at home or at work, call my cell.

Verizon dares to not work well in places I needed most. I ditched it altogether and went with T-mobile for its mobile-to-mobile free feature.

Unlike some people I don't upgrade phones until they are broken... with the exception of my Android phone for programming on it.

Oh now AT&T takes T-mobile, and I will soon go back to AT&T. As a customer, all I care is... am I able to get calls, and is it affordable.

Nintendo 3DS and Street Fighter IV

Handheld gaming devices get more powerful than ever. The new Nintendo 3DS is demoing at the lobby of my workplace... specifically I played with Street Fighter IV.

It has been a LONG WHILE since I played any Street Fighters... I used Ryu to fight Dudley and beat him fairly easily and then it says, "thanks for playing the demo".

Ooh there is a slide switch to go from 2D to 3D without wacky glasses. I sense depth in the background. With 4 buttons, how do you do FIERCE punch/kick? Ah, the buttons are pseudo buttons in the lower half of the LCD.

Buttons are necessarily for games, especially fighting games. It is not fun without them, but I wasn't able to execute the Super... This is something the IPhone and Android CANNOT match.

I am impressed with graphics ability... and SFIV plays like SFII, with fancier graphics...

But a gaming device.... is a gaming device. The phone is more versatile, I am afraid that even with nice graphics and nice game play, people will just go to play BeJeweled on their phone.

The kids? they have plenty of games on the phones and ITouch too, if they can put up with touch screen and no buttons. I am afraid the Nintendo 3DS won't sell like hotcakes.

I'd like to play the real SFIV on PS3, but I am not going to shell out money.

Monday, March 21, 2011

文章修訂

I saw an interesting article in news regarding editing a news article...

The author suggested some way to make things better, but I BEG TO DIFFER.

The revision just pretend to read more like classic but not fit today's style. That's just my opinion.

Monday, March 14, 2011

Pi vs Tau

Happy Pi Day at March 14.

It is interesting that π made it to news headline.

Pi is to be CELEBRATED. There is so many interesting things about this number.

Oh and pi is "under attack" as the news article says. Take a look at this Tau Manifesto.

Yes, yes, 2π is in a lot of formula, and by setting τ = 2 π you can tidy up a lot of formulas.

Well, π comes naturally to Archimedes... Circumference over diameter. Yes, it is quite natural to measure by diameter. Have you ordered pizza by radius?

So &pi = C/d ever since, and besides minor frustration over extra 2s in the formula, there is no need to throw away all the textbooks out there with tau.

The world has already gotten used to π

When Mother Nature Roars

Everyone should take a look at some videos of the Japanese earthquake/tsunami. It swept away cars and houses like toddlers destroying lego structures. It is more powerful than Godzilla monsters imagined in the Japanese TV shows... yet there were no Ultraman to save them. The only thing fortunate about this is that it did not hit even more populated areas such as Tokyo. (But I am sure financially it would.)

When mother nature roars we are so little powerless beings. It is not over yet... that nuclear plant anxiety... it is going to be very difficult in the days ahead in Japan.

Suddenly the blizzard of 2011 in Chicago is so small an incident. Mother Nature just barely coughed, not roared.

According to Plate Tectonics, the earth is moving... and earthquakes happen when it decides to move. Are earthquakes getting more frequent worldwide? Before you conclude, read stats here.

We are powerless beings.

But you can help by donating to help those in needs.

The next natural disaster can happen to you.

Monday, March 7, 2011

Subway surpasses McDonald's

There are more Subways than McDonald's. Yup, see details here.

Subway sometimes is so expensive. The breads may tear your throat apart. It uses way more plastics than it should be... I usually don't go to Subway.

For me, Subway is too many steps to order, follow a line, what you like, choose toppings... I like numbered combos. I prefer Chipotle for get-in-line-choose-your-topping food.
For subs, Potbelly is better than Subway, even Jimmy John is better.

So I find it surprising for it to surpass McDonald's.

Wednesday, March 2, 2011

Gas passed $4 a gallon

Whoa, gas is now more than $4 a gallon!
See here for details.

Soon it will be this:
.

Time to dump your car and go for a hybrid car? But they cost thousands more...

Monday, February 28, 2011

Android logo and Alien Syndrome

During the first time I looked at the Android logo:
,
my immediate reaction was... Hmm, I have seen this font before.

Ah ah, I have seen that in Alien Syndrome... an old game which you try to shoot some enemies, pick up powers, save your comrades, exit the map, go to next level.



* * *

The newest Android 2.3 may rock. But my 2.2 phone has a lot to be desired... what? no default voice recorder app? what? you can't even organize your apps in folders in main menu? The Messaging app stink bad... what? don't even have an option to choose Contacts? (must use the editbox for autocomplete), what? no default text messages such as "see you in a few minutes"? Come on, basic phones can do better than that. The radio app quits immediately after showing a message saying need headphone, come on, i want it outloud. and the phone didn't provide a headphone (even a cheap one)

Tuesday, February 22, 2011

Making your Android App run on a real phone

I finally got an Android phone... a Comet.
I am still unwilling to pay for Data Plan. So insert your SIM card from your basic phone and voila you have Androids, but no web feature like navigator until I am willing to pay.

An Android without a real keyboard is pain to use. The virtual keys are too small to press! Someone should invent an input system to use the ENTIRE screen to write chars instead of fighting the little keys. Even this Swype thing is hard.

Ok ok, let's talk about putting an Android phone app you developed on the SDK (on Windows) to your device.

First, make sure you developed for the right version of Android. On the Phone. Home->Settings->About phone, check the "Android Version". Make sure your app's target is not higher.

Now, put the USB chord in. Does your computer recognize it? Good. But it may only treat it as another USB drive.

The goal here is make "adb" (in SDK\platform-tools) knows about the device, with the command "adb devices"

Many people on the web has problem making this happen, including me... Ideally, it should be less troublesome.

On the phone, you will need to enable USB Debugging.
Check the checkbox in Settings->Development->USB debugging

On your machine, you will need
1. Download Google USB Driver. (This should be straight-forward).
2. Install it. Now that can be tricky. You may need to manually use the Add Hardware Wizard in Control Panel to look for the driver. The goal is to make Device Manager knows about the phone. If it does, you will see Android Phone->Android Composite ADB Interface.

There may be a set of drivers right on the phone, you may need to use those. You may get a Yellow exclamation point (that may mean USB Debugging is not enabled on the phone)

3. Use "adb devices" to see if you can see the device. If Device Manager can see it but adb can't see it, try to kill adb first with "adb kill-server"

Once you are attached, you can use Eclipse to install your app, or use the command line "adb install path/to/your.apk" to install your app on your device!
"adb logcat" will tell you if you have any errors. Things may run perfectly on your emulator but you may still get a "Sorry! This app must close" error.

If you get a NullPointerException in the onCreate of your Activity on an innocent line: findById(R.id.yourcontrol), that may mean you need another layout xml file for lower resolution. Duplicate your layout file in layout-small folder in the "res" folder in your source.

Good Luck.

Monday, February 21, 2011

Android database

Android has SQLite3 built in. and its got a strange way to do JDBC-like database.

You need to implement the SQLiteOpenHelper to define your schema with CREATE statements in the onCreate on provide the destruction statements with onUpgrade. You then get the db instance with the getWritableDatabase()... and may call the methods to query.

Look at how they do query. Instead of SELECT statement, you do this:


public Cursor query (String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy)


Don't be surprised if you pass in a bunch of null, null and nulls. Ok, for those who prefers SELECT statement, you can do a rawQuery.

Instead of UPDATE statement, you do this:


public int update (String table, ContentValues values, String whereClause, String[] whereArgs)


Why abandon the goodness of tried and true SQL?

So this is a new approach to DB, different from JDBC... and SOMEBODY is going to say this is not cool an do XML wrapping on things!
* * *

Being to do little database in a device is pretty cool. You want to mess with little memory blocks instead?

Besides SQLite, you can also write files or deal with the memory card, or good old value pairs for preferences.

Whoa, their is an linux shell you can deal with directly: adb shell.
See here for glorious details.

Graphics, database... http calls, and even geomap are just the beginning. Still many interesting things on the Android... There are all kinds of sensors that takes programming to a new level of possibilities.

Thursday, February 17, 2011

HP and Palm RIP

HP bought Palm and going to move the WebOS to PCs. That's interesting. Details here.

Palm HAD the spotlight (about 10 years ago). I played with Palms... in fact, I owned THREE Palms. My first Palm (Palm Vx) was destroyed by water, second one is Palm Zire 72 (destroyed by screen crack),
and the third one Palm Tungsten E2 is not destroyed but the calibration is out of whack. These are decent devices, but you can't talk to somebody with it (not a phone) or surf the web or use it as a map. Yes there were Palm+Phone combos (the Treo) long ago but they didn't fly like the iPhone. They were just not quite sleek enough.

This webOs thing was the os for Palm Pre... Palm's last approach to grab some marketshare... unforutunately the sales number are disappointing. Now HP are you SURE that's a good buy? Everyone is just too happy with their iPhones (or their basic free phones) and won't even look at the Palm.

Good luck HP... it is competitive out there, and you will need A LOT of marketing to convince people your stuff is cool too.
Apple users are so loyal... they are not so likely to dump their cool iphones/ipads for your stuff unless your stuff is hugely better. Their screens are so crispy clear that you've got to beat first (probably not so possible).

Tuesday, February 15, 2011

Android Graph 2D with bells and whistles

I learned a few new (basic) things about Android programming.
1. They don't do dialog boxes with many controls, you need a new "Activity" to do that, and you can toss parameters around with an "Intent".

The config dialog


2. There are various kind of menus in Android, you launch menu with the menu button and can add your own menu items in bottom of screen (options menu).

Options menu for zooming




3. Now the ultimate bells-and-whistles for a graphing app: I can drag the graph around with a onTouchEvent. I bet your graphic calculator can't do that.

All these activities change the x and y range and will refresh the View within.