User login

Public

Coding Conventions

  • Use 2 space indents
  • NO tabs - anywhere
  • try not to leave trailing whitespace
  • prefer parentheses around method arguments - ESPECIALLY when the argument list has more than one argument.
  • Optimize your code for READABILITY first.
  • always put whitespace between successive elements of a list (e.g. argument list, array)

Version Control with Git

  • Commit locally very often - you can always rearrange it later.

Managing an SVN Repository

Although there is a SVN guide online, it'll probably be just easier to bring forward our more commonly infrequently used processes (and subsequently, easily forgotten). And while we're at it, discuss our conventions.

Tagging and Branching

Tags are not modified while branches can be modified as a working copy. The purpose of tags is to record a static snapshot of a point of code.

Release Procedure

Copy a database [file] from another server

On the original server, first backup it's database as described above. [server] is the domain name or IP address of the server you wish to copy from. [username] is the username to access the remote server.

While on the server you wish to copy to, and in the directory you want the file to reside:

$ scp [username]@[server]:/path/to/file/to/copy/[filename] ./[filename]

When prompted for a password, enter the root password for the original server

To reverse it, effectively pushing a file to a remote server you would reverse the above command:

Syndicate content