User login

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..

Topic: 

Zend on Ubuntu maverick and natty doesn't work because of the Suhosin patch in php5

Heres a fun one, it's impossible to get the Zend IDE/Debugger working with current Ubuntu releases because they've added the suhosin patch to the PHP binary, I've tried a few things..

- It was said that the suhosin stuff appears in only the php5-suhosin package, but even without this installed, It was still getting in the way somehow, theres a ubuntu launchpad bug for this https://bugs.launchpad.net/ubuntu/+source/php5/+bug/498022

Topic: 

Upgraded tshirtslayer.com server to nginx from apache


Recently my beloved virtual machine running at linode.com started to crash due to running out of memory, so I had a quick look and decided it was time to get on the nginx™ (pronounced “engine x”) bandwagon.

Android : Iterating through SMS's by conversation sorted by date

Was a little fiddly to work out for newbies like myself, You can pass an argument to the .query() of the content resolver to tell it to sort by date, saves nasty custom SQLite interactions!, nice!

    public void refreshMessagelist() {
        
        mMessagesArrayAdapter.clear();
            String strUriInbox = "content://sms/conversations";
            Uri uriSmsConversations = Uri.parse(strUriInbox); 
            String strOrder = "date";
            Cursor cConversation = getContentResolver().query(uriSmsConversations, null, null, null, strOrder);
            

Offline is the new Online

First it was 'oooh ahhh applications online', now we are going full circle to where the browser can do most things the desktop can do and we are going offline again.

http://techcrunch.com/2011/06/13/ama-a-peek-into-the-future-of-google-docs/

Regarding an offline version of Google Docs:

“You’re going to see offline start to roll out later this summer. We used to have offline with Google Gears, but it became pretty clear that plugins weren’t the right approach. We’ve been reimplementing offline using HTML5 standards like AppCache, File API, and IndexDB.

We’re some of the first webapps that are really putting those standards to the test, so it’s taken a while to iron out the kinks.”

Topic: 

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

Pages

Subscribe to Front page feed