Computers: May 2012 Archives

Mac::Glue Feature Addition

| | Comments (0)

One of the features I never got around to in Mac::Glue was explicit support for "tell"ing an object.

In AppleScript, you normally do a tell app "Foo" to open something, and in Mac::Glue it's $foo->open($something). Similarly, you can in AppleScript do tell app "Foo" to tell something to do_something. In Mac::Glue there's no real analogue to this. Sometimes you can do $something->do_something(), but sometimes you can't.

So I've got some basic support for a $something->tell->do_something(). It seems to be working well, but I need some more testing and cleanup. And then my first CPAN release in ... a few years now, I guess.

Infrared Debugging

| | Comments (0)

Today my infrared remotes stopped working properly. Maybe one command in a dozen would do anything, unless I was right up close to the IR receiver.

I have an IR receiver embedded in the wall of my family room, and it's wired to a repeater in my front closet where my components are, and each of those has an IR emitter on it. On the other side of the closet is the bedroom, and some of the components -- DirecTV DVR, PS3, AppleTV -- are connected (through a 4x2 HDMI selector) to the TVs in both rooms, so I have an additional IR receiver in the bedroom. Works great, but today, the IR performance was massively degraded.

I tried switching out the repeater, tried jiggling wires, did a bunch of testing ... nothing worked. Finally I removed the second receiver from the wiring, and everything went back to normal. I went into the bedroom and saw that a bright white envelope was directly in front of the IR receiver. Directly above the receiver was the red LED from the TV to indicate it was off. So it seems the red LED was reflecting off the envelope, back into the IR receiver, and causing just enough interference that I couldn't see it show up in the "talkback" LEDs on the emitters or receivers, but it was still preventing proper communication.

It reminds me a lot of the software debugging I've done over the years.

<pudge/*> (pronounced "PudgeGlob") is thousands of posts over many years by Pudge.

"It is the common fate of the indolent to see their rights become a prey to the active. The condition upon which God hath given liberty to man is eternal vigilance; which condition if he break, servitude is at once the consequence of his crime and the punishment of his guilt."

About this Archive

This page is a archive of entries in the Computers category from May 2012.

Computers: October 2010 is the previous archive.

Computers: September 2012 is the next archive.

Find recent content on the main index or look in the archives to find all content.