Various and Sundry Notes

Drupal

CVS Commands

export CVSROOT=:pserver:kmillecam@cvs.drupal.org:/cvs/drupal-contrib
cvs login
cvs commit -m "#1234 by kmillecam: More tweaks to install logic."
cvs update -dP
cvs checkout -d userpoints -r DRUPAL-5--3 contributions/modules/userpoints
cvs checkout -d userpoints_contrib_5.3 -r DRUPAL-5--3 contributions/modules/userpoints_contrib
cvs add userpoints_top_contributors
cvs add userpoints_top_contributors/*

Tables That Don't Need to be Exported for a Migration
accesslog
cache
cache_content
cache_filter
cache_menu
cache_page
cache_views
devel_queries
devel_times
search_dataset
search_index
search_total
sessions
watchdog

Applying a patch

patch -p0 < path/file.patch

Creating a patch

diff -up original.php new.php > filename.patch

Podcasting

http://www.itunes.com/podcast?id=260399966

MySQL

backup/restore
mysqldump -u admin -p databasename > dump.sql
mysql -u admin -p databasename < dump.sql

storage area on webwise server
/var/lib/mysql/db_name

Flash

SWF hack for ad banners

on (release) {
  if (clickTAG.substr(0,5) == "http:") {
    getURL(clickTAG);
  }
}

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Glossary terms will be automatically marked with links to their descriptions

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.