Categories
Development

Yahoo! Live API

Yahoo! Live just released an API. Yahoo! Live lets you create your own social broadcasting experience. Display, hack and mashup live video streams on your website or client application.

Looks like they offer both a REST and Javascript interface, so that should be pretty cool. It’s still an experimental release, but at quick glance seems very cool. Will be interesting to see some of the mashup possibilities using this new API.

Categories
Development

Paycheck Riddle

Today at work someone pointed out that since the month begins on a Friday this year and it’s a leap year, that this will be a rare February in which we will receive 3 paychecks in one month. The question that had us thinking was how rare this occurrence this actually is. 40 years? or perhaps every 28 years?

To attempt to solve this I figured I’d write a little script to run through the possibilities. Below is a quick script I threw together in PHP.

for ($i=1901; $i<2600; $i++) {
  if (date('L', mktime(0, 0, 0, 2, 1, $i))) {
    if (date('N', mktime(0, 0, 0, 2, 1, $i)) == 5) {
      echo $i . ' is a leap year  and the 1st of the month
             is a Friday.';
    }
  }
}

It's pretty basic. It loops through the years 1901 through 2600. Then checks the if the current year that the loop is on happens to be a leap year. If it in fact is then it checks if the first of the February of that year happens to fall on a Friday. Finally if all that criteria is met it prints that year out.

The answer is that it will occur every 28 years.

Categories
Development

Google Chart API

Looks like Google released a very cool looking Chart API. Seems pretty easy to use. You just make a call to their API in the image src attribute passing the API some basic parameters and a PNG graph is embedded in your page.

There’s several types of charts available:

  • Line Chart
  • Scatter Plot
  • Bar Chart
  • Venn Diagram
  • Pie Chart

The API is fully documented and instructions can be found here.

Below is a real basic example of making a call to an image on the page:

http://chart.apis.google.com/chart?
chs=200×125
&chd=s:helloWorld
&cht=lc
&chxt=x,y
&chxl=0:|Mar|Apr|May|June|July|1:||50+Kb

Sample chart

Categories
Development

NuLook Laser & Aesthetics Website

Just launched the website for NuLook Laser & Aesthetics. They’ve just opened and are located in Lower Gwynedd, PA. The design of the site tries to convey that they are a fully licensed medical practice while also still coming across as a soothing and elegant place of beauty.

NuLook Laser & Aesthetics

The site is written to current web standards, featuring heavy doses XHTML, CSS, Javascript with a little dash of ActionScript thrown in there as well. YUI Grids served as the site framework. Also the YUI Event Utility was used heavily in the site (thanks so much for making that Yahoo!), including on the services FAQ’s.

Google Maps API is used to provide an interactive map of their location. The site also features a contact form that emails submissions to the client as well as records submission to a MySQL database. Popup calendar is based on the YUI Calendar.

Check out their website: http://www.nulookla.com

Categories
Development

Cowlicks Kids Salon

Cowlicks Kids Salon just launched a few days ago. They are a kids salon located in Boca Raton, Florida. I worked on the site with Geoff. He was responsible for the logo and the site’s overall design.

Cowlicks Kids Salon
The Yahoo User Interface Library (YUI) was featured extensively in this site. The site wireframe is based on CSS Grids and the TabView component is featured on the Salon and Jewelry pages.

A custom jewelry admin application was created for the client using PHP, MySQL, and Javascript. It allows the client to login and add, edit or delete pieces of jewelry. Our client needed the ability to upload images of the specific jewelry items, so using the jewelry app she can upload images which are then resized into two separate files to ensure the files work well on the website. The app uses the GD library to create a full size image and a thumbnail jpeg.

The interactive map and directions are being delivered via the Google Maps API. It’s a very cool and robust API. We also used the open source PHPList for the client to manage a mailing list. There’s a form for interested people to sign up for the mailing.

The jewelry page relies on Lightbox2 for the display of the detailed view of the images. It’s a pretty cool effect that really helps the jewelry items stand out.

There’s still some little things that we have to finish up for them.

Categories
Development

Installed Gallery

Installed Gallery on my volleyball team’s website www.spikedpunchvolleyball.com. It’s on open source web based photo album organizer. I was looking for something open source so that we could easily throw together photo albums of our volleyball games.

Installation wasn’t too bad. My host DreamHost offered it as an easy install, meaning you just click a button and they pretty much take care of the rest. Had to configure it a bit to work with the WPG2 plugin since Spiked Punch is driven by a WordPress blog. The WPG2 plugin allows the Gallery app to integrate pretty easily with WordPress.

Still would like to customize it a bit more, but it’s doing it’s job so far. Check it out at http://spikedpunchvolleyball.com/wp-gallery2.php.