Planet Drupal

Syndicate content - aggregated feeds in category Planet Drupal
Updated: 36 min 58 sec ago

Paul Booker: How to create an autocomplete form element in Drupal 7

Fri, 11/14/2014 - 17:22
div class=field field-name-body field-type-text-with-summary field-label-hiddendiv class=field-itemsdiv class=field-item even property=content:encodedpre class=brush: php lt;?php function demo_menu() { $items['demo-autocomplete-test'] = array( 'title' =gt; 'Test autocomplete', 'page callback' =gt; 'drupal_get_form', 'page arguments' =gt; array('demo_form'), 'access arguments' =gt; array('view published content'), 'type' =gt; MENU_NORMAL_ITEM, ); $items['demo-autocomplete-engine'] = array( 'page callback' =gt; 'demo_autocomplete', 'access arguments' =gt; array('view published content'), 'type' =gt; MENU_CALLBACK, ); return $items; } function demo_form($form, amp;$form_state) { $form = array(); $form['colors'] = array( '#title' =gt; t('Colors'), '#type' =gt; 'textfield', '#maxlength' =gt; 60, '#autocomplete_path' =gt; 'demo-autocomplete-engine', ); $form['submit'] = array( '#type' =gt; 'submit', '#value' =gt; 'Submit', ); return $form; } function demo_autocomplete($text) { $results = array(); $query = db_select('colors', 'c'); $query -gt;condition('c.color', '%' . db_like($text) . '%', 'LIKE') -gt;fields('c', array('color')) -gt;orderBy('color', 'ASC'); $colors = $query-gt;execute(); foreach ($colors as $row) { $results[$row-gt;color] = check_plain($row-gt;color); } drupal_json_output($results); } /pre/div/div/divdiv class=field field-name-field-tags field-type-taxonomy-term-reference field-label-above clearfixh3 class=field-labelTags: /h3ul class=linksli class=taxonomy-term-reference-0a href=/drupal-developer/tags/form typeof=skos:Concept property=rdfs:label skos:prefLabel datatype=form/a/lili class=taxonomy-term-reference-1a href=/drupal-developer/tags/hookform typeof=skos:Concept property=rdfs:label skos:prefLabel datatype=hook_form/a/lili class=taxonomy-term-reference-2a href=/drupal-developer/tags/autocomplete typeof=skos:Concept property=rdfs:label skos:prefLabel datatype=autocomplete/a/lili class=taxonomy-term-reference-3a href=/drupal-developer/tags/hookmenu typeof=skos:Concept property=rdfs:label skos:prefLabel datatype=hook_menu/a/lili class=taxonomy-term-reference-4a href=/drupal-developer/tags/drupaljsonoutput typeof=skos:Concept property=rdfs:label skos:prefLabel datatype=drupal_json_output/a/lili class=taxonomy-term-reference-5a href=/drupal-developer/tags/drupalplanet typeof=skos:Concept property=rdfs:label skos:prefLabel datatype=drupalplanet/a/li/ul/divdiv class=easy_social_box clearfix horizontal easy_social_lang_und div class=easy_social-widget easy_social-widget-twitter firsta href= class=twitter-share-button data-url= data-count=horizontal data-lang = en data-via= data-related=:Check it out! data-text=How to create an autocomplete form element in Drupal 7Tweet/a/div div class=easy_social-widget easy_social-widget-facebookiframe src=//;href=http%3A//;send=falseamp;layout=button_countamp;width=88amp;show_faces=trueamp;action=likeamp;colorscheme=lightamp;font=amp;height=21amp;appId= scrolling=no frameborder=0 style=border:none; overflow:hidden; width:88px; height:21px; allowTransparency=true/iframe/div div class=easy_social-widget easy_social-widget-googleplusdiv class=g-plusone data-size=medium data-annotation=bubble data-href= div class=easy_social-widget easy_social-widget-linkedin lastscript type=in/share data-url= data-counter=right/script/div /div !-- /.easy_social_box --

MariqueCalcus: Prius is in Beta like Drupal :-)

Fri, 11/14/2014 - 17:05
pAlongside the long awaited strongDrupal 8 Beta/strong release, we have also updated our first Drupal 8 theme. We haven't include many new features but we have tried to clean up its code and have improved our starter kit. Anyway, let's dig into the latest new features we have discovered with the first Beta releases of Drupal 8. Feel free to check out the code on a href= or read our dedicated a href= target=_blankblog entry/a if you want to find out more about our strongfirst Drupal 8 theme/strong. If you can wait to see the result, take a look at our a href= target=_blankonline demo/a./p a href=''Read More.../a

Blue Drop Shop: Failing is Important: Drupal Camp A/V Kit Update

Fri, 11/14/2014 - 15:17
div class=field field-name-body field-type-text-with-summary field-label-hiddendiv class=field-itemsdiv class=field-item even property=content:encodedpWhen I learned BADCamp wasn't going to be recording sessions, I jumped at the chance to field-test the camp record kits I'm working on. After all, I was confident I fixed the audio equation and was going to start talks with the Drupal Association about next steps./p pa href= current recipe for the kit/a is a Hauppage HD Rocket PVR for the screen capture and the Zoom H2N voice recorder as the microphone. Add to that a handful of dongles and converters to cover HDMI in/out for the PVR, and you're good to go./p pWalking in to BADCamp, I was feeling great. I'm a big advocate for session records and I would be covering three rooms. Pretty cool, right? /p pWrong./p pThroughout day one of sessions, a couple laptops had connection issues and had to bypass recordings, but overall things appeared to be going smoothly. It wasn't until the end of the day when copying files off the thumb drives that I noticed many recordings were 0k mp4 files, primarily from the main room. This was the most disconcerting, because every indication was that things were working./p pOn this, I have a couple ideas, but no solid understanding of why the files didn't write. That was the easiest room in terms of handshake between PVR and projector, plus there was a dedicated A/V crew that was helping hook up laptops./p pWhen we tested at Fox Valley's camp, the laptop was typically disconnected by the time I made it to the rooms to swap out equipment. I suspect that disconnecting the device before hitting the stop button and waiting long enough for the files to write may kill the save. This one will be easy to test./p pProjectors were also an issue. In the main space, none were HD and all were different flavors of Sony. Some hooked up just fine, while others squeezed the output. The Saturday-only keynote room was loving it. /p pAnd then there were presenter laptop issues. There were a few older VGA-only laptops. One refused to work with the VGA to HDMI converted, while one worked for about 15 minutes before failing off and on, mid-presentation. One of the A/V techs suggested that maybe there is not enough USB power on the laptops to handle both the PVR and the converter, so a powered USB hub may be in order. Most Macbooks were fine, but a handful gave output with a very green tint to it./p pNo surprise, HDMI in/out is proving to be more of a hurdle than originally anticipated. In addition to HDMI in, the PVR also has an option to accept component video. It's likely that converting VGA out from a laptop to component video in to the PVR will be a safer bet. So the question becomes whether I can convert the HDMI out of the PVR to VGA for the projectors.   /p pAll in all, this was an enormous fail. That said, this was the absolute best time for it to happen. My goal is to build a system that can handle the majority of the random that a camp will throw at it. /p pI'm looking forward to testing the next iteration./p /div/div/divdiv class=field field-name-field-tags field-type-taxonomy-term-reference field-label-above clearfixh3 class=field-labelTags: /h3ul class=linksli class=taxonomy-term-reference-0 rel=dc:subjecta href=/tags/drupal-planet typeof=skos:Concept property=rdfs:label skos:prefLabel datatype=drupal planet/a/lili class=taxonomy-term-reference-1 rel=dc:subjecta href=/tags/drupal-camps typeof=skos:Concept property=rdfs:label skos:prefLabel datatype=drupal camps/a/lili class=taxonomy-term-reference-2 rel=dc:subjecta href=/tags/session-recording typeof=skos:Concept property=rdfs:label skos:prefLabel datatype=session recording/a/li/ul/div

Tyler Frankenstein: Build a Mobile App to Geo Locate Nearby Places with Drupal

Fri, 11/14/2014 - 13:30
div class=field field-name-body field-type-text-with-summary field-label-hiddendiv class=field-itemsdiv class=field-item even property=content:encoded pimg alt= class=media-image height=406 style=width: 240px; height: 307px; border-width: 1px; border-style: solid; float: right; margin: 0px 0px 1em 1em; width=317 typeof=foaf:Image src= /In this tutorial (a href= DrupalCamp Ohio 2014/a) we'll explore how to build a mobile application and website that can geo locate places near our current position. The nearby location results will be displayed on a map, and will allow us to click on a result item to view its complete details./ppThe website will be powered by a href=http://www.drupal.orgDrupal 7/a. The mobile application will be built using a href=http://www.drupalgap.orgDrupalGap/a, which is powered by a href=http://www.phonegap.comPhoneGap/a and a href=http://www.jquerymobile.comjQuery Mobile/a. Let's get started!/pp/div/div/div

InternetDevels: Welcome us in Lviv! New office of InternetDevels company

Fri, 11/14/2014 - 13:11
div class=field field--name-body field--type-text-with-summary field--label-hiddendiv class=field__itemsdiv class=field__item evenpLong time ago in a galaxy far far away… Hold on, it was precisely 7 years ago, 15 November, 2007 in Lutsk, when the InternetDevels Drupal development studio was founded. The company has made a long way since then: overcomed lots of obstacles to gain the respected position at web development market; established number of contacts and connections; made significant contribution to the world’s Drupal community; taken over new development technologies, like Symfony framework… But there’s always something to do!/p a href= more/a/div/div/div

CiviCRM Blog: New features for Webform-Integration - cases, activities, grants and attachments!

Fri, 11/14/2014 - 00:36
div class=field field-name-body field-type-text-with-summary field-label-hidden div class=field-item even property=content:encodedpThanks to sponsorship from Amnesty Intl. Spain and GMCVO the Webform-Integration module now has 4 new features available for you to try out:/p ulli strongSupport for CiviGrant/strong - allows front-end users to apply for grants and update their application information./li li strongMultiple Cases/strong - open or update any number of cases on a single webform./li li strongMultiple Activities/strong - Create as many activities as you wish. br / Activity and case settings have been decoupled from each other so you can file activities on a case, or not, independent of what cases you are working with./li li strongFile Attachments/strong - Webform Grants and Activities now have built-in support for native file attachments./li /ulh3 Try it out!/h3 pYou can test these new features by downloading the dev version of a href= 4/a and going through the usual module upgrade procedure. This upgrade will alter your existing webform activity and case settings to work with the new features. I recommend trying it out on a test copy of your site and let me know if you spot any bugs. As soon as it's had a bit more testing and feedback we'll get these features into the next stable release of the module./p /div /div div class=field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-hidden clearfix ul class=field-items li class=field-item even a href=/category/civicrm-blog-categories/drupal typeof=skos:Concept property=rdfs:label skos:prefLabel datatype=Drupal/a /li /ul /div

Annertech: My First DrupalCon: DrupalCon Amsterdam

Thu, 11/13/2014 - 23:36
span class=field field-node--title field-name-title field-type-string field-label-hiddenMy First DrupalCon: DrupalCon Amsterdam/span div class=field field-node--body field-name-body field-type-text-with-summary field-label-hidden div class=field-items div class=field-itempI was given various bits of advice leading up to my attending my first DrupalCon ever. The essence of the one that stuck with me the most is:/p pPlan. Be realistic. Know you won’t see everything, so make what you do see count./p pFirst on the agenda - get the travel bug out of my system./p pIt was great. I have a new favourite city, and very fond memories of a real, live a href= target=_blankVan Gogh/a. Monday: explore city. Check./p/div /div /div

ERPAL: How to build a full-featured e-commerce business with Drupal

Thu, 11/13/2014 - 22:21
div class=field field-name-body field-type-text-with-summary field-label-hiddendiv class=field-itemsdiv class=field-item evenpWhether you’re a startup or an already-established business that wants to start selling online, Drupal has all the tools you need. It provides flexible modules for building e-commerce features and for defining workflows, data structures and lists, and displays. The Drupal Commerce framework provides you with everything required to sell products, services or files online. It integrates very well with Drupal and all its contrib modules, so you almost only need to do configuration – no programming – to build the features you need. In ERPAL Platform, we’ve built a Drupal distribution for the community to use to create flexible business applications. To be as adaptable as possible, it’s based on Drupal Commerce, CRM Core and ERPAL Core. So ERPAL Platform itself actually just supplies an appropriate collection of best practice modules from the Drupal community that are already preconfigured and cleverly fitted together to provide features for all kinds of business processes. The sales process is therefore already preconfigured and you can extend it as necessary to integrate seamlessly with project management features, manufacturing features or online shop features./p pIn the video below, we show you how you can implement ERPAL Platform to use its existing features as the administration backend of your online shop and add a storefront where your customers can buy your products, request quotations and place orders. This enables you to build a complete online business in one Drupal box including a backend with a lightweight CRM as well as quotations, orders and invoices to cover the entire sales process for an e-commerce business. In this example your online store will have a completely different theme compared to the administration backend. All you need to do is to download some additional modules and add some specific configurations. It’s that easy: just watch the video!/p piframe frameborder=0 height=480 src=// width=640/iframe/p pTo see some real use cases about how it works in projects where ERPAL Platform is used to sell products online, you may be interested in the slides of a previous a href=, created in cooperation with the Commerce Guys/a, the company behind Drupal Commerce./p pMotivational slides from a presentation at Drupalcamp Berlin can be found at/p piframe frameborder=0 height=355 scrolling=no src=// style=border:1px solid #CCC; border-width:1px; margin-bottom:5px; max-width: 100%; width=425/iframe/p div style=margin-bottom:5pxstronga href=// target=_blank title=Building an online business quot;in a Drupal boxquot;Building an online business in a Drupal box/a /strong from stronga href=// target=_blankManuel Pistner/a/strong/div p /p /div/div/div

Commerce Guys: Is your Drupal site protected?

Thu, 11/13/2014 - 20:47
div class=field field-name-body field-type-text-with-summary field-label-hiddendiv class=field-itemsdiv class=field-item even property=content:encodedpOn October 15th a new version of Drupal core was published (a href= details of this fix/a), so naturally everyone is wondering: How do I protect my site?/p h2How Updates Work in Drupal/h2 pDrupal is open source software managed by a community made up of all kinds of experts and hobbyists. Community members who manage security specialize in the processing and verification of all modules hosted on and the core of Drupal itself. This super-smart team has a long history in Drupal and a vast understanding of the core code, its history and its planned future. /p pThey are in charge of analyzing the existing application to protect it from malicious threats, regardless of their origins. When an issue is detected, they evaluate its impact and urgency in order to determine an appropriate mode of communication that meets the needs of the community. This usually means that in the event of a risk, an update is issued on one of the pre-planned bi-weekly release dates./p pThe security team works independently and regularly offers updates to the modules and Drupal core. Below are some ways you can follow these updates to keep your site secure and up to date./p h3The Security Alerts/h3 pspan style=line-height: 1.6;Most Drupal users have an account on If you don’t have one, you’re missing out and you should get one immediately. From your account, you have access to the Newsletter tab. On this page, you are invited to subscribe to the security newsletter and be informed of updates./span/p pspan style=line-height: 1.6;img newsletter subscription src= style=width: 100%; //span/p h3Twitter/h3 pLike any self-respecting tech community, the security team is on Twitter: a href= h3RSS/h3 pYou can find subscribe to two different RSS feeds of security advisories for a href= core/a and for a href= modules/a./p h3Application maintenance of your site/h3 pWhether you developed your site or worked with an agency, once online it must be maintained. The purpose of this maintenance is not to make your site a Rolls Royce, but rather to protect it against errors, insecurities and to improve it with the new features added to Drupal core and the modules you use. It’s encouraged to update early and often./p pYou can choose the frequency and process for updates, but the operations to be carried out are always the same: update the core of Drupal, update themes and modules and test the full operation of your application before you push your updated project live. Prior to deployment, ensure you have a full backup of your codebase, your files directories, and your database in case anything goes wrong./p h2How do I update my site?/h2 pSeveral technical means are available to you to get the latest version of core, themes and Drupal modules. Whatever method you choose, you will retrieve new files to install it on your production site. Here is a summary of what to do in general (this protocol is an example for your project, please refer to your usual procedure of deployment)./p pStarting with a copy of your site on a local environment:/p ulliGet the new version of files or a patch containing updates./li liReview the changelog to see what has been changed that may affect existing functionality on your site, including any new dependencies, minor API changes, or other notes requiring manual intervention in the update process./li liReplace the files or apply the patch. At this point updates are physically available but they are not necessarily applied on your site./li liYou may be asked to launch an update of the database, for example. ulliIn this case, start Drush UPDB drush command or run the update.php page on your local copy site. This operation will be applied to your site changes in its database./li /ul/li liTo ensure that the updates have all been taken into account, empty the cache of your site. Please note this may take some time and will affect the navigation on the site for treatment. For production sites, it is recommended to keep your current deployment procedure./li liOnce this is done, test your site. Check that everything is working properly./li /ulpIf you update a Drupal site between two very different versions of the core, it is possible that some functionalities could be affected. However, in an update of one direct release to another, you should not experience major functional changes. When you are confident with this procedure, following your usual process, update your site or sites./p h2How to update Security SA-CORE-2014-005 - Drupal core - SQL injection/h2 pIf your site has been well-maintained, the security update will be simple and have no effect on the functionality of your project. You can update the core of Drupal as you normally do using this new version: a href= pHowever, if you have not maintained the core of your application for some time (skipping several versions) and even though we do not recommend it, if you made a manual change in the core of Drupal, we recommend that you apply the patch only containing the security patch itself, here: a href= pIn both cases, the changes in the new version of Drupal will have no effect on the functionality of your project, because it only affects one file related to forms./p h2How to ensure security on my eCommerce site?/h2 pSecurity is a key issue for an eCommerce website and it is your duty as a merchant to maintain a safe site for your users. To ensure the security of your site, you must first perform regular Drupal core updates, security or not, or suffer the risky consequences./p pThen, regularly update the modules you use. In some cases, this may affect the functionality of your site, and must be treated with kid gloves./p pIn any case, to make these updates, please refer to the standard procedure for updating your site that you have set up with your agency or web host, or enjoy the new technology implementation of a href= to easily update your site and test with confidence./p h2How Commerce Guys ensures the security of your projects/h2 pSubscribers of our Drupal Application Support and Commerce Application Support programs have seen first hand how we can help protect your sites. We patched our customers immediately and 100% were protected whether they hosted with us or not./p pOur subscribers benefited from the ability to use a “Drush make” driven workflow to manage the codebase for their sites. This workflow has the advantage of managing the versions of Drupal core and contributed themes and modules on your site through a single configuration file that contains a list of elements that make up your site. uses this file to create and deploy your site by downloading modules and the core of Drupal, making updates fast and easy./p pBy creating a file Drush Make File, you can ask to recover the latest version of Drupal with the security patch automatically. You gain in maintenance time and reduce your potential for errors./p pIn addition to ensuring the stability of your hosting, blocked incoming HTTP requests for applications that had not applied the patch. Therefore, only stable sites were available on, and any unprotected sites were immediately aware that action must be taken./p pRead more about this protective block a href= pIf you want to know more about the updates to Drupal, the following links to learn more:/p ullia href= details on the newest version of Drupal/a/li lia href= security page/a/li lia href= security configuration advice page/a/li lia href= post: Your Drupal site got hacked. Now what?/a (via a href= /ul/div/div/div

Acquia: Women in Technology: Better Business, Better World – Meet Vinita Rathi

Thu, 11/13/2014 - 15:43
div class=form-item form-type-item labelLanguage /label Undefined /div div class=field field-name-body field-type-text-with-summary field-label-hidden div class=field-items div property=content:encoded class=field-item evenp/p/div /div /div span property=dc:title content=Women in Technology: Better Business, Better World – Meet Vinita Rathi class=rdf-meta/span

Open Source Training: How to Use the Drupal Quiz Module

Thu, 11/13/2014 - 08:51
!-- Start ScreenSteps Content -- div class=LessonContent div class=LessonSummary pThe Quiz module is a sophisticated and flexible way to create quizzes in Drupal./p pTo get started with Quiz, you need to install and enable the 2 core Quiz modules from a href= src= height=1 width=1/

PreviousNext: Lightning talk - Contributing to Drupal Core without losing your mind

Thu, 11/13/2014 - 06:14
pDuring our weekly developers meeting a href= spoke about my approach to contributing to Drupal core, sharing some tips and tricks I've learnt along the way/p pThis is a preview of a href= proposed session/a for DrupalSouth Melbourne 2015/p span property=dc:title content=Lightning talk - Contributing to Drupal Core without losing your mind class=rdf-meta/span

Midwestern Mac, LLC: Midwestern Mac's Vagrant Boxes - CentOS and Ubuntu

Thu, 11/13/2014 - 05:01
div class=field field-name-body field-type-text-with-summary field-label-hiddendiv class=field-itemsdiv class=field-item even property=content:encodedpIn support of my mission to make local development easier and faster, I've released boxes for four of the most popular Linux distributions I use and see used for Drupal sites: CentOS 6/7 and Ubuntu 12.04/14.04./p p style=text-align: center;a href= src=/sites/ width=600 height=223 alt=Vagrant Boxes - Midwestern Mac, LLC //a/p/div/div/div

Phase2: BADCamp Sprinting Success Story : Drush make files support YAML

Wed, 11/12/2014 - 20:26
pAfter a very successful drush code-sprint at BADCamp 2014, a title=drush make href= make/a now supports YAML format!/p pInstead of the old INI format/ppre class=crayon-plain-tagapi = 2 ; Set contrib directory. defaults[projects][subdir] = contrib core = 7.x projects[drupal][type] = core projects[drupal][version] = 7.32 ; Remove scary ajax error when autocomplete terminates: projects[drupal][patch][] = ; Ensure plain text fields evaluate line breaks. projects[drupal][patch][] = projects[addressfield][version] = 1.0-beta5 projects[addressfield_tokens][version] = 1.4 projects[admin_views][version] = 1.3 projects[field_collection][version] = 1.0-beta7 ; Field collections are ownerless projects[field_collection][patch][] = ; Fixes fatal error in migrate code: projects[field_collection][patch][] = can be used with the latest version of Drush 7:/ppre class=crayon-plain-tagapi: 2 # Set contrib directory. defaults: projects: subdir: contrib core: 7.x projects: drupal: type: core version: 7.33 patch: # Remove scary ajax error when autocomplete terminates: - # Ensure plain text fields evaluate line breaks. - addressfield: 1.0-beta5 addressfield_tokens: 1.4 admin_views: 1.3 field_collection: version: 1.0-beta7 patch: # Field collections are ownerless - # Fixes fatal error in migrate code: - code.make/code files whether local, or discovered recursively within downloaded projects, can be in either YAML of INI format./p pIn order to use the newly-supported YAML format, simply name files with a code.yml/code extension, such as codemy_project.make.yml/code./p pThe best part? This can be used now! Even though YAML files are mostly a new concept for Drupal 8, drush make will parse YAML make files for Drupal 7, and even Drupal 6. Want to learn more about DRUSH make files? Check out Joe Turgeon#8217;s #8220;a href= Started With Grunt Drupal Tasks/a#8220;/p img src= style=float:left; xml:base= width=1 height=1 border=0 align=right/

Liran Tal's Enginx: Drupal Performance Tip – removing unused modules

Wed, 11/12/2014 - 20:22
div class=seriesmetaThis entry is part 2 of 2 in the series a href= class=series-60 title=Drupal Performance TipsDrupal Performance Tips/a/divpIn the spirit of the computer video game a href= target=_blankDoom /aand its a href= target=_blankskill levels/a, we#8217;ll review a few ways you can improve         your a href= target=_blankDrupal /aspeed performance     and optimize for better results and server response time. These tips that we#8217;ll cover may be at times specific to Drupal 6 versions, although     you can always learn the best practices from these examples and apply them on your own code base./p pimg class=alignleft src= alt=Doom width=298 height=212 //p pDoom skill levels: (easiest first)/p p style=padding-left: 90px;  1.strong I#8217;m too young to die/strong/p p style=padding-left: 90px;  2. Hey, not too rough/p p style=padding-left: 90px;  3. Hurt me plenty/p p style=padding-left: 90px;  4. Ultra-violence/p p style=padding-left: 90px;  5. Nightmare!/p pstrong  This post is rated #8220;I#8217;m too young too die#8221; difficulty level/strong./p pnbsp;/p pIf you#8217;re using a a href= target=_blankDrupal /aa href= target=_blankdistribution /awhich is great for kick-starting a project with many features built-in, you should still review added modules which are managed through the a href= target=_blankinstallation profile/a as they might prove un-necessary for your product as time goes and your product evolves and matures. Remember that even if you#8217;re not using a distribution, you might have added some modules to meet a functionality, which you no longer use and you disabled through CSS, through the menus, through the theme, but you forgot all about removing the actual module. These un-used modules account for memory footprint as they are loaded through PHP and they can also account for Drupal hooks, which is even worse in terms of performance for you./p pRemember to strongreview your installed modules base on Drupal/strong and remove any un-used functionality:/p pa href= class=aligncenter size-full wp-image-503 src= alt=drupal_perf-2 width=398 height=530 //aa href= / /a/p !-- Easy AdSense V7.43 -- !-- [leadout: 1 urCount: 1 urMax: 0] -- div class=ezAdsense adsense adsense-leadout style=text-align:center;margin:12px; script async src=// !-- enginx-blog-wide-post -- ins class=adsbygoogle style=display:inline-block;width:728px;height:90px data-ad-client=ca-pub-9677997565991773 data-ad-slot=6746030703/ins script (adsbygoogle = window.adsbygoogle || []).push({}); /script/div !-- Easy AdSense V7.43 -- pThe post a rel=nofollow href= Performance Tip #8211; removing unused modules/a appeared first on a rel=nofollow href=http://enginx.comLiran Tal#039;s Enginx/a./p

Drupal Watchdog: Watch Over My Shoulder

Wed, 11/12/2014 - 19:47
div class=field field--article-edit-printtype field-type-list-text field-label-hidden field--rss Article /div div class=field field--article-body field-type-text-long field-label-hidden field--rss pimg src= alt=Pottery on wheel width=45% class=img-responsive img-thumbnail margin-left align=right //p p One of the best ways to learn useful tricks at the command line is to sit with someone and watch what they do. Due to the distributed nature of the Drupal community, we don't do nearly enough pair programming. Too often we work in isolation and then push our work on others when we finish. In this article I invite you to sit down beside me and watch over my shoulder as I explore Drupal 8 from the command line./p h3Navigating Drupal in the Bash Shell/h3 p The instructions in this article will work for OSX, and Linux systems, such as Ubuntu, but not / When reading command line instructions, there are two important characters we need to know about: span class=geshifiltercode class=php geshifilter-php$/code/span and span class=geshifiltercode class=php geshifilter-php#/code/span. When applied to the beginning of a line, these refer to the prompt. We don't type these characters when issuing our command. span class=geshifiltercode class=php geshifilter-php$/code/span signifies the command should be run as a regular user; span class=geshifiltercode class=php geshifilter-php#/code/span signifies the command is run as the administrative user (“root”)./p p As a themer, the first thing I want to explore is, of course, the themes. Let's begin by navigating to our Drupal folder. I start by opening up a terminal application. At the command line, I type span class=geshifiltercode class=php geshifilter-phpcd/code/span, and then, using Finder, locate my Drupal folder. I then drag this folder onto the terminal application. It will automatically paste the path to the Drupal folder into my bash prompt. I press return, and bingo – we have navigated to the Drupal folder!/p p Let's take a peek inside the core folder of themes: we’ll navigate to the folder core/themes and then list (or span class=geshifiltercode class=php geshifilter-phpls/code/span) all files./p pre $ cd core/themes $ ls /prep There should be four things listed. See them all?/p /div

Drupal Association News: How to Read the Association Financial Statements

Wed, 11/12/2014 - 19:37
div class=field field-name-body field-type-text-with-summary field-label-hiddendiv class=field-itemsdiv class=field-item evenpimg alt= src= style=width: 240px; height: 171px; border-width: 0px; border-style: solid; margin: 5px; float: left; /I've had a couple of questions related to Association finances lately in various communications channels. I know that most of you are not finance professionals for a living, so rather than answering in several different silos, I thought I might write up this post about how the Association financials are structured and how you can read them. You know, for when you need a break from your other Drupal work! So if you're into this sort of thing (and I am not judging here, because I am WAY INTO this sort of thing), read on!/p h3 What are financial statements?/h3 pA financial statement is a formal record of the financial activities of the Drupal Association. The financial statements present information in a structured way that should make it easy to understand what is happening with the organization's finances. In other words, financial statements should tell a story about what is happening with the Association's money. Generally, financial statements include three standard reports:/p ulli strongIncome Statement (or Profit amp; Loss):/strong This report shows the revenue that is recognized as received and spent during a given period. It is tempting to compare the income statement to your checkbook register, but it's not quite that simple. The catch is that the income statement shows RECOGNIZED income and expense. One of the US accounting rules, for example, is that we can not recognize revenue for a DrupalCon ticket until the month in which the event happens. So, if you buy your DrupalCon Barcelona ticket in June, and the event is in September, your ticket revenue will not show up until our September income statement. Until then, that revenue sits on our Balance Sheet. So, the income statement alone does not give you a full picture of the organiztion's financial position. It simply represents the movement of recognized revenue in a specific time period. The income statement also represents some non-cash changes, such as depreciation./li li strongBalance Sheet:/strong The balance sheet shows us the assets and liabilities for the organization for that given time period. Reading the balance sheet, you can get a better understanding of how much money is in the bank, and where we owe, or might possibly owe, money. These things are not reflected in the income statement. Going back to our DrupalCon Barcelona example, prior to the Con, any revenue from sponsorship, ticket sales, or training sales would be held on the balance sheet in two ways. First, it will simply be reflected as cash in our bank account. Secondly, it is reflected as a liability, broken out specifically as sponsorship or ticket revenue. It's a liability because if we cancel the Con, we have to give you your money back! When preparing the September financials, we move the ticket revenue from the balance sheet liabilities session to the Income Statement, where it is treated as recognized revenue. /li li strongCash Summary: /strongThe cash summary (or cash flow) is the report that simply shows the movement of money into and out of our accounts. It does not account for depreciation or other non-cash accounting./li /ulpThose three reports are the standard set that organizations issue when reporting their financials.  The Association, however, issues additional reports to add clarity and transparency around the programs that you care most about./p h3 About the Drupal Association Financial Statements/h3 pThe Drupal Association financials are created on a monthly basis, and then are reviewed by the Finance Comittee of the board. On a quarterly basis, the Finance Committee presents the financials to the Board in executive session, which, if there are no serious questions, approves the financials. At that point, we publish the three months of financials to the community. They are promoted in a blog post about the meeting, and are also always available on the a href= materials page/a on the Association site. /p pAs I mentioned above, the Association financial statements go above and beyond the standard reports. In addition to the main three, our monthly financials also include the following: /p ulli PL All Classes: This is an income statement report, showing recognized revenue and expenses for the month, but it is broken out by program area. This gives you the opportunity to see, for that month, the recognized revenue and expense for the upcoming Cons, or, or our Drupal Product Marketing efforts, for example. This report is for the month only, so keep that in mind. If you are looking at the May financial statements, the numbers in this report are for May only./li li Revenue: This report was designed to show how our various revenue lines are performing. One of our board mandates is to diversify revenue so that DrupalCons are not our primary source of income. Taking this pressure off the Cons to perform financially will allow us to make different kinds of choices for the Cons, and it provides us more stability as an organization. This report helps us monitor progress for those revenue lines./li li PL DC ConName: We create one of these report for each of the Cons we are working on. They are income statements for those Cons, year to date (YTD). YTD means that the report reflects all income and expense for that year, not just the current month. In these reports, you can see detailed information about expenses, with revenue generally not recognized on the report until the month of the Con./li /ulpAnd, keep in mind that all Association financial statements are reported in US Dollars./p h3 How to Read the Financial Statements/h3 pA goal of financial statements is that they are supposed to make financial information easier to understand. However, the truth is that it is difficult for mere mortals to read financial statements. It takes both training and practice. However, let's see if I can walk you through some details. I'll use the a href= 2014 financial statements/a in this example./p h4 Income Statement/h4 pThe Income Statement presents the income and expenses for both the month of the report (in this case, March) as well as the year to date, or YTD, amounts (in this case, 1 January through 31 March 2014). So the top of the report looks like this:/p pimg alt= src= style=width: 1313px; height: 458px; border-width: 0px; border-style: solid; margin: 0px; float: left; //p pHere's what what the columns represent:/p ulli strongActual: /strongAmounts for the month the financials report represents. In this case, March 2014./li li strongBudget: /strongThe budgeted amount for the month the financial report represents. In this case, the amount we budgeted for March 2014./li li strongYTD Actual: /strongTotal amount for the year, through the month the financial report represents. In this case, 1 January through 31 March 2014./li li strongYTD Budget: /strongTotal budgeted amount for the year, through the month the financial report represents. In this case, the amount we budgeted for 1 January through 31 March 2014./li li strongVar %: /strongThe percent difference between the YTD Actual and YTD Budget. This gives you a sense of how good a job we did at budgeting. Variance can occur because we receieved or spent money faster than we anticipated, or our models were off entirely. Remember that the Association only began budgeting and reporting in these formats 18 months ago, so we're still learning about what our cycles of revenue and expense are, so we expect the variance to decrease overall throughout the next few years as we get better at this./li /ulh4 Balance Sheet/h4 pThe Balance Sheet presents the assets and liabilities as of the month of the report, which is March 2014 in this example. The balance sheet almost always also shows a comparative period - the same period the year prior, which is March 2013 for this example. This gives you the opportunity to see how things have changed in the last year. The report looks like this:/p pimg alt= src= style=width: 627px; height: 529px; border-width: 0px; border-style: solid; margin: 5px; //p h4 Cash Summary/h4 pThe Cash Summary report shows the flow of money into and out of the organization in the given period. For compartive purposes, it also includes a Year to Date (YTD) column that shows all cash movement for the year, which is 1 January through 31 March in this example. The Cash Summary looks like this:/p pimg alt= src= style=width: 507px; height: 510px; border-width: 0px; border-style: solid; margin: 5px; //p h3 What our Financial Statements do not show/h3 pSimply put, our financial statements do not show a lot of information. The point of statements is to take complex and copious amounts of data and distill it into something digestable. We do not, for example, show each of the tickets sold for a DrupalCon and who they were sold to. We don't show each invoice that was received for Association software as a service subscriptions. We have the data, and I'm not oppposed to sharing it (as long as I check that we are not violating any privacy or other laws - you never know). However, it does not make sense for us to publish this level of detail on a monthly basis. /p pThat said, if there is something our financial statements do not show you, you can always ask. If it's not published here, it's not because we don't want to share the information. It's because we want to share information that can be meaningfully understood./p h3 Summary/h3 pThat should help you get through some of our financial statements a little better. I am not an accountant, but I am always happy to field any questions you have about these documents, and our amazing Operation Team of Kris and Leslie love to help. Just drop me a href=mailto:holly@association.drupal.orga line via email/a or go ahead and post in a public channel like a href= or a forum. Give me a heads up and I will get back to you./p pemFlickr photo: a href= /div/div/div

David Stoline: Fake DNS Hosts with Behat with custom behat parameters

Wed, 11/12/2014 - 18:06
div class=field field-name-body field-type-text-with-summary field-label-hidden view-mode-rssdiv class=field-itemsdiv class=field-item even property=content:encodedpI was recently working on a Drupal project that had some internal DNS managed via hosts file. Tell me about it. Having no publicly accessible DNS or IP creates a challenge when your SaaS based Jenkins runs the tests./p pThe solution for this is a little custom work in your FeatureContext constructor and a BeforeScenario method./p pnoscript/noscriptscript src=// pAnd a little glue in the behat.yml to pass the custom hostHeader variable to the FeatureContext. Make sure that you're also setting the IP of the server for base_url and you're all set./p pnoscript/noscriptscript src=// pYou can use this same pattern to pass around other variables from behat.yml to your FeatureContext./p /div/div/divsection class=field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-above view-mode-rss clearfix h2 class=field-labelTags:nbsp;/h2 ul class=field-items li class=field-item even a href=/tags/behat typeof=skos:Concept property=rdfs:label skos:prefLabel datatype=behat/a /li li class=field-item odd a href=/tags/planet typeof=skos:Concept property=rdfs:label skos:prefLabel datatype=Planet/a /li li class=field-item even a href=/tags/code-snippet typeof=skos:Concept property=rdfs:label skos:prefLabel datatype=Code Snippet/a /li /ul /section

Paul Booker: How to set up your own Git server.

Wed, 11/12/2014 - 18:02
div class=field field-name-body field-type-text-with-summary field-label-hiddendiv class=field-itemsdiv class=field-item even property=content:encodedpFrom your local machine ../p p1. Create your keys /p pre class=brush: bash ssh-keygen -t rsa /prep 2. Upload to your server/p pre class=brush: bash scp ~/.ssh/ root@ /prep From your server ../p p1. Install Gitolite./p pre class=brush: bash apt-get install gitolite /prep 2. Create a user for Gitolite./p pre class=brush: bash adduser \ --system \ --shell /bin/bash \ --gecos 'git version control' \ --group \ --disabled-password \ --home /home/gitolite \ gitolite Adding system user `gitolite' (UID 103) ... Adding new group `gitolite' (GID 105) ... Adding new user `gitolite' (UID 103) with group `gitolite' ... Creating home directory `/home/gitolite' ... /prep 3. Setup Gitolite/p pre class=brush: bash su - gitolite gl-setup /tmp/ The default settings in the rc file (/home/gitolite/.gitolite.rc) are fine for most people but if you wish to make any changes, you can do so now. hit enter... /usr/bin/select-editor: 1: /usr/bin/select-editor: gettext: not found 'select-editor'. /usr/bin/select-editor: 1: /usr/bin/select-editor: gettext: not found 1. /bin/nano ---- 2. /usr/bin/emacs23 3. /usr/bin/vim.tiny /usr/bin/select-editor: 1: /usr/bin/select-editor: gettext: not found 1-3 [1]: 1 creating gitolite-admin... Initialized empty Git repository in /home/gitolite/repositories/gitolite-admin.git/ creating testing... Initialized empty Git repository in /home/gitolite/repositories/testing.git/ [master (root-commit) 7e358c3] start 2 files changed, 6 insertions(+) create mode 100644 conf/gitolite.conf create mode 100644 keydir/ /prep 4. Add the Gitolite user to your SSH configuration file./p pre class=brush: bash nano /etc/ssh/sshd_config /prepre class=brush: bash PermitRootLogin yes #without-password PasswordAuthentication no AllowUsers root gitolite #no commas /prepre class=brush: bash service ssh reload # /etc/init.d/ssh reload .. Rather than invoking init scripts through /etc/init.d, use the service(8) utility, e.g. service ssh reload /prep On your local machine./p pre class=brush: bash nano ~/.ssh/config /prepre class=brush: bash Host Git user git hostname port 22 identityfile ~/.ssh/git Host * user paul hostname * port 22 identityfile ~/.ssh/paulbooker /prep 1. Clone your gitolite repository/p p$ git clone gitolite@ pre class=brush: bash Cloning into 'gitolite-admin'... remote: Counting objects: 6, done. remote: Compressing objects: 100% (4/4), done. remote: Total 6 (delta 0), reused 0 (delta 0) Receiving objects: 100% (6/6), done. /prep 2. Add a test repository/p pre class=brush: bash cd gitolite-admin vi conf/gitolite.conf git commit -a -m Add a test repository [master ee674e9] Add a test repository 1 file changed, 3 insertions(+) git push Counting objects: 7, done. Delta compression using up to 2 threads. Compressing objects: 100% (3/3), done. Writing objects: 100% (4/4), 399 bytes, done. Total 4 (delta 0), reused 0 (delta 0) remote: creating test... remote: Initialized empty Git repository in /home/gitolite/repositories/test.git/ /prep To gitolite@ / 7e358c3..ee674e9 master - master/p p3. Clone the test repository./p pre class=brush: bash git clone gitolite@ Cloning into 'test'... warning: You appear to have cloned an empty repository. cd test echo test README git add . git commit -m Initial commit [master (root-commit) 21e352e] Initial commit 1 file changed, 1 insertion(+) create mode 100644 README git push origin master Counting objects: 3, done. Writing objects: 100% (3/3), 224 bytes, done. Total 3 (delta 0), reused 0 (delta 0) To gitolite@ * [new branch] master - master /prep 4. Add committer to the repository./p pAdd public key to the gitolite-admin key directory and edit the gitolite configuration file gitolite.conf /p pre class=brush: bash repo gitolite-admin RW+ = git repo testing RW+ = @all repo repo1 RW+ = git = paulbooker /prepre class=brush: bash paul$ git add -A Paul-Bookers-Mac-mini:Git paul$ git commit -m Updated configuration [master 511d9af] Updated configuration 2 files changed, 5 insertions(+) create mode 100644 keydir/ Paul-Bookers-Mac-mini:Git paul$ git push Counting objects: 10, done. Delta compression using up to 2 threads. Compressing objects: 100% (5/5), done. Writing objects: 100% (6/6), 1012 bytes, done. Total 6 (delta 0), reused 0 (delta 0) remote: creating repo1... remote: Initialized empty Git repository in /home/git/repositories/repo1.git/ To git@ 05c16f3..511d9af master - master /prepre class=brush: bash 5. Commit and push changes to the server. git commit -m Initial commit to repo1 git remote add origin git@ git push origin master /pre/div/div/divdiv class=field field-name-field-tags field-type-taxonomy-term-reference field-label-above clearfixh3 class=field-labelTags: /h3ul class=linksli class=taxonomy-term-reference-0a href=/drupal-developer/tags/git typeof=skos:Concept property=rdfs:label skos:prefLabel datatype=git/a/lili class=taxonomy-term-reference-1a href=/drupal-developer/tags/gitolite typeof=skos:Concept property=rdfs:label skos:prefLabel datatype=gitolite/a/lili class=taxonomy-term-reference-2a href=/drupal-developer/tags/drupalplanet typeof=skos:Concept property=rdfs:label skos:prefLabel datatype=drupalplanet/a/li/ul/divdiv class=easy_social_box clearfix horizontal easy_social_lang_und div class=easy_social-widget easy_social-widget-twitter firsta href= class=twitter-share-button data-url= data-count=horizontal data-lang = en data-via= data-related=:Check it out! data-text=How to set up your own Git server.Tweet/a/div div class=easy_social-widget easy_social-widget-facebookiframe src=//;href=http%3A//;send=falseamp;layout=button_countamp;width=88amp;show_faces=trueamp;action=likeamp;colorscheme=lightamp;font=amp;height=21amp;appId= scrolling=no frameborder=0 style=border:none; overflow:hidden; width:88px; height:21px; allowTransparency=true/iframe/div div class=easy_social-widget easy_social-widget-googleplusdiv class=g-plusone data-size=medium data-annotation=bubble data-href= div class=easy_social-widget easy_social-widget-linkedin lastscript type=in/share data-url= data-counter=right/script/div /div !-- /.easy_social_box --