Powered by glolg
Display Preferences Most Recent Entries Chatterbox Blog Links Site Statistics Category Tags About Me, Myself and Gilbert XML RSS Feed
Saturday, Mar 30, 2013 - 23:51 SGT
Posted By: Gilbert

- -
History Shalt Absolve


changelog v1.17
---------------
* Support for link archival with WebCite, Google Cache and Internet Archive for now.


Mr. Robo: Yup, it got a teeny bit convoluted. Hacking together a bot to send requests to WebCite was easy enough, but then the question came of how to automatically process the success/failure emails they sent, to extract the archival links.

Since your host doesn't support cPanel installation of CPAN modules, I had to go the local::lib route to interface with Gmail by secured IMAP using Mail::IMAPClient, after Net::POP3 wouldn't work with SSL, and Mail::POP3Client would only retrieve 250+ messages. And after I got it working, I found that either WebCite doesn't send more than about a hundred emails or so at a go, or Gmail is blocking them from coming in, so I just hecked it and used the transparent format.

This done, we add to these the links to Google Cache and the Internet Archive, and in fact Google Cache appears the most reliable of the three; I suppose we could scour for and disable non-existent links, but this will be left for next time so I'll get a new contract, so Mr. Ham sa... uh, disregard that.

As for the interface, I did try out the additional icon after every link, but that didn't look too hot:


Our arrows shall block out the sun, so they said


Me: It does break the flow horribly.

Mr. Robo: The question then is, how do we offer these archival links, without mussing up the text, or unnecessarily distracting the reader? I slept on it for a night, and came up with the solution: an unobtrusive ArchiveLink box that pops up in the bottom left whenever a link is clicked. This gives the user an on-demand option to check the archives, as he cared enough to navigate to the linked resource, and can hardly be jarring as the browser would have opened a new tab by default.

Me: Sounds reasonable.


Mr. Robo: And as requested, an overview of this blog's pageview history since its incorporation:


Apologies to the colour-blind


Each colour displays the 365 (366) days for a particular year. For example, the first year 2006 is in red, and we can spy a flash of that at the bottom right. Observe a few peaks, such as that in light blue for 2010, in which 1000 daily views was surpassed for the first time. Note that the plots appear to be arranged in colour layers, with more recent layers higher. This indicates that readership has been steadily increasing, which is borne out by the less messy overview of the number of average daily pageviews by year:



The average daily views dallied at below 100 for the first three years, but has steadily increased all this while, threatening the 500 mark, with 3230 in a day still the level to beat.

Having come across Benford's Law in another link your former prof posted on Facebook, which basically states that smaller digits tend to occur as the first digit in real-life distributions of data particularly if the logarithms are uniformly distributed, I compared the pageview data with the suggested distribution, and they match up fairly well:



Me: A little unexpected, given that there should be few 6's to 9's after the average views entered the hundreds, but then again that has been the case for close to half the time this blog has been in existence.

Ah well, with no drive for the touchscreen project of now - seems like have touch capability tacks on a whole lot to the cost of large screens, however - maybe it's time to pick up a Raspberry Pi.

Mr. Ham V: Did I hear pie?

Me: Uh, it's a bare-bones fifty-buck computer, that can pull some cool stunts with a bit of hacking. At the least, it shouldn't be too hard to turn it into a really, really cheap netbook, given a spare television.

Mr. Ham V: *disappointed* Oh.

Mr. Robo: By the way, you heard of the use of "smart pills" to improve mental performance?

Me: More familiar with the reverse, though I suppose it could be overcome with sufficient self-discipline.


His Turn Came

Turning and turning in the widening gyre
The falcon cannot hear the falconer;
Things fall apart; the centre cannot hold;
Mere anarchy is loosed upon the world.

- The Second Coming, W.B. Yeats


Chinua Achebe passed away last week. Most who have heard of him probably did so through his novel Things Fall Apart, which if the evidence of the dog-eared copy I should have somewhere in my bookcase is anything to go by, was a staple of the secondary school literature syllabus in the Seventies.

Good stories well told are immortal, touching the heartstrings as they do by dint of universal hooks such as love and loss. Which is exactly the kind of thing that we're not passing up on - modern fairytales on declining fertility finger-wagging is in full force, but who wants to tackle the root causes?

The X-word has come to the fore again, unceasingly supported by mainstream media prodding and elsewhere. On this, I can only reiterate: it may be wrong to stereotype groups by ethnicity; it may be uncivillized to throw out personal attacks; it may be uncalled-for to be unfriendly to newcomers.

However, all this does not contradict with the opinion that the current state of continually importing foreigners cannot hold. Ten percent is one thing, twenty percent another, but approaching fifty? It's getting to be too much of a good thing, and attempting to handwave the issue while labelling all opponents as xenophobic won't help.

Caught Juan of the Dead yesterday, and was impressed to an extent by the stubborness of the titular character - for some reason, I find myself prizing a certain type of inflexibility more and more as I age. Also watched Rocky IV not too long ago, and man, was that one long reel of unabashed pro-Greatest-Nation-On-Earth propaganda, with the Cold War-era Soviets playing the role of fall guys.

Apollo Creed really deserved to be beaten up a bit for his showboating at the beginning, and I don't think I'm spoiling much by revealing that Rocky's fight plan is to wear down his opponent's fist with his face. Boxers remaining standing after taking two solid straights in real life would be praised for having a great chin - Rocky eats dozens without flinching.

A shoutout here to the Street Fighter X Tekken animated movie, for its production values, though I'm not a big fan of arcade fighting games.


Long wanted to put this up, guess this is as good a time as any



Final Confirmations

The mantle of last month's rumblings on the relative value of white and blue-collar jobs has been taken up by an economics professor publicly, under the headline of "Executive-focused society in Singapore 'is bizarre'", together with a denunciation of rent-seeking behaviour from another place.

Meanwhile, more commentary has been rolling in about how having some decent minimum wage (which has been steadily declining in real terms in the USA) is good, partly as it puts cash in the hands of those who will actually spend most of it... just as Wal-Mart leads the race to lower wages by planning to hire their customers as ad-hoc deliverymen. Gee, I wonder where all those permanent jobs went.

The Pope has been on a fairly good run, with his remembering his former newspaper vendor a very nice touch (though not unique to any faith); if he further manages to overturn the institutional policy of hiding abuse offenders from the attention of secular authorities, I will doff my cap to him.



comments (2) - email - share - print - direct link
trackbacks (0) - trackback url


Next: Mine And Mine Alone


Related Posts:
Think Thunk
Groundwork
The Week After
It Was A Honest Mistake
The Huntster Awakens

Back to top




2 comments


anonymous said...

u think the increasing views is more people coming to read your blog posts ah
u wrong i tell u, they coming to read my saucy comments


April 5, 2013 - 09:29 SGT     

Mr. Ham H. Let said...

Dear Anonymous Sir,

I appreciate your dedication to sauciness, and in other circumstances I would have been compelled to offer you a business partnership offer in this line.

BUT LEAVE MY DEAR IDOL KIM JONG UN ALONE!!!!



Then we can talk.


April 6, 2013 - 17:26 SGT     


Copyright © 2006-2025 GLYS. All Rights Reserved.