Fix Elegant Themes Minimal Dropdown Navigation Appearing Behind Slider


If you use the built in WordPress menu options with your Minimal themes from Elegant Themes, you may notice that your dropdowns will appear behind your home page slider content. Luckily, a small change fixes this issue. Unfortunately, it requires editing the theme’s style.css file, which means you will need to make this change each time you update your theme.

Add this snippet of CSS to very end of your style.css file for the Minimal theme:

Haystack: an IndexTank client for CodeIgniter 2.0+


Update: The IndexTank service is no longer in operation. They were bought by LinkedIn and have closed their API and services to all existing and new customers. However, the good folks at IndexTank have open sourced their entire platform, and several great companies have been created to continue to service IndexTank customers. They are all completely compatible with my Haystack library as well as any existing IndexTank code you have written.

Take a moment to check out these great new companies:

The IndexTank API is a hosted search solution used by some of the largest sites on the web such as Reddit, Twitvid and ZenCoder. It offers some cool features such as Geolocation, fuzzy search, autocomplete, “Did you mean” spelling correction, stemming and most importantly, real-time indexing.

It’s a pretty cool service, and did I mention that it’s free to index up to 100,000 documents?

The only problem is that there wasn’t a PHP client available for the CodeIgniter framework, until now.

Haystack is a PHP client offering basic interaction with the IndexTank API, implemented as a CodeIgniter library. It is very much a work in progress, and as I wrote it primarily for use in my current project, it is not as general as it could be. I will be maintaining the library on Github and will continue to add new functionality and improvements as time allows.

You can download the library from my Github repository.

Basic Usage

View the SQL code of a Stored Procedure in SQL Server Management Studio

Microsoft SQL Server

I’m working on overhauling a large project management application for a client that I inherited from a previous developer.  Part of the application will produce various reports based on data pulled from a SQL Server database.  The query that pulls this data is a Stored Procedure in the database. Rather than try to reverse engineer the SQL query, I can simply run a SQL query of my own to dump the SQL code from the Stored Procedure so I can incorporate it into my application.

Just log into SQL Server Management Studio, open the database where the Stored Procedure resides, and execute the following query:

sp_helptext ‘dbo.stored_procedure_name_here’

Exchange 2007 Dynamic Distribution Groups with Custom Filters

Exchange 2007

Recently I was experimenting with Exchange 2007 Dynamic Distribution Groups for a client. I have the Active Directory profiles of each mailbox-enabled user filled out so that I can dynamically create and set their Outlook profiles automatically. I wanted to use some of this information that I already store about each user to create distribution groups on the fly so that I don’t have to actively maintain group membership.

Specifically, I wanted to use the Office and Description field of their Active Directory profile to include them in a distribution group. For instance, I have the following basic information stored in Active Directory for each user:

User A
Description: Dallas User
Office: Corporate Office

User B
Description: Dallas User
North Dallas Field Office

User C
Description: Houston User
Office: Houston Office

If I want to maintain distribution groups in Exchange for each geographical area as well as each individual office, that is pretty easy in Exchange 2007.  You just create a new Dynamic Distribution Group.  However, the difficulty comes when you want to use an Active Directory profile field that is not built in the Exchange Management Console GUI.

Executing the following command in the Exchange Management Shell will create a new Dynamic Distribution Group that selects every mailbox-enabled user with a Description field set to “Dallas User”:

New-DynamicDistributionGroup -Name “GroupNameHere” -OrganizationalUnit “domain.local/OUNameHere” -RecipientFilter { ((RecipientType -eq ‘UserMailbox’) -or (RecipientType -eq ‘MailContact’) -or (RecipientType -eq ‘Contact)) -and (Description -eq ‘Dallas User’) }

Backup Windows SharePoint Services 3 using command line utilities

Microsoft SharePoint

I recently had a SharePoint server in a RAID 1 configuration lose one of its hard drives.  Since the server was approaching it’s hard drive storage limitations anyway, I decided to install 2 new larger drives rather than rebuild the current array.  An added benefit of this approach is that I can archive the drive we’re using now and have a fairly failsafe recovery point.

The following steps outline how to use the Stsadm.exe utility to backup a Windows SharePoint Services 3 installation.  This tutorial assumes you will be logged onto the SharePoint server when you run this command, and that your SharePoint site is set as the default website in IIS.

Step 1:  Open a comman prompt and find Stsadm.exe
There is a chance that this location is already part of your PATH variable, but if not you will find Stsadm.exe at:

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN

Step 2: Run the Stsadm.exe utility with parameters

stsadm -o backup -url http://localhost -filename mybackup.bak