How to use Branches in Xcode
In this video I will show you how to use the Git Branch feature in Xcode 5.1. Branches are helpful if you’re developing your app. You can isolate a “working” version, create a new branch and fiddle with new features that may destabilise your project. You can then commit your changes – working or not – to a separate branch, and when all is stable again you can merge them back into the master project. I use this feature for plugin and theme development, in fact for any “group of files” that will change...
read moreHow to use Git Tags in Xcode
In this video I will show you how to make use of Tags in Git. This is not supported in Xcode or GitHub for Mac at the time of this recording (April 2014). I will also show you how to utilise the Tag/Release feature on GitHub.com. Tags are a useful feature if you want to mark versions of your software before you add new features. With Tags you can always go back to the code of a release. We’re using Xcode 5.1 and the Terminal utility for this. I use tags and branches for plugin and theme development too, in fact for any “group of...
read moreHow to change the width of an automatic oEmbed in WordPress
I was investigating an interring issue today: YouTube videos I was embedding on this very site did not fill the whole width of my theme. They were 500 pixels wide, and I know that P2 supports something a bit larger than that. It didn’t really bother me, until I thought that embeds on my other site which is also using P2 look so much better. What was going on? What was the other site doing that this one wasn’t? Turns out there are actually three different things to watch out for, and I’ll tell you about each one in a moment....
read moreHow to push a local Xcode Project to GitHub
In this screencast I will show you how to push a local Xcode Git repository to GitHub. We’ll do this with the free and super amazing GitHub App for Mac OS X and Xcode 5.1. Enjoy!
read moreHow to find out which user ID belongs to which domain in Plesk
The other day I found that one of the domains on a busy server was sending unsolicited spam mail thousands of times a day. It happens: the nature of open source scripts is that they will get hacked if they’re not updated regularly. The clue was a full-up mail queue and Gmail no longer accepting mails from the IP in question. When I examined one of the spam mails I found a line like this: X-PHP-Originating-Script: 10040:listr3b.php Good to know the spam was sent from a PHP script… but from which domain? All we have here is the user...
read moreCreating a Searchable Table View in iOS
In this 6-part series I’ll show you how to create a searchable UITableView in an iOS App. We’ll start with a standard single view application template in Xcode, create a table view with dummy data, and finally make it searchable. This course demonstrates how to do this with Xcode 5.1 and iOS 7.1. We’ll also make the app compatible to for in iOS 6. These are the first two parts which are available for free. The rest of the course is only viewable by members of my iOS Dev Diary at pinkstone.co.uk. You can get the source code...
read moreHow to style captions in Twentythirteen
I love the Twentythirteen theme – except for the captions that appear underneath images. If you’ve ever seen them they look so out of place as if someone forgot to style them altogether. Here’s what they look like by default: Notice how the captions are actually larger than the post text. I wanted to drop this size a bit, but at the same time integrate the text better with images I post over at http://www.versluis.com, adding a bit of padding, some rounded corners and perhaps tint the background colour ever so slightly....
read moreMoving WordPress with Plesk 11.5
In this screencast I will show you how to move a WordPress website from one Plesk server to another without the Migration Manager. We’ll extract the files on the source server and export the database. Then we’ll create a new WordPress instance on the destination server and upload the files and import the database. All that remains is to point the domain to the new IP. I’m doing this without the Migration Manager because the source server is an Amazon EC2 instance and does not allow root access with a password (which the...
read moreHow to remove buttons from Distraction Free Writing Mode (Full Screen Editor) in WordPress
Now that we’ve learnt how to add buttons to the Full Screen Writing Mode in WordPress, let’s see how we can remove them too. Just in case Zen Mode isn’t zen enough for you. Imagine that you have never in your life blockquoted anything, and rather not start anytime soon, there’s how to remove the block quote button. function removeFullscreenButtons($buttons) { unset ($buttons['blockquote']); } add_action ('wp_fullscreen_buttons', 'removeFullscreenButtons'); Just like before, we’re...
read moreHow to add buttons to Distraction Free Writing Mode (Full Screen Editor) in WordPress
I really like the Distraction Free Writing Mode that WordPress offers. I mean the one you can access when you write a new post, then hit that big X and go into full screen mode. It’s Zen at large. But just in case there’s a single function you’d like to see up there as a button, because you’re using it all the time, there is a way to do it. Bear with me. These are the buttons I mean: Default Buttons in Full Screen Mode Just in case you didn’t know: there are A LOT OF OTHER FUNCTIONS you get in this mode, much of...
read more