We are happy to announce the addition of The Week Publications – US publishers of websites TheWeek.com and Mental Floss – to our roster of clients. We look forward to supporting our new client’s technical endeavors going forward!
Category Archives: Drupal
Non-zero length redirects in Drupal
Those of you hosting Drupal sites on Acquia might come across this issue: enabling compressed cached pages leads to Varnish errors instead of redirects. As explained by Acquia support, this happens because Varnish tries to unzip zero-length response – and, naturally, then fails. Your options for solutions are to purchase a dedicated balancer configuration – or make the response non-zero (for instance, add the “Redirecting…” text into the body).
Radar Online up for awards
American Media’s flagship website Radar Online is nominated for the MIN Best of the Web awards in three categories: “Digital Team of the Year,” “Editorial Excellence,” and “Use of Facebook.” A second AMI site, Muscle & Fitness, is also nominated in the “Content Marketing Program or Campaign” category.
Drupal 8, by extension
Today, finally, I installed the first release candidate of Drupal 8. A quick comparison shows: the root directory of Drupal 8 has lost weight. Not much, but still.
Continue reading
Media General Buys Meredith
For all NYC Front-end developers!
Boyle Software has several open, full-time positions for experienced Front-end Web developers with expert knowledge of HTML5, CSS3, JavaScript (vanilla and libraries like jQuery), as well as knowledge of one or more JS frameworks (especially AngularJS).
Using WebSocket with Drupal
Drupal is written with PHP – a language that has quite a few limitations: request-response logic, one thread per request, no shared-in-memory variables between requests, among other strictures. PHP is easy and fine when you only need to render HTML pages, but what if you want to add real-time applications like chat, streaming analytics, or document collaboration? For these, a better approach is to use the WebSocket protocol. Languages like Java or C++ support this protocol in their core, but not PHP. If we want to develop real-time applications, can a Drupal website avoid writing some part with Java or C++ or using third-party products like Google Cloud Messaging (GCM)? The answer is yes.
Keeping your blocks straight
Drupal 7 projects utilizing Contexts for placing blocks tend to grow quickly and have many, many different contexts – it can get really confusing! Utilizing a smart naming convention (like Phase 2’s) is an absolute must. But if you’re on a project with several developers, even a coherently, clearly named context structure can still cause headaches; you might still have to search and open up contexts one-by-one in order to locate a specific block.
For those of you using the Devel module, here’s a great way to increase efficiency and speed things up! Just use the following code snippet:
1 2 3 |
dpm(array_filter(context_load(), function($row){ return !empty($row->reactions['block']['blocks']['some_module-your_block_name']); })); |
You can place this snippet anywhere in your code or go to http://www.your-local-site.com/devel/php to run it from there. In fact, you can use this snippet to search for all sorts of reactions – just modify the filtering options!
Storing sessions with Drupal
When developing a Web app with PHP, especially when using a framework or a CMS, most often you just don’t care about sessions. Less frequently, you store and access some information from a session, accessing it via language constructs (like “singleton” object (e.g.
ZendSession in Zend framework), some special wrapper functions or just
$_SESSION global). More often, though, you don’t bother monitoring how and where sessions are stored. But sometimes you should.
The basic purpose of this post is to talk about how, when developing a high-load website, to allow users to log on and access some personalized information. When you have hundreds of thousands hits per day, you should expect that tens of thousands users will log in to their respective accounts. That’s when you need to start caring about session storage. Continue reading
Drupal developers needed now!
If you have excellent front-end Web development skills – HTML5/CSS3, JavaScript – along with a couple of years of experience building sites with Drupal 7, we need you now! We have immediate, full-time opportunities in New York City for Drupal coders looking to join an established team of passionate, open-source-centric engineers. It’s all about smart solutions to problems as they arise…
To apply, please email your resumé to jobsny@boylesoftware.com today!