Author Archives: admin

Use of reactive documents to illustrate basic epidemiological calculations and Bayes theorem

These are some interactive, reactive documents I wrote to help students understand some basic epidemiological/statistical calculations. (Source on github) These documents make use of the excellent tangle and D3 libraries.

Posted in medicine | Comments Off

Query for medications containing acetaminophen

Hepatotoxicity due to excessive acetaminophen exposure and idiosyncratic drug reactions are now the most common causes of acute liver failure in the United States, surpassing liver failure from viral hepatitis [1-2]. A lack of awareness for how frequently acetaminophen is … Continue reading

Posted in medicine | Comments Off

Allen’s temporal calculus

I ported Allen’s temporal calculus to Racket (Scheme) – details here.

Posted in Uncategorized | Comments Off

Real time tracking of symptoms for research and clinical support

A need that comes up in both research and clinical practice is a way to track in as close to real-time as possible various self-reported measures. In the literature, this capability is usually referred to as ecological momentary assessment. For … Continue reading

Posted in android, medicine | Comments Off

Real-time tweets containing the word ‘overdose’

Here is a reasonably real-time feed of Twitter comments (“tweets) containing the word ‘overdose’, with a query performed about every 5 seconds. Usernames have been stripped off (some usernames contain the word ‘overdose’ so it’s possible you won’t see the … Continue reading

Posted in medicine | Comments Off

Visualizing methamphetamine use in San Francisco Bay Area

I wrote some tools in Javascript and Python to track and visualize a few aspects of close-to-real-time methamphetamine use in the San Francisco Bay Area. You can see all the tools here. Disclaimer: the intent here is just to demonstrate … Continue reading

Posted in medicine | Comments Off

Simple clinical reasoning using Kanren

Here’s an example of construction of a tiny ontology and use of a particularly robust logic programming system — Dan Friedman and Oleg Kiselyov’s Kanren and a functional language like Scheme: These are trivial examples. However, very sophisticated systems can … Continue reading

Posted in medicine | Comments Off

Gambit for Android v 0.2 Released

Gambit for Android version 0.2 is now available. Features added: Allows user to email developer a description and stack backtrace if a native code crash occurs Adding a new script adds to the beginning of the list, rather than the … Continue reading

Posted in android | Comments Off

From the chaotic

Hidden away in Frank Oppenheimer’s glorious Exploratorium is an unnamed, little-noticed exhibit. Thousands of tiny white spheres are enclosed between glass plates that form a plane, upon which the spheres are free to move. You give the whole thing a … Continue reading

Posted in mathematics | Comments Off

Gambit for Android

Release your inner nerd: Gambit for Android. Run the Gambit Scheme interpreter on your Android device.

Posted in android | Comments Off