Sunday, 2 June 2024

The Call of an Engineer

Since I was not selected for submitting a "New Poem for the Ritual of the Calling of an Engineer" I might as well put my entry here...

From the forges of industry,
And the sweat of diligent hands,
Comes the work of engineering,
That it shapes the land.

Yet it is not just the brawn,
But the mind of self-control,
That designs with integrity,
To reach each goal.

For in the service of society,
Our efforts are not our own,
And sacrifice is necessary,
To ensure our labors are sown.

But lest not forget,
The human qualities we bring,
Of the heart and spirit,
That make material sing.

Humility in our pursuits,
Consideration in our ways,
As we build a better world,
For future days.

So together our voices,
In hymn to noble aims,
Of engineering, self-control,
And service with no claims.

Tuesday, 3 September 2019

Arch and flexget

I am a big fan of Arch Linux and can't say enough about it's flexibility. So I like to support it any way I can. And you can too! Here is a working (at least for now) flexget configuration for adding the latest arch.iso to your transmission queue. I had a working version also for the RSS links, but didn't like how there were no magnet links. So I switched to direct regex parsing of the download page. Also btw i use arch...

Thursday, 8 September 2016

WordPress Recent Posts with Include

Have you ever wondered why something doesn't exist even though you think it should and every where you look it looks like people want the same thing?

Well after searching for a while for a decent way to add a recent posts widget to a WordPress page I came across a great script that was a modification of the existing WordPress Recent Posts widget that added exclusion functionality so you could remove certain categories. I thought that this would be exactly what I wanted except for the fact that if you had multiple categories for a particular post it did not have the logic implemented to keep categories that also had an exclusion associated with it.

Example:
----------------------------
Post    ---    Categories
----------------------------
foo            news,events
bar            events

The new widget with the exclusion category of events will exclude both posts. Giving precedence. If this functionality is something that you are looking for then you can find the original script and instructions here.

So with a slight modification you can reverse the logic on this to make it an inclusion category. In doing so you can then make a custom category called "include" where you can manage your new front page widget to only include posts with that category tag.

Of course you can always download one of the many over blown and bloated plugins that will also do this and a myriad of other things, but I would rather have the single purpose solution.