Custom Search

Friday, March 20, 2009

for loop

for (i=0; i total; i++) { 
for (j=i+1; j total; j++) { 
//.......... 
}  
vs  
for (i=0; i total; i++) { 
for (j=0; j total; j++) { 
//......... 
}
}

Wednesday, March 18, 2009

Freeware rules!

This application allows you to use your webcam on multiple programs at the same time.

http://www.splitcamera.com/

Check it out!

Tuesday, March 17, 2009

Webcam in Flash

cam=Camera.get()
cam.setMode(640, 480, 24, true);

cam.onStatus=function(e)
{
if(e.code == "Camera.Unmuted")
{
//start the application
initialize()
}
else
{
System.showSettings(3)
}
}
//if there are no Cameras
if(cam == null)
{
System.showSettings(3)
}
else
{
output.attachVideo(cam)
}

Wednesday, March 11, 2009

Alaska

When is the best time to cruise to Alaska?
Anytime between May and September is a good time to go to Alaska, but there are better times in the season to travel if you have a specific interest or motivation. For example, if you're interested in saving money, then the shoulder seasons of May and September are the best times to go. If you are traveling with children, you may be limited to mid-June through mid-August. Spring is a great time to see the wildflowers in full bloom and Alaska's Fall foliage is a sight to see as well. Your warmest and longest days will be in June and July and will offer you plenty of opportunities to enjoy active, calving glaciers. Each month has its benefits. You should plan to travel when it best meets your schedule and budget.

Alaska's Aurora Borealis
The Northern Lights in Alaska

When to see them:

Best Months: The sky has to be dark which means the lights unfortunately can't be seen in summer. The best months are March and September; that's when there are: 1) frequent displays, 2) clear skies, and 3) generally mild weather.

Best Time of Day: Start looking about an hour and a half after sunset. But peak auroral activity is between 10pm and 2am solar time. Solar time is 2.5 hours after clock time during daylight savings time (April through October) and 1.5 hours after during standard daylight time (November through March). That means the best time for seeing the aurora during winter is 11:30pm-3:30 am with the peak at 1:30am. During spring and fall (September and March), the best time is 12:30am-4:30am, with the peak falling at 2:30am.

The Right Conditions: If it's clear and dark enough to see stars, there's a chance you'll be able to see the aurora. Get away from city lights and hope for a clear night-if there's a heavy overcast, you won't be able to see it. Partly cloudy skies? You have a chance, but it needs to be a strong aurora for you to see it. But even if the sky is crystal clear, auroral activity varies greatly from night to night.

Where to See the Northern Lights:
The Fairbanks area is the most likely place to see them on any given night. Hordes of Japanese tourists decend on Fairbanks over the winter just to see the Aurora Borealis. Just north of Anchorage, away from the city lights, is a good place too. In Alaska, they can be seen as far south as Ketchikan.

Tuesday, March 10, 2009

Broken promise

Broken trust makes a jealous heart.
Injured love slowly falls apart.
Say good-bye cause love can't right,
Above the lies of a broken trust
Young love is such a special thing,
It spoils the heart for less
But sure as time, all things must change,
Not always for the best
With wicket ease, temptation breeds,
A strong and binding spell
But, the honeymoon is over when,
Your out with someone else

Sunday, March 1, 2009

Insomniac

Its not an excuse, i'm just telling the facts.