Posts Tagged "Web Development"

Creating Self-Signed OpenSSL Certs in Python For Development

Do you need a quick way to generate OpenSSL self-signed certificates for your local projects? In this article, we'll show you how to create a utility that automates the process. You'll find the code you need to get started quickly and easily. This solution was developed as part of a script to set up self-signed certificates and virtual hosts on an Apache 2.4 installation on Windows. First Step, Installing OpenSSL Before we ...

Handling Time Zone Calculations in Your Web Applications with UTC and MySQL

Whether you're a seasoned web developer or just starting out, handling time zones can be a tricky task. Time zone calculations are often done incorrectly, and even experienced developers can find them challenging. In this article, we won’t dive deep into the complexities of dates and time zone mathematics. Instead, we'll share a simple trick that uses UTC and MySQL timestamps to help you display time accurately for your users. ...

Using Multiple Submit Buttons With A Single Form

After a while of web development, developers usually come across a project where they need to create multiple submit buttons with a single form. This usually occurs right when they have a table that has several rows and each row has a couple buttons to edit or delete the row. These rows might have been added dynamically using JavaScript or they could have been simply created sever-side as the table ...

Creating Enumerations in PHP

If you are experienced in any of the major programming languages (.NET, Java, Python etc.) you are probably familiar with the idea of "Enums" or "Enumerations". These are used to help increase readability by assigning readable names to a collection of static values. It is much easier to read "Color.Red" than seeing "#FF0000" or "1". To expand on this idea imagine writing an if statement where you would compare a ...

Loading Gravity Forms from a Database

If you are a developer that has been working with the Gravity Form plugin, you undoubtedly have run across the need to load a form based on a row from the database. Finding documentation on how exactly to go about doing this is very sparse. Unless you have reasoned it out well, you are probably pulling your hair right about now and are at a standstill. In this blog post ...

Generating JSON Web Tokens (JWT) in Java or PHP

JSON Web Tokens (JWTs) are a mechanism for authentication that is simple to setup and easy to use. However, most of the time when you encounter this topic in a project, you get the advice to just use a JWT package. I am not quite sure why given that creating a token is relatively straight forward if you know how they are built. You can also implement such logic in ...