Archive for the ‘Programming’ Category

Tools for Writing Mathematical Blog Posts

Wednesday, 9 March 2016

My previous post was written with the help of a few very useful tools:

  • LaTeX mathematical typesetting
  • Gummi LaTeX editor
  • Python programming language
  • PyX Python / LaTeX graphics package
  • my own PyPyX wrapper around PyX
  • LaTeX2WP script for easy conversion from LaTeX to WordPress HTML

QiX

Tuesday, 24 November 2015

This is a link to a historical project of mine, hosted on Albert Gräf’s project page.

QiX is a library for Albert Gräf’s Q programming language adding support for univariate polynomials.

There is full documentation available.

Q+Q

Tuesday, 24 November 2015

This is a link to a historical project of mine, hosted on Albert Gräf’s project page.

Q+Q is a library for Albert Gräf’s Q programming language adding support for the rational numbers, ℚ.

There is full documentation available.

C++ Style

Tuesday, 12 July 2011

There are plenty of resources concerning C++ coding style, or coding style more generally.

Here I describe some of my own programming style preferences that I have not seen described elsewhere.

(more…)

BitRock Style: Miscellaneous Notes on Coding Style for BitRock InstallBuilder

Tuesday, 12 July 2011

Although BitRock InstallBuilder has a GUI, it is also practical to edit the sources, which are XML files, in an editor.

Beware that when you save the sources from the GUI, hand-edited files may be reorganised. For example, in many cases element siblings are rearranged into a sorted order. (Also beware that hand-edited files are not automatically re-loaded by the GUI; you must do this explicitly.)

Here I make some suggestions for trying to keep BitRock sources readable.

(more…)

BitRock Tip: Determination of Architecture + Platform

Tuesday, 12 July 2011

In BitRock InstallBuilder, defining folders specific to 32-bit and/or 64-bit architectures and Linux and/or Windows is simple but not entirely obvious. Here are some recipes.

(more…)

SVN Tip: Find/Grep but excluding .svn (Linux)

Saturday, 5 February 2011

Here I give Linux commands to allow the searching for filenames or strings within files without descending into the <.svn> subdirectories.

(more…)

SVN: Problems Applying a Patch Cross-platform

Wednesday, 8 December 2010

Suppose you have a set of changes on a Windows machine ready for commit. However, before committing, you’d like to check compilation on your Linux box. So, you create a patch file with a command such as

C:\my-dir> svn diff > patch.diff

Having copied the patch to your Linux box, you try the command

/home/me/my-dir$ patch -p0 < patch.diff

Unfortunately, you see many problems of the form

Hunk #1 FAILED at 234.

What is wrong?

(more…)

Absolute, Relative, and Splitting Paths in Bash

Tuesday, 1 December 2009

The main stumbling block with splitting paths in Bash is converting a relative path into an absolute one.

Searching the Internet I found many partial solutions, but none was entirely satisfactory. There may be a better solution out there, but I didn’t find it.

(more…)

Palindromes

Friday, 20 November 2009

Running a simple script over a file containing a list of basic English words revealed the following palindromes.

(more…)