Profile

Cover photo
DJ Millward
Worked at Littleripples.com
Attended Wadebridge Comprehensve
Lives in Cornwall
75,460 views
AboutPostsPhotosYouTubeReviews

Stream

DJ Millward

Shared publicly  - 
 
Creating exact sized files to help with testing - using terminal and OS X
Syntax for mkfile is as follows: mkfile -n size[b|k|m|g] filename Thanks to Os X Daily for the Creating a Large file tip .  It's not only useful for large files tho !
1
Add a comment...

DJ Millward

Shared publicly  - 
 
How to access your .ssh folder from Mac OS File chooser
Recently while in Filezilla and needing to open my id_rsa.pub file in the hidden folder .ssh ; I couldn’t see the folder.  To view folder ( as long as you know the folder name ) you can use. CMD + SHIFT + G 
1
Add a comment...

DJ Millward

Shared publicly  - 
 
Using NPM as a Task Runner.
In our website we may have some commands that we need to use over and over again.  Let’s say for example that we want to uglify a JS file .  We can write a command for that like .  ‘node_modules/.bin/uglifyjs src/models/* src/frontend.js -m -c -o build/app....
1
Add a comment...

DJ Millward

Shared publicly  - 
 
Using Javascript to create dynamic styling choices
Here's a little bit of code but the use of this goes well beyond just matching up a couple of heights like I have here . I'll be using posting up some more examples of how to use it for other calculations soon. var rowHeight = $(".views-row-first").height()...
1
Add a comment...

DJ Millward

Shared publicly  - 
 
Advanced CSS questions answered.
This is from the excellent and well recommended Advanced Sass Team Treehouse course. The following Sass uses the  @at-root  directive within a media query. Sass considered  @media  to be root, so how can you update this so that the  .bar selector is at the ...
1
Add a comment...

DJ Millward

Shared publicly  - 
 
drupal 7 mini panels not being picked up in pages add content
drupal 7 mini panels not being picked up in pages add content What you need to do here is set the category in the Mini Panel to 'Mini panel'  . You'll then see it listed in 'mini panel' when adding content in pages.
1
Add a comment...

DJ Millward

Shared publicly  - 
 
Mysql using SUM and DISTINCT - Why not use GROUP
Mysql using SUM and DISTINCT  - Why not use GROUP Yes the answers in the title .  Consider SELECT SUM(DISTINCT te.field_company_total_employees_value)

FROM field_data_field_company_total_employees AS te

INNER JOIN field_data_field_user_company AS...
1
Add a comment...

DJ Millward

Shared publicly  - 
 
Fix User warning: division by zero in ctools_math_expr->trigger() (line 360 of //ctools/includes/math-expr.inc) error*
This was on Drupal 7 Views using the Global Math Expression field. If you set your field up like this No Results text - 1 Count the number 0 as empty and last of all Hide rewriting.  Otherwise the 1 will be written in the table.
This was on Drupal 7 Views using the Global Math Expression field. If you set your field up like this No Results text - 1 Count the number 0 as empty and last of all Hide rewriting. Otherwise the 1 will be written in the t...
1
Add a comment...

DJ Millward

Shared publicly  - 
In this post I’m going to take a look at some of the modules available to improve your Drupal Search Engine Optimisation .  The aim here is to make a Drupal SEO Checklist for new installations and how to install those modules ; there are plenty more tools as well which I’ll add some links for further reading links for at the bottom. The Drupal 7 Essential SEO tools XML Sitemap  [XML Sitemap]  - create an automatic XML site map to submit to search...
1
Add a comment...

DJ Millward

Shared publicly  - 
 
Drupal 7 Changing the tag attributes in an image .
Here I needed to change a tag inside an image. the 'foaf:Image' and replace it with a default tag instead. Here's my code. function MYTHEME_preprocess_image(&$variables) {

$image_attributes_array = $variables['attributes']['typeof'];

if ( in_array('f...
1
Add a comment...

DJ Millward

Shared publicly  - 
 
TypeError: this.form_.options is undefined /sites/all/libraries/chosen/chosen.jquery.min.js?v=1.1.0 Line 2
This post is relevant to Drupal 7 chosen module and using Views and having an exposed filer. So using Pages to set this up the first dropdown list wasn't displaying correctly .  And in Firebug error I could see the message TypeError: this.form_*.options is ...
1
Add a comment...

DJ Millward

Shared publicly  - 
 
drupal 7 how to add exposed form view to pages
Go to the view you want to use the Form from .  In advanced you can add ‘Exposed form in a block ‘  SAVE - Clear Cache.  Once you do this then go the Page you are changing in Pages Add content to a Panel  > in the tab Views you will now see the form . start...
1
Add a comment...
Story
Tagline
Passionate about work, family and surfing.
Introduction
I love surfing :)  
Education
  • Wadebridge Comprehensve
    1990
Basic Information
Gender
Male
20 reviews