SitePoint PHPHow to Build an OctoberCMS Theme (28.11.2014, 17:00 UTC)

October CMS is the new star in the sky of CMSes. Built on top of Laravel, it promises joyful coding and a back to basics approach. Read our introduction here and find out how to build plugins for it here. In this article, we’re going to see how we can build a theme.

What We Are Going to Build

We are going to build a blogging theme. The theme will depend on the rainlab blog plugin, and will contain:

  • Default page layout
  • About page
  • Home page
  • Posts page
  • Categories page
  • Single post page

These are the main parts of a blogging website. At the end of this article, you’ll be able to create your own pages and extend the theme with new functionality.

The entire source code mentioned in this post is available on Github, so you’d do best if you open the repo in another tab and follow along as we explain each file in detail.

Continue reading %How to Build an OctoberCMS Theme%

Link
Anthony FerraraIt's All About Time (28.11.2014, 15:00 UTC)
An interesting pull request has been opened against PHP to make bin2hex() constant time. This has lead to some interesting discussion on the mailing list (which even got me to reply :-X). There has been pretty good coverage over remote timing attacks in PHP, but they talk about string comparison. I'd like to talk about other types of timing attacks.

Read more »
Link
Remi ColletPHP version 5.5.20RC1 and 5.6.4RC1 (28.11.2014, 13:52 UTC)

emblem-notice-24.pngNEW : Release Candidate versions are now available in remi-test repository for Fedora and Enterprise Linux (RHEL / CentOS) to allow more people to test them. They are only available as Software Collections, for a parallel installation, perfect solution for such tests.

RPM of PHP version 5.6.4RC1 as SCL are available in remi-test repository for Fedora 19-21 and Enterprise Linux.

RPM of PHP version 5.5.20RC1 as SCL are available in remi-test repository for Fedora 21 and Enterprise Linux.

emblem-notice-24.pngInstallation : read the Repository configuration and choose your version.

Parallel installation of version 5.6 as Software Collection (x86_64 only):

yum --enablerepo=remi,remi-test install php56

Parallel installation of version 5.5 as Software Collection (x86_64 only):

yum --enablerepo=remi,remi-test install php55

Notice : version 5.6.4RC1 is also available in Fedora rawhide.

Software Collections (php55 - php56)

Link
Pascal MartinOctober 2014 on internals@php (28.11.2014, 13:00 UTC)

Cet article est aussi disponible en français.

You can follow me @pascal_martin, and there is an RSS feed of the posts I write in English.

809 messages have been exchanged in October 2014 on PHP’s internals@ mailing-list — a bit more than in September.

As a graph representing the number of mails per month for the last three years, we’d get:

First of all, PHP 5.6 has entered its normal cycle of releases, with a first maintenance version at the beginning of the month.


Nikita Popov has written the RFC: Remove deprecated functionality in PHP 7, suggesting to remove from PHP 7 everything that was flagged as deprecated on all 5.x versions including, for example : ext/ereg, ext/mysql, affectation of new by reference, functions to manipulate magic_quotes, # comments in php.ini, … Considering the impact the removal of the first two points might have, this RFC might get voted in three steps (one vote for each of the first two points, and a third one for the remaining ideas).

Kris Craig noted that ext/mysql has been obsolete for a while — and the fact some sites and tutorials are still referencing it should not prevent its removal. Also, Rasmus Lerdorf said most PHP users get their installations and PHP extensions from their distributions and those tend to package PECL extensions as if they were provided directly with PHP.

Johannes Schlüter insisted that, independently of the eventual removal of ext/mysql, educating users is important, to ensure they stop using this extension — and Derick Rethans added that ext/mysql having a procedural interface is not a good enough reason in itself to justify its removal. Zeev Suraski also reminded us that every time a feature is broken of removed, updating becomes a bit harder for users.

On the other hand, as Pierre Joye answered, if deprecated features neve

Truncated by Planet PHP, read more at the original (another 22352 bytes)

Link
Piotr PasichSymfonyCon 2014 – Day #1 (28.11.2014, 08:23 UTC)
IMG_20141127_164232Yesterday, me and my fellows from @XSolve arrived to Madrid at SymfonyCon Madrid 2014 conference. It’s the greatest and finest Symfony’s event in the year. A lot attendees came to listen about Symfony as a framework and as a success story. The day started with opening Keynote conducted by Fabien Potencier. To continue the last […]
Link
SitePoint PHPPHP News You May Have Missed – October / November 2014 (26.11.2014, 17:00 UTC)

In an already all too familiar format, here’s more PHP news you may have missed over the past month or so. Some of these will be presented in more depth in future posts, but it’s just as important to have a heads up about them. HHVM HHVM is on fire lately – we have four […]

Continue reading %PHP News You May Have Missed – October / November 2014%

Link
Symfony CMFSymfony CMF Hackdays in Würzburg (12/13 Dec. 2014) (26.11.2014, 05:00 UTC)

The Mayflower Gmbh will host the next Symfony CMF Hackday in Würzburg, Germany. It will be focused on the roadmap for the 1.3 release. We are going to have nearly two days of hacking and pushing the CMF forward to the next version.

You can sign up to the event on Doodle. There will be a public workshop as an opener, too. You can get more information via the Facebook-Event. This workshop is public, but limited to 8 persons.

Both events are located at:

Mayflower GmbH
Gneisenaustraße 10/11
97074 Würzburg
Germany

Link
PHP ClassesOAuth Pin Based Authorization for Twitter, LinkedIn, Imgur and Others (25.11.2014, 10:13 UTC)
By Manuel Lemos
Some applications need to access OAuth based APIs but since they are not based on regular Web browsers, they need to need to use an alternative method to obtain the user authorization.

Pin based authorization is a method used for instance by applications based on the command line, desktop applications, embedded systems, game consoles, and certain types of mobile apps.

Read this article to learn how the pin based OAuth authorization process works and how can you implement it in your applications using the PHP OAuth API class.
Link
Derick RethansLondon in Fives: The Making Of (25.11.2014, 08:55 UTC)

London in Fives: The Making Of

A few days ago I published a video called "London in Fives" on Vimeo. In this article I am explaining how I made this, including the hardware and software that I used.

But first, let's have a look at the video itself:

London in Fives

There are 25 sections in this video, each taking 5 seconds. Because the frame rate is 25 fps, that means there are 125 frames per segment. All those numbers are powers of 5, hence the title of the film: London in Fives.

The first and last segments are merely the title and end credits, and are just a series of images. The more interesting bits are the 23 segments in between.

Hardware

All these segments are made from single frame shots from my Nikon D300 DSLR camera. It has a feature that allows a picture to be taken every 5 seconds automatically. For all segments, except for the night time shot of Covent Garden and the Ice Skating, that created the raw images.

For each segment, I usually took a few more shots than the 125 required, usually up to a 150, to have a bit of a choice of where to start and end the segment. In one case (the Regent's Park sunrise in the fog segment), I was happy that I did! Due to a hard drive failure I fortunately managed to only lose a few images, so that I still had just 125 left!

Of course it is important to keep the camera steady between all of the shots. In most of the segments I used a GorillaPod, a three legged flexible tripod where each leg can wrap around objects. In the later scenes, I used a normal stand-up tripod, a Manfrotto befree.

astro.png

The camera movements are all done in post production, except for the night time shot of Covent Garden and the Ice Skating segments. Instead of using my camera's "take a photo every x seconds" feature, I relied on hardware to take both a photo every 5 seconds, but also rotate the camera slightly on top of its tripod. The time lapsing device that I used to rotate and instruct the camera to take a photo every 5 seconds is an Astro. This is a disk like device that can rotate around one axis and instruct the camera through a cable to take a photo at specific intervals over a certain period of time. I think that for future time lapses I will not rotate more than 30° for a 125 segment shoot as otherwise it goes a bit too fast.

To make sure I had my camera perfectly horizontal on my camera, I used a spirit level that sits on top of my flash socket.

Post Processing

After taking the photos, some post-processing was necessary. There are three types of post-processing that I had to do, depending on how the photos were shot.

For the two segments created with the Astro, I really only had to rescale the photos from the camera's native resolution to 1280x720.

For one other segment (Regent's Park sunrise in the fog), the GorillaPod was sitting on a bench that didn't turn out to be stable enough and lots of instability was introduced among the different images. I used Hugin's align_image_stack tool to align them in such a way they formed a stable sequence of images. This tool is usually used to "align overlapping images for HDR creation", but it also suited my use case very well. Basically, I ran the following command:

align_image_stack -a aligned/a -v -i -C --threads 3 *jpg

I first also tried enabling GPU support for remapping, but that just ended up crashing the tool. The tool here is called with an output prefix of aligned/a and the -C auto-cropped the image sequence so that it covered an area that all images shared.

lon</body>

Truncated by Planet PHP, read more at the original (another 6655 bytes)

Link
Cal EvansInterview with Lorna Jane Mitchell (25.11.2014, 05:00 UTC) Link
LinksRSS 0.92   RDF 1.
Atom Feed   100% Popoon
PHP5 powered   PEAR
ButtonsPlanet PHP   Planet PHP
Planet PHP