Random ramblings about Mac, Python, TeX, programming, and more  |     |          |     |  


Using PlistBuddy when I want to open Emacs from a link in an HTML file on OS X

December 14, 2017  |  os-x, web, programming

Previously, I have discussed How to open Emacs from a link in an HTML file on Mac OS X. This post is just to give a complete overview of how this can be done without to many manual tasks. My complete AppleScript program and its Makefile is available for download. It should only be used with your own modification.  It includes the usage of cvs to commit the changes in the bib files to my local cvs- …

Last updated: December 14, 2017

Open Emacs from a link in an HTML file on Mac OS X

December 14, 2015  |  os-x, web, programming

Since I do most of my writing in LaTeX, I have all my references (publications I cite when I write papers) in a series of bib-files (for BibTeX). To easier browse and search these references I have created a small Python script that generates a HTML document with all these references. Each reference also includes a link to the bib-file this reference was found in. In the link I include the key of …

Last updated: December 14, 2015

Automate tasks with AppleScript, Fake, and the keychain

April 27, 2015  |  tools, os-x, web, programming

You can make life a lot easier on your Mac if you learn how to automate things. The standard approach to do this on Macs are to use Automator (see How to use Automator: What Automator is and how it works from Macworld UK). If you include AppleScript, Fake, and the keychain in your toolchain, you can achieve even more. As an example I will develop an automated task to create a new email alias usin …

Last updated: April 27, 2015

Including source code in papers and on the web

March 20, 2015  |  tools, programming, python, publ, web

I've written many papers and a lot of web pages that includes source code. Since Python code was an important part of my Dr. thesis, I even wrote a tool to generate a pretty-printed Python code for LaTeX (this was written in 1997, but since I've been using it ever since it has had a few minor bug fixes since then; however, it needs Python 1.6 and it was the first Python program I ever wrote!). Jus …

Last updated: March 20, 2015

Generating a BibTeX file from Cristin data

October 8, 2012  |  publ, web, python

Based on the previous script generating HTML from Cristin data, I created another script generating a BibTeX file from the same JSON data. The script has the same limitations as the previous one, but it should be easy to modify for your needs. Have fun!

Last updated: October 8, 2012

Fetch and process information from Cristin

October 6, 2012  |  publ, web, python

Yesterday I wrote a small Python script to fetch and generate a publication list for web-pages. I use a web-services (ws) provided by Cristin (Current research information system in Norway). Cristin is a research information system for hospitals, research institutes, and universities and university colleges. From the provided ws I use the method hentVarbeiderPerson (see Brukerdokumentasjon Cristin …

Last updated: October 6, 2012