Archive for the ‘notes’ Category

Handy Scraps, Vol 1.

Monday, May 5th, 2008

Notes that I want to list simply because I want a central place for them.

CVS Bulk History on a Branch

Step 1.  Hope that you have a version at the point where you took the branch.

Step 2. Select all the resources that you wish to compare.

Step 3. Compare to… <version_indicating_start_of_branch>

Step 4. Voila. Nice SVN-style history.

Step 5. Campaign for SVN to replace CVS.

Step 6. Profit!

Handy regexes

Selecting multi-line java comments
—————————-
/\*\r\n(.*\*.*\r\n)+

Selecting javadoc and multiline comments
———————————-
/(.*\*.*\r\n)+

Turn SomeClass.SOMECONSTANT into “SOMECONSTANT”
————————————————————–
search for SomeClass\.(\w+)
replace with: “$1″