At the time of writing this, this is what I currently have built my site on. It’s inspired by Twenty Fifteen’s layout, but in my humble opinion, uses better CSS logic for similar results. Basically, this layout has a max-width 1,175 px (I’ve set those bounds with red lines in #goal for reference only, it doesn’t … continue reading »
Knowing how my server is preforming at all times kind of an hobby with mine. I know I can subscribe to some tools and services that display this info in beautiful graphics and charts, but I like simple things, and I like using default stuff. Years ago I wrote about a similar script to this, that used this … continue reading »
I write in LESSCSS because I find it’s nesting so much eaiser to read. While creating a theme, I never compile during, it’s too annoying, instead I have a on/off toggle for using .LESS file or .CSS file. In the snippet I made the toggle WP_DEBUG, which should be on while you develop, but if … continue reading »
Another incredible snippet if you’ve got a JS app that changes images and want said images to be ready and loaded, but not overwhelm the normal page load.
The documentation left this out, but if you want to remove some post formats from a WordPress child theme, the remove_theme_support( ‘post-formats’) does not allow you to pass an array of formats, it’s just a hard switch. However you can over-write the original add_theme_support(‘post-formats’) with only formats you desire.
According to my previous understanding and WordPress’s documentation: Note that the function called by the shortcode should never produce output of any kind. Shortcode functions should return the text that is to be used to replace the shortcode. Producing the output directly will lead to unexpected results So, we’re limtied, shortcode functions must return, not … continue reading »
It may have to do with having Duet installed, but macOS Sierra’s Finder, Expose, and Dock – along with custom mac OS keyboard shortcuts, have been failing a bit more regularily than I’m willing to tolerate. The fix is simple enough, just restarting them, but I have to dig through my notes or Google and find the … continue reading »
Passwordless SSH is something I use daily, but it was one of those tasks I never invested time into understanding. A one-off task: follow tutorials and forget. However, it seems every few years something changes and I have to redo my RSA keys on my Mac andor my servers. This year, after an upgrade to Mac OS X Sierra, marks the … continue reading »
Yesterday I wrote about Cache'ing CURL requests, today I had to write a small script that uses it for a web app I'm working on. It uses serialized PHP data instead of JSON but everything's pretty much the same. The app I'm creating needed a dynamic background image, something professional, new, and interesting. I wanted … continue reading »
When using PHP CURL with a third party API, I’ve found keeping the JSON results in a local cache is easier than constantly querying the service – especially when the API is slow or has query restrictions. Here’s a great snippet I save in my tool belt and use quite often: If the API is really slow (I’ve encountered … continue reading »
I‘ve been working on a Slack App that shows recent Slack posts and activities. The majority of recent posts include emojis, and problematically Slack’s API doesn‘t store and send emojis as characters, they’re down-converted to their respective shortnames, then wrapped in colons (presumably for universal support – it appears to be a standard practice of … continue reading »