Friday, April 28, 2006

New App from Google: SketchUp

I've never thought that I would be building 3D models, but Google's new app, Sketch Up, made me rethink. Google Beta SketchUp allows us to quickly and easily create, view, and modify 3D models. Users can also put their 3D models in Google Earth. Best of all, the Beta version is free for everyone, but design professionals can also purchase the professional version for $495.

Some features of Sketchup from Google:

  • Click on a shape and push or pull it to create your desired 3D geometry.

  • Experiment with color and texture directly on your model.

  • Real-time shadow casting lets you see exactly where the sun falls as you model.

  • Select from thousands of pre-drawn components to save time drawing.


Check out Google SketchUp site.

Google SketchUp

Friday, April 21, 2006

The Hospital Window

by Author Unknown (thanks to Anup for the story)

Two men, both seriously ill, occupied the same hospital room. One man was allowed to sit up in his bed for an hour each afternoon to help drain the fluid from his lungs. His bed was next to the room's only window. The other man had to spend all his time flat on his back. The men talked for hours on end. They spoke of their wives and families, their homes, their jobs, their involvement in the military service, where they had been on vacation.

Every afternoon when the man in the bed by the window could sit up, he would pass the time by describing to his roommate all the things he could see outside the window.

The man in the other bed began to live for those one-hour periods where his world would be broadened and enlivened by all the activity and color of the world outside.

The window overlooked a park with a lovely lake. Ducks and swans played on the water while children sailed their model boats. Young lovers walked arm in arm amidst flowers of every color and a fine view of the city skyline could be seen in the distance.

As the man by the window described all this in exquisite detail, the man on the other side of the room would close his eyes and imagine the picturesque scene.

One warm afternoon the man by the window described a parade passing by. Although the other man couldn't hear the band - he could see it. In his mind's eye as the gentleman by the window portrayed it with descriptive words.

Days and weeks passed.

One morning, the day nurse arrived to bring water for their baths only to find the lifeless body of the man by the window, who had died peacefully in his sleep. She was saddened and called the hospital attendants to take the body away.

As soon as it seemed appropriate, the other man asked if he could be moved next to the window. The nurse was happy to make the switch, and after making sure he was comfortable, she left him alone.

Slowly, painfully, he propped himself up on one elbow to take his first look at the real world outside. He strained to slowly turn to look out the window beside the bed.

It faced a blank wall. The man asked the nurse what could have compelled his deceased roommate who had described such wonderful things outside this window.

The nurse responded that the man was blind and could not even see the wall. She said, "Perhaps he just wanted to encourage you."

Epilogue:

There is tremendous happiness in making others happy, despite our own situations.

Shared grief is half the sorrow, but happiness when shared, is doubled.

If you want to feel rich, just count all the things you have that money can't buy.

Today is a gift, that's why it is called the present.

Thursday, April 13, 2006

Google Calendar

The new Google Calendar is impressive in terms of simplicity and ease of use. Pretty cool AJAX tricks as always. Definitely worth a try, but be warned: You will be amazed, and won't be able to get away from it.

One cool trick I found was you could specify the time of the event in the event name like this: "Dentist Appointment at 7:45". Google Calendar is smart enough to recognize 7:45 as a time and set it appropriate for you. Neat!

You can check out the new Google Calendar at calendar.google.com.

Monday, April 10, 2006

Some Tips to Help You Get Organized

Do it in the first place
Be organized about being organized
Keep the goal in mind
Spend most of your effort on the most important task
Keep it simple
Get started early

Read more at www.paulstips.com.

Thursday, April 6, 2006

What is TortoiseCVS?

I am going to set up and play around with this application called TortoiseCVS, which is a CVS client that runs on the Microsoft Windows platform. It's officially recommendated by SourceForge. Thanks to Jin for telling me about this cool application. It's free, so you should give it a try too.

Here is an overview of TortoiseCVS from SourceForge:

CVS, Concurrent Versions System, is a centralized Revision Control System (RCS). SourceForge.net provides CVS service to all hosted projects. In order to access our CVS service, you will need to install a CVS client. CVS allows developers to keep a historical record of changes made to their source code tree, and to allow multiple developers to work on a single set of files at the same time without accidentally overwriting changes made by other developers.

TortoiseCVS is a CVS client that runs on the Microsoft Windows platform. TortoiseCVS is integrated with Windows Explorer (Windows Explorer is the file manager in Windows, not the web browser of a similar name, Internet Explorer), rather than a separate stand-alone application. Since most Windows users are comfortable with the Windows Explorer interface, it is often easy for new CVS users to escape the learning curve by using TortoiseCVS.

Wednesday, April 5, 2006

Got Atlas Installed for Viual Studio 2005 and .NET 2.0

Atlas is a free framework for building a new generation of richer, more interactive, highly personalized standards based Web applications. It works with VS 2005 and .NET 2.0.

I'm excited to have it installed last night. Played around with it for a bit and also started a new project to learn more about the new Atlas framework and AJAX.

Here are some advantages of the new Atlas framework:

  • Atlas empowers ASP.NET developers to effortlessly create richer web experiences.

  • Atlas includes a client-side Javascript framework for easy script creation and reuse.

  • Atlas makes it super easy to consume services from ASP.NET.

  • Atlas makes building composite applications from the programmable web a snap.



You can learn more about the new Atlas framework at atlas.asp.net.

Wednesday, March 29, 2006

“Is Java Finished?” By Vincent Ryan

Here are my takes from an article by Vincent Ryan called "Is Java Finished?"

  • Java's philosophy of development is to expose low-level system interfaces to give developers greater control.

  • Microsoft simplifies the development process; the developer has less control -- but the tools are easier to use.

  • In the Microsoft model, standards and portability are not important, he noted. That makes developing on .NET a high-risk strategy, because the developer is locked into Windows and Windows characteristics.

  • Will Java go away? Most unlikely, because developers who want cross-platform interoperability will take Java. No question about it!



Read more at www.newsfactor.com. Thanks to my friend, Anup, for the article.

Tuesday, March 28, 2006

What is a MS SQL Server Trigger?

A trigger is an object contained within a SQL Server database that gets called each time a row in a table is INSERTED, DELETED, or UPDATED. It is used to execute a batch of SQL code whenever one of these SQL commands, INSERT, UPDATE, or DELETE, is executed against a specific table.

Trigger is stored in the database and can be accessed from any client or web page that connects to the database. If used correctly, trigger can save developers a large amount of time and work.

CREATE TRIGGER trigger_name

ON { table | view }

[ WITH ENCRYPTION ]

{

{ { FOR | AFTER | INSTEAD OF } { [ INSERT ] [ , ] [ UPDATE ] [ , ] [ DELETE ] }

[ WITH APPEND ]

[ NOT FOR REPLICATION ]

AS

[ { IF UPDATE ( column )

[ { AND | OR } UPDATE ( column ) ]

[ ...n ]

| IF ( COLUMNS_UPDATED ( ) { bitwise_operator } updated_bitmask )

{ comparison_operator } column_bitmask [ ...n ]

} ]

sql_statement [ ...n ]

}

}

Example:

CREATE TRIGGER trig_addAuthor

ON authors

FOR INSERT

AS

-- Get the first and last name of new author

DECLARE @newName VARCHAR(100)

SELECT @newName = (SELECT au_fName + ' ' + au_lName FROM Inserted)

-- Print the name of the new author

PRINT 'New author "' + @newName + '" added.'

Read more on this at www.devarticles.com.

Monday, March 27, 2006

Mason Advances to the FINAL FOUR

George Mason stunned the no. 1 seed University of Connecticut, 86-84, in a thrilling overtime NCAA Tournament game on Sunday at the Verizon Center. The Patriots are the first no. 11 seed to reach the Final Four since 1986. The next game is 6:07 p.m. on April 1 in Indianapolis, where Mason will face the University of Florida Gators. More...

Mason Advances to the FINAL FOUR
Members of the Patriots basketball team and coaching staff storm the court after Sunday's thrilling victory over the University of Connecticut.

Mason Advances to the FINAL FOUR

Tuesday, March 21, 2006

Jim Larranaga - Head Coach

Mason Makes the Sweet Sixteen

Fresh off its historic win over sixth-seeded Michigan State in the NCAA Tournament, the George Mason men's basketball team met and faced another challenge, toppling the defending national champions, the no. 3 seed University of North Carolina Tar Heels, 65-60.

The Patriots now face no. 7 Wichita State University in the Sweet Sixteen on March 24 at the Verizon Center in Washington, D.C.

George Mason (25-7) became the first Colonial Athletic Association team to reach the round of 16 since 1988, when Richmond went. More...


Senior guard Tony Skinn, who sat out Friday's game, gets a hug after the Patriots victory over Michigan State.


A happy coach faces the media after the Michigan State win.

Mason Makes the Sweet Sixteen

My Google Page

Check out my Google page at thekhuc.googlepages.com.

From Google's website:

Create your own web pages, quickly and easily.

Google Page Creator is a free online tool that makes it easy for anyone to create and publish useful, attractive web pages in just minutes.


  • No technical knowledge required - Build high-quality web pages without having to learn HTML or use complex software.


  • What you see is what you'll get - Edit your pages right in your browser, seeing exactly how your finished product will look every step along the way.


  • Don't worry about hosting - Your web pages will live on your own site at http://yourgmailusername.googlepages.com


Monday, March 20, 2006

My Very First AJAX Application

The application shows how the XMLHttpRequest object or the Microsoft.XMLHTTP ActiveX object is used to load and display a simple text file in the browser.

Check it out here.

Thursday, March 16, 2006

Mr. Bill Gates Calls It the “Knowledge Economy”

In his speech to about 300 political, business and academic leaders from Canada, Latin America and the United States at the company's Government Leaders Forum, Mr. Bill Gates sketched out his vision for the future. He said we're transitioning towards the "knowledge economy". In this so-called knowledge economy, a cell phone will become a "digital wallet", able to receive e-mail and even scan business cards, while computers and TVs will merge.

Bill Gates is my idol, and I must say it would be really cool to see his vision comes true.

Read more on his speech at BusinessWeek.com.

Wednesday, March 15, 2006

Jogging Routine: Days 3 and 4 Recap

Day 3 (3/15): Didn't feel like jogging today. Thought it was too cold outside to be jogging. Body still sored from jogging the days before. Went to bed at 12:30 the night before; thus, not enough hours of sleep.

Day 4 (3/16): Was able to jog today. Body felt better, even though still a little sored. Was able to jog a little longer without stopping. It was cold today; had to put on a hoody and sweatpants. Also practiced a few Taekwondo techniques to work out upper body. Progressing slowly and steady. Can't wait till tomorrow morning.

Goal: Working toward jogging around the neighborhood without stopping.

Display and Hide DIVs Using Javascript and CSS

Suppose I have some text within <div id="div1"></div> tags, it's easy to display and hide this block of text with the help of some Javascript code and CSS.

To hide the block of text, do the following:

<script language="javascript">
document.getElementById('div1').style.display = 'none';
</script>

To display the block of text, just remove the word 'none' from the code above as follows:

<script language="javascript">
document.getElementById('div1').style.display = '';
</script>

To further extend this capability, we can put the code above in a Javascript function, which can be called using the OnClick event. This can be easily done with a form checkbox as follows:

<input type="checkbox" id="CheckBoxID" OnClick="ShowHideDIV();">

function ShowHideDIV()
{
var blnCheckbox = document.getElementById('CheckBoxID')
if(blnCheckbox.checked)
{
document.getElementById('div1').style.display = 'none';
}
else
{
document.getElementById('div1').style.display = '';
}
}

Tuesday, March 14, 2006

Jogging Routine: Days 1 and 2 Recap

Day 1 (3/13): Woke up at 6:30 to get ready. Started jogging around 6:45. Practiced a few Taekwondo techniques. Done at 7:30 to get ready for work.

Day 2 (3/14): Body sored from jogging the day before. Thought it was going to rain so just walked around the neighborhood in smaller loops. Practiced a few Taekwondo techniques. Done at 7:30 to get ready for work.

Goal: Working toward jogging around the neighborhood without stopping.

Friday, March 10, 2006

Top 10 Richest People in the World

Here is the list of the 10 richest people in the world according to Forbes.com:


  1. Bill Gates - 50 B


  2. Warren Buffett - 42 B


  3. Carlos Slim Helú - 30 B


  4. Ingvar Kamprad - 28 B


  5. Lakshmi Mittal - 23.5 B


  6. Paul Allen - 22 B


  7. Bernard Arnault - 21.5 B


  8. Prince Alwaleed - 20 B


  9. Kenneth Thomson - 19.6 B


  10. Li Ka-shing - 18.8 B


This year the list of billionaires grew to a record 793, compared to just 140 billionaires 20 years ago. They're worth a combined $2.6 trillion. Read more on this story at Forbes.com.

Wednesday, March 8, 2006

Are We Nearing a Virtual PC?

With the introduction of GDrive by Google, a Virtual PC is very possible in the nearing future. Soon enough what we can do on a PC can be conducted over the Web. In order for this to happen, applications and plug-ins will need to be created to work with this GDrive technology. There were also rumor that Google is creating an OS to be run on the Web. If this is true, then I say: "We need to be ready for a Virtual PC pretty soon."

Read more on this at Playfuls.com.

Thursday, March 2, 2006

AOL to Charge Mass Emailers Fee to Send Emails to Its Members

AOL has just announced that it will be charging mass emailers a small fee for each message sent to its members. Their intention is to eliminate spams and junk emails, but it could a hard blow to the face for some legitimate groups who do mass emailing, because they cannot afford to pay the fees. I am not AOL email user, but I'm curious how current AOL email users will react to this announcement. I personally do not like the idea that my email provider would do something like this, because I can take care of junk emails myself. This is going to be better off for some people and bad for others. I guess we just have to wait for the results.

Read more at CTV.ca.

Tuesday, February 28, 2006

Javascript to disable user from using the browser’s Back button

The following Javascript code would disable the user from using the browser's Back button.

<script language="javascript">
window.history.forward(1);
</script>

Wednesday, February 15, 2006

Bloch’s Standard Exceptions

IllegalArgumentException: Parameter value is inappropriate

NullPointerException: Parameter null where prohibited

IndexOutOfBoundsException: Index param out of range

ConcurrentModificationException: Concurrent modification detected when not allowed

IllegalStateException: Object state is inappropriate for method invocation. Ojbect may not be initialized before accessing its state. ClassCastException (Illegal state of object)

UnsupportedOperationException: Object does not support the method. Substitutional principal