Drupal Planet
Drupalize.Me: Using A Remote Debugger With CasperJS and PhantomJS
Earlier this year fellow Lullabot Juampy wrote about how we've started using CasperJS at Lullabot in order to do regression testing. I haven't had much chance to dig into it until recently, when we decided to implement some CasperJS tests for Drupalize.Me. So far, I'm really enjoying it—except for those occasions where something in my test is simply not working, and I end up spending hours asking CasperJS to take screenshots using console.log(), and trying to figure out what is going on. Fed up with this process I wanted a debugger.
Larry Garfield: On Drupal's Leadership
My DrupalCon Amsterdam Core Conversation on Managing Complexity has generated quite a bit of follow-up discussion. That's good; it's a conversation we as a community really need to be having.
There are a few points, though, that I feel bear clarification and further explanation as I fear the point of the talk has gotten lost in the details.
Before continuing, if you haven't yet I urge you to watch the session video as well as the background resources linked from the session page. This is not a new conversation; it's the latest chapter in a very long-running discussion that is larger than the Drupal project, and it behooves us all to be aware of the history and context around it.
Károly Négyesi: Drupal 8 critical issues office hours Oct 24, 2014
This was our first critical office hours. webflo have forward ported a Views SA (turned out that Twig autoescape made short work of the security hole -- yay! so now it's just a test) and even past the office hours followed up with a patch that now passes. I will monitor the issue further and make sure it gets reviewed and committed. ksenzee started on decoupling cache tags from cache bins -- there's no patch yet, I need to follow up on this one however from our discussion it was clear she was making a lot of progress. I was trying to help penyaskito with the language.settings config is not scalable issue but turned out his problems went away with a fresh install so that issue is now progressing well even without the office hours. So as far as I am concerned, that's two down and one moving (and as a bonus, webflo rerolled fix common HTML escaped render #key values due to Twig autoescape which is major I am not sure why it's not critical). I think critical issues office hours was off to a good start, more people would of course be better. I count 123 critical issues.
IXIS: Strengthening our Relationship with the British Council
We are delighted to be working with the British Council on a new Drupal hosting and infrastructure support project. The British Council are valued clients, and we have worked with them for more than 6 years managing both the global suite of 150 country sites, and the prestigious suite of Drupal teaching and learning sites.
We will be working to to create four individual platforms for hosting key Drupal websites on, moving away from just one main infrastructure, to improve resilience, efficiency and increase availability to the sites which generate more than 35 million page impressions per month and are used by more than 65 million people each year alone.
Mediacurrent: Culture, Code and Karaoke
What is “culture” and why do we take so much time trying to define it? Is it really important or just another buzzword? This past weekend, we were afforded the opportunity to have a company retreat, that went the distance in proving that culture is something that can’t be bought and paid for, it’s something unique to us and our success really does hinge on its influence. Our people, our relationships, our “culture” is what makes Mediacurrent, Mediacurrent.
Acquia: Learning from hackers a week after the Drupal SQL Injection announcement
Since October 15th, hackers have been busy coming up with creative ways to exploit the SQL Injection in Drupal 7 sites revealed by SA-CORE-2014-005. A week has already passed, and attacks are still ongoing. In a previous post, Moshe Weitzman explained how we were able to protect our customers' sites the moment the vulnerability was announced.
Zero to Drupal: Headless Drupal & AngularJS Hackathon (Recap)
Last night I had the privilege of walking us through our first interactive Drupal meetup here in St. Louis. I'll be honest, I didn't have time to fully plan the night out like I had hoped but everything actually turned out great and it was one of the most fun I've had at a meetup in a while.
Security ReleaseFirst up, we discussed the recent security release for Drupal 7. Thankfully, everyone in the room was aware of the release and had taken action to patch their sites. Beaven Rudge wrote a great article discussing how important it is to take action against any public Drupal 7 site you've got up. I highly recommend reading through the info-graphic that he posted.
Digging in - The Fun PartOur goal for the evening was to build two applications for our faux pizza company "Dangulo's" (special credit goes to Jeff Geerling for the name). The first would use Drupal as a backend admin and data api. It would also be used to manage ingredient inventory and process orders. The second would be a separate AngularJS application that would serve a fairly dynamic form that customers would use to order our world-famous pie.
Before we dove in, we had to give an impromptu (and hopefully coherent) walkthrough of how AngularJS works and why we would chose to use it in this case. It's important to note that nearly any front-end framework could have been used for the customer-facing app. However, lately a good portion of my time has been spent with AngularJS so that's the route we chose for this project.
Once we had a good understanding of our architecture and how everything needed to be structured, we moved to the Drupal side. For this project, we decided to go with the beta2 version of Drupal 8. Thankfully, most in the room didn't have much trouble getting D8 up and running.
Drupal ConfigurationWithin our Drupal app, we needed to:
- Create a Toppings vocabulary with:
- Title - the name of the topping
- In Stock (boolean) - Whether the topping was in stock
- Create an Orders content type with the following fields:
- Name (text) - The name of the customer
- Quantity (number) - The number of pizzas being ordered
- Toppings (taxonomy term reference) - Referencing Toppings
- Create a view that ouput a json-formatted list of toppings with:
- Title
- In stock
After creating the taxonomy, content type, and views, we created some sample ingredients and ended up with a pretty cool api endpoint for our ingredients.
Hello AngularJSNext, we moved onto the AngularJS side. For this project, I created a starter app (which can be cloned/downloaded at github) that everyone downloaded so that they wouldn't have to start from zero. I actually used Yeoman to generate this app but decided to just push up a build of the app since no one had had node and/or grunt installed. This led to a small issue that all of the files were minified & uglified but given that we only had two hours to get things going, we forged ahead. If you're interested in working with the full app, it can be found here.
After configuring our controller to use $http to query our Drupal endpoint, and adding some markup to our orders view, we ended up with a list of ingredients from Drupal. Woot!
I'll admit, the app isn't that exciting at this point but the fact that we were able to manage content in Drupal, have it output in a standard format, and then use a completely decoupled application to view that data was very rewarding. Sadly, we ran out of time before we could go any further but in the end, I think we covered a lot of ground.
Next up?Obviously, our apps are lacking a lot of functionality before they could be considered "production-ready". Things that we weren't able to get to include:
- Nesting ingredients into categories (ie meats, cheeses, veggies, etc)
- Building the actual form in AngularJS that has dynamic components (ie showing/hiding toppings selection, order total, etc)
- Creating order nodes in Drupal from the AngularJS app
Given that we've got so much work to do, we've decided to extend our interactive session into a second meetup. So mark your calendars as we will meet again in November for our last meetup of the year. Our goal will be to finish out our app and head into the holidays with a better understanding of this brave new world.
Special ThanksLastly, I'd like to send a special thanks to Relay Technology for hosting our meetup. Josh Paydon stopped by and gave us some great insight into their company, as well as how the tech scene is evolving in St. Louis. If you're a developer looking for work in the St. Louis area, I highly recommend getting in touch with them as they're a great company with some great opportunities available.
TagsZivtech: Experiencing Portland at the HighEdWeb 2014 Conference
Over the past few days, Alex and I have been out in Portland, Oregon for the HighEdWeb Association’s annual conference. The conference, which is focused on technology in higher education, took place from October 19-22, and featured many incredible presentations, riveting keynote speakers, and talented higher education professionals. As sponsors of the conference, we were proud to be able to support an organization that is built upon the use of technology and the web in higher education, and we were excited to be surrounded by so many dedicated professionals.
One of my favorite parts of the conference (which was my first big conference, by the way), was the opportunity to learn about the jobs many of the attendees had within their universities. Hearing first-hand their experiences, struggles, and successes helped put their needs into perspective in a way I had not yet experienced. As a previous student, it was heart-warming to see the dedication of these professionals and to learn how integral each and every one of them is to the success of their college or university.
Thanks to the HighEdWeb Association and its sponsors, we were also able to attend some of the awesome evening gatherings throughout Portland. My favorite event was the social at the World Forestry Center, complete with a live karaoke band, incredible doughnuts from Portland's own Voodoo Doughnut, and various other food and drinks. The karaoke band, Karaoke from Hell, really made the night, as everyone bravely belted out some tunes from their favorite songs. At times it felt like a true, live concert--some of you HighEdWeb members can really sing!
I am truly thankful that HighEdWeb was my first big conference experience, and I am so happy I was able to go and meet many of the wonderfully talented individuals who attended. It was great getting to hear from everyone, and I loved learning more about their work. I know everyone I spoke with had a blast, and we are all looking forward to 2015.
Were you at the HighEdWeb 2014 conference? Let us know what you loved most down below in the comments.
Terms: HigherEdWebHEWeb14Higher EducationDrupalDrupal PlanetSponsorshipHighEdWebDeeson: Five Drupal modules you're probably missing out on
Here are five under-rated Drupal modules with less than 10,000 installs (at the time of writing!) which we use all the time.
1. ParagraphsTake a look at this fully flexible content creation module called Paragraphs which has 822 reported installs.
Our Content & Marketing Strategist, Emily Turner, explains:
"Paragraphs enables me to create visually interesting content easily. I can choose from a variety of block types which support text, images and iframe content. I can reorder them and control the look quickly, switching alignment left or right. At Deeson, we've put a lot of effort into customising Paragraphs to help with the editing and publishing process. It makes blogs look more lively and gives creators the control they crave."
2. CoffeeNavigate through Drupal admin quickly with Coffee, which has 7,577 installs reported.
So if you're finding the nav bar a little slow, give this a go! Just Alt+D and type away.
Mac users will know this as similar to Alfred.
3. NavbarTake a look at Navbar, with 6,238 reported installs, for a mobile friendly nav bar.
This is a backport of the Drupal 8 mobile friendly nav bar. We are using this for all new sites.
4. Image Field FocusWe're a big fan of Image Field Focus, which has 5,525 reported installs.
It allows smart cropping of images and combines well with the Picture element, as we explored in our recent post.
5. Publication dateThe Publication Date module is the missing date stamp in Drupal and has 1,548 reported installs.
It automatically sets itself when you tick the publish box so that newly published content will always be at the top of your listings, even if it’s been in draft for months.
Have we missed any?Come and tell us on Twitter the Drupal modules you think need a shout out.
Drupal Watchdog: Drupl'Art
I like new movies and old music.
Why new movies but old music?
Maybe new TV is better because old movies – and TV – were not very good simply because moving pictures were a new medium, and it has taken artists time to mature.
Maybe old music is better because rock 'n' roll of the ‘60’s and ‘70’s was particularly brilliant, a musical Renaissance era.
But we do know that art is subjective; what I like is not necessarily what you like.
So though I prefer contemporary movies over the classics, some people opt for the opposite; they think old TV shows were the Renaissance period – and I just have no taste for good television.
Is there possibly another explanation, having to do with repetition?
Does repetition strengthen and reinforce one’s preference? Or do we just repeat things we like... a lot?
I often watch every episode and every season of a TV show I enjoy, but I watch each episode only once. Each episode is similar, but different. The patterns of the characters and interactions are similar, but the dialogue and exact story is, of course, different.
But with music, not only do I listen to the same artists, I listen to the same songs over and over again. I’ve heard “Jailhouse Rock” a million times, but only watched the movie once or twice. Hearing something I like, repeatedly, reinforces the song’s pattern, makes me more comfortable with it, and, I think, ultimately leads me to liking it more.
The same could be said of software patterns.
Building on my last article on “Sculpting Conditionals,” nothing helps me more than reviewing someone else's code. I can quickly detect a pattern I’m not familiar with. Frequently, an unfamiliar design pattern indicates trouble. And if the bad pattern occurs once in a code review, it’s worth checking to see if it was done elsewhere in code that is already committed. Unfamiliar patterns should be a klaxon horn, something deserving attention. After some study I might discover that the new pattern is actually better than the old pattern, and it will become something I adopt, but it is always initially a warning.
Code Karate: Entity Reference View Widget
If you have ever built a site using the entity reference module, then the Entity Reference View Widget module is a module that you should know about. It isn't always necessary, but can be a lifesaver if you have a lot of referenced content that you need to sort through and select from on your Entity Reference fields. This is a good replacement for using a traditional autocomplete field for your entity reference fields..
In this lesson you will learn:
Tags: DrupalEntity ReferenceDrupal 7Drupal PlanetCode Drop: aGov: First Impressions of Australia's Government Drupal Distro
aGov is a Drupal distribution, which has recently been adopted as "GovCMS". It is built and maintained by the Australian Drupal shop PreviousNext. The distribution is a foundation for websites built for government organisations. At Code Drop we've been involved in the development of websites for government bodies locally in WA, however it is an area that is forecast to expand significantly and one that all Drupal agencies should be embracing.
The first step to undertaking the technical aspect of a large project is to evaluate all of the code in the Drupal ecosystem for appropriateness and stability. In this post we’ll go through some of the features found in aGov (7.x-1.x) and how they could be applied to a new government website.
Drupal Bits at Web-Dev: Drupal: Altering Page Title and or Title Tag
Sometimes you need to alter the title that appears on the page and or the title tag in Drupal 7. If you need to make them both the same, a call to drupal_set_ttile() from within a hook_preprocess_page() will do it.
Drupal core announcements: All the sprints at and around DrupalCon Latin America Bogotá
https://latinamerica2015.drupal.org/sprints
We have a great tradition of extended sprints around big Drupal events including DrupalCons and Drupal Dev Days. While there is a sprint day included in DrupalCons (usually) on the last day of the con, given that a lot of the Drupal core and contrib developers fly in for these events, it makes a lot of sense to use this opportunity to start sooner and/or extend our stay and work together in one space on the harder problems.
DrupalCon Latin America in Bogotá is the next DrupalCon! We are still looking for space and additional sponsors for the sprints before/after to help with space, internet, coffee, tea and maybe food. There are already various sprints signed up including Multilingual and Sign me up for anything. We are really friendly and need all kinds of expertise!
Now is the time to consider if you can be available and book your travel and hotel accordingly!
Join the sprinters -- sign up now! Practical details- Dates
- February 8 - 13 2015 (all days at DrupalCon and some days both before and after).
- Times and locations
- Day/Time Location Feb 8 Extended sprint, location: TBD Feb 9 Maybe at the venue. There is also training this day). Feb 10 - 11 These are session days. Sprint lounge at venue. Feb 12 Official sprint day, location: TBD Feb 13 Extended sprint, location: TBD
??
Looking for sponsorsWe are looking for more sponsors to be able to pay for extra expenses. If you are interested sponsoring or if you need sponsors to cover expenses, please contact me (YesCT).
Frequently asked questions What is a sprint?Drupal sprints are opportunities to join existing teams and further Drupal the software, our processes, drupal.org and so on.
Do I need to be a pro developer?No, not at all. First of all sprints include groups working on user experience, designs, frontend guidelines, drupal.org software setup, testing improvements, figuring out policies, etc. However you can be more productive at most sprints if you have a laptop.
Why are there 6 consecutive days of sprints?DrupalCon is the time when most people in the Drupal community get together. We try to use this time to share our knowledge as well as further the platform in all possible ways. Therefore there is almost always an opportunity and a place to participate in moving Drupal forward.
What if I'm new to Drupal and/or sprinting, how can I join?If you feel new and would love helping hands, the best day to start is the Thursday Feb 12 sprint day. This is the biggest sprint day with lots of people sprinting and different opportunities based on experience level. For a guided introduction to the tools and processes we use to collaborate, go to the First Time Sprinter workshop in the morning. If you know the tools but still could use help picking issues and going through the process, the Mentored Core Sprint is for you.
I worked on Drupal before, which sprints are for me?If you have experience with Drupal issues and maybe already know a team/topic, any days of a DrupalCon may be your sprint days, and even the days before and after. These sprints do not have formal mentoring available, but of course if you have questions, there are always plenty of friendly people to help you. The community organizes off-site sprint opportunities for the days before/after DrupalCon and the event itself provides sprint locations from Feb 10 -12 throughout the session days in the event venue and in the official event hotel. These sprints are broken down to teams working on different topics. It is very important that you sign up for them, so we know what capacity to plan with.
Further questions?Ask me (YesCT), I am happy to answer.
#node-427578 .picture, #node-427578 h3 { display: none; } #node-427578 .field-type-datestamp { margin: 0 0 2em 0; } #node-427578 dl { margin-bottom: 1em; } #node-427578 dd { margin-top: 0.5em; } #node-427578 h3.content { display: block; }Last Call Media: The Drupal Throbber
Blair Wadman: Improve Drupal email delivery rates by using Mandrill
Recently one of my clients had a problem with a large portion of transactional email never being seen. The emails were being directed to the recipients' spam folders and were generally being over-looked. These were important emails regarding things like membership confirmations, invoices and event information and were critical to the experience of the members.
Why was this happening? Mostly because the emails were being sent by the web server. I switched it to a Mandrill, a service designed to take care of the headaches of sending transactional email, and this greatly improve the delivery rate.
It is notoriously difficult to ensure emails from your application (such as Drupal) actually get delivered without getting caught in spam filters. Email providers like Mandrill have the expertise to maximise delivery rate. You are unlikely to have the time or expertise to manage this process for your own web server.
Mandrill provides great stats so that you can gain a greater understanding of email delivery, if it is getting caught by spam filters, bounces, open rates etc. You can also test different versions of the same email to see which one performs best in terms of open rates.....
Tags: Drupal Site buildingPlanet DrupalMediacurrent: Drupal at Dreamforce
It’s been several days since the finale of Dreamforce 2014. With over 100,000 attendees, Dreamforce is one of the world’s largest cloud computing and business conferences.
Drupal core announcements: Drupal Global Sprint Weekend January 17, 2015 and January 18, 2015
Small local sprints everywhere (well, not everywhere, but anywhere) will be held during the weekend of January 17 and 18 2015. Listed alphabetically by continent, country, locality.
This is a wiki page. Please edit.
Africa
- ?
Asia
- ?
Europe
- ?
North America (ordered by country, then state)
- ?
South America (ordered by country, then state)
- ?
To participate,
- use "Drupal Sprint Weekend 2015" in the description of your sprint meetup, sprint camp session, mini-sprint, wind-sprint, or all-day sprint, like: "Drupal All-day Sprint in Anywhere Town, IL, USA is part of Drupal Sprint Weekend 2015."
- add a link to your sprint on this page. The link can be to a website, meetup, event on groups.drupal.org, blog post or whatever is appropriate for your event.
- link back to this listing of local sprints
- add an "event" of type "sprint" on groups.drupal.org in a group for your area, to put your sprint on drupical.com and get exposure to people in your area
- use the hash tag #SprintWeekend on twitter
- use the tag "SprintWeekend2015" on d.o issues
For resources to help plan your sprint:
- d.o doc: What is a sprint?
- d.o mentoring doc: Resources for sprint planners: How to plan a sprint
- blog: Planning your own local Global Sprint Weekend January 25 and 26 2014 Sprint
- Core Office Hours (drupalmentoring.org) doc:How to lead a sprint
- 2013 DrupalCon Portland session: video on sprint planning and mentoring by xjm, ZenDoodles, add1sun, YesCT
- 2013 podcast: There is no crying in sprints from DrupalEasy
- 2014 podcast: 084 Global Sprint Weekend 2014 with Cathy Theys - Modules Unraveled Podcast with webflo.
- 2014 podcast: Global Sprint Days from Lullabot
- (from 2013) blogs: Preparations for Sprint Weekend and Bringing in people include how to groom issues so others can work on them.
- irc planning meetings, ask any questions about planning or participating during the regular office hours: in #drupal Tuesday 02:00 UTC and Wednesday 16:00 UTC
Resources for participating in a sprint (needs updating for 2015, but this is a start):
- Drupal 8 change notifications
- Resources for contributed module developers: upgrading your modules to Drupal 8. Look at git logs and 8.x issues from modules that have already started a 8.x branch. As you port, first commit a 7.x version as initial 8.x, and make frequent public commits (and issues in your issue queue!). In those commit messages: 1) say what you did, *and* 2) add "per ...." and site the change record, or link to an example in another module that led you to think that was what needed to be done. The "per" is really useful. See also the Pants example module.
- (from 2013 need a 2015 version) Preparations for Sprint Weekend includes what to bring, and how to find/groom issues.
- Use irc, and post a comment when about to work on an issue.
- Drupalize.me free Community videos
A blurb to add to your session/event description (edit to fit your event):
Everyone is welcome; if you have built a site in Drupal, you can contribute. We will split into groups and work on Drupal core issues. Bring your laptop. For new folks: you can get a head start also by making an account on Drupal.org, getting some contribution tools, and developers can install git before coming and git clone Drupal 8 core.
The curious might want to see the locations from 2014 and 2013.
Drupal Watchdog: Drupal Static Caching
Drupal at scale is possible, and indeed, even powerful. Ask someone what they think of Drupal, though, and more often than not they'll tell you that they've heard it's slow. I've seen a lot of poorly-performing Drupal sites in my line of work, and caching is by far the most common reason for the gap between possibility and practice. Even the most basic Drupal installation brings an excellent multi-tier caching architecture to the table, but unfortunately it's easy for developers to break it.
Perhaps the most frustrating caching problem is when developers miss easy opportunities to leverage static caching in their custom modules. By storing computed function results in static PHP variables, further calls to the same method can be made hundreds or thousands of times faster. Taking advantage of this technique requires minimal developer effort: if a result has already been computed, return it; otherwise, store the new result in the cache before returning it.
function apachesolr_static_response_cache($searcher, $response = NULL) { $_response = &drupal_static(__FUNCTION__, array()); if (is_object($response)) { $_response[$searcher] = clone $response; } if (!isset($_response[$searcher])) { $_response[$searcher] = NULL; } return $_response[$searcher]; }The Apache Solr module uses static caching in several places, such as ensuring that only one Solr search will be performed per request, even when there are several search-related blocks on the page.
Like any caching solution, the performance benefits of static caching depend on whether the speed benefit of cache hits outweighs the performance overhead associated with cache misses. The largest performance gains come from caching functions that are time-consuming, repeated often within a single PHP execution, and expected to return the same value more often than not. This is a well-defined set of conditions, and a lot of Drupal code meets them.