Chicken Tractor Design

I want to build a secure run for our chickens — something we can move around the yard. I’ve seen a lot of A-frame chicken tractors — I assume people use the triangular shape instead of a rectangle because there’s less material for a given footprint and, thus, the tractor is lighter and easier to move. Chickens aren’t that tall, so they can use most of the “knee wall” section of the tractor. But I thing it will be nicer to be able to use 100% of the footprint. Since 5′ hardware cloth seems quite rare, and there’s no reason to have a run that’s higher than 3′ … I’m designing this around 3′ sections. The vertical walls will use one length of 3′ hardware cloth. The top will have two “sections” of 3′ hardware cloth.

The run will be a wooden frame covered in 1/2″ mesh hardware cloth. The frame is put together as shown in I plan on using 2×4’s to build the frame, stapling the hardware cloth to the frame, and then using 1×2’s over the edge of the hardware cloth to ensure sharp edges won’t snag or cut anything. The screws holding the 1×2’s onto the 2×4’s will provide additional security.

On each corner, I need two 3″ long screws and another two screws for the board along the top. That’s 28 3″ long screws. I’ll need a bunch of fencing staples to hold the hardware cloth and some eighty 1.5″ long screws to hold the 1×2 to the 2×4’s

I need just over 50′ of three-foot-wide hardware cloth (10′ + 10′ + (2 x 10′) + 6′ + 6′ = 52′). Since I’ll need some to secure the coop too, I’ll probably just get a 50′ roll and a 20′ roll. I need 5x 10′ long 2×4’s, 4x 6′ long 2×4’s, 4x 3′ long 2×4’s (cut from 4x 10′ long 2×4’s) … which is nine 10′ long 2×4’s. I also need nine 10′ long 1×2’s to cover the ends of the hardware cloth. And maybe some handles on the top 6′ board to make carrying the thing easier.

I need to research a non-toxic paint or sealant, and we’ll have a chicken tractor.

Chicken Brooder Setup – Water and Heat

The heater that I ordered from Amazon for the baby chickens was a dud — I’ve got to send it back tomorrow. I ordered a different heater — both are like heating pads on legs to allow the chickens to huddle under it like a mommy hen.

We got the first bag of starter food along with a feeder and water container. While the water container is designed to prevent drowning, Anya read about putting rocks into the water tray in her chicken keeping book … so we gathered too-big-for-a-chicken-to-swallow stones, washed them, and have them in the water tray for extra safety.

Building LIB_MYSQLUDF_SYS On Fedora 31

I moved my MariaDB server to a new host and could not follow my previously working instructions to build lib_mysqludf_sys. The error indicated that my_atomic.h was not found.

[lisa@server03 lib_mysqludf_sys]# make
gcc -fPIC -Wall -I/usr/include/mysql/server -I. -shared lib_mysqludf_sys.c -o /usr/lib64/mariadb/plugin//
In file included from /usr/include/mysql/server/my_sys.h:34,
from lib_mysqludf_sys.c:41:
/usr/include/mysql/server/my_pthread.h:26:10: fatal error: my_atomic.h: No such file or directory
26 | #include <my_atomic.h>
| ^~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:4: install] Error 1

The missing file is located in /usr/include/mysql/server/private … so I had to include that file in the gcc command as well. My new Makefile reads as follows:

[lisa@server03 lib_mysqludf_sys]# cat Makefile

gcc -fPIC -Wall -I/usr/include/mysql/server -I/usr/include/mysql/server/private -I. -shared lib_mysqludf_sys.c -o $(LIBDIR)/

I was then able to make and use to load it into MariaDB.

HTML Checkbox Adding and Removing Table Row

Here’s the JavaScript code I ended up using to add and remove rows from a table based on a checkbox selection (and only allowing one checkbox per group to be selected). The biggest change is that I added a name and ID to my TR for easier identification.

$(document).on("change", "input[type='checkbox']", function () {
    var $objCheckbox = $(this);
    if ($":checked")) {			// When checked, deactivate other checkboxes and add to sets to create table
        var objCheckboxGroup = "input:checkbox[tableselector='" + $objCheckbox.attr("tableselector") + "']";

        $(objCheckboxGroup).prop("disabled", true);
        $objCheckbox.prop("disabled", false);		// Allow checked box to be unchecked

        addSetToCreatingTable($objCheckbox.attr("setname"), $objCheckbox.attr("settype"), $objCheckbox.attr("goodcircuits") + "|" + $objCheckbox.attr("value"), $objCheckbox.attr("tableselector"));

    else {							// When unchecked, active checkboxes and remove from sets to create table
        var objCheckboxGroup = "input:checkbox[name='" + $objCheckbox.attr("name") + "']";
        $(objCheckboxGroup).prop("disabled", false);	

        $("#" + $objCheckbox.attr('tableselector')).each(function(){ $(this).remove();})

What Can I sudo?

Some 90% of my Linux experience is on servers where I have root or root-equivalent access (i.e. I can sudo anything). In those cases, ‘what can I run under sudo’ was never a question. And I’d use something like “sudo less /etc/sudoers” to inspect what someone else was able to run when they questioned their access. In my new position, we have a lot of servers that we own too — the Engineering IT support group lets us spin up our own VMs, do whatever we want (within reason). But we have a few IT-managed servers with very restricted rights. And the commands I would use to perform functions (think systemctl restart httpd) aren’t in my sudoers access list. Luckily you can list out what you can run under sudo:

$ sudo -l
[sudo] password for useraccount:
Matching Defaults entries for useraccount on this host:
syslog=auth, loglinelen=0, syslog_goodpri=info, syslog_badpri=err,

User useraccount may run the following commands on this host:
(ALL) /opt/lampp/lampp start, (ALL) /opt/lampp/lampp stop, (ALL)
/opt/lampp/lampp restart, (ALL) /usr/sbin/apachectl

And that is how I know to use apachectl instead of systemctl.

HTML Checkboxes To Add and Remove Values from Table

I am creating a web form where the user input sometimes cannot be resolved to a unique value. In those cases, I present the user a set of checkboxes with the options (yes, a radio button makes more sense because you can only select one. But I hate that radio buttons change selection when you hit an arrow key.).

When a selection is made, I need to (1) deactivate the checkboxes for the other options when a checkbox in the group is selected and (2) add information to a data table that is used in subsequent activities.

When a selection is cleared, I need to (1) activate the checkboxes within the group and (2) remove the right row from the data table.

Below is the HTML code that achieves this. Now I just need to map this test page into the actual web code.

<head><title>Adding And Removing From Table</title></head>

<div name="divCircuitClarifications" id="divCircuitClarifications">
    <input type="checkbox" value="123" tableselector="SampleCircuitA" name="SampleCircuitA[]" /><label>123</label>
    <input type="checkbox" value="234" tableselector="SampleCircuitA" name="SampleCircuitA[]" /><label>234</label>
    <input type="checkbox" value="345" tableselector="SampleCircuitA" name="SampleCircuitA[]" /><label>345</label>
    <input type="checkbox" value="abc" tableselector="SampleCircuitB" name="SampleCircuitB[]" /><label>abc</label>
    <input type="checkbox" value="bcd" tableselector="SampleCircuitB" name="SampleCircuitB[]" /><label>bcd</label>
    <input type="checkbox" value="cde" tableselector="SampleCircuitB" name="SampleCircuitB[]" /><label>cde</label>
    <input type="checkbox" value="Cabc" tableselector="SampleCircuitC" name="SampleCircuitC[]" /><label>abc</label>
    <input type="checkbox" value="Cbcd" tableselector="SampleCircuitC" name="SampleCircuitC[]" /><label>bcd</label>
    <input type="checkbox" value="Ccde" tableselector="SampleCircuitC" name="SampleCircuitC[]" /><label>cde</label>

<div id="divResultTable" name="divResultTable">
<table border="1" padding="1" name="tableSetsToCreate" id="tableSetsToCreate">
	<thead><tr><th>ECCKT</th><th>Circuit ID</th></tr></thead>

<script src=""></script>

	$("input:checkbox").on('click', function() {
	  	var $objCheckbox = $(this);
	  	if ($":checked")) {			// When checked, deactivate other checkboxes and add to sets to create table
	    		var objCheckboxGroup = "input:checkbox[tableselector='" + $objCheckbox.attr("tableselector") + "']";
	    		$(objCheckboxGroup).prop("disabled", true);
	    		$objCheckbox.prop("disabled", false);		// Allow checked box to be unchecked

	                var strTableRowString = '<tr><td>' + $objCheckbox.attr("tableselector") + '</td><td>' + $objCheckbox.val() + '</td>\n';
	                $('#tableSetsToCreate tbody').append(strTableRowString);
		else {							// When unchecked, active checkboxes and remove from sets to create table
	    		var objCheckboxGroup = "input:checkbox[name='" + $objCheckbox.attr("name") + "']";
	    		$(objCheckboxGroup).prop("disabled", false);	

			$("tr:contains('" + $objCheckbox.attr('tableselector') + "')").each(function(){ $(this).remove();})

2020 Garden Update – Late July

It’s almost time to plant the broccoli, brussle sprouts, and kale! We’ve gotten a few harvests from the bush beans (and I planted more seeds a few weeks ago), and the wall of pole beans is covered in flowers. Anya and I have been snacking on pea leaf microgreens (and macrogreens!) — and rabbits apparently love pea plants above any other plant. The little bed of microgreens seems to have saved the rest of my garden from nibbles. The corn is almost as tall as I am, and the cucumber plants are covering the A-frame. Tiny peppers are starting to form on the plans

And I’ve got dozens of green tomatoes

It looks like moving the garden to a sunnier spot has been a huge improvement in production.

Next year,I want to adjust the planting schedule:

March: Start the peppers, tomatoes, watermelon, pumpkins, squash, and cantaloupe indoors. Plant snow peas outdoors.

Late April: Start the corn indoors.

Mid/late May: Plant the plants that have been growing since March. Sprinkle carrot seeds around the tomato plants — that worked quite well as I’ve never had carrots grow before. Plant the bush and pole beans outdoors.

June: Plant the corn outside. Start the broccoli, kale, cabbage, brussel sprouts, and cauliflower indoors.

July: Plant second round of bush beans outdoors.

August: Plant broccoli, kale, cabbage, brussel sprouts, and cauliflower

Web Stats

Since my website has a lot of information about Microsoft Teams, I can see when a lot of new Teams users came online during the lockdown. Now that people are returning to offices (and, I expect, are more familiar with the platform), I’m starting to see fewer search engine referrals. But I’m still 3-4x the numbers I’d seen pre-lockdown.

Oracle – LISTAGG

I needed to collapse multiple rows into a single row — the circuits within a diversity set are stored within the ds_dvrsty_set_circuit table as individual rows & the ds_dvrsty_set_id links the multiple rows. What I wanted was a set ID, set name, and the list of circuits within the set.

To accomplish this, I found LISTAGG which is a little bit like STUFF in MSSQL. This query produces a single row for each diversity set that contains the set ID, the set name, and a comma delimited list of set members.

     (select ds_dvrsty_set.ds_dvrsty_set_nm from ds_dvrsty_set where ds_dvrsty_set_id = ds_dvrsty_set_circuit.ds_dvrsty_set_id) as set_name,
     LISTAGG(ds_dvrsty_set_circuit.circuit_design_id,  ',') WITHIN GROUP(ORDER BY ds_dvrsty_set_circuit.ds_dvrsty_set_id) AS member_circuits
     left outer join ds_dvrsty_set on ds_dvrsty_set.ds_dvrsty_set_id = ds_dvrsty_set_circuit.DS_DVRSTY_SET_ID
     ds_dvrsty_set_circuit.ds_dvrsty_set_id in (select distinct ds_dvrsty_set_id from ds_dvrsty_set_circuit where circuit_design_id in (14445678, 5078901) )
     ds_dvrsty_set.ds_dvrsty_set_nm like '43%'

Voila — exactly what I needed. If the searched circuit design IDs appear in more than one set, there is a new row for each set ID.