Stuff Michael Meeks is doing |
Older items: 2010: ( J F M ), 2009: ( J F M A M J J A S O N D ), 2008: ( J F M A M J J A S O N D ), 2006, 2006, 2005, 2004, 2003, 2002, 2001, 2000, 1999, legacy html
--with-system-nss or --with-nss-prefix
configure arguments ?
udisks-device-glue.h: /usr/share/dbus-1/interfaces/org.freedesktop.UDisks.Device.xml
"Policy is a poor man's substitute for common sense."
-- David Woodhouse
z-tensioner_1off.stl
appear to have un-cut-able layers missing GCode completely - most
odd. Having an SSD makes the laptop -so- quiet, and gives you
confidence that your data is stored on something solid, just the
tap of the keys for noise.
single file, containing GUI and
code, that can be compiled into .cxx & .h files by a
head-less binary is quite a nice model; why ? because
you still have a self-contained binary that doesn't drag XML
files with it (across platforms), and it is easy:
fluid -c UI.fl is pretty simple to add to a
Makefile. We should have done this years ago with glade 1: it
would be have been pretty trivial.
void Fl_Widget::label (const char *a); -
used to set the label on a widget. As a thing of
beauty it stores the raw const pointer value. But - as a
bonus there is extra code and lifting for a
Fl_Widget::copy_label (const char *a); that
does the sane thing. Don't assume other toolkits share good
taste in copying conventions.
sprintf the C++ way is unutterably
lame; at least - as I understand it (perhaps that is the
problem). Full of enthusiasm for the C++ way, I wrote this
sort of thing
using std::stringstream oss;:oss << "You are " << setw(2) << years << " years " << months << " months old\n";dbg << "data is: " << a << ", " << b << ", " << c << "\n";
etc. I guess you have to compile them out. A more discerning va_arg
version (in C++) could still do nice, powerful object printing
(perhaps) but with less of a footprint. Then again, I guess C++'s
hidden pointer adjustment makes var arg functions something of a
pain static_cast<> wise.
-Wall is almost as lame as python in that
regard. Discovered a number of other sillies eg. people assuming
the compiler will do string uniquification and they can do:
if ("Pause" == "Pause") type things (with some
added indirection) in C.
Missing docstring, but nothing else. Of course it generated a
ton of false positives - un-loved variable names etc. Tried to clean it
up a little, caught exactly zero real bugs; sigh.
# CairoContext, Process, ProcessTree, float, float, Tuple(x,y,w,h), Tuple(x,y,w,h)
def draw_processes_recursively(ctx, proc, proc_tree, y, proc_h, rect, clip) :
And of course just that simple example took me sixty seconds
to unwind: dig back to each constructor to be sure.
def test:
def doit():
# some code, conditions, forget to return ...
a = doit()
if a: # is not None
# do something.
Nice; I spent half an hour finding the missing return.
As a helpful reminder, here is what a real language would say:
doit.c:8: warning: control reaches end of non-void functionvoid non_obvious_mutator (int &x);
and so on.