Feed aggregator

Promet Source: The Drupal Developers' Essential Guide to Automated Testing

Planet Drupal - Thu, 04/02/2016 - 18:54
Read our Automated Testing eBook

 

Our Drupal development experts compiled their best advice for running effective automated tests that will save time and money. Complex development projects are likely to have many releases and have much to gain from implementing an automated test framework. Read this guide for advice on how your team should approach writing test cases, choosing the right tools to execute tests, and how to emphasize visibility in sharing the test results.

Categories: Elsewhere

Jeff Geerling's Blog: Set up a hierarchical taxonomy term Facet using Facet API with Search API Solr

Planet Drupal - Thu, 04/02/2016 - 18:28

I wanted to document this here just because it took me a little while to get all the bits working just right so I could have a hierarchical taxonomy display inside a Facet API search facet, rather than a flat display of only the taxonomy terms directly related to the nodes in the current search.

Basically, I had a search facet on a search page that allowed users to filter search results by a taxonomy term, and I wanted it to show the taxonomy's hierarchy:

To do this, you need to do two main things:

  1. Make sure your taxonomy field is being indexed with taxonomy hierarchy data intact.
  2. Set up the Facet API facet for this taxonomy term so it will display the full hierarchy.

Let's first start by making sure the taxonomy information is being indexed (refer to the image below):

Categories: Elsewhere

Petter Reinholdtsen: Using appstream in Debian to locate packages with firmware and mime type support

Planet Debian - Thu, 04/02/2016 - 16:40

The appstream system is taking shape in Debian, and one feature set that is very convenient is its ability to tell you want package to install to get a given firmware file. This can be done using apt-file too, but that is for someone else to blog about. :)

Here is a small recipe to find the package with a given firmware file, in this example I am looking for ctfw-3.2.3.0.bin, randomly picked from the set of firmware announced using appstream in Debian unstable. In general you would be looking for the firmware requested by the kernel during kernel module loading. To find the package providing the example file, do like this:

% apt install appstream [...] % apt update [...] % appstreamcli what-provides firmware:runtime ctfw-3.2.3.0.bin | \ awk '/Package:/ {print $2}' firmware-qlogic %

See the appstream wiki page to learn how to embed the package metadata in a way appstream can use.

This same approach can be used to find any package supporting a given MIME type. This is very useful when you get a file you do not know how to handle. First find the mime type using file --mime-type, and next look up the package providing support for it. Lets say you got an SVG file. Its MIME type is image/svg+xml, and you can find all packages handling this type like this:

% apt install appstream [...] % apt update [...] % appstreamcli what-provides mimetype image/svg+xml | \ awk '/Package:/ {print $2}' bkchem phototonic inkscape shutter tetzle geeqie xia pinta gthumb karbon comix mirage viewnior postr ristretto kolourpaint4 eog eom gimagereader midori %

I believe the MIME types are fetched from the desktop file for packages providing appstream metadata.

Categories: Elsewhere

Ritesh Raj Sarraf: Lenovo Yoga 2 13 running Debian with GNOME Converged Interface

Planet Debian - Thu, 04/02/2016 - 16:33

I've wanted to blog about this for a while. So, though I'm terrible at creating video reviews, I'm still going to do it, rather than procrastinate every day.

 

In this video, the emphasis is on using Free Software (GNOME in particular) tools, with which soon you should be able serve the needs for Desktop/Laptop, and as well as a Tablet.

The video also touches a bit on Touchpad Gestures.

 

Categories: Keywords: Like: 
Categories: Elsewhere

Pages

Subscribe to jfhovinne aggregator