Code Snippets

Postfix Logrotate Script For Gentoo Linux

Working on a friends server earlier this morning I noticed that he had logrotate configured but he did not have a configuration file for Postfix. Below is the quick one I whipped up for his environment including a brief explanation of each line of the configuration file below the script. Following the explanation of the various configurations is the command to actually force logrotate to run in debug mode so you can see what happens.

Technology Insights

WordPress Syntaxhighlighter Evolved: No Wrap Alternating Background Colors Cut Off

I have been using the WordPress Syntaxhighlighter Plus plugin to display code for quite awhile now. Today I wanted to check on recent updates and through reading on the developers site found out that the code is no longer maintained and he recommends people use the WordPress Syntaxhighlighter Evolved plugin instead. I decided to go ahead and download the Syntaxhighlighter Evolved plugin and test it on my development site. I was pleased immediately with the choice and knew that I would be moving it live as soon as I had any kinks worked out. There was only one thing holding me bac which was the fact that with the code wrap turned off the CSS for alternating colors and for the highlighting was cut off when you started to scroll to any code that spilled out past the default size. The plugin also blew out the right side of my site a bit so I needed to modify a couple CSS width parameters. I describe a workaround for the alternating colors being cut off below as well as how to set the width so it doesn’t blow out your layout.

Technology Errors

Windows Defender: This operation returned because the timeout period expired. (Error Code: 0x800705b4)

I recently received a new Dell laptop that has Windows 7 Ultimate 64-Bit as the operating system. A friend and I were discussing virus protection software as well as spyware protection software and how Windows 7 handles each. I am a big fan of Windows Defender so I was looking at the configuration on my Windows 7 computer and realized that the Windows Defender service was not starting. I hadn’t even realized this because I typically turn off the Virus, Spyware, and Firewall messaging that Windows complains about if you don’t have each installed the way the OS wants. So needless to say I was surprised that Windows Defender was stopped. It took me awhile to finally figure out how to resolve and I came across a bunch of issues that others may have so below I describe the error, steps I took to resolve, and final resolution.