Drupal 8 Site Building Best Practices

I’ve taught an beginners course during Drupal Global Training Days many times in portland, and I give students an introduction to Drupal 8 for site builders. I spend the day simplifying Drupal for new developers. But once you’re beyond the basics of the interface, there are many different ways to accomplish a task in Drupal and Drupal 8 only adds to the choices. So, if you’re a Drupal developer looking to craft easier to maintain Drupal 8 sites, this series is for you.

Read On →

Drupal 8 Theming Best Practices

The theming guide for Drupal 8 will get you started in the basics for theming a Drupal site. But, once you’ve learned the basics, what best practices should you be applying to Drupal 8 themes? There are lots of popular methods for writing and organizing CSS. The basics of CSS, of course, apply to Drupal. Don’t get too specific Place your CSS in the header and JavaScript in the footer Organize your CSS well Theme by patterns, don’t go top down Preprocess your styles Use configuration first When it comes to Drupal, there are some common mistakes that happen when a front end developer doesn’t know Drupal.

Read On →

Drupal Internet Explorer 7 CSS Problems

Internet Explorer is often the bane of a web designer’s existence. Creating a design in Firefox or Chrome is easy, if something is off, click “inspect element” and you can fix the problem inminutes. However, in Internet Explorer, there’s no such tool. Well, I had an issue with JQuery not displaying correctly on a Drupal site in IE7. It worked perfect in 8, Firefox, and Chrome. The demos for all the plugins I was using worked perfectly in Internet Explorer 7, but when I loaded them on the Drupal site, they were hosed.

Read On →

Drupal Scrum Tips

So, I’d like to stop using waterfall development for Drupal projects. The first step is to teach myself to be a good advocate for something different… Started way back in the early 90′s was a thing called scrum… It really is very different. Here are some resources that don’t suck. http://blog.merge.nl/20110619/scrum-driven-drupal-development http://slides.liip.ch/img/documents/agile-drupal-development-with-scrum_vienna.pdf http://drupaldojo.com/session/scrum-revolution-embrace-future-interactive-development   Not all positive: http://2011.doitwithdrupal.com/2011/sessions/pitfalls-being-agile It’s funny, when I got a computer information systems degree, we all laughed about waterfall development.

Read On →

Drupal Security Updates with Drush

Since I get tired of hunting through forum threads for correct answers to common task. So, for the lucky souls to find this trick, here is how you run just the security updates to a Drupal install with Drush from the command line. drush upc -u 1 --pipe | grep 'SECURITY-UPDATE' | cut -d" " -f1 | xargs drush upc -u 1 -y Found here.

Read On →

Find Vulnerable WordPress and Drupal

Drupal: grep 'DocumentRoot' /etc/httpd/vhost.d/* | awk {'print $2;'} | xargs -I {} nice find {} -name CHANGELOG.txt > ~/drupal-sites.txt Produce clean report: cat ~/drupal-sites.txt | xargs head -n 3 > ~/drupal-sites2.txt WordPress: grep 'DocumentRoot' /etc/httpd/vhost.d/* | awk {'print $2;'} | xargs -I {} nice find {} -name readme.html > ~/wp-sites.txt Todo: Add string to pull WordPress version with pretty formatting. Django: nice find -L /vol/www/ -name 'PKG-INFO' | xargs grep

Read On →

Food Keywords for Raw Food Recipies

One of my favorite bloggers is a raw food blogger named Addicted to Veggies (ATV). She recently mentioned wanting to earn income for the hard work she puts into her amazing original raw food recipes. So, I started thinking about keywords for her blog. Later that week, I came across a raw food site called from Sad to Raw that had a banner at the bottom advertising, “#3 for the search Raw Food Recipes”.

Read On →

Free Geek Volunteer - Receiving

Free Geek is a Portland computer reuse and recycling non-profit organization. Free Geek takes in almost all e-waste and either reuses it or responsibly recycles it. They are an amazing organization staffed by a huge volunteer force and run as a consensus-based organization. Every volunteer gets a free computer after only 24 hours of work. So, they get hundreds of volunteers. They take in anyone regardless of skill or ability and they provide training, friendly oversight, and lots of encouragement.

Read On →

How Would You Configure High Traffic Webservers?

Today I was asked the question, “Should I separate the Apache server from mySQL server?” This brings up a great question. What’s the best way to configure a small set of servers for multiple high-traffic websites? Once you outgrow a single dedicated server, where do you go? Do you buy a big expensive dedicated server? What happens when that one is maxed out, do you buy two? If you buy two servers, do you split Apache and mySQL?

Read On →

How to Test a New Web Server?

I’m moving to a new web host. Apache, mySQL, Drupal, etc… Virtual web sites. How do I test virtual web sites before changing the DNS? For example, there is a virtual site http://www.example.com, but http://www.example.com is still pointing to the old server. How do I test it on the new server? Apache will respond to a visitor according to it’s Virtual Host file. So, when you visit a server by it’s IP address(123.123.123.123) , you won’t see your website.

Read On →