Categories
learning

PHP International Date Formatter

From a PR on May 9 I think the distinction between timezone and locale may be conflated here, I don’t want to create unnecessary work – it just looks like all we really accomplish is swapping between ‘m/d/y’ or ‘d/m/y’, which is still not fulling achieving localized formatting. For example, some locales use different separators, […]

Categories
learning

PHP Dates & Timezones

From a conversation in a PR on May 4: As soon as a DateTime object is instantiated, it has the time set to the microsecond. If the arguments provided when creating the DateTime are not sufficiently specific, PHP will fall back to defaults to establish the exact time. Even if all you specify is a […]

Categories
learning

Tailwind: Applying Child Classes on Parent Hover State

If you want classes to change on a child element when something happens on the parent, you might be able to use Tailwind’s group class. src

Categories
learning

Custom Tailwind Utility Classes

If you need a one-off custom class that Tailwind doesn’t have built in, you can dynamically generate a Tailwind class to suit your needs. src

Categories
learning

Applying Multiple Tailwind Classes as Single Class

From src, but I haven’t tested…

Categories
guides learning

Symlink to App Directory

When you build a web app, not all of the files related to the project or in your git repo need to be publicly accessible. You can clone the repo to the webserver, but then create a symlink to connect your Apache DocRoot (or somewhere else in an existing site’s folder structure) to point to […]

Categories
learning

Git Merge vs Rebase

I wanted to better understand these git procedures, so this project’s aim was to help me understand the differences and advantages of using git rebase or git merge. I invented a fake project, and made commits, merges, and rebases as a simple mock of a potential portion of an actual project’s git repo. The end result repos and […]