Go straight to content, do not pass menu, do not collect $200
Jun
02
2015

Clippy pasta

0 comments

ryivhnn: Chrome is pretty good about being up to w3c standards so it ignores a lot of the -webkit- stuff
ryivhnn: Safari still needs a bit of help though coz it’s special
Darqx: it's just apple
Darqx: apple is special
Darqx: i am getting so sick of the apple issues at school OTL
ryivhnn: LoL

Oct
23
2014

Drupal 7 notes - Apache config

0 comments

/etc/apache2/apache2.conf - find the <Directory> bits and make sure the /var/www one looks like:

<Directory /var/www/>
  Options Indexes FollowSymLinks
  AllowOverride All
  Require all granted
</Directory>

sudo a2enmod rewrite

sudo a2enmod headers

Sep
03
2014

Drupal 7 notes - making javascript work in a modal

0 comments

Or more accurately in my case, making a jquery gallery work inside a modal.  I am really bad at javascript so I have no idea if my hackjob is a good way to do anything but it did what I wanted.

Jun
27
2014

Drupal 7 notes - getting a Views block with a pager to remember what page it's on

0 comments

While building this gallery for this client, I ran into an issue where if you clicked on the next page in the navigation block and selected a project on the second page, when the new project loaded the block would reload back on page 1.  The Designer and I thought that pagers really needed to remember what page they were on but as of four years ago it was a feature Views and the core pager didn't support, so at the bottom of an issue someone else opened up four years ago asking for this to happen some kind soul provided this code:

Apr
05
2014

Webmonkey notes - rails command not working after successful rails install

0 comments

Latest ruby:

sudo brew update
sudo brew install ruby

OSX developer command line tool thingies:

xcode-select --install

Read the EULA and agree if you agree.

Latest sass:

sudo gem install sass -V

Rails:

sudo gem install rails -V

Why yes I do like to see what's going on.

Edit ~/.bash_profile to include:

Mar
11
2014

Drupal 7 notes - forms with file field reloading page without going through form validation

0 comments

I had a problem shortly after setting up ownCloud and Piwik where forms on all of the Drupal sites on my server mysteriously stopped working.

But not all of them, only the ones with a file field.  When hitting the submit button on those forms (and it didn't matter what the form was, the presence of a file field was enough) the form validate wouldn't trigger, the page would simply reload.

Mar
03
2014

Webmonkey notes - setting up ssl, Piwik and ownCloud under subdomains on Linode

0 comments

As per usual part tutorial and mostly notes for me and anything with ridiculous names (e.g. username and domain) means replace with your information.

Ingredients

Nov
28
2013

Have you tried turning it off and then on again?

0 comments

This morning, when I crawled out of bed and tackled the morning coffee sites to be followed by 3d work before our busy day commenced, I noticed that my server was slow.

There goes my 3d time again, sigh.  Now I would have quickly investigated, if it hadn't taken FOR FREAKING EVER to log into the server, and I had to leave before it had logged in, and unsurprisingly the pipe had broken and annoyingly the problem hadn't resolved itself when I was able to tackle it again later in the day.

Oct
09
2013

Drupal 7 install profile stuff that everyone else magically knows

2 comments

Seeing as I found little to nothing when searching for how to configure individual role permissions, editor settings and enabling contrib filters with an install profile, I made something on the off-chance it helps some other poor sap like me who doesn’t automagically know where to look for these things.

Enabling filters provided by contrib modules

Feb
05
2013

Drupal 7 notes: node or page template by path

0 comments

Because I always seem to manage to completely forget how to do something this basic.

template.php in theme_preprocess_page(&$variables) or theme_preprocess_node(&$variables)

Pages