Recently in metablog Category

Sunday, March 7, 2010, at 9:36 AM

I have been very busy, what with my professorial duties, and making the Pet Labour Troll, and building my new house. But today I can at least spend a little time trying to finish coding this blog. To which end, I have just added some scripting that posts every new entry to my Twitter feed. If it works (and it ought to work), there will be a brand new status update as soon as I submit this entry, that says, “blogged on seangleeson.com: ‘And now, my blog posts to Twitter’” (because that is the title of this entry) along with a shortened URL.

Of course, there are myriad services and plugins already extant that do pretty much exactly the same thing. But just as with my Facebook app, the hangup there is the “pretty much” part. None of them does exactly what I wanted, with the wording I wanted, or my desired algorithm for shortening the text if it exceeds 140 characters. This one is just what I wanted. (Phoebe too, I think.) And using my own script means I can use my own URL shortener as well.

So now, all y’all who follow my Twitter feed (I believe there were five of you, last I checked) never need to miss a blog post!

Comments on this entry:

There are 3 comments on this entry.
#1
8 Mar 2010
11:45 PM

You are so wonderful.

#2
12 Mar 2010
12:42 AM

Hey darlin, me again. Tell your students they have to make this for the next quiz: http://www.youtube.com/watch?v=-0Xa4bHcJu8

#3
2 Apr 2010
8:08 AM

Great way to expand to reach a new audience. Go Twitter!

I hope all goes well for you :)

Sunday, February 14, 2010, at 2:01 PM

I’ve got some extra-fancy code serving ads on this blog. Which ads you see on the page depend on how you got to the page. If you arrived here from a major search engine (e.g., Google, Yahoo, Bing) in the United States or Canada, you are seeing ads by Chitika. (I keep wanting to call them “Chikita,” like chiquita, but it’s Chitika.)

Chitika is pretty neat; their ads only show up for search-engine-referred traffic, and not for any other traffic. So, for instance, someone who got here via a Google search for “celebrity lingerie” would see some Chitika ads all about celebrity lingerie. But the folks who just came here because they like the blog, or followed a link from somewhere else, will never see any Chitika ads at all. I like that.

For all the pageloads that don’t get the Chitika treatment, I’ve got a Google AdSense ad in the sidebar. The last time I used AdSense was quite a few years ago, so I thought surely it must be vastly improved by now: better controls and filters, easier interface. But no, it’s pretty much how I remembered it.

I do like how AdSense text ads can be customized to blend tastefully with my site’s design, but I wish there were some better ways to control which ads I will allow. (Yes, I can block ads from any URL I don’t like, but wouldn’t it be so much better to block ads for products or services I don’t want to advertise?)

And finally, for those occasions when AdSense doesn’t have any relevant ads to display, I fill the sidebar spot with my own house ads, such as for games I have made, or websites I like. These won’t show very often, so I’ll show you a couple now. These two are for games I made:

Dashabooja -- it's like poker, but with ten hands. Wichita Faro -- The authentic card game of the Old West.

And these three are for games by my bestest friends at Pixelatrix Games:

Haven -- Solve the mystery of the haunted asylum. House -- You can get in, but can you get out? Shipwrecked -- An adventure in the jungle.


Topic:
Permalink No comments yet Add your comment
Saturday, February 13, 2010, at 9:51 PM

Over the past week, I have been learning how to write a Facebook application, so I could make our blogs post links on Facebook automatically every time we write a new entry. I noticed that there were services that did this already (such as Networked Blogs and Ping.fm), but none of the ones I found did exactly what I wanted, so I wrote my own. That’s just how I roll.

I had to read a lot of the Facebook Developers Documentation to get their API specs, especially the FBML language reference.

I’ve tested the code, and it works, but I haven’t actually gone live with the actual automatic posting yet. That will happen tomorrow.

UPDATE: Yep, totally works. Now I can do other stuff.


Topic: ,
Permalink No comments yet Add your comment
Wednesday, February 3, 2010, at 9:32 AM

Yesterday, in addition to making my PHP workaround, I also wrote a Movable Type plugin I call “True Comment Number.” If you look at an entry on this blog that has comments, you’ll notice that I number them, starting with “1” for the first comment, and going up from there. This numbering was not working properly with paginated comments, so that’s why I wrote True Comment Number.

Anyone who wants my plugin may download TrueCommentNumber.zip and use it.


Topic: ,
Permalink No comments yet Add your comment
Tuesday, February 2, 2010, at 6:56 PM

I just fixed a couple more Movable Type things. I reckon I must have the only working copy of MT5 in the whole world. Today I did a number of fixes to the new-fangled comment pagination feature.

Comment pagination is pretty cool. We’ve all been to blog pages with hundreds and hundreds of comments, and seen how such a huge page can clobber your browser. But the Movable Type comment pagination lets you only show a limited number of the most recent comments on your page, then uses AJAX to navigate to newer or older comments, without reloading the whole page.

The only problem was, it didn’t work. There were two or three problems I had to track down and fix. First of all, my blog (at seangleeson.com) is on a different domain from my MT installation (at mt5.gleeson.us). But the comment pagination script relies on an XMLHttpRequest, and as we all know, cross-domain XMLHttpRequests are illegal! The blog page was requesting a batch of comments from mt5.gleeson.us/mt-comments.cgi, and getting denied.

I fixed this problem by putting a very simple PHP script at seangleeson.com/commentlisting.php. All this script does is act as a go-between, a middleman. It gets the request from the blog page, passes it along to the MT script, gets an answer from the MT script, and passes it back to the blog page. So now the blog has a legal place to send its XMLHttpRequest.


Topic: ,
Permalink No comments yet Add your comment
Sunday, January 31, 2010, at 11:35 PM

Once again, I have had to hack Movable Type’s Perl source code to fix an error they made. The <mt:Comments> tag that loops through the comments takes an argument “lastn” which is supposed to tell it how many of the most recent comments to retrieve. But instead of retrieving the n most recent comments, MT was retrieving the n oldest comments! Exactly the opposite of what it was supposed to do!

This bug has been known to the MT community for quite awhile. Apparently, it cropped up in version 4.3, and here we are in version 5 and it’s still there! I didn’t see anyone with any good hacks to fix it, so I figured this one out myself. I do dislike hacking the source code (I have said this before), but when you gotta, you gotta.

Comments on this entry:

There are 4 comments on this entry.
#1
1 Feb 2010
5:37 PM

Looks good on my Android phone. I’ll check it out when I get home from my walk to the (closed) butcher shop.

#2
1 Feb 2010
5:40 PM

But why are you walking to the closed butcher shop? Is it a breaking-and-entering kind of thing?

#3
1 Feb 2010
6:30 PM

It had no reason to be closed.

I walked there to buy some meat. Annoying.

#4
6 Apr 2010
3:20 AM

Instead of hacking the code, you could just provide a sort order. I had the same bug, but modified my template so that instead of this:

| last by ,

I had this:

| last by ,

Worked like a charm!

Thursday, January 28, 2010, at 9:53 PM

I am working hard at designing the MT5 theme for seangleeson.com. Mostly this entails editing templates for all the page elements, and writing CSS code.

Yes, I do realize that I have broken a lot of stuff. Most of the links you see on this page don’t really work yet. But I am getting all of that working real soon!

Comments on this entry:

There are 2 comments on this entry.
#1
30 Jan 2010
12:41 PM

I love you! Thank you for working so hard on this stuff, darlin!

#2
31 Jan 2010
2:17 PM

Back atcha, darlin!

Wednesday, January 27, 2010, at 12:02 AM

I just finished migrating swell3d.com to the Movable Type 5 installation. Now I will start working on this blog’s theme.

Oh, and the nice people at Technorati wanted me to put the string 8EKGUHTYM4AA into a post, so this one’s for you.


Topic: ,
Permalink No comments yet Add your comment
Sunday, January 24, 2010, at 8:21 PM

Hi. I haven’t blogged in a few years. Good to see you all again.

I’ve just installed the brand-spanking-new Movable Type 5, to run seangleeson.com and feebeeglee.com. I shall be spending quite a bit of time creating style sheets and templates for our new family of blogs in the upcoming weeks, and blogging about any issues or insights which occur. Then, I will work on migrating the slumbering swell3d.com to this MT5 installation, and possibly even merging in our old WordPress blogs (at blog.gleeson.us, sean.gleeson.us, phoebe.gleeson.us, and homeschool.gleeson.us). I also want to start a Web development blog at mr.gleeson.us. So this is the first step of a long journey.

But here is something about MT5, which has caused problems right from the beginning: why the devil don’t they want me to have blogs on multiple domains? As recently as MT4, you could put a blog at one domain (like feebeeglee.com), and another at another domain (like seangleeson.com) and and have them aggregated at a third domain (like gleeson.us), the way I am doing. But the new MT5 has dispensed with this very helpful ability.


Topic: ,
Permalink No comments yet Add your comment
(Thanks for reading all the way to the bottom.)

Sean Gleeson is an artist, developer, writer, teacher, statesman, and family man in Oklahoma City, Oklahoma.

See full profile.

Sean Gleeson Sean Gleeson