Redirecting Uppercase to Lowercase in Apache

This should go at the very top of your .htaccess file. At least it should go above ANY other RewriteRules. That is because this uses a loop, until there are no more uppercase characters to convert, it will keep starting at the first HASCAPS:TRUE RewriteRule. Oh, and this is actually really quick and isn’t gonna slow down anything.

RewriteEngine On
RewriteBase /

# If there are caps, set HASCAPS to true and skip next rule
RewriteRule [A-Z] – [E=HASCAPS:TRUE,S=1]

# Skip this entire section if no uppercase letters in requested URL
RewriteRule ![A-Z] – [S=28]

# Replace single occurance of CAP with cap, then process next Rule.
RewriteRule ^([^A]*)A(.*)$ $1a$2
RewriteRule ^([^B]*)B(.*)$ $1b$2
RewriteRule ^([^C]*)C(.*)$ $1c$2
RewriteRule ^([^D]*)D(.*)$ $1d$2
RewriteRule ^([^E]*)E(.*)$ $1e$2
RewriteRule ^([^F]*)F(.*)$ $1f$2
RewriteRule ^([^G]*)G(.*)$ $1g$2
RewriteRule ^([^H]*)H(.*)$ $1h$2
RewriteRule ^([^I]*)I(.*)$ $1i$2
RewriteRule ^([^J]*)J(.*)$ $1j$2
RewriteRule ^([^K]*)K(.*)$ $1k$2
RewriteRule ^([^L]*)L(.*)$ $1l$2
RewriteRule ^([^M]*)M(.*)$ $1m$2
RewriteRule ^([^N]*)N(.*)$ $1n$2
RewriteRule ^([^O]*)O(.*)$ $1o$2
RewriteRule ^([^P]*)P(.*)$ $1p$2
RewriteRule ^([^Q]*)Q(.*)$ $1q$2
RewriteRule ^([^R]*)R(.*)$ $1r$2
RewriteRule ^([^S]*)S(.*)$ $1s$2
RewriteRule ^([^T]*)T(.*)$ $1t$2
RewriteRule ^([^U]*)U(.*)$ $1u$2
RewriteRule ^([^V]*)V(.*)$ $1v$2
RewriteRule ^([^W]*)W(.*)$ $1w$2
RewriteRule ^([^X]*)X(.*)$ $1x$2
RewriteRule ^([^Y]*)Y(.*)$ $1y$2
RewriteRule ^([^Z]*)Z(.*)$ $1z$2

# If there are any uppercase letters, restart at very first RewriteRule in file.
RewriteRule [A-Z] – [N]

RewriteCond %{ENV:HASCAPS} TRUE
RewriteRule ^/?(.*) /mb2/$1 [R=301,L]

Reference:
http://www.askapache.com/htaccess/rewrite-uppercase-lowercase.html

Disable email notification in Bugzilla 3.6

There will be a time when someone leaves the company and you need to disable his Bugzilla account by putting a comment in “Disable text”. However disabling a user doesn’t prevent his email address to receive further bug email notifications.

A Bugzilla administrator can stop a user from receiving bugmail by clicking the “Bugmail Disabled” checkbox when editing the user account. This is a drastic step best taken only for disabled accounts, as it overrides the user’s individual mail preferences. Alternately, you can add their email address to the data/nomail file (one email address per line). This will override their personal preferences, and they will never be sent mail again.

Reference:
http://www.bugzilla.org/docs/3.6/en/html/userpreferences.html
http://www.bugzilla.org/docs/2.18/html/faq.html#faq-email-nomail

Repairing the Yosemite Server Backup Catalog

Just in case you ever need to repair the database again which seems to go funny more often than you would expect.

Yosemite KB TID:001583

Yosemite Backup incorporates a “self repairing” database, however it may
occasionally be desirable to manually initiate a database repair operation.

TO REPAIR THE YOSEMITE BACKUP CATALOG MANUALLY:
1. Close Yosemite Backup
2. Stop the Yosemite Backup Service:
3. Open a Command Prompt (Start > Run > CMD {ENTER})
4. Change to the Yosemite Backup Directory by typing the following:
CD “C:\Program Files\Barracuda\Yosemite Server Backup” {ENTER}
5. Type the following at the Command Prompt:
ytwinsvc -x {ENTER}
This will stop the Yosemite Backup Service on the local machine.
6. Open the ytconfig.ini file in the Yosemite Backup directory
([Install_Path]\config, by default) on the Master Server.
7. In the [configuration] section, add the following line:
repairDatabase=Yes
8. This section should now look like this:
[configuration]
lastUser=admin
lastDomain=Yosemite Backup Storage Domain
nodeGuid={00001001-421F132A-0003F771-FFE580D7}
databaseServerAddress=localhost
isDatabaseServer=Yes
databaseServerName=Yosemite Backup Storage Domain
disableNetwork=No
remoteAdmin=No
repairDatabase=Yes
9.  Save and close this file.
10. Open Yosemite Server Backup Administrator – DO NOT RESTART THE SERVICE.
11. The catalog repair will run automatically.
12. After the repair has completed the Login screen will appear. Close this window.
13. Restart the Yosemite Backup Service:
14. Open a Command Prompt (Start > Run > CMD {ENTER})
15. Change to the Yosemite ServerBackup Directory:
CD “C:\Program Files\Barracuda\Yosemite Server Backup” {ENTER}
16. Type the following at the Command Prompt:
ytwinsvc -s {ENTER}
This will start the Yosemite Backup Service on the local machine.
17. Login to the Yosemite Server Backup Administrator.

Reference:
http://www.great-one.co.uk/archives/72