Skip to content

Load external HTML into Reveal.js presentations

Dear Reader,

One of the things I do at Zend is help rehab existing classes. Soon after I was hired, I got my team together and we decided that going forward, all classes would be in Reveal.js. Personally, I like Keynote, but other trainers had PowerPoint. We ended up porting classes to each of the major formats. That means that if you change one, you have to change them all, and we didn’t. :)

Because Reveal.js is HTML, you can present using just a browser. Our recommendation is to use PHP’s built-in web server so that you get access to features like speaker notes. All-in-all though, Reveal.js looks like it is going to be a solid solution for us.

One Problem

The one problem we have run into is that our slide decks are large. A single class could be 300-500+ slides. Yes, we could break them up into multiple presentations, but we would rather have them as a single presentation.

We are not the first people to want this. In reading the issues on the Reveal.js repo, I ran into this request “Support for external HTML” from 2013 by my friend Larry Garfield. Since this was important to Zend and our presentations, I decided to take a crack at it.

If you read the thread that Larry started, you will see that it was suggested that he use the Markdown plugin for Reveal.js. It would load external files. I played with plugin this for a while. Yes, it would load external files of any kind, it does a lot of post processing to the content because it assumes it is Markdown. This post processing is complex enough so that after about 3 slides,  it starts to affect the outcome. In our case, the title slide lost its image as soon as we added a 4th slide to the external file.

One Solution

So I did what any decent programmer would do, I stole code from the Markdown plugin and created External. External is just the loader from Markdown, stripped of all it’s post processing. It is a very simple solution, but this problem did not require a more complex one. I do note in the header comments of External.js that it was blatantly ripped off from Markdown.

The README in the External repo gives instructions on how to install it and how to implement it.

For those who have heard me talk about PHP, this is “Scratch your own itch” development. I needed it, I wrote it, I am sharing it with you.

Until next time,
I <3 |<
=C=

p.s. yes, I could have solved this with a simple ?<php include...?>. But then it would only work if you were actually using the PHP server. I wanted something that would work no matter what your setup.

PHP 7 Is Alive!

PHP 7 Lives!

php 7 logo white

PHP 7 is now ready for release! It took more than 200 developers, more than a year of work, eight Release Candidates, and more than a few fights on Internals, but it is now ready for you to download and install.

What are you waiting for? Hit the download page now and grab your copy. Unpack it, and then configure;make;make install! (or however you install the latest version of PHP on your servers)

While you are waiting for it to compile and install (did I mention make test? you need to do that too) here’s a little video that was put together by “ElePHPant Studios”. I have it on good authority that “ElePHPant Studios is really Zend Israel in disguise. :)



So fire up those downloaders and heat up those space heaters you call CPUs. It’s time to do the “Download Dance”!

Public Speaking for Developers II

Dear Reader,day camp 4 developers: Public Speaking for Developers II

It is that time again, time for the Day Camp 4 Developers December Edition. This year we are back with 5 great talks revolving around the topic of “Public Speaking for Developers II”.

We presented the first one back in 2013 and developers from around the world dialed in to improve their speaking ability and process.

Become better at public speaking!

In Day Camp 4 Developers: Public Speaking for Developers II we’ve got all new speakers and five great talks that we think are even better than the first one. (and 5 absolutely wonderful sponsors!)

So if you are a developer and you speak at conferences, get your ticket now for “Day Camp 4 Developers: Public Speaking for Developers II”.

If you want to get into speaking but don’t know where to start, get your ticket now for“Day Camp 4 Developers: Public Speaking for Developers II”.

If you manage a development team and want to build esprit de corp while improving the skills of your developers, get an Office Party ticket for“Day Camp 4 Developers: Public Speaking for Developers II”.

Managers, we want you too!

Directors of IT, Team Leads, Developer Managers, just because you are management don’t feel you are exempt from the learning. Block out some time and participate as well. Make sure you don’t miss our closing talk by Jon Shearer! He is a manager and he understands how important the skill of public speaking is to the developers on his team.

Join us for “Day Camp 4 Developers: Public Speaking for Developers II”. Invest a day in your career.

Until next time,
I <3 |<
=C=

p.s. If this event is interesting to you, make sure you also subscribe to our free service, The CFP Report. It’s everything you need to know about open CFPs all in one weekly email. Join today! Stay in the loop.

7 Days of PHP 7 – The Complete Collection

Dear Reader,

PHP 7 was originally supposed to be released today, November 12th, 2015. The Core developers weren’t comfortable releasing it just yet so they pushed the date back to November 26th, 2015. That’s fine, we all appreciate their diligence.

Still, I had already started my “7 Days of PHP 7” countdown when they made the announcement. Because the actual release date isn’t important to spreading the word about PHP 7, I decided to continue on with the countdown.

So here it is, the complete “7 Days of PHP 7”. Since we’ve still got a little time, use it wisely. Review all of the articles and media I’ve shared with you. Then use what you’ve learned to get your application ready for PHP 7.

 

Until next time,
I <3 |<
=C=

7 Days of PHP 7: Day 2

Dear Reader,

This is part of my “7 Days of PHP 7”. Today is “2 days left”. Today, I want to highlight my talk PHP7: The Big 5 + 1. I’ve given it to several User Groups around the US and even in Europe. I also gave it for the Nomad PHP US Chapter. Today, as part of “7 Days of PHP 7” I am making that recording available to everyone. Here’s the catch, TODAY ONLY. (Nov 10th, 2015)

So click the button below, Register or log into Nomad PHP, and “purchase” your FREE VIDEO.

 

I WANT MY FREE VIDEO!

Until next time
I <3 |<
=C=

p.s. Yes, I know that the date has been moved back, that doesn’t bother me at all. Get the video, watch it and spend the extra 2 weeks getting your application ready for PHP7. :)