Skip to content

Instantly share code, notes, and snippets.

@wojdyr
wojdyr / regarding-sf-mmcif-extension.txt
Created October 19, 2020 14:02
my thoughts about diffrn-data-set-extension
Dear All,
I read carefully the proposal. I'm involved in handling SF-mmCIF from
both sides: preparing files for deposition and adding support for
reflection mmCIF files in programs such as Aimless. So I took time to
think about the proposal, to check examples, check how unmerged data
is handled in imgCIF, how it is currently stored in the _diffrn_refln
category in the 328 PDB entries that use this category, how it is
stored in different formats that we will need to convert between (MTZ,
XDS ASCII) and, to get a wider perspective, over the last months I
This patch adds OSX support (based on a patch from fink)
and avoids discarding LDFLAGS on Linux.
--- blt2.4z/configure.bak 2013-03-29 00:38:08.062508923 +0000
+++ blt2.4z/configure 2013-03-29 19:46:30.911489694 +0000
@@ -3396,6 +3396,9 @@
*-hpux*)
SHLIB_SUFFIX="sl"
;;
+ *-darwin*)
+ SHLIB_SUFFIX="dylib"
@wojdyr
wojdyr / mbox_send.py
Created August 28, 2011 08:14
script to send all messages in an mbox file to a specific email address, with various options
#!/usr/bin/python
"""\
A command-line utility that can (re)send all messages in an mbox file
to a specific email address, with options for controlling the rate at
which they are sent, etc.
"""
# I got this script from Robin Dunn a few years ago, see
# https://github.com/wojdyr/fityk/wiki/MigrationToGoogleGroups
@wojdyr
wojdyr / mingw-gdiplus.diff
Created March 30, 2011 14:36
patch for GDI+ headers for cross-compiled MinGW
# GdiPlus headers for MinGW and description why they are needed
# can be found in several locations:
# http://www.miscdebris.net/blog/2009/09/17/adding-gdi-headers-to-mingw-to-compile-wxwidgets-with-wxgraphicscontext-support/
# http://www.codeproject.com/Tips/75491/GDIplus-Programming-With-MinGW.aspx
# http://code.google.com/p/wxmax/downloads/detail?name=gdiplus_includes.zip
#
# The patch below, applied to these headers, allows cross-compilation on Linux.
# It fixes two issues: mismatching case in header names (we are case-sensitive
# on Linux) and extra-qualification (it gives an error in recent GCC versions).
@wojdyr
wojdyr / fityk-script-to-0.9.5.py
Created January 25, 2011 00:04
Updates older fityk scripts to the version 0.9.5
#!/usr/bin/env python
# Updates older fityk scripts to the version 0.9.5.
# Should work with scripts for versions 0.8.6-0.9.4
# Feedback is welcome (wojdyr@gmail.com).
usage = """\
Usage:
fityk-script-conv-to-0.9.5.py old-script.fit [new-script.fit]
or