-
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.
-
Applications of Particle Swarm Optimization
Particle swarm optimization can be used in a variety of different applications. A few examples involving nonconvex, multi-objective, discontinuous search spaces and applications in neural networks and support vector machines are mentioned.