If you are not following my South Kingstown School Committee candidate Facebook page, but are interested in South Kingstown School Committee's happenings then you might be interested in my observations on the School Committee's retreat this past Friday, July 15: the good, the bad, and the ugly.
“What’s in a name? That which we call a rose by any other name would smell as sweet.” Not in software!
“What’s in a name? That which we call a rose by any other name would smell as sweet.” Not in software!
Which Cement Mixer Are You Based On Your Zodiac Sign?
This kind of astrology is important to me. I'm aBartell Gas Powered Concrete Mixer
You are a dependable individual, willing to help whether your friend needs a shoulder to cry on, a secret to keep, or cement to be mixed.
Primary and Secondary Tools
Primary Application/Tool
A primary tool is one that the user uses daily. It is one where the user will have many sessions within a short period of time -- a few weeks. This rapid experience of having successes and recovering from failures builds the user's confidence in the his or her ability to use the tool. Moreover, this confidence encourages the user to explore the tool for better means to perform tasks and opportunities to use the tool for unforeseen outcomes. This confidence brings with it the need for far less feedback that an operation has been completed successfully and instead feedback can be limited to erroneous results.
Secondary Application/Tool
A secondary tool is one that is not a primary tool. It is used infrequently -- less than once per week. This infrequency disposes the user to having to relearn the tool's operation at the start of a session. Only the most rudimentary operational knowledge is retained between sessions. The user is most successful when he or she is guided in performing a task from its beginning to its ending. Redundant orientation information such as task milestone displays, activity histories, and possible future work, etc are displayed beside the specific task step at hand. Feedback for success and for failure is always provided.
BoardDocs and removing forced page breaks
This posting is mostly to remind myself how to eliminate page breaks from Emerald Data Solutions's BoardDocs. BoardDocs is used by lots of organizations that want control over their governance documents. The South Kingstown School Committee just started using it. Its configuration is such that when the detailed agenda is printed there will be a page break after each agenda item. I don't want this -- either on paper or PDF. To fix this I installed Stylebot and added the following style for BoardDoc URLs to turn off forced page breaks
* {
break-after: auto;
}
This seems to work. My preference would be for a less heavy handed solution, however.
SQL and the (newly discovered) OVER operator
As with most ostensibly complicated SQL the solution is in creating a virtual table (ie inner select) from an existing table. My virtual table needed to be sorted on document id and a sequence number given for each row. To do that I needed to use this in the column selection of the virtual table.
ROW_NUMBER() OVER( ORDER BY document_id ) - 1 row_number
I had never heard of the OVER operator. It applies a function to a row of an ordered relation. So the ROW_NUMBER() function gives the first row a value 1, the second 2, etc. Since I would be grouping using division I need the row numbers to start from 0 and so the subtraction of 1.
Now that I have row numbers and rows ordered by document id I needed to find within groups of 100,000 rows the minimum and maximum document ids. I used a simple group by row_number / 100,000 to get the row groupings. Then used MIN(document_id) to get the group's minimum document id. Same for maximum document id. The final SQL is as follows and it runs fast enough for the 50M records I needed to use it with
SELECT
FLOOR( y.row_number / 100000 ),
MIN( y.document_id ),
MAX( y.document_id ),
COUNT( * )
FROM
(
SELECT
x.*,
ROW_NUMBER() OVER( ORDER BY document_id ) - 1 row_number
FROM
documents x
) y
GROUP BY
FLOOR( y.row_number / 100000 )
ORDER BY
MIN( y.document_id )
With the data I can use a bash script to read it and produce a series of commands that are feed to xargs for parallel execution.
superglue + baby powder = gap filling putty
I bought some of Games Workshop's liquid green stuff and have been waiting to use it to clean up some plastic kits I am currently working on (well, next in line). Today, however, I found out about the superglue + baby powder putty. Dries rock hard and can be filed to shape.
Viking and Anglo-Saxon army painting saga concludes
What scale are scale buildings?
A true scale creates overpowering buildings and the combatants are very greatly diminished. So a smaller scale for buildings with regard to their volume, but not their floor plan, removes this diminishment. I have not tried this, but you could use the Disney World trick of reducing the height of each floor above the ground floor. See Forced Perspective.
No one man or woman can fix this broken country
Why are tires so expensive?
Keiichi Matsuda's Hyper-Realty
"Flat" terrain feature example
How to start gaming a scenario?
The environment is harsh. Dust storms of national and global scale have made long distance wireless communications unreliable. So, despite the advanced equipment the factions continue to rely on scouting (human and autonomous drones) and runners to convey situation awareness and instructions between units. Even long range targeting and retargeting takes significant time, but once established is accurate. Some factions rely on well planned actions with strict adherence to the plan by the discrete units. Other factions rely on discrete units making local decisions stemming from the unit's overall purpose.
The scenario I am working on is a tanker truck needs to be driven to the coast (ie, off board) by its corporate owners. A rival faction wants to divert the trunk to its own facilities for local distribution (ie, driven off the other side of the board). It is a stalemate to have the trunk not reach either of these destinations before N rounds of play. It is a defeat for both sides if the tanker trunk is destroyed.
My initial plan was to use the Horizon Wars rules as I played an early edition of them from a few years ago. The rules are basic, but do make for a quick game. However, I am not wedded to them so am open to suggestions for other suitable rules.
My first question is how to start gaming a scenario? Is there an approach to determining the units needed? Or is it ad hoc, ie just play a game with a guess at unit composition and respond to the results? Or something else all together?
Update: The working document for this is at "A setting for near-future wargames."
Weekend workbench 2016-05-14
Meeting room geek lights
The spotter stood still ...
A setting for an Horizon Wars miniatures wargame.



