perl – Search and Replace: Output filename and line numbers

•May 23, 2013 • Leave a Comment

It’s a great idea to change your password often, but what do you do when they are hard coded in hundreds of files?
Yeah, yeah, I know the proper way to fix this is to do some heavy refactoring. Management loves this word, and the typical reaction is the demand for an immediate fix…. like NOW!
Continue reading ‘perl – Search and Replace: Output filename and line numbers’

PHP LDAP Self Signed Cert

•August 23, 2012 • Leave a Comment

On Ubuntu, and trying to authenticate with ldap with a self signed cert?
Continue reading ‘PHP LDAP Self Signed Cert’

PHP – Use of undefined constant OCI_COMMIT_ON_SUCCESS/OCI8 install

•June 28, 2012 • Leave a Comment

Often when I move to a new box to do development, I get all happy with coding before I realise that I don’t have PHP OCI8 installed… you just get used to it being there and then you encounter the wonderful error:

A PHP Error was encountered

Severity: Notice

Message: Use of undefined constant OCI_COMMIT_ON_SUCCESS – assumed ‘OCI_COMMIT_ON_SUCCESS’

Continue reading ‘PHP – Use of undefined constant OCI_COMMIT_ON_SUCCESS/OCI8 install’

Exchange Web Services (EWS), NTLMv2 and Linux

•April 25, 2012 • 5 Comments

I recently undertook a project that involved the consumption of Exchange Web Services through PHP on Redhat Linux. After a few tests, I knew this wasn’t going to be easy as I kept getting a 401 error. After trying out a few libraries, I decided to start off with a simple test so I could get to the root of the problem.
Continue reading ‘Exchange Web Services (EWS), NTLMv2 and Linux’

Ubuntu find and delete files and directories/folders

•January 7, 2012 • Leave a Comment

There is often the time when you need to find some files in a certain directory/folder and delete them. One such example is cleaning out the .svn directories/folders from a copy (when you should’ve done an export).

First build your find command, for finding .svn directories/folders:
Continue reading ‘Ubuntu find and delete files and directories/folders’

What is power shifting?

•January 6, 2012 • Leave a Comment

Power shifting is a method of shifting commonly used in car racing, particularly drag racing.

So, what is power shifting?
Continue reading ‘What is power shifting?’

What is lift shifting?

•January 5, 2012 • Leave a Comment

Now that I’m a reborn racing enthusiast, there are probably going to be more and more car/racing posts.

With this said, a question that is often asked (especially in drag racing) is:

What is lift shifting?

Continue reading ‘What is lift shifting?’

Evo X – THSCC Carolina Motorsports Park Oct. 2011

•October 23, 2011 • 1 Comment

My first track event with my Evo, and it was the best thing I’ve done for myself in a long time.
The track at Carolina Motorsports Park is a twisty fun track (well maintained too). Even though this track is a little hard on the brakes and tires, it is worth it. The video I have is from Saturday Oct. 15th, and I was hoping for more footage on Sunday…. but it didn’t happen.

Thumbs up to Force-Fed for all their work!

Ubuntu – Oracle – oci8 install results in
oci.h: No such file or directory

•September 8, 2011 • Leave a Comment

Assuming you have the instant client installed, a symbolic link needs to be made for the header files in order for pecl to pick it up during the oci8 install… but where to link it to?
Continue reading ‘Ubuntu – Oracle – oci8 install results in
oci.h: No such file or directory’

CodeIgniter sess_destroy not working, session not deleting

•August 16, 2011 • Leave a Comment

CodeIgniter uses cookies for session management by default, therefore you can’t use any native commands to help you out with session handling. Using the native PHP session, you can destroy the session in one line and follow it up with another line that expects the session to be cleared.

This cannot be done with CodeIgniter’s sess_destroy. This usage is typical in user authentication, here is an example scenario:
Continue reading ‘CodeIgniter sess_destroy not working, session not deleting’