Archive for October, 2005

Better Science Through Video Games

“Read article”:http://blog.fastcompany.com/archives/2005/10/21/better_science_through_video_games.html?partner=rss

Interesting article. I thought about that as well when I was a kid actually. Playing certain games require you to think a lot. Sometimes you gotta ponder what to do in order to clear a level.

Now kids have a reason to play games. :P

median values and collection type in oracle 9i

During that process, I had to get Median values out of it. With oracle9 gettign median value is so easy. However, once I had to deal with oracle8 in the first stage of the development process and oracle8 didn’t have the built in function.

Anyways, here’s oracle 9 approach to get median value in basic form:

SELECT
percentile_cont(0.5) within group (order by a.”Setup Duration” ASC)
from
studysetup_metric;

See? It’s that simple.

One another thing I had to deal with was that string value passing from asp.net to oracle procedure. Actually it’s related to string length limitation in sql statement in oracle.(I’m not sure whether it applies to another sql..)

Usually string is passed from asp.net, it is stored in one of variables in oracle stored procedure. The variable is used in sql statement within the procedure. But the string length of the variable that is used in sql is limited to somewhere 255 as I recall(but I’m not 100% sure.. please look for the information on internet for accuracy). What if string values are longer than what’s supposed to be. In this case, you would want to use collection type instead. I’ll write this about collection type and where-in sometimes later…

to be continued…

No components in ActionScript project??

I downloaded the alpha version of flex builder yesterday and played a bit. Drawing is fine, APIs are good, and I’m glad that it has real language feels on as3.

Anyways, somehow I couldn’t add components in mx.controls package to the stage. Why? Drawing button shape in the class file is fine, but mx.controls.Button was’t added… It reminds me of which in flash I would need a component placed in the library in order to add component to the stage using actionscript. Anyone has the answer to this?

The Schultz Philosophy

This post is not related to technology or flash at all, but I thought this kind of post could be worthy to show.

——————————————————-

The following is the philosophy of Charles Schultz, the creator of the “Peanuts” comic strip. You don’t have to actually answer the questions. Just read the e-mail straight through, and you’ll get the point.

1. Name the five wealthiest people in the world.

2. Name the last five Heisman trophy winners.

3. Name the last five winners of the Miss America.

4. Name ten people who have won the Nobel or Pulitzer Prize.

5. Name the last half dozen Academy Award winner for best actor and actress.

6. Name the last decade’s worth of World Series winners.

How did you do?

The point is, none of us remember the headliners of yesterday. These are no second-rate achievers. They are the best in their fields. But the applause dies. Awards tarnish. Achievements are forgotten. Accolades and certificates are buried with their owners.

*Here’s another quiz. See how you do on this one:*

1. List a few teachers who aided your journey through school.

2. Name three friends who have helped you through a difficult time.

3. Name five people who have taught you something worthwhile.

4. Think of a few people who have made you feel appreciated and special.

5. Think of five people you enjoy spending time with.

Easier?

The lesson: The people who make a difference in your life are not the ones with the most credentials, the most money, or the most awards. They are the ones that care.

“Don’t worry about the world coming to an end today. It’s already tomorrow in Australia.” (Charles Schultz)

macromedia lab

Macromedia opened a whole new site for pre-released applications, code samples and best practicies, documentations, etc.

I think this is a great move for both developer community and company. Cheers!

“http://labs.macromedia.com/about/”:http://labs.macromedia.com/about/

Ajax webmail – roundcube

Here is another webclient application using Ajax.

“http://www.roundcube.net/”:http://www.roundcube.net/

This blows away current gmail and once-attempted-flash-client-webmail application. That is great to see RIA starting to appear. For web application like that, AJax fits to the category as a proper technology. Why is it good(better)? My reason is obvious.

PERFORMANCE!
Read more

Quote of the day

Few people are capable of expressing with equanimity opinions which differ from the prejudices of their social environment. Most people are even incapable of forming such opinions.
– Albert Einstein

Flex2 and Flash player 8.5 on the way

Macromedia released a note that Flex2 and Flash player 8.5 are on the horizon. In the summary of what they released:

Flash player 8.5 – ActionScript 3!!! with ECMAScript specifications.

Flex Framework 2 – not sure what’s included

Flex Builder 2 – previsouly code-named Zorn. For those who don’t have background of this Zorn, this IDE is based on Eclipse.

Note that all new product line will be available sometime first half of 2006.

“Read more?”:http://www.macromedia.com/macromedia/proom/pr/2005/announcing_flex2.html

Interesting Interesting gOOify!

“http://www.gskinner.com/blog/archives/2005/10/flash_8_gooify.html”:http://www.gskinner.com/blog/archives/2005/10/flash_8_gooify.html

Very interesting approach done by GSkinner. Guy watson’s approach was awesome, but this new goofier thing blows me away. that tells you how incredible things you can do with flash 8! I should’ve learnt things like that instead of doing boring enterprise development work… sigh..