Voicon

  • Archive
  • RSS
  • Ask me anything

which: no xauth in ((null)) xvfb-run: error: xauth command not found

I use xserver and webkitoimage to export a webpage to image. I deployed it to centos server. On this server, I used apache for web server.

To export a page to image we will run command:

/usr/bin/xvfb-run —server-args=”-screen 0, 1280x1024x24” /usr/local/bin/wkhtmltoimage —use-xserver http://localhost/print/voucher/322?voucher=803 /tmp/tmp1369141170.png 2>&1

After apache call an action which have

echo shell_exec(’ /usr/bin/xvfb-run —server-args=”-screen 0, 1280x1024x24” /usr/local/bin/wkhtmltoimage —use-xserver http://localhost/print/voucher/322?voucher=803 /tmp/tmp1369141170.png 2>&1’);

It throw the error: which: no xauth in ((null)) xvfb-run: error: xauth command not found

Read More

    • #centos
    • #webkit
    • #xauth
    • #xvfb-run
  • 2 days ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Field collection: Support content translation

I use content translation for my content in Drupal. I have one content type and have two field collections inside. And it cannot be translation because Field collection does not support it by default. I applyed patch #101 and now I can translate it. It work for node template. I did not checked on view and panel.

  • 1 month ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

DRUPAL: FIELD COLLECTIONS

[from: http://nikro.me/articles/professional/drupal-field-collections]

Field collection

This article will cover Field Collection module as a concept overall and we’ll also look into some programming details.

Field Collection module a “field collection” field. This field is actually represented by an entity of type “field collection item”. And as any entity, it’s fieldable, so one can attach as many fields as he wants to a bundle of a field collection item. It can also store lots of values, just like any other field. The advantage of Field Collection is that it also embeds the editing form of the field collection item’s fields. 

One can view and edit field collections separately.

Read More

    • #Drupal
    • #field collection
  • 1 month ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Use Apache Solr to search in files

[From: https://www.acquia.com/blog/use-apache-solr-search-files]

Drupal’s file handling capabilities keep getting better. Beyond the core upload module, the filefield module for CCK has enabled us to build sites with all sorts of files; documents, images, music, videos, and so forth. Searching within these docuements, however, has never been a common feature on Drupal sites. Some solutions have existed, particularly for extracting texts from PDFs and common wordprocessing documents. With Apache Solr, the attachments module, and an extension library called Tika, things can be much better. With Tika you can extract texts not only from Microsoft Office, Open Office, and PDF documents, you can also get text and metadata from images, songs, Flash movies and zipped archives. Searching for these texts is done as part of the normal Apache Solr driven site search.

Read More

    • #SOLR
    • #apachesolr
    • #Drupal
  • 2 months ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Parallel indexing for Apache Solr Search Integration

[From: http://nickveenhof.be/blog/parallel-indexing-apache-solr-search-integration]

Recently I’ve been involved in drupal.org by upgrading the site to the latest version of Apache Solr Search Integration (from 6.x-1.x to 6.x-3.x, and in the near future to 7.x-1.x). This upgrade path is necessary as we still want to have a unified search capability across Drupal 6 and Drupal 7 sites, for example groups.drupal.org and drupal.org.

If you want to know more about multisite search capabilities with Solr and Drupal, I suggest you read http://nickveenhof.be/blog/lets-talk-apache-solr-multisite as it explains a whole lot about this subject.

Read More

    • #SOLR
    • #apachesolr
    • #Apache
    • #Drupal
  • 2 months ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Apache Solr Multi-core Setup using Jetty

[copy from: http://drupal.org/node/484800]

Setting up one Solr server with two or more Drupal sites takes some additional configuration. If this is not done, all of the data for each site goes into the same index and when searching on one site, results are returned from both sites. If that’s not the desired result (faceting won’t currently work correctly), then it is necessary to set up a separate Solr core for each site. Each core is a totally independent search index.

These instructions are for Windows XP/Server 2K3 so the paths might look a bit different for folks using Linux or Mac servers, but this should work.

Read More

    • #Apache
    • #apachesolr
    • #solr multicore
    • #Drupal
    • #facet search
    • #search
  • 2 months ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Drupal Blog Modules

[From: http://www.garandwebtech.com/blog/2012/drupal-blog-modules]

Drupal 7 has taken big steps to make the interface easier to use and catch up with Wordpress in that area. But much as we all love Drupal, Wordpress still makes it easier to set up a blog. If you need the power of Drupal but you want a modern blog, here are some modules you can use to enhance the experience. Unfortunately many of them aren’t stable in Drupal 7 yet but most of them seem to be close.

Read More

    • #copied from web
    • #Drupal
    • #blog
    • #drupal module
  • 2 months ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+
year end party with friends… (at Big Man Beer - Nhà hàng Điện Ảnh)
Pop-upView Separately

year end party with friends… (at Big Man Beer - Nhà hàng Điện Ảnh)

  • 3 months ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Apache Solr and Drupal 7 note

Cool site: http://nickveenhof.be

Apache Solr Mastery: Adding custom search paths with hook_menu: evolvingweb.ca/story/apache-solr-mastery-adding-custom-search-paths-hookmenu

Search smarter with Apache Solr, Part 1: Essential features and the Solr schema: www.ibm.com/developerworks/java/library/j-solr1/

Synonyms in Apache Solr: https://sites.google.com/site/kevinbouge/synonyms-in-apache-solr

Synonyms; drupal.org/project/synonyms

Read More

    • #Drupal
    • #Apache
    • #solr
    • #apachesolr
    • #facet
    • #facet search
  • 4 months ago
  • 1
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Drupal research cont,

Great sites
o http://www.leveltendesign.com -> have many cool articles
o http://www.slideshare.net/Phase2Technology -> have many cool cool slides (must view online)
o Report back on a set of key DrupalCon Denver 2012 presentations: http://awebfactory.com.ar/node/488
o Managing site performance: http://drupal.org/node/627252

Articles
» Mega menu
o Improving Menu Views in Drupal 7 to Create Mega Menus More Efficiently: http://www.leveltendesign.com/blog/mark-carver/improving-menu-views-drupal-7-create-mega-menus-more-efficiently

Read More

    • #Drupal
    • #research and note
    • #performance
  • 4 months ago
  • 1
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+
Page 1 of 9
← Newer • Older →

About

Love PHP, love you!

Pages

  • About Voicon
  • RSS
  • Random
  • Archive
  • Ask me anything
  • Mobile
Effector Theme by Pixel Union