User login

GNU-Linux

DBScripts with git-svn and git-gui: notes

Using DBScripts. Notes from watching the master.

set to read only mode
if they do something during dump and restore, it could break dump and restore
so turn off apache for that process -- script for that may be added to dbscripts

in production environments where not even 30 seconds of downtime is acceptable, you have A/B, two sites. [Still use

svn add delete ev

bring into my environment

./dbscripts/merge.php

May or may not be a conflict.

Edited a node, yes a conflict.

Open node.sql in gedit.

Stop phpMyAdmin from logging you out in your own local environment (Ubuntu)

vi /etc/phpmyadmin/config.inc.php

You may need to use sudo; vim will warn you if you try editing a read-only file.

Edit an existing LoginCookieValidity setting if any, or (as in our case) add the following to the bottom of the file.

(Note that in vim you can search with /LoginCookieValidity and, if finding nothing, go to the end of the file with :999 -- actually that's go to line 999 which is just as good in this case, there's a command to do it for real too). Then you can press i to insert text:

My Ubuntu Environment

How to set up Ubuntu so it works with Ben's head.

Clipboard history:
sudo apt-get install glipper

Graphical diff/merge tool:
sudo apt-get install meld

More Ubuntu Configuration Tips

from Dan:

CompizConfic: Check off, under extras, Windows Preview, to see the windows when you alt tab.

Resolution

Sharing VirtualBox Ubuntu folder with Mac OS X host [not successful]

These directions are the same as we tried.

http://ozz314.wordpress.com/2008/05/08/virtualbox-shared-folders-between-ubuntu-guest-and-mac-host/

Could not get it to work, used ssh instead.

For instance, from what happens to be named 'ubuntu' folder, via Mac OS X terminal:

scp -P 2222 localhost:/home/ben/.ssh/id_rsa.pub ubuntu/

Using Git for Drupal development discussion

A gig and a half is all of core and contrib.

Drupal core with all of its history is 23 megabytes in a git repository.

Sticky write permissions forces new directories
chmod g+ws -r files

I show people the contents of this directory where I have index.php1, index.php2, index.php3, and why this [is a pain].

Before we even get into the benefits of collaboration.

P not moving toward git until Drupal.org moves toward a DVCS

That's why I have the system with a git copy

It will not be trivial.

Biblioreference module keyword fetching SQL wrong turns

re[] = "n.type = 'biblio'";
$count = count($words);
for ($i = 0; $i < $count; $i++) {
$where[] = 'bk.word ' . $match_operators[$match];
// for multiple words we're going to have to string a bunch of these together with "or"
// first we took only the first word as a proof of concept
// now we're sticking with and, not or, so multiple words act as filtering
}
$args = $words;
$where_clause = $where ? 'where '. implode(' and ', $where) : '';

Upgrade Subversion on Mac OS X using MacPorts

Disclaimer: I have no idea if this is the best or cleanest way to replace the svn used by Mac OS X, but it's what worked.

(I did not use this way, "Upgrade subversion client on mac osx," gridshore.nl/2008/12/21/upgrade-subversion-client-on-mac-osx/ )

Instead, I used MacPorts:

http://www.macports.org/ports.php?by=name&substr=subversion

Change the SVN branch your repository checkout is using

As shown here http://svnbook.red-bean.com/en/1.4/svn.branchmerge.switchwc.html

it is simply the svn switch statement with the path to the respository (which in our case was at svn://example.com...)

svn switch http://svn.example.com/repos/calc/branches/my-calc-branch

Resolution

Syndicate content