Newsfeeds

Zeeto Monetization Placements

New Drupal Modules - 26 October 2017 - 3:36pm

Zeeto placements helps websites, apps and publishers monetize their traffic. It allows Publishers to create an additional revenue source that works by taking visitor traffic on a website or app, asking them questions and using their answers to uncover high value data points that brands bid on in the Zeeto Ad Network.

Interested in trying out Zeeto placements?

To get started, contact us here to create your account.

Categories: Drupal

Purge Queuer Redirect

New Drupal Modules - 26 October 2017 - 3:33pm

Integrate purge with redirect module to do purge task for the edge case.

Here is the scenario:

  1. Publish node/123
  2. Unpublish node/123
  3. Visit node/123 as an anonymous user, get access denied
  4. Add a redirect link from node/123 to node/321
  5. Logged in users can go the node/123 and they will be redirected to node/321
  6. Anonmous users will still see node/123 as access denied untill the external cache is cleared

This module provides queuer for redirect module to purge the source link when a new redirect link is created.

Categories: Drupal

U.S. gov't stands by DMCA exemption for museums preserving online games

Social/Online Games - Gamasutra - 26 October 2017 - 3:32pm

What's more, the Office is now seeking public comments on a new set of proposed exemptions to the DMCA, including an expansion to the abandoned game clause. ...

Categories: Game Theory & Design

PreviousNext: Sending Drupal entities to dialogflow with Chatbot API module

Planet Drupal - 26 October 2017 - 3:16pm
Share:

Services like dialogflow (formerly api.ai) do a much better job of natural language parsing (NLP) if they're aware of your entity names in advance.

For example, it can recognize that show me the weather in Bundaberg is a request for weather in Bundaberg, if you've told it ahead of time that Bundaberg is a valid value for the City entity.

Having the entity values automatically update in your service of choice when they're created and changed in Drupal makes this much more efficient.

This article will show you how to achieve that.

by Lee Rowlands / 27 October 2017

This is where the chatbot_api_entities sub-module comes in.

When you enable this module you can browse to Admin -> Config -> Web Services -> Entity Collections to create a collection.

The UI looks something like this:

Adding an entity collection to send to dialogflow in Drupal

Each collection comprises an entity-type and bundle as well as a push handler and a query handler.

By default Chatbot API Entities comes with a query handler for each entity-type and a specific one for Users to exclude blocked users.

The api_ai_webhook module comes with a push handler for pushing entities to your dialogflow/api.ai account.

By default, these plugins query based on available entities and the push handler pushes the entity labels.

Writing your own query handler

If for example, you don't want to extract entities from entity labels, e.g. you might wish to collect unique values from a particular field. In this case you can write your own query handler.

Here's an example that will query speaker names from a session content type. The collection handed to the push handler will contain all published sessions.

namespace Drupal\your_module\Plugin\ChatbotApiEntities\QueryHandler; use Drupal\chatbot_api_entities\Entity\EntityCollectionInterface; use Drupal\chatbot_api_entities\Plugin\QueryHandlerBase; use Drupal\Core\Entity\EntityTypeManagerInterface; /** * Defines a query handler that just uses entity query to limit as appropriate. * * @QueryHandler( * id = "speakers", * label = @Translation("Query speakers from sessions"), * ) */ class SpeakerQuery extends QueryHandlerBase { /** * {@inheritdoc} */ public function query(EntityTypeManagerInterface $entityTypeManager, array $existing = [], EntityCollectionInterface $collection) { $storage = $entityTypeManager->getStorage('node'); return $storage->loadMultiple($storage->getQuery() ->condition('type', 'session') ->exists('field_speaker_name') ->condition('status', 1) ->execute()); } /** * {@inheritdoc} */ public function applies($entity_type_id) { return $entity_type_id === 'node'; } }Writing your own push handler

Whilst we've written our own query handler to load entities that we wish to extract values from, we need to write our own push handler to handle sending anything other than the label.

Here's an example push handler that will push field values as entities to Api.ai/dialogflow

<?php namespace Drupal\your_module\Plugin\ChatbotApiEntities\PushHandler; use Drupal\api_ai_webhook\Plugin\ChatbotApiEntities\PushHandler\ApiAiPushHandler; use Drupal\chatbot_api_entities\Entity\EntityCollection; use Drupal\Core\Entity\EntityInterface; /** * Defines a handler for pushing entities to api.ai. * * @PushHandler( * id = "api_ai_webhook_speakers", * label = @Translation("API AI entities endpoint (speakers)") * ) */ class SpeakerPush extends ApiAiPushHandler { /** * {@inheritdoc} */ protected function formatEntries(array $entities, EntityCollection $entityCollection) { // Format for API.ai/dialogflow. return array_map(function ($item) { return [ 'value' => $item, 'synonyms' => [], ]; }, // Key by name to remove duplicates. array_reduce($entities, function (array $carry, EntityInterface $entity) { $value = $entity->field_speaker_name->value; $carry[$value] = $value; return $carry; }, [])); } } Learn more

If you're interested in learning more about Chatbots and conversational UI with Drupal, I'm presenting a session on these topics at Drupal South 2017, the Southern Hemisphere's biggest Drupal Camp. October 31st is the deadline for getting your tickets at standard prices, so if you plan to attend, be sure to get yours this week to avoid the price hike.

I hope to see you there.

Tagged AI, Natural Language Parsing, Chatbot, Drupal 8

Posted by Lee Rowlands
Senior Drupal Developer

Dated 27 October 2017

Add new comment
Categories: Drupal

AntiMatter Games Previews Green Hag For DeepWars

Tabletop Gaming News - 26 October 2017 - 3:00pm
There’s all sorts of crazy things beneath the waves. The ocean depths hold monsters we’re barely able to even imagine. In DeepWars, those creatures are under your command in their conflicts with one-another. One of these strange creatures is the Sea Hang. AntiMatter Games is showing her off. You can pick up yours next year. […]
Categories: Game Theory & Design

No Country For Great Old Ones RPG Adventure Up On Kickstarter

Tabletop Gaming News - 26 October 2017 - 2:00pm
Most of the time, when you’re playing through an adventure, you just see it from the one side. You’re the heroes cleaning out the cave full of kobolds. A couple RPGs let you play as the Kobolds looking to defend their home from the heroes. No Country for Great Old Ones lets you do both […]
Categories: Game Theory & Design

Kingship Card Game Up On Kickstarter

Tabletop Gaming News - 26 October 2017 - 1:00pm
Amethyst Games has launched a Kickstarter campaign for Kingship. The game is similar to Crazy Eights, for those that’ve played that. The object is to empty out your hand of cards. However, each card has a special ability when played or paired up with other cards. And you don’t want to jump out ahead too […]
Categories: Game Theory & Design

Aristeia Now Available For Pre-Order

Tabletop Gaming News - 26 October 2017 - 12:00pm
Aristeia is Corvus Belli’s foray into the sporting miniatures game arena. For those that’ve seen the previews and want to jump in on it, you can place your pre-order now. It’s the best way to make sure you’re the first gamer on your block with this new game when it becomes available. There’s both a […]
Categories: Game Theory & Design

New Star Wars: Legion Expansions Announced

Tabletop Gaming News - 26 October 2017 - 11:27am
Fantasy Flight Game’s announcement of Star Wars: Legion at Gen Con was one of the “big announcements” at the show. Well, now they’re looking to show off some of the extra units you’ll be able to get for the game. Some of these include rather iconic items like the AT-ST and Snowspeeders (technically known as […]
Categories: Game Theory & Design

Thursday Terrain Corner

Tabletop Gaming News - 26 October 2017 - 11:00am
This week has been going by quickly, at least to me. But I’ve had a huge project I’ve been working on behind-the-scenes here. So having something keeping me very much occupied is certainly a good way to make time go by. But that just means it’s going to be the weekend really soon. Weekend = […]
Categories: Game Theory & Design

Shopping with augmented reality

Dries Buytaert - 26 October 2017 - 10:34am

Last spring, Acquia Labs built a chatbot prototype that helps customers choose recipes and plan shopping lists with dietary restrictions and preferences in mind. The ability to interact with a chatbot assistant rather than having to research and plan everything on your own can make grocery shopping much easier. We wanted to take this a step further and explore how augmented reality could also improve the shopping experience.


The demo video above features how a shopper named Alex can interact with an augmented reality application to remove friction from her shopping experience at Freshland Market (a fictional grocery store). The Freshland Market mobile application not only guides Alex through her shopping list but also helps her to make more informed shopping decisions through augmented reality overlays. It superimposes useful information such as price, user ratings and recommended recipes, over shopping items detected by a smartphone camera. The application can personalize Alex's shopping experience by highlighting products that fit her dietary restrictions or preferences.

What is exciting about this demo is that the Acquia Labs team built the Freshland Market application with Drupal 8 and augmented reality technology that is commercially available today.

The first step in developing the application was to use an augmented reality library, Vuforia, which identifies pre-configured targets. In our demo, these targets are images of product labels, such as the tomato sauce and cereal labels shown in the video. Each target is given a unique ID. This ID is used to query the Freshland Market Drupal site for content related to that target.

The Freshland Market site stores all of the product information in Drupal, including price, dietary concerns, and reviews. Thanks to Drupal's web services support and the JSON API module, Drupal 8 can serve content to the Freshland Market application. This means that if the Drupal content for Rosemary & Olive Oil chips is edited to mark the item on sale, this will automatically be reflected in the content superimposed through the mobile application.

In addition to information on price and nutrition, the Freshland Market site also stores the location of each product. This makes it possible to guide a shopper to the product's location in the store, evolving the shopping list into a shopping route. This makes finding grocery items easy.

Augmented reality is building momentum because it moves beyond the limits of a traditional user interface, or in our case, the traditional website. It superimposes a digital layer onto a user's actual world. This technology is still emerging, and is not as established as virtual assistants and wearables, but it continues to gain traction. In 2016, the augmented reality market was valued at $2.39 billion and it is expected to reach $61.39 billion by 2023.

What is exciting is that these new technology trends require content management solutions. In the featured demo, there is a large volume of product data and content that needs to be managed in order to serve the augmented reality capabilities of the Freshland Market mobile application. The Drupal community's emphasis on making Drupal API-first in addition to supporting distributions like Reservoir means that Drupal 8 is prepared to support emerging channels.

If you are ready to start reimagining how your organization interacts with its users, or how to take advantage of new technology trends, Acquia Labs is here to help.

Special thanks to Chris Hamper and Preston So for building the Freshland Market augmented reality application, and thank you to Ash Heath and Drew Robertson for producing the demo video.

Categories: Drupal

Dries Buytaert: Shopping with augmented reality

Planet Drupal - 26 October 2017 - 10:34am

Last spring, Acquia Labs built a chatbot prototype that helps customers choose recipes and plan shopping lists with dietary restrictions and preferences in mind. The ability to interact with a chatbot assistant rather than having to research and plan everything on your own can make grocery shopping much easier. We wanted to take this a step further and explore how augmented reality could also improve the shopping experience.


The demo video above features how a shopper named Alex can interact with an augmented reality application to remove friction from her shopping experience at Freshland Market (a fictional grocery store). The Freshland Market mobile application not only guides Alex through her shopping list but also helps her to make more informed shopping decisions through augmented reality overlays. It superimposes useful information such as price, user ratings and recommended recipes, over shopping items detected by a smartphone camera. The application can personalize Alex's shopping experience by highlighting products that fit her dietary restrictions or preferences.

What is exciting about this demo is that the Acquia Labs team built the Freshland Market application with Drupal 8 and augmented reality technology that is commercially available today.

The first step in developing the application was to use an augmented reality library, Vuforia, which identifies pre-configured targets. In our demo, these targets are images of product labels, such as the tomato sauce and cereal labels shown in the video. Each target is given a unique ID. This ID is used to query the Freshland Market Drupal site for content related to that target.

The Freshland Market site stores all of the product information in Drupal, including price, dietary concerns, and reviews. Thanks to Drupal's web services support and the JSON API module, Drupal 8 can serve content to the Freshland Market application. This means that if the Drupal content for Rosemary & Olive Oil chips is edited to mark the item on sale, this will automatically be reflected in the content superimposed through the mobile application.

In addition to information on price and nutrition, the Freshland Market site also stores the location of each product. This makes it possible to guide a shopper to the product's location in the store, evolving the shopping list into a shopping route. This makes finding grocery items easy.

Augmented reality is building momentum because it moves beyond the limits of a traditional user interface, or in our case, the traditional website. It superimposes a digital layer onto a user's actual world. This technology is still emerging, and is not as established as virtual assistants and wearables, but it continues to gain traction. In 2016, the augmented reality market was valued at $2.39 billion and it is expected to reach $61.39 billion by 2023.

What is exciting is that these new technology trends require content management solutions. In the featured demo, there is a large volume of product data and content that needs to be managed in order to serve the augmented reality capabilities of the Freshland Market mobile application. The Drupal community's emphasis on making Drupal API-first in addition to supporting distributions like Reservoir means that Drupal 8 is prepared to support emerging channels.

If you are ready to start reimagining how your organization interacts with its users, or how to take advantage of new technology trends, Acquia Labs is here to help.

Special thanks to Chris Hamper and Preston So for building the Freshland Market augmented reality application, and thank you to Ash Heath and Drew Robertson for producing the demo video.

Categories: Drupal

Drinkuisition Coming to Kickstarter This December

Tabletop Gaming News - 26 October 2017 - 10:00am
Gamers tend to be drinkers, in my personal experience. And while I, myself, am a teetotaler, I know that people enjoying playing drinking games. A new drinking game will be making its way to Kickstarter this December. It’s called Drinkuisition. I think the goal is to spell it correctly when inebriated (I have a hard […]
Categories: Game Theory & Design

Zoomaka Back Up On Kickstarter

Tabletop Gaming News - 26 October 2017 - 9:00am
We’re going to the zoo, zoo, zoo. We’re going to the zoo. Yeah, none of you are probably old enough to remember that one. Hell, technically, I’m not, either. But either way, we’re headed to the zoo… as soon as it opens anyway. Getting your own zoo up and running is the goal in Zoomaka, […]
Categories: Game Theory & Design

Acro Media: Video: Reporting in Drupal Commerce 2.x is Going to be Great!

Planet Drupal - 26 October 2017 - 8:08am


The good news is that Commerce 2.x has the potential to handle tons of different reports and display the data any way you want. The dashboard is complete and the framework is impressive. The catch is that many of the reports don’t technically exist yet, so you need to do a little configuring to make sure you’re looking at the data that’s most important to you.

What kind of reports are we talking about?

You could have a whole suite of point-of-sale reports, for instance (in Commerce 1, they were their own set of reports; in Commerce 2, they just build on Commerce reporting). If you need reports for checkout, or cart, or analytics, you can have them all in the Commerce reporting suite, even if they are vastly different types of reports. So you can have reports for different people who manage different metrics, but you can build them all using the same framework.

Categories: Drupal

White Dwarf Seeks Staff Writer

Tabletop Gaming News - 26 October 2017 - 8:00am
Do you words good? If you want to words good for White Dwarf (I really shouldn’t have to describe what White Dwarf is at this point, but for those of you just joining the gaming world, it’s Games Workshop’s magazine about all things GW), they are looking to add to their staff. Just send in […]
Categories: Game Theory & Design

FileField Sources JSON API

New Drupal Modules - 26 October 2017 - 7:20am

The module defines 'JSON API remote URL' file field source. You can setup JSON API host URL, query params to get remote (image) URLs in the modal browser. There is option to set up sorting and searching configuring via JSON API filters and define default alt, title attributes for image fields.

Requirements

FileField Sources module.

Categories: Drupal

Kings of War: Vanguard Coming to Kickstarter November 1st

Tabletop Gaming News - 26 October 2017 - 7:00am
Mantic is headed to the skirmish realm with their fantasy range with Kings of War: Vanguard. For when you don’t want to push whole trays of infantry around, but would instead like to focus on smaller conflicts, it’s just the game for you. Mantic’s posted up some previews you can check out, and be sure […]
Categories: Game Theory & Design

Most influential OOPSLA 2007 paper award

Dries Buytaert - 26 October 2017 - 6:08am

I was in for a nice surprise this week. Andy George, Lieven Eeckhout and I received an ACM SIGPLAN award for the most influential OOPSLA 2007 paper. Our paper was called "Statistically rigorous Java performance evaluation" and was published 10 years ago at the OOPSLA conference. It helped set a standard for benchmarking the performance of Java applications. A quick look on the ACM website shows that our paper has been cited 156 times. The award was totally unexpected, but much appreciated. As much as I love my current job, thinking back to some of my PhD research makes me miss my academic work. Congratulations Andy and Lieven!

Categories: Drupal

Metatags Path

New Drupal Modules - 26 October 2017 - 6:01am

Extending functionality of the Metatags module. With this module you can create meta tags for custom path.

Categories: Drupal

Pages

Subscribe to As If Productions aggregator