[morris type=”Donut” element=”donut-div” xkey=”” ykey=”” labels=””] {label: “Download Sales”, value: 12}, {label: “In-Store Sales”, value: 30}, {label: “Mail-Order Sales”, value: 20} [/morris]
[morris type=”Bar” element=”bar-div” xkey=”y” ykeys=”‘a’, ‘b'” labels=”‘Series A’, ‘Series B'”]{ y: ‘2006’, a: 100, b: 90 }, { y: ‘2007’, a: 75, b: 65 }, { y: ‘2008’, a: 50, b: 40 }, { y: ‘2009’, a: 75, b: 65 }, { y: ‘2010’, a: 50, b: 40 }, { y: ‘2011’, a: 75, b: 65 }, { y: ‘2012’, a: 100, b: 90 }[/morris]
[morris type=”Line” element=”line-div” xkey=”y” ykeys=”‘a’, ‘b'” labels=”‘Series A’, ‘Series B'”]{ y: ‘2006’, a: 100, b: 90 }, { y: ‘2007’, a: 75, b: 65 }, { y: ‘2008’, a: 50, b: 40 }, { y: ‘2009’, a: 75, b: 65 }, { y: ‘2010’, a: 50, b: 40 }, { y: ‘2011’, a: 75, b: 65 }, { y: ‘2012’, a: 100, b: 90 }[/morris]
[morris type=”Area” element=”area-div” xkey=”y” ykeys=”‘a’, ‘b'” labels=”‘Series A’, ‘Series B'”]{ y: ‘2006’, a: 100, b: 90 }, { y: ‘2007’, a: 75, b: 65 }, { y: ‘2008’, a: 50, b: 40 }, { y: ‘2009’, a: 75, b: 65 }, { y: ‘2010’, a: 50, b: 40 }, { y: ‘2011’, a: 75, b: 65 }, { y: ‘2012’, a: 100, b: 90 }[/morris]
I wrote the following plugin using the Pidgin Purple Perl_API. It’s pretty simple and to the point without too many bells and whistles.
We use an XMPP (jabber) chat room to communicate at work. That’s mostly for internal communication. Recently we added an external hookup to a campfire chat room via tinder. The campfire chat room is mostly for customers requesting support.
The problem is that when a customer enters the chat room, pidgin will display something like the following:
(02/23/2011 07:35:36 AM) Tinder: James Bond in Customer Service Desk: EnterMessage
There’s no way to make pidgin understand that’s a new user logging in as the ‘Tinder’ user is already logged in. Is there?
Here’s the codeI moved the code to github, including some enhancements from Adrian Deac. put the code in a file named ‘chatpounce.pl’ in your .purple/plugins/ directory
It’s been fun brushing up on my perl skills. I may write another plugin (to edit timestamps display) later as well…