April 20, 2013

Display MediaWiki job queue size inside your wiki

I wanted to find an easy way to show the current size of the MediaWiki job queue on WikiApiary. When you make changes to templates that are used on thousands of pages the queue can get backed up and it’s nice to have an easy way to keep an eye on this. The job queue is even one of the data points WikiApiary tracks and graphs. But I wanted something that was as close to realtime as possible. It wasn’t hard to do. This solution uses the External Data (see WikiApiary usage page) extension.

First we need to get the data. Let’s start by calling the siteinfo API method. The magic words are used to make this generic, and this should result in the right URL. If you are using a protocol-relative server setting you will have to modify this.

{% raw %}
{{#get_web_data: url={{SERVER}}{{SCRIPTPATH}}/api.php?action=query&meta;=siteinfo&siprop;=statistics&format;=json
  | format=JSON
  | data=jobs=jobs}}
{% endraw %}

Now External Data has done the work and the value is stored for us. Now we get it by simply calling:

{% raw %}
{{#external_value:jobs}}
{% endraw %}

I like to put that in a style so it’s big and obvious.

If you’re thinking ahead you’ll now be saying Yeah, that’s neat, but it will be cached in MediaWiki for a hours!”. Yes, it will be unless you add a __NOCACHE__ directive to the page and use the MagicNoCache extension. This extension allows you to disable the MediaWiki cache on a page-by-page basis, very handy.

If you wanted to use this in multiple places you could even put an <onlyinclude> around it and transclude the job queue size in other pages, however I would be cautious about that if using the __NOCACHE__ directive as well.

MediaWiki Techie
April 14, 2013

Catalog Unsubscribing

I make it a routine task to request removal from any and all catalogs that show up in our mailbox. Sometimes there is a bit of detective work to get removed from them, they don’t go out of their way to make it obvious. This made me wonder why email is required to have an unsubscribe method clearly displayed while catalogs and regular mail don’t have any requirement.

There should be a requirement for unsubscribe information to be presented plainly and near the mailing label. In fact, how about a URL printed for each mailing address that unsubscribes that address? Heck, I might even use a QR code for that!

Dear Diary
March 27, 2013

Uncomfortable about how the internet’s developing”

Sue Gardner announced that she is moving on as Executive Director of the Wikimedia Foundation today. She highlighted where she wants to direct her energy next:

Increasingly, I’m finding myself uncomfortable about how the internet’s developing, who’s influencing its development, and who is not. Last year we at Wikimedia raised an alarm about SOPA/PIPA, and now CISPA is back. Wikipedia has experienced censorship at the hands of industry groups and governments, and we are –increasingly, I think– seeing important decisions made by unaccountable, non-transparent corporate players, a shift from the open web to mobile walled gardens, and a shift from the production-based internet to one that’s consumption-based. There are many organizations and individuals advocating for the public interest online — what’s good for ordinary people — but other interests are more numerous and powerful than they are. I want that to change. And that’s what I want to do next.

So much about that mirrors concerns I have as well. My book club read The Master Switch two years ago. After reading that book I realized how real it was that the open Internet we’ve come to embrace won’t just continue magically. It will need people like Tim Wu, and soon Sue Gardner, fighting to keep it that way.

Techie
March 13, 2013

RSS Infinity Mirror

Reading about Google shutting down Google Reader, from the guy that made RSS, using Fever  on my own server.

rss-infinity-mirror

RSS Techie
March 13, 2013

Google Reader RIP; Long Live RSS!

Today Google announced that they are shutting down Google Reader. People on Twitter are apoplectic about it all. I get to feel a little smug since I decided a couple of years ago that I needed to move away from Google Reader. It was clear that their vision of what Google Reader should be didn’t match with what I wanted an RSS Reader to be. I had no interest in it being social and integrated with Google Plus.

It feels a little rebellious being an active user of an RSS reader these days. It’s like we are the Mad Max’s of the Internet. We want to get content in our own feeds. We want to actually decide which feeds we want. We aren’t interested in the marketing departments bundling of feeds. We even believe that this type of plumbing an openness is key to the health of the web. We are so audacious to think that we deserve feed interfaces to our services. We don’t need or even want someone in the middle of our feeds deciding what we think is important. Sadly, we and RSS itself seems to not fit into anyones marketing plans.

Max-Max

I am surprised that Google can glean enough personal information from your email reading that they can afford to store a ridiculous amount of data for you and still make a profitable service offering. It seems that knowing what feeds you read, and which items in those feeds you read the most, must not be worth as much money to them. The five engineers that Google had on this product couldn’t have cost that much right?

I spent a long time trying to figure out what I could use instead of Google Reader. It is (was) a nice service with some great features. I ultimately decided to host my own instance of Fever and I’ve been really happy with it. It does require that you run your own server, but it’s the only solution that has given me the complete confidence that I’m in control of something that I feel is as important as  email. (By the way, I don’t use Gmail for email. I pay Tuffmail a monthly fee to host email and they do an amazing job.)

Sadly, the world of RSS readers is battered and beaten. It would be really great if you could just jump to some other product. Readers even have a format for this, OPML, that allows you to move all your feeds from one service to another with a simple export and import. But, you won’t be doing that. Why? Because Google systematically removed all economic upside from this segment. There was a day when there were dozens of feed readers. Some hosted, many desktop software. For years these services grew and thrived and then Google entered the market. For free. And it was Google (insert fawning praise of all things Google here). One by one all of these services died. How could they compete?

To be fair, it wasn’t all Google. Google made it economically difficult but many services made terrible product decisions. RSS readers are products that benefit from keep it simple, stupid and many went against that. But I can say without doubt that a lot of people that were looking to enter that space with great ideas sat it out, the entire segment had been neutralized for anyone seeking direct revenue.

Enough of that. I hate this cycle. And this isn’t the first time or last time we will see it.

If your replacement for Google Reader is another free app you picked up in the App Store, you are going to be here again. You need to pay for this service. Either with a direct fee, or by hosting it on your own web server or running your own application on your computer. I don’t believe RSS Readers are products that can be offered for free. They use resources, and are complicated. If you agree to pay for this valuable service, you’ll make a market for it! If Google couldn’t do it for free, do you really think others can? I say no.

I only know of two solutions for RSS that put you completely in control. One is to use a planet feed system to build your own aggregation. I’m not even going to discuss this because it is ridiculous. The bar is so high to make it work. Purely insane.

The best solution I found is to run my own instance of Fever. Pay the one time software fee and I run it on my own server. It’s not that hard to run, but it requires some basic web server know-how.

I’ll make an offer right now. If I have a few friends that are stranded by Google for RSS services, I will happily create a Linode instance just for Fever installs. You buy a license, and I’ll set up the instance for you. We could easily run 10-20 Fever installs on a single web server. $5/month? Comment or email if your interested.

I’m left wondering if we’ve seen a forest fire. The forest was the RSS ecosystem, the fire was Google Reader. It’s blazed for years and burned down every tree in the forest. There are some birds flying around, those are the apps that use Google Reader as an API (which nearly all RSS readers built for your phone do, and was never really supported by Google). Now the fire has ended. The land is scorched and barren. Some folks have left, like me. They are running on their own infrastructure. All Mad Max. Maybe some new saplings will sprout in the charred landscape. I’m not sure how long that will take.

RSS Techie
February 12, 2013

I’m a boy and I’m three.

When Tyler came down from his room this morning I gave him a big hug and wished him a very, very happy birthday. He replied to me that I’m a boy and I’m three.” Indeed Tyler, indeed. Tyler had a great day today. He had preschool and got to bring cupcakes for the other kids. He loves preschool. I ducked out of work early and we all met for a dinner of his choosing at Yum!. Tyler picked a big bowl of mac-n-cheese as always, and an even bigger cookie to celebrate his birthday.

Tyler playing with his new worktable.

Mazie showing Tyler how to use his new car toy.

We finished the day with presents at home and the whole family watching Misty Island Rescue, his favorite Thomas movie.

I asked him before bed if he had a great birthday he he said Yes Dad.” How great to be three!

Tyler Family