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...
Script-Tutorials.com has a new article posted today showing you how to combine PHP, some CSS, a dash of SQL and some HTML (oh, and jQuery) to create your own commenting system from scratch that could be used anywhere from a simple blog to a more complex social site.Today I prepared new interesting article - I will tell how you can create own commenting system (AJAX) for your items (any units at your website) with PHP. For our demonstration - I prepared two SQL tables: first table will keep records of our...
On the php|architect site today Keith Casey has posted a ZendCon pre-cap (the conference starts today in Santa Clara, CA) talking about some of what's to come during the week for attendees - five sessions he personally is interested in.Yet again, it's that time of year. Later today we have the kick off of the seventh ZendCon (officially called the Zend PHP Conference). This year I'm hitting the event under the php|architect banner as press. It will be my job to cover the good, the bad, the news, the...
On NetTuts.com today there a new article with what they think is the best way to learn PHP in a list of thirteen different "assignments".Learning something from scratch is almost always an arduous affair - you simply have no idea as to where to start, or not to start, to kick things off. I loathed learning about the idiosyncrasies of C++'s syntax when all I wanted to learn were some darn programming concepts. As I'm sure you can agree, this is a less than ideal situation. [...] Today, we're going to...
Before I introduced the fantastic Viktoria Harrison on Thursday morning, I shared a couple of lessons I've learned over the years. It wasn't really an opening keynote or anything, but I thought I'd share them here for anyone who missed it. I'll try to blog a proper summary of Brooklyn Beta in the next few days.
1. Expectations are a blessing.When a lot is expected of you, it's very easy to let the pressure of meeting those expectations get to you. In fact, it can be paralyzing, and that's not good.What...
On PHPMaster.com today there's a new tutorial showing you how to integrate Amazon's S3 service with your application via the Services_Amazon_S3 PEAR package.In the process of reviewing documentation for Orchestra.io, I found that it doesn't allow file uploads. Instead, it's recommended that Amazon S3 be used for file hosting. If you aren't familiar with it, S3 is an online storage web service that is part of Amazon Web Services (AWS). It provides access to fairly cheap storage through a variety of web...
|
Latest PHP Tweets
|