Skip to content

Instantly share code, notes, and snippets.

@wojdyr
wojdyr / regarding-sf-mmcif-extension.txt
Created Oct 19, 2020
my thoughts about diffrn-data-set-extension
View regarding-sf-mmcif-extension.txt
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
View blt2.4z-configure.patch
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 Aug 28, 2011
script to send all messages in an mbox file to a specific email address, with various options
View mbox_send.py
#!/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 Mar 30, 2011
patch for GDI+ headers for cross-compiled MinGW
View mingw-gdiplus.diff
# 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 Jan 25, 2011
Updates older fityk scripts to the version 0.9.5
View fityk-script-to-0.9.5.py
#!/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