Blog

Python Snippet – Datetimes In UTC

There have been so many times when I wanted to have a datetime show in UTC. I am not talking about simply looking at the time and acting as if it is in UTC. For example let’s say that I want to express the current time in UTC. This is […]

By Chris West, ago
Blog

Python Integration – QuickBooks Customer Object Tidbit

Recently I had to write a custom integration which would sync customers found in QuickBooks with accounts found in Salesforce. We have been using Python to write all of our custom integrations so I have been using python-quickbooks and simple-salesforce. One thing that we noticed when syncing the two datasources […]

By Chris West, ago
Blog

Embed Office Documents On Your Site

Have you ever wanted to display an Excel workbook or a Word document on your website? Of course, it is possible to save files as HTML but it just doesn’t have the same feel. Fortunately Microsoft can actually come to the rescue. For example I have this sample spreadsheet that […]

By Chris West, ago
Blog

JavaScript Snippet – domReady() Function

Sometimes you may want to know if the DOM is ready to be manipulated. Most of the time you want to run some code only after the DOM is ready to be modified. For that reason for years we used jQuery’s ready() function or some equivalent. Now many have moved […]

By Chris West, ago
Blog

Hack – Get A User’s GitHub Avatar

Have you ever needed to get any user’s GitHub avatar just based on their username? If you have then you are in luck because the process is quite simple. All you need to do is place the username in the following URL: https://github.com/<REPLACE_WITH_USERNAME>.png Simple Example For instance my username is […]

By Chris West, ago
Blog

C# – Cool Feature – String Interpolation

Have you ever wanted to concatenate multiple strings to make one string and felt like the code should be shorter? So have I. For instance you may have written something like this: Of course the above code will work fine to make the message but it would be great to […]

By Chris West, ago
Blog

How To Add Custom JavaScript To WordPress Posts

Let’s say that you want the following JavaScript to run directly in a WordPress post: To execute that you can write the following into your post: The resulting of running the above in a WordPress post is this: As you may have noticed, since I am using document.write(…) to write […]

By Chris West, ago