-
YouTube Video Event Tracking
Easily Track YouTube Videos with Google Analytics has Javascript code available to perform tracking on YouTube video events in Google Analytics. I encountered a problem where the code didn’t work with YouTube videos already embedded with iframes. The YouTube JavaScript Player API Reference says that it should be able to handle YouTube videos embedded in…
-
Export SQL Server Stored Procedures using Python
The following short Python 2.7 script creates an export of all the stored procedures and functions within a SQL Server database.
-
Overwriting the Browser Confirm pop up using jQuery
You can overwrite the default confirm function using the following snippet of code which combines jQuery UI and Bootstrap to create a nice looking confirm box that is easier to read.
-
Simple Cache Class in C#
A simple class that gets and sets Hashtables within a Session object in C#.
-
Caching the results of a PDO Query in Memcache
A quick example of code that will prepare a PDO statement and cache the results in Memcache in a LAMP environment.
-
Fix MySQL corrupted configuration on Ubuntu
A fix for a tricky ERROR 2002 in MySQL Server 5.5 on Ubuntu 13.04.
-
Rijndael / AES (128 bit) in VB.net, PHP, Python
Being able to transport encrypted data is important in some of my projects at work. One-way hashes using MD5 usually suffice for most encryption purposes but Symmetric Encryption algorithms are important for encrypting and then decrypting data. For this, we use the Rijndael and AES algorithm in a few different languages.
-
Removing the BuddyPress Admin Bar
A short script to remove that pesky BuddyPress Admin Bar in Wordpress 3.4.2 and BuddyPress 1.6.1
-
Cosine Similarity in MS SQL
Cosine similarity measures the angle between two vectors and can be used to perform similarity between text strings. In the following code, the two input strings are vectorized and the similarity is returned as a floating point value between 0 and 1.