# WordPress permissions problems

Permissions are a common problem when installing WP. It took me hours to try to figure out the best permissions configurations and finaly I realized that there is a filesystem method in WP-config that overrides the direct file I/O by using the FTP credentials:

In wp-config.php

Change

define(‘FS_METHOD’,’direct’);

to

define(‘FS_METHOD’,’ftpsockets’);

If the above does not solve your permission problems try:

$sudo chown -R YourUserName:www-data$sudo chmod -R 775 *

Resources

# SVN 1.7 for Mac OS Lion

Mac OS Lion comes with SVN 1.6 installed by default. But I needed to install SVN 1.7 to work on a project that uses SVN1.7.

Here is what I did to come trough:

I like using the SVN GUI tool svnX. The current version of the program is: svnX 1.3.3 (http://code.google.com/p/svnx/wiki/Features_1_3). Take a look and download it if you like what you see. It’s free and after you learn how to use it you will love it!. Download here.

The latest version of subversion is 1.7.5 (as today) and it can be found in
http://apache.is.co.za/subversion/

But svnX 1.3.3 is compatible with svn 1.7.4 so we are going to install that rather that the latest svn (1.7.5). Also I because I found some problems with svn 1.7.5.

1) Create a folder where you will put the svn 1.7.4 files. Download and extract the source.

$mkdir ~/Downloads/svn$cd ~/Downloads/svn $curl http://archive.apache.org/dist/subversion/subversion-1.7.4.tar.gz > ./subversion-1.7.4.tar.gz$tar -xvjf subversion-1.7.4.tar.bz2  //to uncompress a bzip2 tar file: .tbz or .tar.bz2 $cd subversion-1.7.4  Configuration setup, Building and install the binary $./configure --prefix=/usr/local $make$sudo make install 
It should now be installed in /usr/local/bin/svn. Check if it got correctly installed.

\$/usr/local/bin/svn --version

Notes:

• You may try to install version 1.7.5 at your risk. Replace ‘subversion-1.7.5.tar.bz2’ with the latest version you find in the above link on the ‘curl’ command.
• You can also install the latest version of subversion using MacPorts

Resources:

# Configure Xbee with a mac

So far I haven’t found any software to configure the XBees like the X-CTU software (that only runs on Windows). That doesn’t mean we can’t configure the XBees using a mac or Linux. So, these are just a few notes to help me configure my XBEEs when I’m using my Mac. I thought it may be useful to you as well.

Follow these steps and you’ll get your XBee configured in a minute:

• Connect your XBee to the USB port of your computer using the XBee Explorer USB from Sparkfun.
• Open a terminal window and search for the serial device
>> ls /dev/tty.*
• This will show a list of the available tty. devices connected. Example
/dev/tty.Bluetooth-Modem
/dev/tty.usbserial-A8003WbK
/dev/tty.Bluetooth-PDA-Sync
• In this case we are interested in the /dev/tty.usbserial-A8003WbK (your’s will be similar)
• I am assuming that the baud rate of the XBees is 38400.
So to configure the XBee #1 type in the terminal
 >> screen /dev/tty.usbserial-A8003WbK 38400 >> +++ >> OK >> ATBD5        (baudrate = 5, or  38400 baud) >> ATID1111   (ID = 1111) >> ATDL11      (DL = 11) >> ATMY10    (MY = 10) >> ATWR        (write changes in memory) 
• This configures the XBee #2
 >> screen /dev/tty.usbserial-A7006vC8 38400 >> +++ >> OK >> ATBD5 >> ATID1111 >> ATDL10 >> ATMY11 >> ATWR 
To close ‘screen’ press “control-A then control-\” and then “Y” . This closes the session.
• Baud rates
1 = 2400bps
2 = 4800bps
3 = 9600bps
4 = 19200bps
5 = 38400bps
6 = 57600 bps
7 = 115200 bps

Sources: