I’m using Overleaf for my thesis and have been pasting segments into other apps to get a word count. It’s a pain. I just activated this script to give me a character and word count on any selected text in any app* using the contextual menu. It’s great, so I’m sharing:
Open Automator on your mac.
Make a new file as a new Service
Drag Run AppleScript action to the main window
Add the code below
Save as something like ‘Selected text word count’ or ‘How many bloody words now?’
Et voila go to an app and select some text, ctrl-click and get the counts.

The instructions above are:

  • 269 characters;
  • 52 words;
  • 6 paragraphs.

*apart from Word as the devil controls all within it, but you don’t need it there anyway.

on run {input, parameters}
try
set MyText to input as string
set numChars to the number of characters of MyText
set numWords to the number of words of MyText
set numPara to the number of paragraphs of MyText
set theResult to “This brilliant text contains:” & return & “- ”
if numChars is 1 then
set theResult to theResult & numChars & ” character;” & return & “- ”
else
set theResult to theResult & numChars & ” characters;” & return & “- ”
end if
if numWords is 1 then
set theResult to theResult & numWords & ” word;” & return & “- ”
else
set theResult to theResult & numWords & ” words;” & return & “- ”
end if
if numPara is 1 then
set theResult to theResult & numPara & ” paragraph.”
else
set theResult to theResult & numPara & ” paragraphs.”
end if
display dialog theResult buttons {“OK”} default button 1 with icon note
on error errmsg number errnum
display dialog errmsg & ” [” & errnum & “]” buttons {“OK”} default button 1 with icon stop
end try
return input
end run

src:http://hints.macworld.com/article.php?story=20120428125918199

”The best thing about being a statistician,” Mr. Tukey once told a colleague, ”is that you get to play in everyone’s backyard.” –John Tukey, 85, Statistician; Coined the Word ‘Software’

My version: The best thing about being an artist is that you get to play in everyone’s backyard. (but you always keep your spectacles on.

src: https://www.york.ac.uk/depts/maths/histstat/tukey_nytimes.htm

Future work

After Sol le Witt’s Wall Drawings: a set of instructions for creative devs to create an animation

Multilevel animal societies can emerge from cultural transmission…

Multilevel animal societies can emerge from cultural transmission Maurício Cantor, Lauren G. Shoemaker, Reniel B. Cabral, César O. Flores, Melinda Varga & Hal Whitehead Multilevel societies, containing hierarchically nested social levels, are remarkable social structures whose origins are unclear. The social relationships of sperm whales are organized in a multilevel society with an upper level… Continue reading Multilevel animal societies can emerge from cultural transmission…

Robustness of flight leadership relations in pigeons Andrea…

Robustness of flight leadership relations in pigeons Andrea Flack, Zsuzsa Ákos, Máté Nagy, Tamás Vicsek, Dora Biro (Submitted on 25 Oct 2016) Collective animal movements produce spectacular natural phenomena that arise from simple local interactions among group members. Flocks of homing pigeons, Columba livia, provide a useful model for the study of collective motion and… Continue reading Robustness of flight leadership relations in pigeons Andrea…

http paradoxrobotics com specifications Fluidic Control Board…

http://paradoxrobotics.com/specifications/
“Fluidic Control Board Kit of Parts
Inspired by Open Source designs for soft robotics, our Fluidic Control Board Kit of Parts can be used to operate and control fluidic soft actuators. Rather than sourcing separate components from numerous vendors, this kit of parts is an all-in-one set, which provides everything necessary to assemble a fluidic control board. The control board allows efficient prototyping of various types of soft robotics actuators in a research lab, industrial, makerspace or school setting.”

audio mapping

“As a sound wave moves through a medium, each particle of the medium vibrates at the same frequency. This is sensible since each particle vibrates due to the motion of its nearest neighbor.” src:http://www.physicsclassroom.com/class/sound/Lesson-2/Pitch-and-Frequency

Data for Life – notes

Data as an art material Presenting data without the need for graphicacy Usinging biomimetic psychology (not just physical and systems designs) https://www.google.co.uk/search?q=psychological+biomimeticry&ie=utf-8&oe=utf-8&gws_rd=cr&ei=Z6exV9exC8X3aP2ohMAG

Notes from Lukas’s masters thesis

https://en.wikipedia.org/wiki/Timoshenko_beam_theory used by Lukas as opposed to Euler Bernoulli beam theory, the difference appears to be the deformation of the beam ends which is necessary due to the softness of the silicone. https://en.wikipedia.org/wiki/Kinematics the branch of mechanics concerned with the motion of objects without reference to the forces which cause the motion. Kinematics as a… Continue reading Notes from Lukas’s masters thesis

Jonathan Birch I’m an Assistant Professor at…

Jonathan Birch “I’m an Assistant Professor at the London School of Economics and Political Science, specializing in the philosophy of the biological and behavioural sciences. My work mainly concerns the evolution and psychology of social behaviour, though I have also written on topics including innateness, teleology, signalling and the “major evolutionary transitions”.” http://personal.lse.ac.uk/birchj1/

http mtg upf edu download datasets good sounds…

http://mtg.upf.edu/download/datasets/good-sounds Good-sounds.org dataset This dataset was created in the context of the Pablo project, partially funded by KORG Inc. It contains monophonic recordings of two kind of exercises: single notes and scales. The dataset was reported in the following article: Romaní Picas O., Parra Rodriguez H., Dabiri D., Tokuda H., Hariya W., Oishi K., &… Continue reading http mtg upf edu download datasets good sounds…

Movebank – animal track data hosting

https://www.movebank.org/ Movebank is a free, online database of animal tracking data hosted by the Max Planck Institute for Ornithology. We help animal tracking researchers to manage, share, protect, analyze, and archive their data. Movebank is an international project with over 11,000 users, including people from research and conservation groups around the world.

Visual Salience

http://www.scholarpedia.org/article/Visual_salience coupled with biological motion. In terms of the objects – what are the movements that trigger us to note a change – i.e. an asymetrical motion in an object that usually performs symmetrically. In body language is it the abrupt gestures that turn our attention or is it a fluctuation of a familiar motion,… Continue reading Visual Salience

Altrusim

http://www.bbc.com/earth/story/20160718-there-is-no-such-thing-as-a-truly-selfless-act http://www.genetics.org/content/176/3/1375.full http://www.journals.uchicago.edu/doi/10.1086/406755 http://personal.lse.ac.uk/birchj1/

find and replace SQL

UPDATE `tablename` SET `fieldname` = replace(`fieldname`, ‘UNWANTED-TEXT’, ‘WANTED-TEXT’)

NMR data

I’ve been considering what additional data will be needed for the animation/objects. I think some of the basic stuff can be calculated and stored in MySQL, things like: distance travelled (per day, stored per nmr; cumulative since beginning of data) speed (average per day; current – based on last x mins) days alive (current –… Continue reading NMR data

http://icarusinitiative.org/about-icarus

The goal of the ICARUS (International Cooperation for Animal Research Using Space) Initiative is to observe global migratory movements of small animals through a satellite system.

Global data about animal movements are indispensable in our today international networked world to understand how to safe human health and wildlife simultaneously.

Assessing behavioural traits

http://www.sciencedirect.com/science/article/pii/S0092656616300058

Looks at how behavioural analysis fails due to human interpretation. I think. Tweeted by Alan mcElloitt -maybe ask for clarification.

Light sensor Python script

“””script to read a Light Dependent Resistor on GPIO pin 11 must be run in command line: –login as root >sudo su — run python command from directory >python lightsensor.py — ctrl-C to quit “”” #!/usr/bin/python import time import os import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) def LDRtime(LDRpin): reading = 0 GPIO.setup(LDRpin, GPIO.OUT) GPIO.output(LDRpin, GPIO.LOW) time.sleep(0.1)… Continue reading Light sensor Python script

Raspberry Pi 3B setup

install NOOBS from https://www.raspberrypi.org/downloads/noobs/ v 1.8.0 released 2016-02-29 Get online using wifi dongle and QMUL Guest login (fuck eduroam for now) >sudo apt-get update >sudo apt-get install mysql-server >sudo apt-get upgrade >sudo pip install PyMySQL Changed mind and went for MariaDB as that is what I use on PEW >sudo apt-get install mariadb-server As MySQL… Continue reading Raspberry Pi 3B setup

Intro to High Performance Computing (HPC) course

Taught by Lukas in eecs IT (25 nov 2015) http://www.eecs.qmul.ac.uk/~lukas/downloads/IntroductionToHPC.pdf Apocrita MPI – message passing interface Use Screen for qlogin sessions, incase your SSH connection goes, then your process will continue. Resource Allocation slide Core = slot in SGE smp (this gives you slots on the same machine will not spread over nodes) if you… Continue reading Intro to High Performance Computing (HPC) course

1st test – NMR tracking in lab (local version)

Today the iMac was deployed to track colony Omega (20 NMRs) using 7 sensors. The data is being stored on a local MySQL db. deployed code on github (misslake) estimated data logging (as determined with lights on): 24 rows of non-blank data per 30 seconds scales up to around 70,000 per day if NMR movement… Continue reading 1st test – NMR tracking in lab (local version)

Local iMac db setup

status at 20151117: Python script ok. Failing at the MySQL commit as the primary key stuff is not letting the data into the table. To do: add data to the sensor table. check PKs and FKs. check them again. Look at using python to check for duplicates instead of doing it this way.

A Material History of Bits

Jean-François Blanchette, Assistant Professor Dept. of Information Studies, UCLA In both the popular press and scholarly research, the trope of digital information as “immaterial” is invoked with remarkable persistence. In this characterization, the digital derives its power from its nature as a mere collection of 0s and 1s wholly independent from the particular media on…… Continue reading A Material History of Bits

Materiality of Data and Bits – blog post

Source: Materiality of Data and Bits | Home This article is okay – the best bits are that he references some people writing about data that are new to me, so to follow up his sources (which aren’t included annoyingly). i.e. Lisa Gitelman and Virginia Jackson explain partly why “data” seems to have an ethereal… Continue reading Materiality of Data and Bits – blog post

Setting up iMac (OSXYosemite 10.10.5)

$ sudo easy_install pip $ sudo pip install -U setuptools $ sudo pip install pyserial install MariaDB as that is what is installed on pew == make sure Xcode is uptodate or install it $ xcode-select –install install homebrew $ ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)” Check Homebrew $ brew doctor Update Homebrew $ brew update… Continue reading Setting up iMac (OSXYosemite 10.10.5)