Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

titivillus (7049)

  (email not shown publicly)

Journal of titivillus (7049)

Wednesday December 31, 2008
05:11 PM

Today's single Grr

AnyEvent::XMPP only installs if you go notest install with CPAN. Not preferable.
Friday December 26, 2008
08:58 PM

How do I program for Jabber?

I've got it in my mind that I want to be able to code some Jabber/XMPP stuff. Using Net::XMPP, I was able to get into sending stuff, but not really deal with the presence detection aspects. I looked at Net::XMPP2, but that is marked as depricated in favor of AnyEvent::XMPP. But if AnyEvent::XMPP exists, CPAN hasn't heard of it.

If you're going to program for Jabber with Perl, what modules do you use?

Sunday September 24, 2006
12:02 AM

Purdue.PM Technical Meeting

We went long. Which is to say, we chose long. 5:30-8pm. 2.5 hours of Perl. There were talks on Perl 6, the basics of regular expressions and brace styles (basically pimping PerlTidy, which is well worth pimping). We had a lightning-talk bit, where I talked about 5 things I wish I knew earlier in my Perl career, and I gave the talk I generally focus on, Stupid Web Agents in Perl. It remains to be seen whether this will become a big and vibrant group, but we had a bigger callout this time than I ever saw before, so maybe this will turn out to be something.
Wednesday July 19, 2006
11:08 PM

From Slashdot!

"Norvig clarified that it was not Berners-Lee or his group that he was referring to as incompetent, but the general user." Here I was, thinking we were arguing over Semantics...

I love this.

Saturday July 15, 2006
12:27 PM

GeekPAC, or League of Geeky Voters

I have voted in every presidential election, every off year election, and most primaries that have occurred since I turned 18. I have been a politically active person. And, when I was 21, I interned with a group in Washington DC, where I did worked with a senator's office on legislative issues.

And then I became a geek.

Starting with the DMCA, it struck me that this group and that group and the other group have voter guides, but my group, the geek group, don't have a senator's or congressman's voting record on the issues that I find important. I did find one for a high-tech industries group, but really, do you think that Steve Jobs and Bill Gates have the same positions on these issues that Richard Stallman, Eric Raymond and you do?

So, what a person needs to do -- notice how I'm cleverly not actually volunteering for this, yet -- is keep track of geek-related legislation, record votes, then set up a web page where you can say, for example, that you live in zip code 31337, and it'll tell you that that your senators are Chambliss and Isakson, this is how they voted, and this is how you can contact them. And in this environment, we know that making web pages is easy, and the hard part is collecting the data.

This is really the first step of grassroots activism, and unless and until we get a deep-pocket pro-netNeutrality, anti-DMCA, Lessig-compliant angel, this is the way we should go.

Sunday July 02, 2006
02:03 PM

A Sketchbook for an Intelligent Web Agent

I was looking through some stuff online and it struck me that an Intelligent Agent architecture would be fairly easy to implement, using only Open Source/Free Software tools.

The Agent would be running as a daemon, built using Perl and easily available Perl modules, for SOAP, CGI, AJAX and whatever else you need. Early in development, you'd have a collection of stump functions to call, and per Paul Graham, once you have a working Agent, you can add and extend functionality.

On the client side, you'd run Mozilla, and your agent communication code would run as a GreaseMonkey script set to run on every page, and probably sending the URL, REFERER and a few other points for each page.

You'd also have a Javascript-laden page on your sidebar, which uses AJAX to communicate with the Agent and present you with the data.

But what data?

I'm not actually sure yet. Depends on context. Depends on what you want. I can come up with a few usage scenarios, though.

1) You have 5 tabs open in Mozilla. They are the HTTP 1.1 RFC, documentation on CGI::AJAX, a Javascript tutorial, an article on and a web page you're using all the other documentation to put together. The sidebar scripting could tell you're looking at the RFC and tell the Agent, which uses a Google module to get other links to HTTP-related pages. Or it can take the data it has and know that your top 5 places to go in general are Google, Slashdot, O'Reilly, Use Perl and, and show links to those. Or, it can notice that the RSS for has changed and tell you that the new comic is up. I think that adding to what you can do with this framework would be easy. That is, once the framework is implemented.

Questions: 1) How easy is it to handle tabs in Javascript? Finding out how many windows and how many tabs are open, and what tab has focus, or whatever the terminology is.

2) How easy is it to write network traffic in Javascript? It should be a mostly solved problem, with AJAX, but I'll still have to look it up.

I figure once we get four things done (javascript code for pulling info about windows and tabs, a solid system for sending browse data to the Agent, AJAX communication between the sidebar and the Agent, decent installers for each part), development can begin on the interesting part, which is deciding what the Agent actually does.

Comment if you're interested, or at least think I'm on the good kind of crack.

Saturday July 01, 2006
11:00 AM

A Subject Is Required

Hi. I've read Use.Perl for a while but I just put in a login. My Perl self was energized by YAPC::NA and I feel like contributing. And Pudge is a really good musician!