Adobe Flash Player, MS Windows 8/8.1, and MS IE 10/11

Yeah sure enough, Windows 8/8.1 and IE 10/11 has its own builtin Flash player. This highly potent combination outright refuses you to download the real Adobe Flash Player from Adobe’s website. It hasn’t occured at all to Microsoft that we, the users, might need the real Adobe Flash Player for software other than IE, say Adobe Acrobat Pro. Way to go Micro$oft! Continue reading Adobe Flash Player, MS Windows 8/8.1, and MS IE 10/11

Detecting clang in C code

If you’re looking for a way to detect when your code is being compiled by clang, try the command

clang -dM -E -x c /dev/null

In the large list presented, you’ll find these macros the most interesting ones:

#define __clang__ 1
#define __clang_major__ 3
#define __clang_minor__ 3
#define __clang_patchlevel__ 0
#define __clang_version__ "3.3 (tags/RELEASE_33/final 183502)"
#define __llvm__ 1
#define __GNUC__ 4
#define __GNUC_MINOR__ 2
#define __GNUC_PATCHLEVEL__ 1
#define __VERSION__ "4.2.1 Compatible FreeBSD Clang 3.3 (tags/RELEASE_33/final 183502)"

Continue reading Detecting clang in C code

Functions with cases in LibreOffice Math

Type this in LibreOffice Math:

f(x) = left lbrace matrix{
x^2        # {} # nitalic if # x < 0      ##
x^3        # {} # nitalic if # 0 <= x < 3 ##
x^2 over 2 # {} # nitalic if # x >= 3
} right none

newline
newline
newline

f(x) = left lbrace matrix{
x^2   # {} # nitalic if # x < 0      ##
x^3   # {} # nitalic if # 0 <= x < 3 ##
x^2/2 # {} # nitalic if # x >= 3
} right none

and you’ll get: Continue reading Functions with cases in LibreOffice Math

Trouble upgrading older Subversion on recent FreeBSD? You might be missing devel/scons

I upgraded Subversion 1.8.1 to 1.8.5 on some non-critical FreeBSD servers the other day. Normally I would run this command:

portupgrade -fprv devel/subversion

I noticed www/serf also needed updating, so this time I ran a command like:

portupgrade -fprv www/serf

Continue reading Trouble upgrading older Subversion on recent FreeBSD? You might be missing devel/scons