Categories
Web

Video “background-size: cover” with CSS in 2020

How to get a video element to act like background-size: cover scoped within a parent element.

Categories
Web

HTML Close Button The Right Way

Coding an HTML close button seems simple. But, the only thing simple about coding a close button is getting it wrong. The biggest mistake is using the wrong HTML element. I’ve used <a> and <div> as a close button many times (<button> is the correct element). The second mistake is not using proper ARIA properties. […]

Categories
Freelancing Tips Web

Scheduling Meeting Times

Dropping poor meeting invites will end your freelancing days fast. Sending exceptional meeting invites can land a lifelong client. If you are sending 4, or even 20, messages to schedule a meeting you are stressing your clients. Meeting invites shouldn’t take more than two communications via emails. Your job as a freelance professional is to […]

Categories
Fix SQL Tips Web

How to Reset the Primary Key Sequence ID in PostgreSQL

I run into an issue today with PostgreSQL. I had manually entered a row into a table and it caused the primary key to fall out of sequence. To reset the primary key sequence ID on the PostgreSQL table I used the setval and pg_get_serial_sequence functions. Source: How to reset postgres’ primary key sequence when […]

Categories
PHP Tips Web

PHP UUID without a Library

A little bit of PHP is sometimes all you need to solve a problem. In our case, we need just a little PHP code to generate a UUID. When you need more I recommend using Ben Ramsey‘s PHP UUID package. P.S. When using a UUID in the database I’d still run a unique check for […]