Blog
VBA Snippet – GetTimezoneOffset()
One of the things I think is amazing about VBA is the fact that it is so incomplete in some ways. For instance, did you know that there is no native way to get the local timezone offset. Yesterday I Read more…
One of the things I think is amazing about VBA is the fact that it is so incomplete in some ways. For instance, did you know that there is no native way to get the local timezone offset. Yesterday I Read more…
Recently, I have been interested in creating a quick one-way encryption method. After playing around with a lot of different variations, I settled on the following: One nice thing about this function is the fact that you can restrict the Read more…
Did you know that the bitwise operators always return 32-bit (signed) integers? If you don’t believe me, test out the following examples for yourself:
Recently, I had to create a PostgreSQL equivalent of the Java hashCode() function. In order to do this, I needed a way to make sure that numbers that exceed the INTEGER representation (ranging from -2^31 to 2^31-1) will be wrapped. Read more…
The following is a function which returns the chainable version of a function: Here is an example of how to define a pseudo-class which uses this chaining method: Here is an example which shows that the chaining works as intended:
The following prototype function mimics the hashCode() function of java.lang.String in Java: Depending on the version of Java that you are running, what is returned from this function may not be the same thing that is returned in Java. On Read more…
The following is a quick JavaScript function which will return the reverse of a string: The above function is a function that, once defined, will exist for every string. Here are some examples of how to use the above function: Read more…
The following is a quick JavaScript function which can determine if a string contains a substring: The above function is a function that, once defined, will exist for every string. The first parameter, which is the string to be found, Read more…
The following is a quick JavaScript function which can determine if a string starts with a substring: The above function is a function that, once defined, will exist for every string. The first parameter, which is the string to be Read more…
The following is a quick JavaScript function which can determine if a string ends with a substring: The above function is a function that, once defined, will exist for every string. The first parameter, which is the string to be Read more…