Sound in Ubuntu upgrade to Karmic Koala

Couldn't get sound going on my work PC with onboard audio card. Found on ubuntuforums.org:
pulseaudio --kill
rm -r ~/.pulse
rm ~/.pulse-cookie
pulseaudio --start

From http://ubuntuforums.org/showthread.php?t=1158939

Change all instances of string1 to string2 recursively in a directory

Quite a useful little script:

find ./ -type f -exec sed -i 's/string1/string2/g' {} \;

Changing PHP upload limit

For GoDaddy web hosts, follow the following:
http://drupal.org/node/305111
http://help.godaddy.com/topic/418/article/1475

Other than the total available disk space in your Shared hosting account, we do not set any FTP upload limit. However, by default, PHP limits uploaded files to 8 MB. To change the value of your uploadable file size limit, edit the following values in your /php.ini or /php5.ini file:
memory_limit = 50M
post_max_size = 8M
file_uploads = On
upload_max_filesize = 192M

The above settings change your PHP upload limit, allowing you to upload files up to 8MB in size.

chmod all files to 644 and all directories to 755

Found these commands very useful. I needed to change a directories and all it's subdirectories to 755 permission and all the files as well to 644. Found this:
find . -type d -print0 | xargs -0 chmod 0755 # For directories
find . -type f -print0 | xargs -0 chmod 0644 # For files

from http://www.linuxquestions.org/questions/linux-general-1/chmod-all-files-.... Thanks to 'General Failure'.

gnome-keyring-manager replaced by seahorse

Use seahorse to manage saved passwords.

Backing up a remote mySQL database

To backup a mySQL database from a remote machine to your home (linux) machine, use the following:

mysqldump –-host=the.remotedatabase.com -u yourusername -pyourpassword yourdatabasename > /Users/rick/backups/foo.sql

From http://www.rickhurst.co.uk/2005/12/23/mysqldump-of-remote-database-to-lo...

Quick guide to theming Ubuntu

Assuming you have System -> Preference -> Appearance set to advanced. You then install CompizConfig Settings Manager sudo apt-get install compizconfig-settings-manager and you can configure and setup cool things like the desktop cube and many other effects.

What you can do next is install beryl-emerald themes by sudo apt-get install emerald which is a theme/window manager.

Next, I installed Compiz Fusion Icon which lets you easily change themes, change window manager, etc. sudo apt-get install fusion-icon.

You can then go to www.gnome-look.org and download the various Beryl Emerald themes submitted by users.

Blogger blog to Drupal

From FC at http://drupal.org/node/2450:


Blogger to Drupal
FC - March 26, 2009 - 22:26

I had to transfer a Blogger blog to Drupal for a client, so I thought I would share my end-solution here.

For starters, there seems to be no module to date that can handle the task. WordPress, however, offers a means of importing Blogger content into itself. Unfortunately, a WP.org Blogger import is notorious for failing. The importer in WP.com works, however. Here's my solutions to date:

- Go into the Blogger Settings and Export your blog to the XML (Atom) file it provides.
- Create a WP.com account.
- Create a temporary blog within your WP.com account.
- Go into the WP.com Site Admin section, and select Tools from the panel down the left-hand side.
- Select "Import" from the expanded menu Tools item from the menu down the side.
- Import the XML (Atom) file from Blogger.
- Export your WP.com blog.
- Install the the wordpress_import module (http://drupal.org/project/wordpress_import) to your Drupal site.
- Import the file that WP.com created on Export into this module.

This should get you the Blogger data into your Drupal install. I exported from WP.com to a WP installation, then out of that into Drupal. I'm assuming that that extra step isn't necessary.

Very rough web development workflow using Drupal

- design layout in Photoshop
- create all the assets: image files, logos, favicons
- start using HTML test page CSS to create layout and fonts
- test for varying lengths of content
- download and install Drupal CMS on webhost
- create new theme, convetring your test HTML page to a tpl.php file
- this guide is very useful: http://drupal.org/node/313510
- download and install a few of the basic modules
- in my latest site I used "path redirect", "pathauto", "global redirect" and "fck editor"
- also to add, is a very nice module for menus called "nice menus"
Note: Don't forget to use a test user to test your theme. This should be different from the main administrator user. You must be able to always login. The link to login is ?q=user/login.

Error: Incompatible environment

When installing Drupal 6.* and running the install script, and you receive the error above, you must create a php.ini file with the following line. If there is already a php.ini file, just append the line to the bottom of the file.

register_globals = off

More information here: http://drupal.org/node/222343

Syndicate content