Entries by Kevin Godden

Google App Engine & Paypal Redirect Payments

I gave a talk some time ago to the Google Users Group in Dublin about how to go about coding up the the integration of paypal redirect payments into a Google App Application with python, if anybody’s intersted the talk slides are here:   Hooking up GAE & Paypal.pdf   In summary its possible and […]

.NET, WPF – BitmapImage File Locking

Q: How can I stop BitmapImage, in .NET Windows Presentation Foundation (WPF) from locking the source image file?   A: By default BitmapInfo seems to lock the source image file so that you can use the bitmapinfo object and modify or delete the source file at the same (or similar) time. For example, this C# […]

Magento, Customized theme not using overridden images

Q: I have created a new skins folder beside my default theme’s skin folder, and placed some images that I want to override into an images sub folder. I have changed the ‘Skin (Images / CSS)’ setting in System -> Configuration -> Design -> Themes to point to my new skins, I have cleared the […]

Drupal 7 – Undefined variable: output in drupal_var_export() in dvm()

If you get the following error when using devel’s dvm() in drupal 7 (or indeed, if you see it when not using dvm()):   Notice: Undefined variable: output in drupal_var_export() Then try putting this line into you settings.php file:   ini_set(‘error_reporting’, ‘E_ALL ^ E_NOTICE’);   It worked for us – thanks to citytree for the […]

Drupal 7 – Programatically setting Link field value

The method for Programmatically setting a link field value (see the Link module) in drupal 7 is slightly different from how it was set it in drupal 6. Here is some code for creating a new node and setting its link field (called field_url):   $node = new stdClass(); $node->type = ‘website’; node_object_prepare($node); $node->title = […]