Basic Linux Hardware analysis Notes:

How many php procs are running:  ps -A | grep php-cgi | grep -v grep | wc -l

 

A box with a 1 minute load average of 6.92 should have been below 2 if it had a 2 cpu core.

 

To find how many cpu cores there are:

cat /proc/cpuinfo  (or just type cat /proc/cpuinfo| grep processor| wc -l to get how many cpus)

4 processor core would look like

processor : 0

vendor_id : GenuineIntel

<---SNIP--->

processor : 1

vendor_id : GenuineIntel

<---SNIP--->

processor : 2

vendor_id : GenuineIntel

Make Drupal's l( function just be a false link for javascript pointing to the # (hash) sign

Make Drupal's l( function just be a false link for javascript pointing to the # (hash) sign

This works and is in production for us:

l(t('Start Chat'), '', array('attributes' =>
        array('title' => array('Start Chat with ' . $row2->full_name)),
          'fragment' => ' ', 'external' => TRUE)) 

Using Kcachegrind to profile your code

1.)  Install xdebug -- I'm running MAMP so it's already installed and in php.ini I just needed to turn it on here are my settings:

[xdebug]

zend_extension="/Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so"

;xdebug.profiler_output_dir = "/tmp/xdebug/"

;xdebug.profiler_enable = On

xdebug.remote_enable=On

xdebug.remote_host="belldev"

xdebug.remote_port=9000

;xdebug.remote_handler="dbgp"

;xdebug.idekey=ECLIPSE_DBGP

;xdebug.remote_mode=jit

Droogle for Drupal 7 Released Integrating Google Drive and Drupal

Droogle for Drupal 7 was just released and supports Google Drive features and folder level support. http://drupal.org/project/Droogle Droogle is a project I've authored that is sponsored by Babson College, and integrates Google Drive (formerly Google Docs) with Drupal. There is now both a Drupal 6 and a Drupal 7 version available. Folders are now displayed -- out of the box the css supports up to 5 levels of folders, the php supports infinite levels, and the css could easily extend to support more levels.

JABBER module for drupal is now released

Jabber integrates Drupal with XMPP (jabber) chat. The module enables it so any username anywhere on the site will turn green, grey or red reflecting their jabber status. The module integrates your roster with Organic Groups, and your regular instant messenger roster list. The module preserves chats, and chat history between your drupal page loads. The readme is below.

Droogle documentation:

These directions are no longer current but support the versions of Droogle prior to version 7.x-4x.

Make sure to see the readme file in the Droogle files folder but here are some tips: To configure what file types Droogle file upload will accept: http://drupal.org/node/1559764#comment-5955428 Annoyingly I agree you have to edit Droogle/Zend/Gdata/Docs.php and add the filetypes that are allowed for upload. Here is my current list.

Using XMPP with PHP and Strophe with GOOGLE TALK

These links help quite a bit in getting google talk working with xmpp. Using a gmail.com domain for a jid is very different from using a gmail address with your companies' domain.

You need to setup SRV records on your DNS server.

http://victortrac.com/taxonomy/term/112

http://kingant.net/check_xmpp_dns

http://www.olark.com/gtalk/check_srv

Battery problems partial fix for OSX LION Macbook Pro Users

This restored my Mac Book to a usable state while using the battery -- battery lasted 3 hours instead of 45 minutes

1. Turn off the computer.
2. Hold down Ctrl+Option+shift
3. While holding down these button, press and hold the power button as well.
4. Hold all buttons for at least ten seconds.
5. power back on the computer.