drupal

Drupal 7 and XMLRPC example

The skinny.. Drupal 7's service call for XMLRPC is now a little different, the only way i got it to work was to use Cookie/SESSID in the headers and not send the session id as an argument (as you did in the past)

So check out my fork here https://github.com/dgtlmoon/python_drupal_services of the drupal 7 python xmlrpc client example

I guess if you want to improve the cookie handling for the sessions you could take some inspiration from http://code.activestate.com/recipes/501148-xmlrpc-serverclient-which-doe...

The fat...

Easy win for lowering PHP memory usage (drupal)

I've been surfing the limits of my colo machine, trying to figure out how to lower the memory usage so I can move the server into the next lowest hosting bracket.

 5533 www-data  20   0 69124  36m 5108 S   17  4.8   7:24.76 php5-cgi
 5970 www-data  20   0 68940  35m 4968 S   17  4.8   6:49.83 php5-cgi
 9984 www-data  20   0 67432  34m 5164 R   12  4.6   3:09.83 php5-cgi
 6876 www-data  20   0 66352  33m 5096 S   18  4.5   5:52.78 php5-cgi

Theres a handful of things I don't use (yet)


# apt-get remove php5-dev php5-curl php5-eaccelerator php5-memcache

Some good simple Drupal SEO

Recently I discovered a site of mine was not doing as well as it could in Google results, so I used Google Webmaster, logged in and took a look at the list of top keywords (which should reflect the audience/content of the site)

Take a look at this, according to google, my site is mostly about JPG, ago, min, new

So, turns out..

My Android application for TShirtSlayer

Finally I got around to developing my first decent Android application, I wrote an application that allows you to share images from your Android's gallery (or take a photo) and upload them to TShirtSlayer.

The idea behind this came as I noticed you cant use the usual file upload fields available on websites (with HTML4 anyway), so this was a good queue to learn some Android and Drupal integration techniques

NGINX and Drupal Services, careful of your Nginx Gzip settings

So, You have NGINX configured to gzip all your requests.

Be careful that your Drupal services could be sending the wrong content-length, Drupal's xmlrpcs.inc is sending the content-length of the request BEFORE nginx gzip's the output.

This means your XMLRPC clients will be left hanging, waiting for the rest of the transmission but never getting it.

Request

POST /services/nodeSubmit HTTP/1.1
Host: 69.164.198.195
Accept-Encoding: gzip
User-Agent: xmlrpclib.py/1.0.1 (by www.pythonware.com)
Content-Type: text/xml
Content-Length: 108

  

Annoying Drupal SimpleTest gotchya

I've been catching up on some very long overdue simpletest test's for the Contemplate content template module in preparation for the stable D7 release.

Turns out, that because it has it's form fields for writing the template's set as "disabled", but then "enabled" when you click on on "Apply this template", the simpletest wont let me put any data into that field because it is a client side (jQuery) solution that enabled that field! ouch! took a long time to figure out why this is so..

from handle_form in drupal_web_test_case.php

Going to DrupalCamp Berlin

I got my ticket to Drupal Camp Berlin this weekend, a lot of the programme looks excellent.

See you all there!

Drupal newsletter scheduler module starting to get some serious use

Happy to see my Drupal module for sending newsletters according to a schedule with simplenews starting to get some good usage out there in the Drupal community. Current statistics pushing it towards 4,000 installs! nice! Although, there could be more sites using it out there than are reported on the fairly vague but somewhat telling Drupal project usage graph..

Drupal postgresql Ubuntu (xubuntu) howto / guide

Ok I hope this saves people some time, the big key that a lot of tutorial miss is that under ubuntu you need to switch to the postgres user to run the commands, based on the drupal postgres install tutorial at http://pgedit.com/install_drupal

First, install all the good bits, switch to root or use the package manager

$ sudo bash
# apt-get install postgres postgresql-client postgresql-contrib

restart it

Action Email Role module got some updating!

Finally got around to killing a few bugs in a module I maintain that let's you send an email to role(s) as an action , fixed issues with it not knowing about users or taxonomy and also implemented token support

Syndicate content