News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
Create a Movie Recommendation App with Prediction.io - Implementation
September 16, 2014 @ 10:54:16

The SitePoint PHP blog continues their series about creating a movie prediction engine with Prediction.io in this second part focusing on implementation. In the first part of the series they set up the server and configuration to make the jump into the code. This second part gets more into the application side and features working code linking the prediction engine with the TheMovieDB API.

He jumps right into the code, showing how to:

  • Fetch the data from the TMDB (via Flight and Guzzle)
  • Populate the data back into the Prediction.io database
  • Picking a random movie from the list (and outputting it to a page)
  • Get movies the engine predicts as recommendations

The recommendations are based on ratings on other movies in the database with most of that logic happening behind the scenes instead of in the PHP script. The results are then output to the page along with the other movie data.

0 comments voice your opinion now!
movie recommendation predictionio server tutorial api implementation

Link: http://www.sitepoint.com/create-movie-recommendation-app-prediction-io-implementation/

SitePoint PHP Blog:
Create a Movie Recommendation App with Prediction.io - Setup
September 15, 2014 @ 09:47:24

On the SitePoint PHP blog today Wern Ancheta has posted the first part of a series about creating a recommendation engine with the help of PHP and a system called Prediction IO.

In this tutorial, I'm going to walk you through Prediction IO, an open-source machine learning server. It allows you to create applications that could do the following: recommend items (e.g. movies, products, food), predict user behavior, identify item similarity and rank items. You can pretty much build any machine learning application with ease using Prediction IO. You don't have to deal with numbers and algorithms and you can just concentrate on building the app itself.

He walks you through the download and install of the Prediction IO software, how to start up the server and how to access its web interface. He shows you how to create an "engine" that will be used to make the recommendations and some of the settings allowing you to tailor it to your needs. The script will hook into The Movie DB API for content. He starts in on the PHP packages that will be needed to make the API connection and recommendations, but the actual code will come in a later article.

0 comments voice your opinion now!
movie recommendation predictionio server tutorial api movie

Link: http://www.sitepoint.com/create-movie-recommendation-app-prediction-io-setup/

Lorenzo Alberton's Blog:
Create a video preview as animated GIF with FFmpeg and PHP SPL
September 04, 2009 @ 09:52:50

Lorenzo Alberton has posted a new item to his blog with a code snippet showing the combination of FFmpeg and features in PHP's SPL to make a GIF preview.

About one year ago, I had to create animated GIFs as a preview of a video for a media portal. I recently stumbled upon the code I wrote and thought it was probably worth sharing. It makes a rather unconventional use of the SPL Iterators, proving how flexible they are.

His method combines Imagick, FFmpeg and a a Thumbnail_Extractor class that extends the SPL Iterator. The script runs through the frames of the movie file and allows you to define multiple places to pull thumbnails from. Complete code and output examples are included.

0 comments voice your opinion now!
animated gif tutorial ffmpeg movie thumbnail spl


Davey Shafik's Blog:
php|tek Days 0 & 1
April 26, 2006 @ 16:18:33

Davey Shafik has already gotten some of his experiences down in blog post form from the php|tek conference today, actually starting with the day previous in his Day 0 and Day 1 posts.

In the Day 0 post he just mentions arriving at the conference and getting things ready, but Day 1 sees him giving his "Future Deployment of PHP Applications" talk and his upcoming "Migration to PHP 5.1".

He also mentions videoing the presentation from today ("Deployment" talk) and is hoping to get a Flash video of the presentation up for all to see post-conference (a great idea for non-attendees).

0 comments voice your opinion now!
phptek conference blog days zero one talks video flash movie phptek conference blog days zero one talks video flash movie


phpRiot.com:
Creating sortable lists with PHP and AJAX
February 24, 2006 @ 13:17:49

On phpRiot today, they've posted a new tutorial showing how to create sortable lists with Ajax and PHP.

You might have been in a situation before where you had a list of items in your database that needed to be output in a specific order. These items could be anything: perhaps a listing of your favourite movies or your favourite books. For whatever reason, you want them ordered in a custom way that can't be determined automatically (such as alphabetical).

This article covers the implementation of a system that lets you easily define the order of such a list.

They use the example of a movie listing to fill out the data items. They show you both sides of the setup - using Prototype and Scriptaculous to create effects/handle the Ajax, PHP to interface with the database, and a little CSS to make it all look nice. The end result is a list that saves its status from page load to page load, and can be modified just a simple click and drag.

0 comments voice your opinion now!
ajax sortable lists prototype scriptaculous movie list ajax sortable lists prototype scriptaculous movie list



Community Events





Don't see your event here?
Let us know!


podcast package library api symfony series update community laravel language zendserver list introduction tips deployment opinion install release framework interview

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework