Tuesday, August 30, 2005

The greatest realization

Did you ever have one of those days where you woke up. Got ready for work and school. Got to school and then realized you didn't have to do either because it was the last day before classes resumed and you had requested this day off of work?

No? Its quite possibly the greatest feeling in the entire world. *grins*

Sunday, August 28, 2005

Future Plans

I've gotten the blogger bot working about as solidly as I wanted it to. Its time to look into ATOM over XMPP and see how in the world that works. I still want to figure out how to support "conversations" with the bot such that there can be a question response question flow to user interactions as opposed to the command args method I use for interaction now.

It'd be nice to be able to have something like this:
me: post an entry
bloggerIM: What is the title of the entry
me: This is my title
bloggerIM: Your title is "This is my title." What would you like your post to say?
me: This is my post. I like this new bloggerIM conversation thing
bloggerIM: Now posting:
This is my title
This is my post. I like this new bloggerIM conversation thing
bloggerIM: Successfully posted entry #12345432354352435

Wouldn't that be nice! I don't know what exactly the best way to implement this without a massive sort of rewrite of the bot architecture.

Wednesday, August 24, 2005

xmpp2blogger running as bloggerIM@gmail.com

I am running a test instance of my script on this server. Don't use it if you are not going to do so at your own risk. The passwords for accounts are not stored on disk so if the script restarts you must reregister.

I am now dealing with a formatting issue related to escaping html entity chars: <:, >, and & . . . I don't have a good idea of which path to take.

(04:02:31) me: ?
(04:02:32) bloggerim: You've reached a bot, I don't know what to do, so I'm going to tell you a few things.
Unrecognized Command! Valid Commands:
"use blog #####" Change which blog you default to using.
"delete entry #####" delete's an entry from your registered blog
"get entry #####" get the details of a particular post.
"get recent" get the titles and ids of the 15 most recent posts.
"get all entries" get the titles and ids of the all your posts.
"register username password blog_id" Use this to register a blogger
  account and blog to your jabber ID. Please note, this password is stored
  unecrypted on the server's disk. People with access to this server have
  access to the password. Only use this bot if you trust me; meaning . . . its
  probably not the best idea.
"unregister #####" Remove your blogger account details from this bot's database.
"get details" Get information about your registered blog, including
  title, id and last modified date.
"post" Post an entry to blogger.com on your registered blog.To successfully post, you would compose a message with "post entry" online one. The next line is the title, leave it blank for no title. Anymore text in the messsage is considered the body of your post.
"search TERM" search your blog for entries containing your term
(04:08:27) me: register jlapenna password 8675309
(04:08:27) bloggerim: Registering Blog . . .
(04:08:27) bloggerim: You have registered blog #8675309 as jlapenna
(04:08:27) bloggerim: Retrieving Blog Details . . .
(04:08:31) bloggerim: Joe LaPenna's Stuffs
  Don't blame me for reading this.
Last Modified: 2005-07-18T05:00:00Z
Blog ID: 8675309
(04:08:42) me: search XMPP
(04:08:44) bloggerim: Results for XMPP:
XMPP Reading List (111125535275998998)

atom test (111854651847889769)

Things I would like to do. (111009939072894544)

mod_python request objects & caching (111497181797955680)

Too damn busy (112338791560376163)

gaim & jabber (111518882106858954)

Psi (111564453712206139)

The weekend (112468508488472037)

(04:08:50) me: get entry 111854651847889769
(04:08:50) bloggerim: Retrieving Entry . . .
(04:08:51) bloggerim: Title: atom test
Issued: 2005-06-11T22:21:58-05:00

<div>Tonight I'm going to make an xmpp bot to be used for posting to blogger. The first part is getting the
    ATOM API to work, which, it seems is
    working now. In fact, this very post was posted using python and the API!

socket problem?

My issues with by blogger bot have come down to one line:

Now to uncover the dirt that makes this a problem.

Sunday, August 21, 2005

The weekend

Title:The weekend Friday night I went with some guys from work to the Bottom Lounge to see Pretty Girls Make Graves. I would tell you how the show was but unfortunatly it was sold out. As a resu< we instead just hung out, ate at Pick Me Up's and walked around a bit. I returned home to the burbs and promptly went to sleep.

Saturday was nothing special either. I spent the morning/afternoon working on xmpp2blogger, my jabber bot and ATOM api for python. In the evening I went downtown again, this time to hang out with my buddy Chris's place. We walked around a bunch, got some pizza, watched the Family Guy movie and talked about Jesus . . . and how he's a tricky guy. There was this one time Jesus and I saw this guy with two cigarettes; one tucked into each ear. So I went up to him and asked, "Hey, can I bum a cig?" The guy was totally cool about it and handed me one. He then reached to his other ear to grab the second cigarette but there was nothing there. Jesus tapped him on the shoulder smiled and lit the cigarette he had taken when the guy was handing me his other one. The guy almost cried.

Lately I've been toying with the idea of registering a domain and hosting all of my friends websites. Kind of like a community hub for my group of friends. If people would be interested, I'd do it . . . Give me the word.

On the xmpp/blogger front, I've spend a good couple of hours hammering out the fixes needed to use the SVN version of pyxmpp. Additionally, I threw together a command line tool so that I can easily write my post in vim and upload. I'm hitting an awful bug when trying to connect to some jabber servers where pyxmpp throws an exception while doing some stream manipulation:

[jlapenna@zane] $ python2.3 blogger_bot.py -s joelapenna.com jlapenna@joelapenna.com 'password'
jlapenna@joelapenna.com/xmpp2blogger password joelapenna.com 5222 True
*** State changed: resolving 'joelapenna.com' ***
*** State changed: connecting ('', 5222) ***
*** State changed: connected ('', 5222) ***


/usr/lib/python2.3/site-packages/libxml2.py:2897: FutureWarning: %u/%o/%x/%X of negative int will return a signed string in Python 2.4 and up
  return "<xmlNode (%s) object at 0x%x>" % (self.name, id (self))
*** State changed: tls connecting <JID: u'joelapenna.com'> ***
*** State changed: tls connected <JID: u'joelapenna.com'> ***
No handlers could be found for logger "pyxmpp.StreamTLSMixIn"

Traceback (most recent call last):
  File "blogger_bot.py", line 492, in ?
  File "/home/jlapenna/src/code/xmpp2blogger/xmpp_bot.py", line 146, in Start
  File "/usr/lib/python2.3/site-packages/pyxmpp/client.py", line 240, in loop
  File "/usr/lib/python2.3/site-packages/pyxmpp/streambase.py", line 619, in loop_iter
    return self._loop_iter(timeout)
  File "/usr/lib/python2.3/site-packages/pyxmpp/streambase.py", line 629, in _loop_iter
    ifd, _unused, efd = select.select( [self.socket], [], [self.socket], timeout )
Now is the time to investigate.

Friday, August 19, 2005


The productivity of a person is directly related to the interest they hold in the role they are playing. For example: When I am at work and am doing something interesting I quickly lose track of time and soon not only are my tasks done, I feel content and excited that I've created, completed and finished something exciting.

The other side of the fence though is people who work in roles where thought is not necessary, every aspect of your job planned for you and the people above you do everything in their power to coerce you into making goals that you not only don't have the heart for but you don't have the resources to accomplish those tasks.

Thursday, August 18, 2005

Plazes is cool

I just found: Plazes Its a pretty nifty site that does social networking using geography and a nifty idea about mapping networks. I updated a python script to launch plazes and am awaiting a response from the original author with what to do to it.

Where am I? -Joe


Summer 2005
Course Credit Hours Grade
MATH 228 07.000 B
Your term GPA: 3.000
Your cumulative GPA: 3.460

Monday, August 15, 2005

BBQ Success

The BBQ was a big success, I even inspired someone to throw one of their own! Thanks to everyone who came. I hope you had a good time.

Saturday, August 13, 2005

High Load = Quality Audio

I'm getting some bad feedback/whining when hooking my server up to the PA. When I force the cpu load up to 100% the feedback stops. I wonder why this is happening?

while $( /bin/true ); do ls; done

Thursday, August 11, 2005


As titled by Josh, the BBQ is Saturday . . . I ordered Labatt Blue. I hope that is okay with everyone. I for sure have a C in Calculus, tomorrow is part two of the final, lets see if I can get (doubtful) a B.

I need less stress in my life, I'm getting out of control and I don't like myself behaving the way I've been.

Tuesday, August 9, 2005


Documenting for posterity

Sunday, August 7, 2005

Just in time for the BBQ!

Canon SD400

Now I can immortalize the barbeque.

PS. You're invited, August 13th, early evening till early morning.

Good news, Bad news

Bad news:
(11 + 80 + 14 + 95 + 14 + 15 + 77 + 18 + 15 + 78 + 20 + 120) / 630 = ~0.88

Good news:
(11 + 80 + 14 + 95 + 14 + 15 + 77 + 18 + 15 + 78 + 0 + 0) / 630 = ~0.66
(11 + 80 + 14 + 95 + 14 + 15 + 77 + 18 + 15 + 78 + 10 + 60) / 630 = 0.77

Better news:
(11 + 80 + 14 + 95 + 14 + 15 + 77 + 18 + 15 + 78 + 15 + 90) / 630 = 0.82

If I get 75% or more of the remaining points (>87 points) in the class, I get a B. If I get 36 more points this semester I don't have to take Calculus I again! Other than the fact that it is now impossible for me to get an A in the class, things are looking positive!

Saturday, August 6, 2005

Too damn busy

Alright, I'll admit it, I've gone too far over the edge. Too busy. Too little time. Too much stuff. Too little sleep. Too much to do. Too distracted. Too easily tired. Too boring.

This summer, as I've been ranting and raging about has been filled with three things: Work, School and Sleep. They are not the three things I wanted them to be. We're entering the second week of August and for the most part, this summer I've done the following:

  1. Worked
  2. Studied
  3. Hung out with friends four times
  5. See above
I wanted to:
  1. Hang out with friends every weekend
  2. Work on my programming projects, xmpp related as mentioned ---->
  3. Travel to another city
  4. Gone on a road trip with people
  5. Meet more people
  6. Spend more time in the City

Monday, August 1, 2005


Only 4 more days of new material, 2 tests and 1 quiz before I get a two week break and start all over again . . . . WEEEEEEEEEEEE!!! If I ace these next two tests, that spells an A for my final grade. Here's hoping . . .