Chris West's Blog

  • Home
  • Site Search
  • About Me
  •  YourJS
  • Search for:

JavaScript, Math, and much more.

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 Read more…

By Chris West, 3 years ago January 31, 2020
Blog

Postgres – Get ISO Year Start & ISO Year End

Today I had to get the ISO year start and the ISO year end for a given date. For instance, according to ISO8601 the week number for January 30, 2020 is 5: Year Limits By Date In Year Let’s say Read more…

By Chris West, 3 years ago January 30, 2020
Blog

C# Snippet – Error Count In ASP.NET Controller

Perhaps, like me, you find yourself maintaining an ASP.NET MVC web application and you need to find the number of errors added to the ModelState. Of course, you may think that you can just use something like ModelState.Count, but this Read more…

By Chris West, 3 years ago November 22, 2019
Blog

JavaScript Snippet – getGitContents(…)

Have you ever wanted to get the contents of a GitHub file via JavaScript? If so I wrote the following function which gives you the ability to get the contents of a file or of a directory: Here is an Read more…

By Chris West, 3 years ago August 23, 2019
Blog

PL/pgSQL Snippet – get_url_params()

One thing that you may need to use from time to time in Postgres is a function to be able to extract the value of a URL parameter from URLs stored in your DB. I wanted to be able to Read more…

By Chris West, 3 years ago May 20, 2019
Blog

JavaScript Snippet – vueToHTML(…)

Recently I have been writing plugins for Grafana and had a desire to make a panel that would give the user the ability to use the data from the query within HTML with AngularJS syntax. I have not come up Read more…

By Chris West, 3 years ago April 25, 2019
Blog

PostgreSQL – Recursively Query Hierarchical Data

I recently wrote a post about how to query hierarchical data without recursion in PostgreSQL. Now it is time to talk about how to do it with recursion. 😎 CTEs (Common Table Expressions), AKA WITH clauses, provide us the ability Read more…

By Chris West, 4 years ago October 29, 2018
Blog

PostgreSQL – Query Hierarchical Data Without Recursion

Hierarchical data stored in a relational database such as PostgreSQL can be tricky to work with. An organization is an example of a hierarchical structure. For example, let’s say that we need to represent employees: Davy Crocket Cindy Cruz George Read more…

By Chris West, 4 years ago October 27, 2018
Blog

Restore Video Volume Settings in Google Chrome

If you are annoyed by the fact that you can no longer control the volume of native videos in Google Chrome you are not alone. Originally Chrome allowed you to control the volume of videos: Now Chrome’s new video element Read more…

By Chris West, 4 years ago September 24, 2018
Blog

Ace Editor Vue Component

Making certain JavaScript UI solutions work with Vue can be a bit of a hassle at times especially if you are new to Vue. Ace editor, for example, is a great solution for developer that want to add a syntax Read more…

By Chris West, 4 years ago August 4, 2018

Posts navigation

Previous 1 2 3 4 … 35 Next
Meta
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Archives
Categories
Blog (340) CSharp (1) Games (3) HTA (2) Java (5) JavaScript (217) JScript (149) Math (49) Microsoft Office (16) Movie Trailers (1) PHP (13) POW Answer (2) Problem of the Week (31) Python (15) Reporting (1) Salesforce (4) SQL (28) VBA (6) VBScript (8) Videos (9)
Tags
Apache (1) Apex (2) Array (37) Audio (2) Bash (3) Canvas (6) Chrome (3) Chrome Extension (1) CSS (11) CSS3 (2) Curry (1) Date (6) EcmaScript 6 (8) Encryption (2) Español (2) Excel (20) Function (135) GitHub (11) Hack (7) HTML (3) HTML5 (2) JasperReport (2) JasperServer (1) jPaq (35) JSON (2) JSONP (2) JW.org (5) Logic Puzzle (2) Mail Merge (1) Math (53) Network (1) OpenKM (2) PostgreSQL (27) Private Data (4) Problem of the Week (31) Prototype (41) Quirk (3) Recursion (10) Regular Expressions (22) String (61) SVN (1) Video (2) Wildcards (3) WScript (2) YourJS (17)
  • About Me
Hestia | Powered by WordPress