This should be a short post, on a pair of complimentary functions that I just learned: objectSave
and objectLoad
. I'm not sure I've fully grasped their practical utility yet, but they're certainly worth knowing.
Just a small note here, for my own reference, and also to get myself back into the habit of blogging. I found VS Code's highlighting of matching brackets a bit distracting, so here's how I modified it to be a little less "in your face."
Thanks to my ignorance, PostgreSQL is an ongoing source of TILs. Today, I learned about using interval
to easily select a range of time.
File this under interesting SQL features that I just learned - you can GROUP BY
and/or ORDER BY
the numeric column position in your SELECT
statement, rather than writing out the full column identifier. If that's unclear, an example should help clarify.
This post touches on two subjects - the first involves reading a range of lines from a file in ColdFusion - and the second is a question: if you have a useful CFML function, where can you share it?
For reasons irrelevant to this post, I wanted to run a query directly via the PostgreSQL JDBC Driver, bypassing cfquery
. To be clear, up front, I do not recommend doing this and I don't know of any practical use case for it. But, because I couldn't find much online, I thought it worth documenting.
A quick note on a very convenient PostgreSQL function that I learned today - GREATEST
- which can be used when you want a database column updated only if the incoming value is greater (more recent) than the existing value in the column.
Despite 10+ years of CFML programming, I'm still stumbling across new functions. Today, it was the awkwardly named but surprisingly handy ucFirst
, a Lucee-specific function for dealing with string capitalization.
Two days before Thanksgiving, I decided to put together a simple way for our family to share pictures, because we couldn't be together in person. The idea: smart photo frames that everyone could text pictures to. Here's how I got it working.
The applications I've built up to this point haven't needed to account for time zones (and for that I consider myself fairly fortunate), which is probably one of the reasons that I only just discovered that ColdFusion's date/time functions can accept a timezone
parameter.