Make drupal accessible via webservice

Did I mention that drupal is great??

Needed to provide webservices to a drupal page. Look at this hillaryous module:

http://drupal.org/project/services

Some helpful sites to help implementing the services:

General overview: http://drupal.org/node/783254
Tutorials and examples: http://drupal.org/node/113697
Nice php-class with example: http://drupal.org/node/1070066
Creating a node: http://drupal.org/node/1354202

Other helpful links:
http://www.barnettech.com/content/drupal-7-create-user-using-rest-and-curl

geany learns drupal .. yay!

Geany now is able to recognize drupal core functions.
It helps a lot if the function helper shows up while typing.

How to:
http://www.mcdruid.co.uk/content/using-geany-as-an-editor-for-drupal-dev...

Drupal build custom forms

Till now I only used to work with the drupal form api in context of the admin interface.
I now realised how obvious it is to use it also for frontend developement.

    function mymod_login_form($form, &$form_state) {
      $form['#action'] = 'http://gocreative.ch/auth';
      $form['username'] = array(
        '#title' => 'Benutzername',
        '#type' => 'textfield',
        '#size' => 40,
      );
      $form['password'] = array(
        '#title' => 'Password',

Create a drupal-node by module

I recently had to implement functionality for a module to automatically import nodes from a XML-file of a foreign system. With this pages as references it turned out to be surprisingly easy:

http://drupal.org/node/1388922
http://drupal.org/node/201594

unity - systray-whitelist

Some apps do work with symbols in systray. For skype, dropbox thats in fact is working under unity. But some apps are simply not displayed. Eg. AeroFS

To allow every app to create a symbol in systray, give it a wildcard:

Execute dconf-editor (if not available, install it).
Set unity/panel/systray-whitelist to ['all']

Quit dconf, log off and on. Thats it.

ubuntu desktop must-haves

This is my personal list of apps I install on (almost) every ubuntu-box...

sudo aptitude install skype acroread chromium compizconfig-settings-manager gparted geany gimp dropbox opera audacity ripperx vlc nfs-common

Drupal 7 - Theme node (full, teaser)

print drupal_render(node_view(node_load(43), 'teaser'));

Ubuntu t420s tipps

Some hopefully helpful tipps for working with ubuntu on a lenovo thinkpad t420s.

  • Thinkfan: http://guldener.net/blog/thinkfan_t420s
  • Nvidia: Enable it in the bios. (Descrete)
  • Nvidia: Fix brightness-bug on nvidia: Add 'Option "RegistryDwords" "EnableBrightnessControl=1"' to the device section in your /etc/X11/xorg.conf
  • Dockingstation - Audio: Add at the end of /etc/modprobe.d/alsa-base.conf: options snd-hda-intel index=0 model=thinkpad
 

Too Cool for Internet Explorer