Andrew Cooke | Contents | Latest | RSS | Previous | Next

C[omp]ute

Welcome to my blog, which was once a mailing list of the same name and is still generated by mail. Please reply via the "comment" links.

Always interested in offers/projects/new ideas. Eclectic experience in fields like: numerical computing; Python web; Java enterprise; functional languages; GPGPU; SQL databases; etc. Based in Santiago, Chile; telecommute worldwide. CV; email.

Personal Projects

Choochoo Training Diary

Last 100 entries

[Programming] React Leaflet; AliExpress Independent Sellers; Applebaum - Twilight of Democracy; [Politics] Back + US Elections; [Programming,Exercise] Simple Timer Script; [News] 2019: The year revolt went global; [Politics] The world's most-surveilled cities; [Bike] Hope Freehub; [Restaurant] Mama Chau's (Chinese, Providencia); [Politics] Brexit Podcast; [Diary] Pneumonia; [Politics] Britain's Reichstag Fire moment; install cairo; [Programming] GCC Sanitizer Flags; [GPU, Programming] Per-Thread Program Counters; My Bike Accident - Looking Back One Year; [Python] Geographic heights are incredibly easy!; [Cooking] Cookie Recipe; Efficient, Simple, Directed Maximisation of Noisy Function; And for argparse; Bash Completion in Python; [Computing] Configuring Github Jekyll Locally; [Maths, Link] The Napkin Project; You can Masquerade in Firewalld; [Bike] Servicing Budget (Spring) Forks; [Crypto] CIA Internet Comms Failure; [Python] Cute Rate Limiting API; [Causality] Judea Pearl Lecture; [Security, Computing] Chinese Hardware Hack Of Supermicro Boards; SQLAlchemy Joined Table Inheritance and Delete Cascade; [Translation] The Club; [Computing] Super Potato Bruh; [Computing] Extending Jupyter; Further HRM Details; [Computing, Bike] Activities in ch2; [Books, Link] Modern Japanese Lit; What ended up there; [Link, Book] Logic Book; Update - Garmin Express / Connect; Garmin Forerunner 35 v 230; [Link, Politics, Internet] Government Trolls; [Link, Politics] Why identity politics benefits the right more than the left; SSH Forwarding; A Specification For Repeating Events; A Fight for the Soul of Science; [Science, Book, Link] Lost In Math; OpenSuse Leap 15 Network Fixes; Update; [Book] Galileo's Middle Finger; [Bike] Chinese Carbon Rims; [Bike] Servicing Shimano XT Front Hub HB-M8010; [Bike] Aliexpress Cycling Tops; [Computing] Change to ssh handling of multiple identities?; [Bike] Endura Hummvee Lite II; [Computing] Marble Based Logic; [Link, Politics] Sanity Check For Nuclear Launch; [Link, Science] Entropy and Life; [Link, Bike] Cheap Cycling Jerseys; [Link, Music] Music To Steal 2017; [Link, Future] Simulated Brain Drives Robot; [Link, Computing] Learned Index Structures; Solo Air Equalization; Update: Higher Pressures; Psychology; [Bike] Exercise And Fuel; Continental Race King 2.2; Removing Lowers; Mnesiacs; [Maths, Link] Dividing By Zero; [Book, Review] Ray Monk - Ludwig Wittgenstein: The Duty Of Genius; [Link, Bike, Computing] Evolving Lacing Patterns; [Jam] Strawberry and Orange Jam; [Chile, Privacy] Biometric Check During Mail Delivery; [Link, Chile, Spanish] Article on the Chilean Drought; [Bike] Extended Gear Ratios, Shimano XT M8000 (24/36 Chainring); [Link, Politics, USA] The Future Of American Democracy; Mass Hysteria; [Review, Books, Links] Kazuo Ishiguro - Never Let Me Go; [Link, Books] David Mitchell's Favourite Japanese Fiction; [Link, Bike] Rear Suspension Geometry; [Link, Cycling, Art] Strava Artwork; [Link, Computing] Useful gcc flags; [Link] Voynich Manuscript Decoded; [Bike] Notes on Servicing Suspension Forks; [Links, Computing] Snap, Flatpack, Appimage; [Link, Computing] Oracle is leaving Java (to die); [Link, Politics] Cubans + Ultrasonics; [Book, Link] Laurent Binet; VirtualBox; [Book, Link] No One's Ways; [Link] The Biggest Problem For Cyclists Is Bad Driving; [Computing] Doxygen, Sphinx, Breathe; [Admin] Brokw Recent Permalinks; [Bike, Chile] Buying Bearings in Santiago; [Computing, Opensuse] Upgrading to 42.3; [Link, Physics] First Support for a Physics Theory of Life; [Link, Bike] Peruvian Frame Maker; [Link] Awesome Game Theory Tit-For-Tat Thing; [Food, Review] La Fabbrica - Good Italian Food In Santiago; [Link, Programming] MySQL UTF8 Broken; [Link, Books] Latin American Authors

© 2006-2017 Andrew Cooke (site) / post authors (content).

Oblique Strategies in bash

From: andrew cooke <andrew@...>

Date: Fri, 10 Apr 2015 20:52:56 -0300

This is a command line tool that will print an oblique strategy.  By default,
it prints a different strategy each day.  Alternatively, you can give an
argument that is used to generate a "random" index.  So, if it's saved in a
file called "oblique"

  > oblique
  prints a strategy for the day
  > oblique `date +%s`
  prints a strategy that is randomly selected on each call

It assumes openssl, bc and awk are installed.

Andrew


#!/bin/bash

# http://ming.tv/flemming2.php/__show_article/_a000010-001643.htm
strategies=("A line has two sides"
"A very small object. Its center"
"Abandon desire"
"Abandon normal instructions"
"Accept advice"
"Adding on"
"Always give yourself credit for having more than personality"
"Ask people to work against their better judgement"
"Ask your body"
"Balance the consistency principle with the inconsistency principle"
"Be dirty"
"Be extravagant"
"Breathe more deeply"
"Bridges -- build -- burn"
"Cascades"
"Change ambiguities to specifics"
"Change instrument roles"
"Change nothing and continue consistently"
"Children -- speaking -- singing"
"Cluster analysis"
"Consider different fading systems"
"Consult other sources -- promising -- unpromising"
"Convert a melodic element into a rhythmic element"
"Courage!"
"Cut a vital connection"
"Decorate, decorate"
"Destroy nothing; Destroy the most important thing"
"Discard an axiom"
"Disciplined self-indulgence"
"Discover your formulas and abandon them"
"Display your talent"
"Distort time"
"Do nothing for as long as possible"
"Do something boring"
"Do something sudden, destructive and unpredictable"
"Do the last thing first"
"Do the washing up"
"Do the words need changing?"
"Do we need holes?"
"Don't avoid what is easy"
"Emphasize differences"
"Emphasize repetitions"
"Emphasize the flaws"
"Feed the recording back out of the medium"
"Fill every beat with something"
"Find a safe part and use it as an anchor"
"Get your neck massaged"
"Ghost echoes"
"Give the name away"
"Give way to your worst impulse"
"Go outside. Shut the door."
"Go slowly all the way round the outside"
"How would you have done it?"
"Idiot glee"
"Imagine the piece as a set of disconnected events"
"Infinitesimal gradations"
"Intentions -- nobility of -- humility of -- credibility of"
"Into the impossible"
"Is it finished?"
"Is something missing?"
"Is the intonation correct?"
"It is quite possible (after all)"
"Just carry on"
"Left channel,right channel, center channel"
"Listen to the quiet voice"
"Look at the order in which you do things"
"Lost in useless territory"
"Lowest common denominator"
"Magnify the most difficult details"
"Make a blank valuable by putting it in an exquisite frame"
"Make what's perfect more human"
"Mechanize something idiosyncratic"
"Mute and continue"
"Only one element of each kind"
"Openly resist change"
"(Organic) machinery"
"Put in earplugs"
"Reevaluation (a warm feeling)"
"Remember quiet evenings"
"Remove a restriction"
"Repetition is a form of change"
"Reverse"
"Short circuit (example: a man eating peas with the idea that they will improve his virility shovels them straight into his lap)"
"Simple subtraction"
"Spectrum analysis"
"Take a break"
"Take away the important parts"
"Tape your mouth"
"The inconsistency principle"
"The tape is now the music'"
"Think of the radio"
"Tidy up"
"Trust in the you of now"
"Turn it upside down"
"Twist the spine"
"Use an old idea"
"Use an unacceptable color"
"Use fewer notes"
"Use filters"
"Use your own ideas"
"Water"
"What are the sections sections of? Imagine a caterpillar moving"
"What are you really thinking about just now?"
"What is the reality of the situation?"
"What mistakes did you make last time?"
"What would your closest friend do?"
"Work at a different speed"
"You are an engineer"
"You can only make one dot at a time"
"Your mistake was a hidden intention"
"Don't break the silence"
"Don't stress one thing more than another"
"Use 'unqualified' people"
"What wouldn't you do?"
"Try faking it [Stewart Brand]"
"Slow preparation, fast execution"
"Is the style right?"
"Where is the edge?"
"Voice your suspicions"
"What is the simplest solution?"
"Make it more sensual"
"Use something nearby as a model"
"Think -- inside the work -- outside the work"
"What context would look right?"
"When is it for?"
"What to increase? What to reduce? What to maintain?"
"How would someone else do it?"
"Would anyone want it?"
"Go to an extreme, come part way back"
"Once the search has begun, something will be found"
"Be less critical"
"From nothing to more than nothing"
"Retrace your steps"
"Only a part, not the whole"
"Faced with a choice, do both [Dieter Rot]"
"Always give yourself credit for having more than personality [Arto Lindsay]"
"Revaluation (a warm feeling)"
"Lost in useless territory"
"It is quite possible (after all)"
"Idiot glee"
"Move towards the unimportant"
"It is simply a matter of work"
"Not building a wall; making a brick"
"The most easily forgotten thing is the most important"
"State the problem as clearly as possible"
"Always the first steps"
"Question the heroic"
"Go outside. Shut the door."
"In total darkness, or in a very large room, very quietly"
"Which parts can be grouped?"
"Change specifics to ambiguities"
"Use cliches"
"Consider transitions")

key=${1-`date -I`}
key=`echo -n $key | openssl dgst -sha1 | awk '{print $NF}'`
key=`echo $key | tr '[:lower:]' '[:upper:]'`
key=`echo "ibase=16;$key" | bc`
n=${#strategies[*]}
i=`echo "$key % $n" | bc`
echo ${strategies[$i]}

Comment on this post