To find and replace using querypath without destroying existing context you can use the following:
$temp = qp($output, 'table')->addclass('table'); $output = $temp->top('body')->innerHTML();
Herein lies the coder manifest.
Thou shalt not commit debug to production Thou shalt create test for everything Thou shalt not commit code to production and not deploy Database shall not be kept it thy repository control system
After using CLI for more than three years I’ve amassed multiple .*rc files for configuration.
When I bring a new server/desktop online I needed a way to quickly import all my settings and get up and running.
To block twitters really annoying trends and user recommendations use the following custom filter:
Updated via @emaleroland
twitter.com##div[class*="flex-module trends-container context-trends-container"] Old:
twitter.com##div[data-component-term="user_recommendations"] twitter.com##div[data-component-term="trends"] I’ve created a filter list you can import into adblock plus. You can download it here - https://github.com/digital006/socialcrapremover
While building my Drupal 7 profile I started playing around with Jenkins CI. My reasons for doing so were two fold:
Code Quality I believe in code quality, there are multiple tools out there that will analyse code and report back using various different metrics. CI allows me to run these metrics on a repeatable basis, if my code changes then the quality changes. This makes me a better developer overall. Repeatable Tasks Jenkins can do anything you throw at it, why not throw at it all your boring repeatable tasks? Installation # sudo apt-get install jenkins
I’ve been using Tumblr for a few months now as a simple way of sharing the images I find interesting and beautiful (can be found at ayil.co.uk). I found it was lacking in a few features that would be nice, being a Drupal developer I thought hell why not try and recreate it in Drupal 7.
This has been bugging me for a while, the cheap and easy way to make changelogs:
git log 6.x-1.0-beta8...6.x-1.0-beta9 --pretty=format:'%h was %an, message: %s' > ~/changelog.txt
After having quite a few months off from coffee I’m finally back into it and brewing again.
This is an updated method I use for brewing Aeropress without any hassle and only the minimum amount of effort. Hopefully you should get some pretty good results from it.
I decided to move to Ack for searching as it has nice switches like –php and –nosql.
By default ack doesn’t recognise .module, .install or .inc files so you have to add them. Create a .ackrc file in your home directory and add the following:
It’s that time again now that I’m well and truly full of drupalflu.
This years pickings were slim to none, not that there wasn’t anything great out there but I just didn’t have the time to go out and grab any. My time was spent attending sessions and talking to potential new clients on our booth (which was awesome!).