Savarino's blog

Hello, world

Welcome to my 2008 blog! I'm trying to consolidate my Web life by aggregating the random stuff that I find. Rather than locking my old friends, new friends and colleagues into external sites, I'd rather do everything here.

There is no single focus or target niche, just random Web droppings that I find personal, useful and/or entertaining - usually art, code, maps, media or action sports. With a short attention span and an affinity for instant gratification, who knows where this is going.

Rails Envy

The team at Rails Envy is back with their Apple-style commercials comparing Ruby on Rails to a variety of competing environments.

Note: These videos may only be funny to geeky web developers - especially Java and .NET haters, those who realize PHP is limited, and/or fanboys of Rails.

Ruby on Rails vs PHP


More Videos...
Ruby on Rails vs Java
Ruby on Rails vs .NET
Ruby on Rails vs PHP - Frameworks
Ruby on Rails vs PHP - Migrations
Ruby on Rails vs PHP - Organization
Ruby on Rails vs PHP - Changing Database

CakePHP and Facebook

CakePHP and Facebook

Do you want to integrate the Facebook API with CakePHP? Good news - it is really easy!

CakePHP is a free open-source rapid development framework for PHP. It's a structure of libraries and classes for programmers creating web applications originally inspired by Ruby on Rails. The primary goal is to enable you to work in a structured and rapid manner - without loss of flexibility.

In case you've been off the grid for the past few months, Facebook is a social utility that connects you with the people around you. It is like MySpace, only more about your friends, with more features, and less intrusive advertising.

After reading the only blog post on CakePHP and Facebook, I was left with many questions because I'm new to Cake. So I did some further Google searching and found how to build a photo gallery using CakePHP and Flickr, which utilizes Miguel Ros' Flickr component. This was exactly what I was looking for - a CakePHP component. Then it was just a matter of reverse engineering it to work with the Facebook API.

Here's the code...

Facebook Component
app/controllers/components/facebook.php

<?php
/**
* Facebook Component
* @author Matt Savarino
* @license MIT
* @version 0.1
*/
$GLOBALS['facebook_config']['debug'] = NULL;

class
FacebookComponent extends Object
{
    var
$api_key = "YOUR_API_KEY";
    var
$secret = "YOUR_API_SECRET";
   
    function
startup(&$controller)
    {
       
vendor('facebook/facebook');
       
       
$controller->facebook =& new Facebook($this->api_key, $this->secret);
       
$controller->set('facebook', $controller->facebook);
    }
}
?>

Sample Controller
app/controllers/nodes_controller.php

vendor('facebook/facebook');

class NodesController extends AppController
{
    var $name = 'Nodes';
    var $components = array('Facebook');
    ...
}

Accessing the API
The Facebook API is now available in both your controller and views.

Controllers: $this->facebook->api_client->users_getLoggedInUser()

Views: $facebook->api_client->users_getLoggedInUser()

Next Steps
I need to figure out the best method for forcing the user to install the application. The beforeFilter() function in the controllers seems to be the best place, but I'm having some issues.

Please comment with your questions/suggestions! I'll try to update this post with any improvements.

Bittersweet by Ze Frank

As promised, the show with zefrank has reached its first year and will expire on March 17th. To start off his last week, Ze Frank shares his views on creativity and confidence.

20 Questions for Startup Success

Norm Meyrowitz 20 Questions for Startup SuccessUWTV just aired 20 Questions for Startup Success, which was a guest lecture by Norm Meyrowitz, the former President of Macromedia (1993-2004).

Watch on UWTV
(Runtime: 00:56:22)

  1. What problem does this product solve?
  2. How does the product solve that problem?
  3. Who are the end users of the product?
    Is there a large addressable market of actual users?
  4. Who is your revenue-supplying customer?
    Are there enough of these paying customers to make a huge business?
  5. Does the product solve a problem that end-users/revenue supplying customers actually have?

    Side note, be aware of fads such as social networking and the long tail.

  6. Are you sure it is a product and not just a "feature"?
  7. Does your stuff easily fit into the way that people already work?
    Or are you relying too much on people changing the way they work because your stuff is so great?
  8. Are you too involved in HOW you are building your product rather than WHAT you are building?
  9. Who are the potential partners? Who are the required partners?
  10. What is the go-to-market strategy?
  11. What is your sustainable competitive advantage?
  12. Do you have a time-to-market/first mover advantage?
    Are you ahead of the pack and can you stay there? Are you too early?

    "The law of increasing returns" aka exponential growth or network effect.

  13. Can you be number 1 or number 2 in this space? Who is the competition?
    "Be ready to compete with people who are better than you."
  14. Is there a team formed/identitifed with a record of successful ventures?
    Have they done something like this before?
  15. Is there a "soul" of the team that knows where this product AND business is going for the next few years?
  16. Is anyone on the team insane? Are the members of the team totally passionate & aligned on this business?
  17. Are there product/technology/operations barriers to sucess?
    If yes, can they be overcome?
  18. Are there marketing/sales barriers to success?
    If yes, can they be overcome?
  19. Are there legal barriers to success? If yes, can they be overcome?
  20. Is there an exit strategy? (IPO or enough possible acquisition candidates to make acquisition a slam dunk)

Conclustion
If you want to build the next Amazon.com, don't be in denial.
Know the answers to these questions.
FOCUS!

For more UWTV, search by subject.

The Machine is Us/ing Us

Michael Wesch, the Assistant Professor of Cultural Anthropology at Kansas State University, recently posted a good video explaination of Web 2.0 in just under 5 minutes.

All of Hamburg Goes 3D

3D model of Hamburg, Germany for Google Earth

"This is a world premiere," said Google spokesperson Stefan Keuchel at the presentation of the project today. "With the textures on the facades [of buildings] Hamburg is the first city worldwide to be visible in this detail. Hamburg 3D will be live in a few days or weeks."

Check out the screenshots and video. If you are interested in GE blogs, be sure to subscribe to Ogle Earth and GEarthBlog.

Free Online Education

Check out the massive resource list for free online education.
Get your learn on here...

Sites Offering Free Courses
Berkeley Webcasts
MIT Courses
MIT Courses With Video Lecture
Carnegie Mellon
Utah University
Open Learn
John Hopkins
Connexions
Washington CS
Notre Dame
All Learn - Oxford, Standford, Yale
Sofia

Educational Videos
MITWorld VideosArchive.org EducationGoogle Video Lectures
Video Documentaries
Google Education
How Stuff Works Vids

Education With Podcasting
Stanford on iTunes
Berkeley on iTunes
University Channel (Princeton)
Havens Center (UW-Madison)
Perdue University Podcasts
Southwest Tech Podcasts
UCLA Podcasts
W. Kentucky University Podcasts

Web 2.0 Corporate Logos

Flickr's gtmcknight adds reflections, fades and beta to create Web 2.0 corporate logos.

Web 2.0 Corporate Logos

Best Web 2.0 Definitions

Web 2.0 is a complex, subtle, yet practical topic, but it needs so much explanation. Here is a list of the best Web 2.0 definitions and explanations.

Visual: Elements of the Web's Next Generation


Copyright © Matt Savarino. Some rights reserved.
Syndicate content