Nudge Theory – What drums do you dance to?

John 'Jake' JacobFunLeave a Comment

A highly popular science book “Nudge: Improving Decisions About Health, Wealth and Happiness” (Thaler and Sunstein, 2008) is now ten years old. BBC Radio 4 programme “Nudge Nudge” investigates the growing influence of Nudge Theory in government and business (broadcast 8th July and 23rd October 2018). Nudge holds that rather than making decisions on a rational basis, innate behaviours of … Read More

Dyalog ’17 – Reflections on Day 2

John 'Jake' JacobAPLLeave a Comment

Day two and the weather is holding up for now on what was to be a full day of presentations from both Dyalog and User Delegates. New techniques for manipulating bit Booleans in Dyalog have led to significant improvements in the performance of Boolean operations. Dyalog 16 is faster but about half the speed of C. Dyalog 17 is expected … Read More

RegEx with ⎕R and ]locate

John 'Jake' JacobAPLLeave a Comment

When the British APL Association met in August Dan Baronet gave us a taster for the sort of thing that could be done with RegEx in Dyalog. I have a recording I am cleaning up but in the meantime here is a taster. First create a formatting function to push a string through ⎕xml twice just to make it easier … Read More

Needleinahaystack

John 'Jake' JacobAPLLeave a Comment

A string of text has had all of the spaces removed: This e-mail is confidential and may be privileged. If you have received it in error, please contact the sender immediately by return e-mail then delete the e-mail and do not disclose its contents to any person. Becomes Thise-mailisconfidentialandmaybeprivileged.Ifyouhavereceiveditinerror,pleasecontactthesenderimmediatelybyreturne-mailthendeletethee-mailanddonotdiscloseitscontentstoanyperson. How do we get the words back? 1. Find a set … Read More

The Skirting Board Problem

John 'Jake' JacobAPLLeave a Comment

The object of this weeks problem is to find the best way to cut the boards as purchased into lengths of skirting so that joins in the skirting are avoided when fitted to the walls. For example: Write a routine to calculate the optimum cutting pattern to produce un-jointed skirts from boards. Allow 40 mm at each end of a … Read More