Thursday, April 4, 2013

Enabling MS SQL Server to run Command Line Applications

For Microsoft SQL Server to be able to run windows command line applications the following query must be run.

USE master
EXEC sp_configure 'show advanced options', 1
EXEC sp_configure 'xp_cmdshell', 1
EXEC sp_configure 'show advanced options', 0

Thursday, March 1, 2012

Headless Jenkins Selenium Node in Ubuntu 10

First make sure your test suite and test files all end in .html. My company wasn't doing this and for whatever reason selenium 2.5 would run the tests fine and then it wouldn't quit the browser.

Second make sure and use a supported browser version. I tried running it using firefox 9 and it wouldnt' run any tests. Installing 3.6.27 worked.

Then I followed these two tutorials

to get around the firefox profile timeout issue I ran
export DISPLAY=:1 firefox &

which i got from
also had to apt-get install libXtst-dev

Wednesday, August 3, 2011

mssql php extenstion won't load

There are quite a few reason's the php_mssql.dll extension for PHP may not be loading on your windows server.

For PHP 5.2 anyway I found that both MSVCR71.DLL and ntwdblib.dll needed to be copied to various places.

MSVCR71.DLL needed to be in c:\Windows\System32 as having it in C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 wasn't good enough.

ntwdblib.dll needed to be both in the PHP directory and c:\Windows\System32

I'd love to know why this is, but for now I'm just happy it's working.

This post helped me out, when google failed me; .

Sunday, July 24, 2011

Windows Environment Variables Editor

Rapid Environment Editor is a pretty awesome utility that let's you easily edit your windows environment variables. A co-worker of mine passed this around a year or so ago.

Installing PHPUnit for use in Windows NetBeans

I initially used NetBeans Guide to get PHPUnit installed in NetBeans but here is a quick install checklist for use with PHP 5.2. These are mostly workarounds I had to do for 5.2.17, that work as of this post, but may not work in the future.

For details on how to use it see NetBeans Guide.
  1. Install NetBeans
  2. PHP 5.2 w/ the following extensions
    At least one of the PDO extensions
  3. Run go-pear.bat located in the PHP directory
  4. Run the PEAR_ENV.reg it creates
  5. from the cmd line run "pear upgrade pear"
  6. Modify pear.bat add a semi-colon to include_path="%PHP_PEAR_INSTALL_DIR%" so that it becomes include_path=";%PHP_PEAR_INSTALL_DIR%" This will prevent you from getting an "Invalid configuration directive" error every time you run pear.
  7. run "pear install channel://"
  8. run "pear install channel://"
  9. Follow the PHPUnit Install Guide to install PHPUnit
If you get any errors like "Failed to download pear/Net_URL2 within preferred state "stable", latest release is version 0.3.1, stability "beta", use "channel://" to install" Just run "pear channel://WHATEVER_CHANNEL_IT_TOLD_YOU_TO_USE". In this example you would run "pear install channel://".

If after following the PHPUnit Install Guide you get the message

No releases available for package ""

try running pear update-channels and then pear clear-cache