Font Size: small normal medium large
JordanAnderson.us
A place with stuff.

Text Substitution using SharePoint Calculated Columns

I ran into a problem today where I needed to replace the spaces in a field with their encoding for use in a URL.  After much searching it seemed that this was not as simple as it would first seem.  I did, however, come up with a solution, however ineloquent it may be.

The basics of how I did this to use a series of calculated columns each using the FIND and REPLACE functions in conjunction.  The easiest way to show this is with an example.  For the purposes of this example, the original text will be in the "Title" column.

 

The formula for the first calculated column titled "Encode1" looks like this:

=IF(ISNUMBER(FIND(" ",[Title])),REPLACE([Title],FIND(" ",[Title]),1,"%20"),[Title])

The formula for the second calculated column title "Encode2" looks like this:

Drupal (PHP) File Upload Size Limit

If you want to change the max size limit beyond the default max (usually 2MB) you need to make some modifications to the PHP parameters that control this. Depending on your environment, there are different ways of doing this. Here are the two situations that I have had to deal with.
 
 
FreeBSD 6 with Apache 2 and PHP 5
 
Add the following two lines to the IfModule section for the PHP module you are using (or all of them if you are not sure) in the .htaccess file of your drupal directory:
 
php_value post_max_size 100M
php_value upload_max_filesize 100M
 
Obviously, feel free to set the limit to whatever you want it to be.

Dilbert

As an engineer, Dilbert is one of my favorite comics and was one of my favorite television shows for the brief period of time it was on.

Official Dilbert Web Site: www.dilbert.com

Dilbert Animated Series:

Quick Guide to Drupal's Taxonomy Module

This is a quick quick guide to referencing the preview page of a taxonomy term.

http://<yoursite>/taxonomy/term/1 - All the nodes directly categorized with term 1.

http://<yoursite>/taxonomy/term/1,2 - All the nodes directly categorized with term 1 and term 2.

http://<yoursite>/taxonomy/term/1+2 - All the nodes directly categorized with term 1 or term 2.

http://<yoursite>/taxonomy/term/1/3 - All the nodes categorized with term 1 or any of it's "children" to a maximum depth of 3.

http://<yoursite>/taxonomy/term/1/all - All the nodes categorized with term 1 or any of it's "children" with no maximul depth.

Changing MOSS 2007 Service Account Passwords

I was going to write a how-to, but then I discovered that a much easier way than I have been doing was documented here: http://support.microsoft.com/kb/934838.

Syndicate content