Skip to main content

Joshua Brauer

Xcode server and continuous integration for iOS

April 30, 2015

Upon setting up Xcode server on Yosemite 10.10 I ran into a couple of curious issues that were causing frustration and didn't seem well documented. This won't be well documented but at least here are a couple of hints should things go wrong...

First up was git. As is usually the case I stated with a local repository and only later decided to use Xcode Server. Once I enabled Xcode Server it seemed to work. But upon adding the remote git repo I ran into strange errors. It repeatedly said the repo already existed on the server but also said there was no functioning remote repo. I'd chosen to connect to the repo via ssh:// and it turns out there was a conflicting entry in my known hosts file. With that entry removed all proceeded as planned. Moral of this story is if you have issues connecting to git from Xcode be sure to try it from the command line and see if there are any errors that aren't being surfaced.

The next issue was after the first run all the simulator builds failed. The error was something like this:

Read more about Xcode server and continuous integration for iOS

My iOS 9 wishlist

March 1, 2015

A few minutes ago I realized my iOS 9 wish list has grown to 3 items.

  • f.lux functionality built-in to the operating system. It makes my computers so very nice to use.
  • PGP key support in mail and the OS. S/Mime is great but support isn't everywhere and it would be nice to have both
  • Notification sets. Being able to group a set of notification preferences. Do not disturb is handy but it's the nuclear option. Sometimes, or everyday, I would like to have different "work-day" and "off-hours" notification settings. As a bonus for my colleagues this would man my phone could buzz a lot less while we are on conference calls.
Read more about My iOS 9 wishlist

MAMP redirect to SSL

February 10, 2015

If part of your daily work is working on SSL websites then tools like MAMP are quite useful. However it's easy to forget to add https:// when you'd rather just type the hostname. By Adding a snippet to the default virtual host that can still be easy:

RewriteEngine on
ReWriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]

Note, however, that you may mask some bugs where your local development server silently redirects to the SSL server where the production server would fail to do so.

Read more about MAMP redirect to SSL

Almost WSOD after Drupal 8 install

January 13, 2015

I haven't had time to find if there is an open issue and this is really about my config so leaving a note here in case it's useful. After a fresh install of Drupal 8 everything looked good. At least until I got to the Add Article page. The page said nothing but "Restricted HTML".

It's not quite a WSOD of old but it is still a PHP fatal. Looking through the log I found:

Fatal error:  Maximum function nesting level of '100' reached, aborting! in .../drupal-8/core/vendor/twig/twig/lib/Twig/Node.php on line 141

The solution was to increase the xdebug limit on nesting by adding this to the php.ini in the xdebug section:

xdebug.max_nesting_level = 1000

Read more about Almost WSOD after Drupal 8 install

A one-liner for Drupal 7.32 security update

October 16, 2014

Yesterday an important security update was released for Drupal. This update, Drupal 7.32 is a highly critical update for everyone running a Drupal 7 site.

You may have seen a tweet where I posted the following suggestion which works on OS X:

sudo find . -name database.inc | grep "/includes/database/database.inc" | xargs sed -i '' 's/$data /array_values($data) /'

On linux the arguments for 'sed -i' work a little differently and this works better:

sudo find . -name database.inc | grep "/includes/database/database.inc" | xargs sed -i 's/$data /array_values($data) /'

Twitter might be good for getting the message out but it doesn't provide the space to explain. Why would one use this? Wouldn't it be better to just upgrade to Drupal 7.32?

Read more about A one-liner for Drupal 7.32 security update

Incoming

April 14, 2014

Hank the cow dog cover As is apt to happen, being a parent, I was recently listening to a bit of a Hank the Cowdog story in which the canine protagonist is describing being in the heart of a thunderstorm. In typical hyperbolic fashion he likens it to being bombarded by eighty-eight artillery.

This seems oh so very appropriate for a Monday morning as it describes well the feeling of wanting to yell incoming while tip-toeing through one's email box.

Read more about Incoming

Drush sql-sync with a remote mac

April 13, 2014

Owing to this issue if one tries to do a drush sql-sync on a system where the remote machine is BSD-Unix based, such as Mac OSX, the command fails with a stat: illegal option -- - warning. The Drush 7.x branch has completely rewritten this functionality and may not suffer from the same issues. So after much poking at ways of fixing it the simplest, by far, is to use the --no-cache option.

The easiest option to ensure this is done is to add the command specific command to your alias definition for any sites where the remote site is a mac (or the local if you're going to sync form the local up to some other system).

  'command-specific' => array (
    'sql-sync' => array (
      'no-cache' => TRUE,
    ),
  ),

Read more about Drush sql-sync with a remote mac

Pages

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • …
  • next ›
  • last »
Subscribe to

Search this site.

© 1995-2016 Joshua Brauer.

GitHub RSS feed 500px LinkedIn