-
Attribute vs Parameter vs Property
Attributes and properties are terms frequently used interchangeably! The definitions of these two terms are very much relevant to the context within which they are used, and different programming languages will have different interpretations. Below is my general interpretation of attributes vs parameters vs properties.
-
WordPress Cache-Control Headers
You might see in your WordPress Site Health report that your site is not using Cache-Control headers. You can find this under the page cache test on the Site Health page. Usually this is a result of not having an activated plug-in for managing page cache. I have also seen this being blamed on Apache’s…
-
How to redirect to WWW using JavaScript?
Redirecting to a sub-domain, like “WWW” or another one, can be a choice or a way to solve a problem. Below is a way to do so using vanilla JavaScript, but before just performing a redirect we need to factor in items like protocol, navigation path, query strings, anchors (hash), and site environment. Let’s look…
-
Have a listen to the Serverless Programming episode from the Fragmented podcast
The Serverless Programing episode from the Fragmented podcast is an excellent episode on starting and selling projects as a side or a hobby activity. It does not encompass everything, but it offers a good mindset on how to look at the success or failure of side projects. In addition, the episode talks about serverless architecture and how…
-
Format a number as US currency [JavaScript]
A recent project I worked on allowed customers to request cloud computing resources. One of the requirements was to display the cost for each resource amount and the totals for one and two years for the resources the customer was requesting. In the United States, numbers are formatted with a period for the decimal mark…
-
Format MAC Address [JavaScript]
I am currently working on a project which will allow users to register their Wi-Fi enabled, non-web browser enabled, devices on the network. These are devices like printers, Apple TV, and Xbox*. One of the data points that have to be collected from the user is the device MAC address. The project customer wants that…
-
Validate Email Address [JavaScript]
The following is a quick and dirty way to validate form input, using JavaScript, from a user to confirm that they are entering a value, which could be interpreted as an email address. The function below is meant to quickly and simply ensure that the value provided by the user contains the at ‘@’ symbol and a…
-
Function: checkboxLimiter [JavaScript]
The checkboxLimiter function will disable all checkboxes, which share common value for the name attribute after the user has checked a pre-set number of them. The limit number is set in the function source to avoid inconsistency if adding the onChange function call inline of the page source. This does not matter if you are using event…
-
Jus2 website!
Got another project on my hands! Talked to my brother and he asked me to design, setup, and develop a website for his company. I have some design ideas from him, so I will take it from there, use what he has and implement functionality, appeal, and strategy. I will have to design the whole…