Pedro Lozano Drupal developer



drupal

Posted by admin

Abstract

This posts describes a method to take a picture with a digital camera (preferably a DSLR) and have it instantly uploaded to a Drupal website where it will be imported as an image node. All these steps will be done automatically and you will only need to press the shutter button of your camera for the whole process to start. Continuous shutting is also supported.

Camera to Drupal workflow: Trigger the whole process only by clicking the shutter of your camera.

Posted by admin

Main conference room

Although first day of Drupalcon is officially on Monday, the Sunday you could register and there were some activites.

The conference venue was the Moscone Center, composed of several buildings. In one of them regularly takes place the Apple Developer Conference, where Steve Jobs uses to present it's latest 'one more things'. We were at Moscone south, a building more similar to an airport in size and design.

The welcome pack was the poorest of the several Drupalcons I've been to, it consisted of a little book with sponsors marketing, session schedule and a guide to eating around the conference venue.

Posted by Pedro Lozano

A little trick I started using recently: using cookies to alter Drupal behavior when navigating the site (usually developing or debugging) with a shared user account that should present a different behavior to the rest of the people.

Use case. A few developers may be building a site and they all use the admin account for setup tasks. Now one of them doesn't want to see url aliases because he needs to see node ids in urls for debugging purposes.

You could put a code like this in settings.php:

function custom_url_rewrite_outbound(&$path, &$options, $original_path) {
  if ($_COOKIE['disable_url_aliases']) {
    $path = $original_path;
  }
}

Now, using a Firefox extension like Firecookie or Web Developer, you can add a cookie called disable_url_aliases in your browser that will disable url aliases only for you, the rest of the developers won't notice.



Flickr

Sunset over the bay of CádizSeagullCrabsCrabPostesSalinasHouseWarehouse

twitter

  • @vodafone_es 3. Incluso teniendo en cuenta la penalización de 100€, me sale 140€ más barato irme a Orange. 20 hours 43 min ago
  • @vodafone_es 2. El precio es más caro cuando me logueo y uso los puntos que cuando estoy sin loguearme. :-( 20 hours 44 min ago
  • @vodafone_es 1. Sigue saliendo no disponible. 20 hours 45 min ago

Follow peterlozano on Twitter