Delphi For Fun Newsletter #79
January 7, 2016
So far in January "Global Warming" has reverted to "Climate Change";. Overnight lows this week have been in the teens and daytime highs around 30° F compared to lows in the 40s and highs in the 60s for most of December. Last month was too warm to hunt for my 2nd deer of the season, so deer burger will be rationed in 2016. Well, red meat is supposed to be unhealthy anyway, even "range fed" with no antibiotic loading. I may have to build a henhouse and raise a few chickens come spring. Logging is proceeding well on 20 acres of pines and I'm trading half the great (but unmarketable) Black Locust firewood in exchange for the guys cutting and skidding it out of the woods. A good deal for all.
The highlight of the 4th quarter was a great family trip to Prague, Vienna, Budapest in December - more details below. Browsing through the programs posted this quarter, most were fixes or enhancements. The sole new program posted looks for the largest rectangle (or square) that can be inscribed in a concave or convex simple polygon. It's not really completed but is far enough along to explore the effect of several search strategies. Here's the list:
October 2, 2015:
Late last year, curiosity led me to investigate how license keys
or serial numbers might be created. Activation procedures requiring
name, email address or other personal information lead me to believe that the
assigned key contains data used for verifying that the user is the owner.
A user recently uncovered a couple of bugs when a larger number of fields or
special characters are included.
License Key Demo Version
1.2 corrects these and a couple of others discovered during testing,
October 19, 2015:
I recently discovered the was a perfectly good name already defined (Double Word Squares) for what I had been calling "Square Word Grids" to distinguish them from the symmetrical "Word Squares" puzzles. Double Word Squares Version 3 posted today has several major enhancements and has occupied my spare time for the past 8 weeks! I will admit that the "fun level" decreased during the period and I reverted to "never give mode" several times. The resulting product still needs polishing, but I believe that it mostly works. Please let me know if you find otherwise. The changed and new features include a revised search algorithm and revised user interface. It now takes less than a second to solve this Mensa Puzzle which the previous version could not solve in over 10 hours of run time!
October 29, 2015:
Last Sunday's Mensa Calendar Puzzle led me to dig out the Self Describing Sentences program written several years ago. Sure enough it can solve this one, but I can't revisit a program without finding some bug or desired enhancement. This time I added the ability to count the number of consonants in a self describing manner. Self Describing Sentences Version 2.3 was posted today.
November's big project is a program to approximate the largest
rectangle that can be drawn inside of an arbitrary polygon. A
patient user requested it a few months ago and it does sound like an interesting
November 12, 2015: At least for me, Microsoft made the Windows file search option virtually unusable when they rewrote it for Windows 7. It's a function that I rarely need, but when I do, I don't want to search help or the internet to find how to do it. This week, I finally wrote a FastFileSearch program to find files meeting masking criteria from a selected start folder (e.g. find *permut*.exe to list all permutation related programs in my DFF folder). No content searching yet, but that enhancement is in the wings if I need it. Maybe Windows 10 search will work, but when last I checked ,the Win10 Edge browser did not support add-ons and the Win32Help program could not be installed. Both of those deficiencies are deal breakers for me.
November 13, 2015:
Brute Force is our program which solves many algebra
based puzzles with integer solutions. It works by exhaustive search over a set
of values, trying all combinations in a set of equations. A viewer
recently reported having a problem solving this equation set which he described
as a "6th grade level algebra problem". Not in my 6th grade!
In any event, the program couldn't find a solution with a trial digit
range from 1 to 30. That is, until I increased the maximum number of trial
digits from 20 to 50. Brute
Force Version 3.4.1 posted today implements
the change and finds the solution 5 seconds! It now also warns if you
range larger than 50 numbers, Sample problem Test50.prb is the problem that
uncovered the bug and is included in the downloads. I'm off
to try my high school solving skills on this problemJ.
November 27, 2015:
"Wordsearch" program allows users or the program to solve those "straight line"
or "crooked path" problems. Crooked path problems could not revisit
letters within a word, until today. Word
Search Version 2.1 adds a "Revisit OK" checkbox to enable solving
Mensa Brain Puzzlers Calendar
for November 21. Here's the puzzle: Start on a letter and
move horizontally, vertically, or diagonally from letter to adjacent letter to
spell out a two-word famous fighting force. You may return to a letter and reuse
it. All the letters will be used at least once.
December 4, 2015: Between travel and that Holiday at the end of the month, December will be a sparse programming month for me. I did receive an interesting email recently from a scout troop leader which is just the kind that makes my week. The troop built a catapult based on the a page actually provided by another viewer several years and available from my Catapult Simulator page. Here's the email:
Building a catapult is one of the requirements for the engineering badge or the Arrow of Light, the only cub scouts achievement that can be worn on the boy scout uniform - so the Webelos 2 (older boys) in our cub scout pack in middle Tennessee had high enthusiasm for this project.
We downloaded the parts list and the pictures from DFF's "A Catapult Story" and the boys built it pretty much according to the instructions and pictures in an assembly line - one boy measured and marked the PVC, another cut the marked pieces, another labeled the pieces, and another did a dry assembly (see picture). After we made sure it all looked good assembled, it was disassembled, PVC adhesive applied to the ends of the pieces, and reassembled (we used the sawed-off bottom of a movie theater cup for the cup). Using PVC adhesive was faster than screwing in all the pieces, as was done in the instructions - the entire catapult was cut and assembled in about an hour (easily done in one den meeting). The only other difference is that we used threaded rod for the stop - it worked, but you can see in the animation that it bends when the arm hits it.
The boys attached streamers to the back of the projectile, so they could more easily see it in the air - you can see the tails in the launch, below. It easily gets 20 feet of height and 60 feet of range. Worked beautifully, and the kids loved it - thank you very much!
- James W, den leader
December 24, 2015:Merry Christmas!
We are just back from 10 wonderful days in Central Europe (the Prague, Vienna, Budapest triangle) with family. None of these will replace Lauterbrunnen, Switzerland as our favorite, however it was worthwhile and educational none the less. We had been to Vienna many years ago but the others were first-time visits. Both Prague and Budapest have similar geography; straddling a river with a castle on the high ground on one side and the peons living on the other side. Both were occupied before and after WW2; first by German Nazis, then by Russian Communists. Lots of differences in the details though. All three cities have large Christmas Markets where the girls spent many hours buying gifts and souvenirs while the guys sampled and compared beers, wines and brandies (e.g. Palinka in Budapest - ouch!). Just spending time with our wide-spread family was the real highlight for me. The children and older grandchildren are experienced travelers by now, so Grandma and I could mostly just relax and enjoy.
In Vienna we had a long lunch with Cristian Kranich after attending a performance of the Spanish Riding School Lipizzaners. Christian graciously tested the "stay as long as you want" tradition of the Vienna coffee house by occupying an 8 person table alone at the classic Café Central for several hours before we arrived, bypassing the long line of those awaiting a table. He is an interesting fellow who is using some of my code in his hobby of analyzing Eastern and Indian flute scales. He programs and designs/builds hardware for a niche market and is the closest to a true polymath that I have ever encountered. Thanks for the hospitality Christian!
As the final posting this year, here is an unpolished version of my Rectangle in Polygon program started in October. The idea is to to find the largest area rectangle that can be inscribed in an arbitrary convex or concave simple polygon. ("simple"==>sides do not cross.) A fun and challenging project that still needs some fine tuning for efficiency.
Quotes redo (continued):
DFF News #5, October 23, 2000: "Genius is one percent inspiration and ninety-nine percent perspiration." -- Thomas Edison
DFF News #6, October 30, 2000: "One should guard against preaching to young people success in the customary form as the main aim in life. The most important motive for work in school and in life is pleasure in work, pleasure in its result, and the knowledge of the value of the result to the community." -- Albert Einstein
DFF News #7, November 6, 2000: "Science is what we understand well enough to explain to a computer. Art is everything else." (Donald Knuth - pioneer in the field of Analysis of Algorithms)
DFF News #8, November 19, 2000: "Don't give up at half-time. Concentrate on winning the second half." -- Coach Paul "Bear" Bryant (Football coach)
348,00 site visits and 347,000 program downloads in the past 12 months!