Over at sixuntilme, Kerri’s listed six of her diabetes “bad habits.” I thought I’d share mine; I can’t do six, but here’s four:
Not changing finger-stabber needle
I’m not quite leaving these until they are rusty, but not far from it! I have recently switch to using the Accu-Chek Multiclix, which has a drum of stabbers in which you rotate around after use. I’m not changing the drum daily – more like twice a week – but I’m working on it.
Autopilot basal rates
Since starting the pump about a year or so ago, it’s changed my life; it’s wonderful. However, there are times when I know I need to do a period of intensive testing so I can assess and make changes to basal rates. In fact, I need to do that right now, but it feels too much like work so I keep putting it off. Maybe later this week!
Selective memory for glucose trends
It has been known that when I visit my diabetes care team, I get very guilty and start making up all sorts of crazy excuses when they point out the very obvious which I’ve somehow missed. Probably linked to point 2 above. I ought to put some time aside every couple of weeks to adjust the basals.
Bolus-Stacking
Same as Kerri. For an explanation for those not in the know, see this post of Kerri’s from 2005.
Ray 6:18 am on May 14, 2010 Permalink |
Hey Paul,
Was meaning to reply to this the other day, but got sidetracked!
Just tried it and it does what I want it to do, except for one instance.
I’m trying to override a string that BP uses on an AJAX request (in my case, when a private message is sent, BP outputs a message).
I’ve tried overriding the string by hooking into the “init” action, but not sure if this is the correct action I should be hooking into.
Here’s the full function:
function ray_override_l10n() {
global $l10n;
$mo = new MO();
$l10n['buddypress'] = &$mo;
if ( isset( $l10n['buddypress'] ) ) {
$l10n['buddypress']->entries['There was an error sending that message, please try again']->translations[0] = 'You are not friends with the person(s) you are attempting to send a message to. Your message has not been sent.';
$l10n['buddypress']->entries['There was a problem sending that reply. Please try again.']->translations[0] = 'You are not friends with the person(s) you are attempting to send a message to. Your message has not been sent.';
}
}
add_action( 'init', 'ray_override_l10n' );
Any ideas?
Paul Gibbs 7:18 am on May 14, 2010 Permalink |
For Welcome Pack’s email feature, I use the above technique and have it hooked in like so:
add_action( 'init', 'dpw_load_dynamic_i18n', 9 );Have a look dpw_load_dynamic_i18n() in Welcome Pack’s core.php. It is a bit hard to read as there’s a pair of nested FOR loops, but would suggest you use MO->add_entry() etc rather than write directly to the arrays. I think I switched to doing that after I wrote the above post.
Ray 8:10 am on May 14, 2010 Permalink |
Paul, thanks for the moment of clarity!
Of course it has to do with setting the priority for the init action! *slaps head*
Thanks also for the add_entry() tidbit, I’ll look into that!