325 lines
15 KiB
HTML
325 lines
15 KiB
HTML
<!DOCTYPE html>
|
||
<html class="no-js" lang="en-GB">
|
||
<head>
|
||
<title>Blog | Oliver Davies</title>
|
||
|
||
<meta charset="UTF-8">
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
|
||
|
||
<meta property="og:url" content="https://opdavies.github.io/oliverdavies.uk/blog/page/4.html">
|
||
<meta property="og:title" content="Blog"/>
|
||
|
||
|
||
|
||
<meta property="og:image" content="https://opdavies.github.io/oliverdavies.uk/assets/images/me-precedent.jpg"/>
|
||
<meta property="og:image:height" content="327"/>
|
||
<meta property="og:image:type" content="image/jpg">
|
||
<meta property="og:image:width" content="327"/>
|
||
|
||
|
||
|
||
<link rel="stylesheet" href="https://opdavies.github.io/oliverdavies.uk/assets/css/main.css">
|
||
<link rel="stylesheet" href="https://opdavies.github.io/oliverdavies.uk/assets/css/blog.css">
|
||
|
||
<link rel="apple-touch-icon" href="/assets/images/me-precedent.jpg?s=57" sizes="57x57">
|
||
<link rel="apple-touch-icon" href="/assets/images/me-precedent.jpg?s=114" sizes="114x114">
|
||
<link rel="apple-touch-icon" href="/assets/images/me-precedent.jpg?s=72" sizes="72x72">
|
||
<link rel="apple-touch-icon" href="/assets/images/me-precedent.jpg?s=144" sizes="144x144">
|
||
<link rel="apple-touch-icon" href="/assets/images/me-precedent.jpg?s=60" sizes="60x60">
|
||
<link rel="apple-touch-icon" href="/assets/images/me-precedent.jpg?s=120" sizes="120x120">
|
||
<link rel="apple-touch-icon" href="/assets/images/me-precedent.jpg?s=76" sizes="76x76">
|
||
<link rel="apple-touch-icon" href="/assets/images/me-precedent.jpg?s=152" sizes="152x152">
|
||
|
||
<link rel="icon" href="/assets/images/me-precedent.jpg?s=160" sizes="160x160">
|
||
<link rel="icon" href="/assets/images/me-precedent.jpg?s=96" sizes="96x96">
|
||
<link rel="icon" href="/assets/images/me-precedent.jpg?s=32" sizes="32x32">
|
||
<link rel="icon" href="/assets/images/me-precedent.jpg?s=16" sizes="16x16">
|
||
</head>
|
||
<body class="page--blog page--blog__list">
|
||
<nav class="navbar navbar-inverse navbar-fixed-top">
|
||
<div class="container">
|
||
<div class="navbar-header">
|
||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
||
<span class="sr-only">Toggle navigation</span>
|
||
<span class="icon-bar"></span>
|
||
<span class="icon-bar"></span>
|
||
<span class="icon-bar"></span>
|
||
</button>
|
||
<a class="navbar-brand" href="https://opdavies.github.io/oliverdavies.uk/">Oliver Davies</a>
|
||
</div>
|
||
|
||
<div id="navbar" class="collapse navbar-collapse" role="navigation">
|
||
<ul class="nav navbar-nav">
|
||
<li class="">
|
||
<a href="/">About</a>
|
||
</li>
|
||
|
||
<li class="">
|
||
<a href="/experience">Experience</a>
|
||
</li>
|
||
|
||
<li class="">
|
||
<a href="/testimonials">Testimonials</a>
|
||
</li>
|
||
|
||
<li class="">
|
||
<a href="/talks">Talks</a>
|
||
</li>
|
||
|
||
<li class="active">
|
||
<a href="/blog">Blog</a>
|
||
</li>
|
||
|
||
<li class="">
|
||
<a href="/contact">Contact</a>
|
||
</li>
|
||
</ul>
|
||
</div> </div>
|
||
</nav>
|
||
|
||
<div class="container">
|
||
<div class="row">
|
||
<main class="col-md-9">
|
||
<h1>Blog</h1>
|
||
|
||
<ul class="posts">
|
||
<li class="post">
|
||
<h2>Some Useful Git Aliases</h2>
|
||
|
||
<p class="posted">15th January 2014</p>
|
||
|
||
|
||
<p>Here are some bash aliases that I use and find helpful for quickly writing Git and Git Flow commands.</p>
|
||
|
||
|
||
<a href="/blog/2014/01/15/some-useful-git-aliases">Read more →</a>
|
||
</li>
|
||
<li class="post">
|
||
<h2>Download Different Versions of Drupal with Drush</h2>
|
||
|
||
<p class="posted">31st December 2013</p>
|
||
|
||
|
||
<p>If you use <a href="https://raw.github.com/drush-ops/drush/master/README.md" title="About Drush">Drush</a>, it's likely that you've used the <code>drush pm-download</code> (or <code>drush dl</code> for short) command to start a new project. This command downloads projects from Drupal.org, but if you don't specify a project or type "drush dl drupal", the command will download the current stable version of Drupal core. Currently, this will be Drupal 7 with that being the current stable version of core at the time of writing this post.</p>
|
||
|
||
<p>But what if you don't want Drupal 7?</p>
|
||
|
||
|
||
<a href="/blog/2013/12/31/download-different-versions-drupal-drush">Read more →</a>
|
||
</li>
|
||
<li class="post">
|
||
<h2>Quickly Apply Patches Using Git and curl or wget</h2>
|
||
|
||
<p class="posted">24th December 2013</p>
|
||
|
||
|
||
<p>Testing a patch file is usually a two-step process. First you download the patch file from the source, and then you run a separate command to apply it.</p>
|
||
|
||
<p>You can save time and typing by running the two commands on one line:</p>
|
||
|
||
|
||
<a href="/blog/2013/12/24/quickly-apply-patches-using-git-and-curl-or-wget">Read more →</a>
|
||
</li>
|
||
<li class="post">
|
||
<h2>Useful Vagrant Commands</h2>
|
||
|
||
<p class="posted">27th November 2013</p>
|
||
|
||
|
||
<p><a href="http://www.vagrantup.com" title="About Vagrant">Vagrant</a> is a tool for managing virtual machines within <a href="https://www.virtualbox.org">VirtualBox</a> from the command line. Here are some useful commands to know when using Vagrant.</p>
|
||
|
||
|
||
<a href="/blog/2013/11/27/useful-vagrant-commands">Read more →</a>
|
||
</li>
|
||
<li class="post">
|
||
<h2>Don't Bootstrap Drupal, Use Drush</h2>
|
||
|
||
<p class="posted">19th November 2013</p>
|
||
|
||
|
||
<p>There are times when doing Drupal development when you need to run a custom PHP script, maybe moving data from one field to another, that doesn't warrant the time and effort to create a custom module. In this scenario, it would be quicker to write a .php script and bootstrap Drupal to gain access to functions like <code>node_load()</code> and <code>db_query()</code>.</p>
|
||
|
||
<p>To bootstrap Drupal, you would need to add some additional lines of code to the stop of your script. Here is an alternative way.</p>
|
||
|
||
|
||
<a href="/blog/2013/11/19/dont-bootstrap-drupal-use-drush">Read more →</a>
|
||
</li>
|
||
<li class="post">
|
||
<h2>Create a Zen Sub-theme Using Drush</h2>
|
||
|
||
<p class="posted">6th September 2013</p>
|
||
|
||
|
||
<p>How to use <a href="https://drupal.org/project/drush">Drush</a> to quickly build a new sub-theme of <a href="https://drupal.org/project/zen">Zen</a>.</p>
|
||
|
||
|
||
<a href="/blog/2013/09/06/create-a-zen-sub-theme-using-drush">Read more →</a>
|
||
</li>
|
||
<li class="post">
|
||
<h2>Going to DrupalCon</h2>
|
||
|
||
<p class="posted">26th July 2013</p>
|
||
|
||
|
||
<p><a href="http://www.precedent.co.uk">Precedent</a> are sending myself and two of our other Drupal Developers to <a href="http://prague2013.drupal.org">Drupalcon Prague</a>.</p>
|
||
|
||
|
||
<a href="/blog/2013/07/26/going-drupalcon">Read more →</a>
|
||
</li>
|
||
<li class="post">
|
||
<h2>Creating Local and Staging sites with Drupal's Domain Module Enabled</h2>
|
||
|
||
<p class="posted">17th July 2013</p>
|
||
|
||
|
||
<p>The <a href="https://drupal.org/project/domain" title="The Domain Access project on Drupal.org">Domain Access project</a> is a suite of modules that provide tools for running a group of affiliated sites from one Drupal installation and a single shared database. The issue is that the domains are stored within the database so these are copied across when the data is migrated between environments, whereas the domains are obviously going to change.</p>
|
||
|
||
<p>Rather than changing the domain settings within the Domain module itself, the best solution I think is to use table prefixes and create a different domain table per environment.</p>
|
||
|
||
|
||
<a href="/blog/2013/07/17/creating-local-and-staging-sites-drupals-domain-module-enabled">Read more →</a>
|
||
</li>
|
||
<li class="post">
|
||
<h2>Some useful links for using SimpleTest in Drupal</h2>
|
||
|
||
<p class="posted">13th June 2013</p>
|
||
|
||
|
||
<p>Here are some useful links that I've found when researching about unit testing in Drupal using SimpleTest.</p>
|
||
|
||
|
||
<a href="/blog/2013/06/13/some-useful-links-using-simpletest-drupal">Read more →</a>
|
||
</li>
|
||
<li class="post">
|
||
<h2>Display Git Branch or Tag Names in your Bash Prompt</h2>
|
||
|
||
<p class="posted">27th April 2013</p>
|
||
|
||
|
||
<p>Whilst watching <a href="http://drupalize.me" title="Drupalize.me">Drupalize.me</a>'s recent <a href="http://drupalize.me/series/introduction-git-series" title="Introduction to Git on Drupalize.me">Introduction to Git series</a>, I thought it was useful the way that the current Git branch or tag name was displayed in the bash prompt. Here's how to do it.</p>
|
||
|
||
|
||
<a href="/blog/2013/04/27/display-git-branch-or-tag-names-your-bash-prompt">Read more →</a>
|
||
</li>
|
||
</ul>
|
||
|
||
<ul class="pager">
|
||
<li class="next"><a href="https://opdavies.github.io/oliverdavies.uk/blog/page/3.html">Newer →</a></li>
|
||
<li class="previous"><a href="https://opdavies.github.io/oliverdavies.uk/blog/page/5.html">← Older</a></li>
|
||
</ul>
|
||
</main>
|
||
|
||
<div class="col-md-3">
|
||
<div class="panel badges text-center">
|
||
<a class="badge--da-member" href="https://assoc.drupal.org/membership" title="I’m a Drupal Association member.">
|
||
<img
|
||
src="https://opdavies.github.io/oliverdavies.uk/assets/images/da-individual-member.png"
|
||
alt="Drupal Association Individual Member"
|
||
width="152"
|
||
>
|
||
</a>
|
||
|
||
<a href="http://drupalcores.com/#opdavies">
|
||
<img
|
||
alt="I built Drupal 8 with hand holding a wrench on blue background"
|
||
src="https://opdavies.github.io/oliverdavies.uk/assets/images/drupal-8.jpg"
|
||
/>
|
||
</a>
|
||
|
||
<img
|
||
src="https://opdavies.github.io/oliverdavies.uk/assets/images/badges/acquia-certified-developer-drupal-8.png"
|
||
alt="Acquia Certified Developer - Drupal 8 Exam Badge"
|
||
height="147" width="147"
|
||
/>
|
||
|
||
<a href="http://conference.phpnw.org.uk/phpnw17">
|
||
<img src="https://opdavies.github.io/oliverdavies.uk/assets/images/badges/phpnw17.png" alt="">
|
||
</a>
|
||
</div>
|
||
<div class="availability panel panel-default">
|
||
<div class="panel-heading">Availability</div>
|
||
|
||
<div class="panel-body">
|
||
<p>
|
||
<i class="fa fa-thumbs-o-up text-warning"></i>
|
||
|
||
|
||
Currently have limited part-time capacity
|
||
</p>
|
||
<p>
|
||
<i class="fa fa-thumbs-o-down text-danger"></i>
|
||
|
||
Currently no spare full-time capacity.
|
||
|
||
</p>
|
||
</div>
|
||
</div>
|
||
<div class="latest-posts panel panel-default">
|
||
<div class="latest-posts__heading panel-heading">Latest blog posts</div>
|
||
|
||
<ul class="list-group">
|
||
<li class="post list-group-item">
|
||
<span class="post__title">
|
||
<a href="/blog/2017/06/09/introducing-the-drupal-meetups-twitterbot">
|
||
Introducing the Drupal Meetups Twitterbot
|
||
</a>
|
||
</span> -
|
||
<span class="post__date">9th June, 2017</span>
|
||
</li>
|
||
<li class="post list-group-item">
|
||
<span class="post__title">
|
||
<a href="/blog/2017/05/20/turning-drupal-module-into-feature">
|
||
Turning Your Custom Drupal Module into a Feature
|
||
</a>
|
||
</span> -
|
||
<span class="post__date">20th May, 2017</span>
|
||
</li>
|
||
<li class="post list-group-item">
|
||
<span class="post__title">
|
||
<a href="/blog/2017/05/15/drupalcamp-bristol-early-bird-tickets-sessions-sponsors">
|
||
DrupalCamp Bristol 2017 - Early Bird Tickets, Call for Sessions, Sponsors
|
||
</a>
|
||
</span> -
|
||
<span class="post__date">15th May, 2017</span>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
|
||
</div> </div>
|
||
<footer class="container">
|
||
<p class="copyright">
|
||
© 2010-2017 Oliver Davies. Built with <a href="https://sculpin.io">Sculpin</a>.
|
||
</p>
|
||
|
||
<div class="meetups">
|
||
<h2>Things that I organise</h2>
|
||
<ul>
|
||
<li class="meetups--drupal-bristol">
|
||
<a href="http://www.drupalbristol.org.uk" title="Drupal Bristol">
|
||
<img src="https://opdavies.github.io/oliverdavies.uk/assets/images/meetups/drupal-bristol.jpeg" alt="Drupal Bristol">
|
||
</a>
|
||
</li>
|
||
<li class="meetups--drupalcamp-bristol">
|
||
<a href="http://www.drupalcampbristol.co.uk" title="DrupalCamp Bristol">
|
||
<img src="https://opdavies.github.io/oliverdavies.uk/assets/images/meetups/drupalcamp-bristol.png" alt="DrupalCamp Bristol">
|
||
</a>
|
||
</li>
|
||
<li class="meetups--phpsw">
|
||
<a href="http://phpsw.uk" title="PHPSW">
|
||
<img src="https://opdavies.github.io/oliverdavies.uk/assets/images/meetups/phpsw.jpeg" alt="PHPSW">
|
||
</a>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</footer>
|
||
|
||
<script src="https://opdavies.github.io/oliverdavies.uk/assets/js/site.js"></script>
|
||
|
||
<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-11967257-1', 'auto'); ga('send', 'pageview');</script>
|
||
|
||
</body>
|
||
</html>
|