Red Green Navy

  • 06 Mar 2012 Comments

    Why and how to adopt agile methodologies during software development

    Agile is a simple approach to deliver software application in a very iterative approach where do you provide a working software at the end of each period of time (usually 2 weeks) which we call a sprint, where users and stackholders can evaluate and provide feedback and change in a very rapid way.

    Working in agile has been adopted since a long time ago in different approaches and shapes, in todays development houses, agile can help your developer and engineers work directly with the business users so they can have better understanding of requirements and take continious feedback which can be a bit challenging as well.

    What makes agile a success key in many development life cycles is that it prevents what so called scope sliding specially for large projects where it is kind of hard to get these project requirements defined upfront, plus that when shipping a project that will be used by hundreds or thousands of users it becomes very tricky to train them or make them adopt to the new features or workflows, where agility allows these user to adopt to it along the line and understand where this project is going and how is it going to be, and how to make a system that is align with what business users really need instead of aligining it with what the business user told you they need at the analysis phase and requirement gathering phases.

    Testing in agile methodologies is as import as developing the system, where the point after each 2 weeks sprint is to deliver a working software - that is previously tested - in chunks to business users to test and feedback.

  • 06 Jan 2012 Comments

    Bulk disable comments, or perform various operations to all nodes using Drupal 7 Batch API

    Batch API in Drupal 7 is very similar to Drupal 6 batch API.
    In this website, I'm using Disqus comments, but I also had some nodes that have Drupal's comments enabled in, so it very confusing to the commenter, which form should I use.

    So I needed to disable the comments on each node, by editing each then unchecking the comment box, after the second node I got bored so I decided to do it with an automated batch API operation.

    Note that you can do whatever you want using this API, not only node operations.

    I created a module called disable_comments

    /*
    * Implements hook_menu()
    */
    function disable_comments_menu() {
      $items['rebuild/nodes'] = array(
        'title' => t('Rebuild our nodes and make me happy'),
        'description' => t('Rebuild all nodes in your website'),
        'page callback' => 'drupal_get_form',
        'page arguments' => array('rebuild_admin_form'),
        'access arguments' => array('administer content'),
      );
    
  • 06 Jan 2012 Comments

    Create CTools plugin for panels in Drupal 7

    Creating a CTools plugin for Panels in Drupal 7 has never been easier.
    First thing, you need to tell your module whether it was custom or if your patching a contributed module about your plugin, you do so by

    $plugin = array(
      'title= => t('Activities'),
      'description' => t('Display paranormal activities box.'),
      'category' => t('Widgets'),
      'required context' => new ctools_context_required(t('Node'), 'node'), // you can also define your required context for this widget to function
      'render callback' => 'yourmodule_activities_render',
      'edit form' => 'yourmodule_activities_form'
    );
    
  • 21 Dec 2011 Comments

    Buddha Story

    Buddha was well known for his ability to respond to evil with good. There was a man who knew about his reputation and he traveled miles and miles and miles to test Buddha. When he arrived and stood before Buddha, he verbally abused him constantly, he insulted him, he challenged him, he did everything he could to offend Buddha.

  • 21 Dec 2011 Comments

    How I Became A Madman

    You ask me how I became a madman. It happened thus: One day, long before many worlds were born, I woke from a deep sleep and found all my masks were stolen -- the seven masks I have fashioned and worn in seven lives -- I ran maskless through the crowded streets shouting, "Thieves, thieves, the cursed thieves."

    Men and women laughed at me and some ran to their houses in fear of me.

  • 21 Dec 2011 Comments

    The life-dream

  • 21 Dec 2011 Comments

    Ninteen Eight-Four - Selected Quotes

    * The horrible thing about the Two Minutes Hate was not that one was obliged to act a part, but that it was impossible to avoid joining in.
    * Nothing was your own except the few cubic centimetres inside your skull.
    * Who controls the past controls the future: who controls the present controls the past.
    * If there is hope... it lies in the proles.

  • 08 Nov 2011 Comments

    Drupal Feeds, a Chrome Extension for Drupallers

    I launched a Chrome Extension called Drupal Feeds that makes it easier for me, and other Drupallers to follow latest updates on Drupal Planet, Drupal.org, and Drupal Association, its a simple extension with an appealing and handy layout.

  • 07 Oct 2011 Comments

    Using SASS/SCSS in your Drupal theme.

    Sass is meta-language on top of CSS that is used to describe your page's style in a clean, elegant and structured way.

    Sass allows you to use nested rules, variables (yes variables in CSS), mixins (use whole chunk of css properties and selectors in different places), and selectors inheritance.

  • 11 Sep 2011 Comments

    Backup Drupal 6 sites and their MySQL databases using bash script

    This is a simple Bash script to handle your daily Drupal sites' backups, please read prerequisites before using it.
    - This script is designed for Ubuntu, Debian or similar distros only or any /var/www directory-like.
    - This script is designed to work with standard Drupal sites' structure.
    - This script is designed to backup Drupal 6 sites only.