CWestify.com

Random projects all by Chris West.
⇩ Continue ⇩
Menu

JW.ORG Languages Aug 22, 2017
at 7:37AM

As of today, JW.org has content in 908 languages! You can check out the latest statistics yourself below:

Web Audio API – Controlling Audio/Video Loudness Aug 22, 2017
at 6:10AM

After my previous post about getting more volume with the Web Audio API , I decided to look into controlling the loudness of audio tags and video tags in a more straight-forward (prototypal) way. That’s when I came up with the following JS prototype: Prototypal Functions The following are all of the methods associated with …

HTML5 – Getting More Volume from the Web Audio API Aug 17, 2017
at 11:50PM

Did you know that thanks to the Web Audio API it is possible to boost the volume up PAST 100% on <audio> tags & <video> tags? I wrote the following function to do just that: The above JavaScript function gives us the ability to amplify (or boost) the volume of a media element well above …

Parse Bible from Watchtower Online Library In JS Console Aug 11, 2017
at 3:52PM

The following is a function that I wrote to parse the Bible found on the Watchtower Online Library: Aftering copying and pasting the above code into the JS console while visiting any page within the Watchtower Online Library, you can run the following code to actually parse the entire Bible: Of course, due to the …

JavaScript Snippet – Select Text In Any Element Jul 15, 2017
at 6:11PM

The following function takes one arguments, an element, and selects the text therein: Happpy coding! 😎

PHP – Simple GitHub Login (OAuth) Jul 7, 2017
at 11:46AM

If your codebase is in PHP and you would like user’s to be able to login to your site using GitHub (single sign-on) you can use the following as a good starting point: Next you will need to setup an OAuth application within GitHub by doing the following: Login to GitHub.com. Go to your settings …

Install Watchtower Library On Mac (with Multiple Languages) Jul 3, 2017
at 10:47PM

If you have a Mac and want to install the Watchtower Library on it chances are that you will be able to do it. Here is how: Download a “stable version” of WineBottler from the official site here. Open the WineBottler DMG file that you downloaded by double-clicking on it. Once open, drag-and-drop both Wine …

Sing to Jehovah & Sing Out Joyfully Comparison Jul 2, 2017
at 11:01PM

Recently I had the desire to see a comparison of the old Sing to Jehovah songbook compared to the new Sing Out Joyfully songbook. Here is the result: Español (Cantemos a Jehová / Cantemos con Gozo a Jehová) Para todos que quieren ver una comparación del cancionero “Cantemos a Jehová” con el nuevo “Cantemos con …

ES6 – Convert To Integer Jun 27, 2017
at 8:31AM

There are various ways to convert a string or a floating point number to an integer in JavaScript, but not all of them may suit your needs. In this post we will examine four different ways and then we will see which is the best in all cases. Solution #1: ~~x If we are dealing …

CSS – Local File System Paths On Windows Jun 16, 2017
at 2:21PM

When working with Windows you probably have noticed that local file paths use the backslash as the path separator. Although this is the case, even on Windows, in CSS you can use the forward-slash as a path separator to reference an image. If you want to use the forward-slash though, you must escape it with …