May 052015
 

First L-sit on rings, May 5 2015.

TBH I am quite proud of this. Writing this as of Jul. 11, but sticking with the May date because, frankly, I have not improved by much in the interim… a couple more seconds maybe.

Sep 242014
 

So, I came across this site last night when scouting around for tools/sites that Eldest child might like to use as he gets to grips with programming, that is to do so without my necessarily having to hold his hand. The decisions I might make may or may not be reasonable or even appropriate. Better that he get a variety of experienced feedback from others (I will always be there), and in whatever language he chooses.

exercism.io is, essentially a community. Programming exercise sets, in numerous languages, are submitted and vetted by the community. One downloads these exercises, writes code, and submits waiting for feedback. It is not a learning environment per se, well not in the “instruct me” sense at least.

I find it fascinating because it is NOT based on a spiffy AJAXed-up website with its own editing environment and submit process. One installs a simple CLI tool, and uses that to download and submit to git. Submitted ruby code for calculating hamming distances in genetic sequences this AM to see how it all worked together, and it did. Flawlessly. I guess the downside is that one needs an environment set up on a machine, and a workflow, and #1 Son doesn’t have that yet. That, and I don’t think the problem sets would exactly tickle his curiosity.

There are several options for the CLI program install, one of which uses homebrew. I chose that, and in the process cleaned-up a three-plus-year-old-install of that.

Sep 232014
 

I keep meaning to get around to do this, but never do. This evening I took a look at exercism.io and the installation of its CLI program had a homebrew option, so then was a good a moment as any, that and with the imminent relsease of OS 42 (X.10.10)…

$brew -v

==> 0.9.5

$sudo chown -R `whoami` /usr/local
$cd /usr/local
$git fetch origin
$git reset --hard origin/master
$brew cleanup
$brew upgrade

==> ALL OK!

$brew update

==> Err. re. tap … but mostly OK.
–exercism install–

$brew tap homebrew/binary
$brew install exercism

==> Err 🙁 “no available formula for exercism” “searching taps…”

$brew untap homebrew/binary
$brew upgrade
$brew update
$brewcleanup
$brew tap homebrew/binary
$brew install exercism

==> DICE

$exercism configure --key=MY_API_KEY

==>config at ~/.exercism.json
==> API key is in accounts at exercism.io

 

Sep 072014
 

A man left to his three sons seventeen camels. 

To the first son, he left half the camels. To the second son, he left a third of the camels, and to the youngest son, he left a ninth of the camels. 

The three sons began to argue for seventeen doesn’t divide by two. It doesn’t divide by three. It doesn’t divide by nine. In desperation, they went and they consulted a wise woman. she thought about their problem for a long time, and finally said, “Here, you can have my camel.” 

So then they had eighteen camels. The first son took his half — half of eighteen is nine. The second son took his third — a third of eighteen is six. The youngest son took his ninth — a ninth of eighteen is two. 

That’s seventeen camels. The one camel they had left over they gave back to the wise old woman.

Sep 052014
 

As of posting there is no result from google search for “borschtard”; I sort of lay claim, therefore, to this portmanteau. This blend of borscht and bastard has no meaning. One could take it as a Russian racial slur, I suppose. Or, it could be indicative of very bad, borsctardized, eastern European cooking. Either way, “I like it” and, like General Sir Cecil Hogmany Melchett, shall “want to use it more often in conversation.”

Sep 012014
 

Happy enough with the output of koiné word of the day for the time being. Maybe I’ll make it into a wordpress plugin or something at some point in the future, but probably not. For now it makes sense to have the local script interface with WordPress’ APIs. ONe of the more commonly used and updated rubygem is rubypress, so let’s start there.

$gem install rubypress

==> write permission error

$sudo chown -R `whoami` /Library/Ruby/Gems/2.0.0
$gem install rubypress
$sudo gem update
$sudo gem install rubygems-update
$sudo update_rubygems
$sudo gem update --system
$gem -v

==> 2.4.1

Try connecting:

require 'rubygems'
require 'rubypress'
wp = Rubypress::Client.new(:host => "stephen.yearl.us",
:username =>; "foo",
:password =>; "bar")

p wp.getOptions

==> 403!

Hmm. Tried connecting with a third-party blogging tool (Pixelpumper) and the same 403! This post is interesting, and the highest ranked answer (http://stackoverflow.com/questions/9141497/wordpress-403-forbidden-error) suggests trying the plugins. What fun.

I only uninstalled a few of the the most recently installed plugins back until I remember this not being an issue and still no dice, so it was back to Google, and it shortly became apparent that xmlrpc.php had been the target of a number of pingback DDOS attacks recently. I contacted my hosting provider, and sure enough they had disabled access to xmlrpc.php, but did offer the tantalising possible solution of obfuscating the name and location of xmlrpc, and installing a plugin, “Rename XMLRPC”: https://apps.wordpress.org/support/#faq-ios-12 Well, no dice here either!

It’s something of a pain not to be able to use a third-party blog editor, but I am not at this often enough for that to be a real hassle. I guess the next thing to do is to dig into the structure of Ruby gems, and see if I cannot override the call to xmlrpc.php to some obfuscated version of it.


$gem list

==> rubypress (1.0.8)

$gem contents rubypress
/Library/Ruby/Gems/2.0.0/gems/rubypress-1.0.8/lib/rubypress.rb
/Library/Ruby/Gems/2.0.0/gems/rubypress-1.0.8/lib/rubypress/client.rb
/Library/Ruby/Gems/2.0.0/gems/rubypress-1.0.8/lib/rubypress/comments.rb
/Library/Ruby/Gems/2.0.0/gems/rubypress-1.0.8/lib/rubypress/media.rb
/Library/Ruby/Gems/2.0.0/gems/rubypress-1.0.8/lib/rubypress/options.rb
/Library/Ruby/Gems/2.0.0/gems/rubypress-1.0.8/lib/rubypress/posts.rb
/Library/Ruby/Gems/2.0.0/gems/rubypress-1.0.8/lib/rubypress/taxonomies.rb
/Library/Ruby/Gems/2.0.0/gems/rubypress-1.0.8/lib/rubypress/users.rb
/Library/Ruby/Gems/2.0.0/gems/rubypress-1.0.8/lib/rubypress/xml_rpc_retryable.rb
$cd /Library/Ruby/Gems/2.0.0/gems/rubypress-1.0.8/lib/

And looky what’s inside client.rb!

...
module Rubypress

  class Client

    attr_reader :connection
    attr_accessor :port, :host, :path, :username, :password, :use_ssl, :default_post_fields,
                  :debug, :http_user, :http_password, :retry_timeouts

    def initialize(options = {})
      {
        :port => 80,
        :use_ssl => false,
        :host => nil,
        :path => '/xmlrpc.php',
        :username => nil,
        :password => nil,
        :default_post_fields => %w(post terms custom_fields),
        :debug => false,
        :http_user => nil,
        :http_password => nil,
        :retry_timeouts => false
      }.merge(options).each{ |opt| self.send("#{opt[0]}=", opt[1]) }
      self
    end
...

Problem solved!
 

Jul 232013
 

suck-meter
Another consultation with surgeon again today– he’s not happy with the scarring; not happy at all. All kinds of adhesions going on in that Zone V of mine. The plan now is for another month of increasing exercises, vibration and ultrasound therapy, then, maybe, cortisone injections. At that point a determination will be made about his potentially opening me up again for remedial tenolytic work.

“It has been documented the up to 20% of patients will develop adhesions which requires tenolysis or tendon grafts [2]”

In most cases, full and normal movement of the injured area does not return after surgery. If it is hard to bend the finger using its own muscle power, it could mean that the repaired tendon has pulled apart or is bogged down in scar tissue. Scarring of the tendon repair is a normal part of the healing process. But in some cases, the scarring can make bending and straightening of the finger very difficult. Depending on the injury, your doctor may prescribe therapy to loosen up the scar tissue and prevent it from interfering with the finger’s movement. If therapy fails to improve motion, surgery to release scar tissue around the tendon may be required.
~ http://www.assh.org/Public/HandConditions/Documents/Web_Version_PDF/flexor_injuries.pdf

Ugh. We shall never know the concert pianist I might have become.

scar mobilization
Adherent scars can significantly limit AROM and can be difficult to mobilize. It is important to mobilize this adherent scar tissue from the underlying structures. A technique I have found useful is to use dycem to increase the hold the therapist has of the scar tissue. The patient can move the involved joint while pushing the scar in the opposite direction to free the scar from the underlying tissue. For example, have the patient make a fist while the therapist uses dycem placed over the scarred tissue and pushes the scar proximally. This can be aggressive scar management so the therapist must be careful to respect the patients response and monitor their levels of discomfort.
~ http://www.handtherapyresources.com/content/scar-mobilization

Early Active Motion after Flexor Tendon Repair (cap. 39 Hand Surgery, 2004)

Social Widgets powered by AB-WebLog.com.