|
Sponsored Link
|
In a previous post Ian Barber started looking at code you could use to determine linear regression in PHP. In part two he restructures the code into a more manageable class rather than the mostly procedural process it was before.In the last post we had a simple stepping algorithm, and a gradient descent implementation, for fitting a line to a set of points with one variable and one 'outcome'. As I mentioned though, it's fairly straightforward to extend that to multiple variables, and even to curves,...
On PHPBuilder.com today they have another tutorial that involves the Fuel PHP framework (previously mentioned here). This time, though, they dive in a bit deeper and look at how to create a database-driven application using the database/ORM tools the framework comes bundled with.In a recent article I introduced the Fuel PHP framework, which shows great promise despite its status as a relative newcomer to the crowded PHP framework market. While hopefully this introductory tutorial helped to acquaint you...
In the "DevOps" section of DZone.com today Mitchell Pronschinske has posted the slides for a presentation he gave at the WebTech 2011 conference titled "DevOps for Developers". It gives a good perspective for those used to the coding side of things on what's out there for the server an beyond.A presentation entitled "DevOps for Developers" was given at the WebTech 2011 conference and now the slides are up online for all to see. I'll summarize the show and let you know where the better slides are so you...
On the DeveloperDrive.com site today, there's a new post with a few reminders for PHP developers out there of things it's easy to forget when writing your applications - some common mistakes to avoid.Despite the high expectations placed on them at times, developers are human. They were the last time we checked anyways. As humans, we are bound to make mistakes from time to time. And simple, common mistakes often slip past our filters the more comfortable we become with something. [...] But knowing what...
Rob Allen has a quick note for fans (or those just discovering) his "Getting Started with Zend Framework" tutorial - he's posted an updated version for ZF2 beta 1.Getting started with Zend Framework 2 (beta1), creates the same application as my ZF1 tutorial, so it should be very familiar, but this time, it's in the context of Zend Framework 2. As usual, it's a PDF too.This latest version gives you a gentle introduction to the framework and steps you through the creation of a sample music inventory...
Phone Spell
Plot 2D Functions
Remote HTTP access
Web scraper
MySql Manager
Data Grid nav
Swype for PHP
FDownload
Manager Class
Easy Access Control Layer ACL
CNP validator
In the last post we had a simple stepping algorithm, and a gradient descent implementation, for fitting a line to a set of points with one variable and one 'outcome'. As I mentioned though, it's fairly straightforward to extend that to multiple variables, and even to curves, rather than just straight lines.For this example I've reorganised the code slightly into a class to make life a little easier, but the main changes are just the hypothesis and learn functions. For the hypothesis, we just need to...
As I've mentioned in previous posts, I like
beer.
I mean, I really like it. I've tasted many
unique,
special,
rare,
and extremely
old
beers. I even have Beer Judging credentials. I
would go as far as to say that I'm a "beer aficionado." I find the idea of a
cheap, poorly-made beer (especially when there are superior alternatives on
hand) to be almost repulsive.
I know
aficionados
in other fields: wine, vodka, scotch, cheese, movies, music,
specific genres of music, woodworking, home electronics, office...
My slides for my "Under the Hood" talk at ZendCon are now online and can be downloaded here.
Thanks to all the attendees, especially those who left feedback at Joind.In.
On his blog today Sameer Borate has a new post with a handy bit of code you can use to find the keywords from a search engine referral to help with tracking how visitors have come to your site.A couple of weeks back I had to write a solution for a client to track the referrer search engine from where the user came to his sites contact page, without using Google Analytics. If a user was to fill the contact form on the website, the referring search engine name and the keyword for which it was refereed was...
Kevin Schroeder has a reminder for those attending ZendCon this week - don't forget about the unconference and bring those topics you may have not gotten officially accepted to the conference and present them!If you were looking at the UnCon at ZendCon and wondering what, if anything, you should do, let me give you a couple of hints. The UnCon is the place where people who either did not submit a talk or did not get their talk accepted can sign up for a time to speak and talk on the topic of their...
On the ZendCasts.com site today, they branch out from just talking about Zend Framework-related topics and take a look at he Slim micro-framework in this new screencast.He introduces the framework as a light-weight, easy to use tool that doesn't include "all of that extra stuff". He walks you through the creation of a (very) simple site that includes some basic templating too. At the end of the screencast he hints at the next part of the series - creating a simple JSON endpoint as a RESTful web...
Would you like to see the EXPLAIN output for all MySQL queries of any PHP application without changing the application much? Easy-peasy: compile PHP to use the mysqlnd library, install PECL/mysqlnd_uh and paste 22 lines of evil code into your auto_prepend_file .
class conn_proxy extends MysqlndUhConnection {
public function query($conn, $query, $self = false) {
if (!$self) {
$this-query($conn, "EXPLAIN " . $query, true);
if ($this-getFieldCount($conn)) {
printf("\tAuto EXPLAIN for '%s'\n",...
PHPMaster.com has posted the first part of a new series they're presenting on working with OAuth in PHP, specifically using it to connect to the Twitter API. This first part of the series introduces you to the concepts of OAuth and some early code to work with user credentials.A common complaint about OAuth is that it is very difficult to understand, but perhaps some of that confusion is because of an expectation that the abstraction provided by a third-party library will erase the need to understand the...
On the Smashing Magazine site today there's a new post introducing you to templating in PHP applications. They cover both the creation of a simple, custom templating library as well as using a more widely known too - Twig.In this article, we'll cover how to separate the view of your PHP application from its other components. We'll look at why using such an architecture is useful and what tools we can use to accomplish this. [...] To fully benefit from this article, you should already know how to write...
DevShed has posted a series of tutorials talking about different sorts of service layers in PHP applications - seven of them to be exact:If you're looking for an approachable guide that teaches you how to implement an easily-customizable service layer in PHP, then take a peek at this article series. In a step-by-step fashion, it walks you through the development of a sample web application, which uses a service to perform CRUD operations on a domain model composed of a few user entities.Service layer...
Latest PECL Releases:
mysqlnd_ms 1.1.1
eio 0.0.1
rrd 1.0.5RC2
CUBRID 8.4.0.0004
The Zend Framework community is pleased to announce the immediate availability
of Zend Framework 2.0.0beta1. Packages and installation instructions are
available at:
http://packages.zendframework.com/
On the DeveloperDrive.com site there's a recent post anyone wondering about cross-site scripting should give a read. They introduce you to the basic concept and two things you can do to help prevent them.This little fable describes the most common vulnerability found in web sites, the Cross Site Scripting (XSS) attack. According to a report from WhiteHat Security 83 percent of websites they tested have had at least one serious vulnerability and 66 percent of all websites with vulnerabilities are...
If you're in the process of prototyping a site or just need a lightweight storage tool for your application, you might look into SQLite. Fortunately, PHP has direct support for it and this great tutorial from ZetCode.com will introduce you to some of the basic concepts you'll need to get working (it's a bit older, but still very useful).This is a PHP programming tutorial for the SQLite database. It covers the basics of SQLite programming with PHP language. There are two ways to code PHP scripts with...
|
|