Skip directly to content

Adding SOPA blackout to a Drupal Gardens

on January 17th, 2012 at 11:55:53 PM

If you want to blackout your site in protest of SOPA/PIPA, here's what you gotta do:

(hat tip to http://www.zachstronaut.com for the blackout page).

Important: Keep the url mysite.drupalgardens.com/admin/content handy. 

Once you follow these instructions, your site will go dark (if it is January 18th 2012).  If you want to get it back, you will need to delete the block later.

  1. Navigate to Structure -> Blocks
  2. Click on "Add Block"
  3. In the "Body" use the dropdown to change from "Safe HTML" to "Full HTML" (the buttons will go away)
  4. Make the block show by setting a region.
  5. Copy the following and paste it into the body:

 

<script type="text/javascript">
    var a = new Date;
    if (18 == a.getDate() && 0 == a.getMonth() && 2012 == a.getFullYear()) {
        window.onload = function () {
            var cover = document.createElement('div');
            cover.style.position = 'fixed';
            cover.style.zIndex = 9999999;
            cover.style.width = window.innerWidth + 'px';
            cover.style.height = window.innerHeight + 'px';
            cover.style.top = 0;
            cover.style.backgroundColor = '#000';
            cover.innerHTML = '<iframe

State of Drupal in emerging markets survey 2012

on January 7th, 2012 at 2:38:44 AM

This survey is intended to gather data about Drupal's opportunities and challenges in emerging markets.  "Emerging market" is a loaded and awful term, but for lack of a better one, I'm using it to mean anywhere that doesn't already have a large Drupal marketplace and community (i.e. North America and Western Europe).

 
I'm going to use this data in my presentation at DrupalCon Denver and the raw data will be released publicly under a Creative Commons license.
 
The goals of my presentation are:
  • Highlight the growth of Drupal worldwide
  • Provide insights on the adoption patterns of customers in emerging markets
  • Show the challenges and opportunities for SMEs and large companies
  • Celebrate and discuss the challenges of new Drupal communities around the world
 
The presentation will be somewhat heavily about India and probably China.  So it will be skewed towards the big IT players and how they are adopting Drupal, but I hope to also present a well rounded view of many markets people are not aware of.
 
Please answer honestly and completely, and feel free to suggest additional questions & add comments in the provided long-answer fields.
 
If you have any questions, get in touch with me at http://www.jacobsingh.name/contact.
 
Thanks!
Jacob
 
 

X-mass at Mom's

on January 1st, 2012 at 3:37:25 AM

A collaborative open source presentation

on December 12th, 2011 at 8:44:57 PM

I presented at DrupalCon London on contributing to Drupal.  The talk is called “How to have an open relationship… with software.”  Sadly, there is no nudity, polygamy or even dirty jokes.

 Nope, it’s just about how it is strategic to contribute to Open Source software and techniques for sales, marketing, management and developers. I did the same talk at Drupal Camp Montreal in September (video and Slides - not matching video).

 
 
It’s a lot of fun to do this talk.  It’s also the first time I’ve presented on non-technical topics.  There is a lot more doubt there.  When presenting on a technical topic I know that I am an authoritative voice on the topic.  That is, I have facts at my disposal. Solid, indisputable knowledge that my audience (at least 99% of them), will not have.  That is a position of power, it’s why
  • Engineers have good stability and income
  • Managers are scared to death we aren’t really working hard
  • We had a boss screen in DOOM and it worked, etc.
My new talk is all opinions.

Project idea: Commit safety for developers

on November 25th, 2011 at 6:10:14 PM

The problem

Programmers are like bad criminals in cop movies.  We just like to leave clues everywhere.  Most of the time, we work much like writers, from the outside in.  Develop an outline, stub out the parts which we might get to, and then fill in the core pieces, followed by the extremities.  If you're lucky you get a quick review and edit and then off to the press.  

Often though, we leave in little todo messages like "@todo: Actually write this function" or "@todo: make sure you check for a security hole here".  Or unprofessional error messages like "oops, something didn't work" or even worse "idiotic user doesn't know how to read instructions and forgot to use lower case".  And sometimes, I've been guilty of leaving debug code in which is there for me to look at what is happening in the code, but should never be accessed by others.

In my 13 years of reading other peoples' code, I don't think I'm alone here.

Ever seen "An unexpected error has occurred" or "Oops, shouldn't have gotten here" in an application... yeah, the dev needed this.

The proposal

An extension to your version control system of choice and/or your continious integration tool which checked code for various

Drupal code sprint formats

on October 20th, 2011 at 7:33:34 AM

I've been asked to facilitate a code sprint at Drupal Camp Delhi in a couple weeks.  I've never led a code sprint before, but I have participated in several.  I'm thrilled to do it, but then there are a lot of logistical questions that are rasied.  What format it should take? Who and how many should attend?  Will there be beer?  These are serious questions that I don't have clear answers to.  I thought about it and decided to describe the different formats I've witnessed.

General "grab an issue" sprint.

People show up and work on what they are interested in already.  They collaborate and ask each other questions, but generally just keep it informal and working groups form organically.
  • Preparation: Low
  • Easy to get involved: Yes, but tough for complete newbies unless there is prep.
  • Tangible results: Low
  • Group size: Any

Organized "grab an issue" sprint

A facilitator picks a bunch of issues ahead of time, organizes them (perhaps by experience level or skill type) and then doles them out to people who want to work on them.  People can work in pairs, or individually, but the end result is some amount of traction on a particular topic (piece of core, module, documentation, etc).  Angie

Lazy Programmers

on August 17th, 2011 at 6:26:21 PM

The best programmers are lazy programmers.  Drupal, more than many other systems holds that maxim to be true.  Why do lazy programmers have an advantage?

Because Drupal is not a traditional software framework.  It is a framework, but it is a community first and a framework second.  There are over ten thousand existing modules to choose from and thousands more blog posts and online resources to copy code from.  Add to that a thriving community on IRC channels, forums and commercial support companies like Acquia and there are many ways to find solutions.  The last thing you should resort to is writing custom code.

Custom code is expensive to maintain, risky to a project and creates a dependency on the people who wrote it.  So while it is necessary to write some code on the vast majority of large Drupal sites, strive to practice configuration before coding. You can accomplish a lot just by picking the right modules and configuring them to suit your needs.

Getting paid in candy: How Acquia is building the next generation of Drupalists

on July 19th, 2011 at 3:43:08 PM

My employer Acquia is a commercial open source company.  That means that they make money (commercial) off of software they don't own (open source) and there are more than one of us (company).  It should be clear then that Acquia's survival is totally dependent on the success of the software it provides services around, Drupal.  

Drupal has been doing exceptionally well as of late.  In fact, Acquia just relased "the showcase"; it is a website detailing over 1000 high profile Drupal sites.  To name drop a few, The Whitehouse, Amnesty International, NCAA, The Economist, www.jacobsingh.name, and many, many more.  Drupal is charchterized by having a very robust community of thousands of developers, rapid innovation, successful conferenceslocal community organizing and a thriving ecosystem of service providers.  

The main thing threatening Drupal's growth right now is a lack of expert Drupal talent to meet the demand.   We now compete with the very largest proprietary systems and software companies in all industries.  We have the tech, it's proven, but we need enough people to execute.

Hacking a huge Drupal database import

on July 18th, 2011 at 1:57:14 PM

This article describes how to use regexes and some bash tricks and bad voodoo to split a SQL file into pieces in order to get it into MySQL in a reasonable amount of time. Parsing SQL is notoriously painful and error prone, so if you see mistakes here (I'm sure there are), please comment!

I recently got called in to work on a project for a customer I had never worked with before.  It is a very well known media / retail company and the job was to build a new interface for a media player / video library they required.  Pretty standard stuff, some views a couple quicktabs, a bit of ajax coding and a lot of pixel-f**king.  Anyway, near the end of the week long project when it came time to stage it, I realized I had a pretty big problem.  This site had 2 million users and several tables of profile data and other information.  My SQL file was over 3GB and took 6-8 hours to import.  Eek!  

So knowing that I wasn't going to write my update functions 100% perfect the first time, and I would likely have to import several times until I was confident it was working okay, I needed to find a way to get the DB to import in a more reasonable amount of time.

My first Chrome extension - Tab Buffet

on April 28th, 2011 at 3:00:45 PM

This morning I woke with so many tabs open even the icons were hidden.  It was a momment of tab gluttony shame.  I had been at the all-you-can-eat Internet buffet until late in the night, and it got ugly.  

 

So, having put in a stupid long day yesterday, I decided to take a break from DrupalGardens work and build a little Chrome extension to track how many tabs I have open over time.

I present: Tab Buffet

 

It's totally alpha code, but if you want to try it out you can install it here. Fork me on GitHub

Pages