Proof of residence

Today, I received a letter from Maybank about a credit card application I made. It said my credit card application couldn’t be completed, and asked me to send documentary “proof of residence”, i.e. a bill or a bank statement with my address indicated.

I thought about this for a second. The bank __mailed a letter to my address__, asking me to send something to __prove that I’m staying at this same address I received their letter at__. What?!

So I’ll be sending this back to them:-

Photo

I suppose I won’t be getting this card after all. Ah well.

Customising your WordPress theme for the DF Linked List plugin

I’ve received quite a few emails asking about how to customise WordPress themes for the [Daring Fireball Linked List plugin](http://yjsoon.com/dfll-plugin). Since the plugin only affects the RSS feed items’ links, some users aren’t sure how to get the same effect on their webpages. So here’s my attempt at helping budding link-bloggers build their own “DFLL-compliant” WordPress themes. For this guide, I’ll be basing my instructions on the (current) default WordPress theme, [TwentyTen](http://2010dev.wordpress.com/).

[__Aside__: To briefly answer another question I’ve gotten more than once — instead of just changing the RSS links and then going through all this trouble to adjust the theme, why doesn’t the plugin just change your permalinks? Because then you wouldn’t get _any_ permalinks to your linked list posts. If that’s your cup of tea, though, you can try the [FeedWordPress](http://feedwordpress.radgeek.com/) plugin.]

__Disclaimer__: Please be careful! I’ve done a bit of testing, but I can’t be responsible for helping you if you mess up your WordPress install with these instructions. Back up! If you don’t know where to find these theme files, or if you’re not comfortable mucking around with code, you might be better off getting someone to do it for you. I can help for a small fee — see the bottom of this post.

### Before you begin

Did you actually [install the plugin](http://yjsoon.com/dfll-plugin), either from the link or by searching in your WordPress blog’s plugin directory? Please do, before following any of the instructions below.

### The Quick Way: Using a child theme

I’ve prepared the methods below as a [child theme](http://codex.wordpress.org/Child_Themes), which will only work if you have TwentyTen installed in the default directory. This could be useful if you’re starting a new blog.

You can either get it here: [TwentyTen DF Linked List Child Theme](http://yjsoon.com/files/twentyten-dfll.zip), or find it in your DFLL plugin directory if you have the latest version. Move it to your WordPress themes directory, and activate it.

### The Long Way: Editing your theme manually

This section goes into detail about how to edit your theme by hand. You might want to read this if you’re not using TwentyTen but are vaguely familiar with how PHP and WordPress themes work.

First, edit the linked list titles on your main page. To do this, open up loop.php, and look for this line around line 126:

<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>

Edit it to:

<?php if (is_linked_list()): ?>
  <h2 class="entry-title linked-list-item"><a href="<?php the_linked_list_link(); ?>" title="<?php printf( esc_attr__( 'Link to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?> &rarr;</a></h2>
<?php else: ?>
  <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php endif; ?>

__Notes__:

* The first section occurs twice. The first occurrence, on line 62, applies only to gallery items — you want the second occurrence on line 126. (Line numbers may have changed in later versions of WordPress.)
* I’ve taken the liberty of changing the link title to become “Link to your post title” instead of “Permalink to your post title”, and adding a right arrow (→) at the end of your post title. You can change these in line 3 of the code. If you want, you can use the symbol you define in the DFLL settings by using get_glyph().
* Readers can still click on the date to get to the permalink. You can change this, of course.
* I’ve also added a class to your title, linked-list-item. You can use this to style the title to look different from your other entries. Take a look at how Misters [Blanc](http://shawnblanc.net/) and [Brooks](http://brooksreview.net/) do it.

Next, you should also edit your single page template, so that if anyone gets to your link post’s permalink, they can get to the link. Open single.php and look for this line (line 22, in my version):

<h1 class="entry-title"><?php the_title(); ?></h1>

It doesn’t link to anything at the moment, so you can either make it go to your link:

<?php if (is_linked_list()): ?>
  <h1 class="entry-title linked-list-single"><a href="<?php the_linked_list_link() ?>" title="Link to <?php the_title_attribute(); ?>"><?php the_title(); ?> &rarr;</a></h1>
<?php else: ?>
  <h1 class="entry-title"><?php the_title(); ?></h1>
<?php endif; ?>

… or you can just insert the link below, like so:

<h1 class="entry-title"><?php the_title(); ?></h1>
<?php if (is_linked_list()): ?>
<div class="linked-list-single"><a href="<?php the_linked_list_link() ?>" title="Link to <?php the_title_attribute(); ?>">Go to this link</a></div>
<?php endif; ?>

Edit my suggested defaults as appropriate, of course.

_Update, 31 March_: I forgot something when I first wrote this article — how to add the permalink glyph into your post. (Thanks go to [Jason Clarke](http://twitter.com/jasonclarke) for reminding me.)

Here’s how you add a permalink glyph to your linked list posts:

<?php if (is_linked_list()): ?>
 <div class="linked-list-permalink"><?php the_permalink_glyph(); ?></div>
<?php endif; ?>

This adds a link, using the glyph you define in the plugin’s options page, to this post. With this, you can probably get rid of other links that come by default in TwentyTen — try searching for other anchor tags to the_permalink. (Note: Previous versions of this had a link to the permalink surrounding the call to the_permalink_glyph, which resulted in a double link. This has been fixed — thanks to [Nat Robertson](http://overanalyze.net/) for pointing it out.)

If you want this permalink glyph to show up for all posts (and not just linked list posts), remove the first and third lines (the “if” and “endif” ones).

I only put this in loop.php, so it only shows up on the front page, since I suppose the single-page view is already at the permalink.

If you’re not using TwentyTen, look for similar code in page.php, post.php and single.php. Usually, you’ll want to find a h1 or h2 tag that calls the WordPress function the_permalink(), something like the below:

<h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>

Which you can adapt to:

<?php if (is_linked_list()): ?>
  <h1><a href="<?php the_linked_list_link() ?>" title="Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
<?php else: ?>
  <h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
<?php endif; ?>

Hopefully these examples have given you enough information to do some “pattern-matching” on how to identify the code to change, and what to change it to. Once again, remember to back up before doing anything drastic!

### References

* To see an example of the plugin and theme in action, go to my [test blog](http://soon.sg/blog), which has the plugin set up and the child theme installed.
* If you want to create your own WordPress theme instead, [here’s a walkthrough](http://line25.com/tutorials/how-to-create-your-own-custom-wordpress-theme) by Chris Spooner.
* If you’re migrating from Tumblr, Ian Hines has you covered with a set of [detailed instructions](http://ianhin.es/wrote-about/tumblr-to-wordpress/).

### None of this makes any sense. Can you do it for me?

Sure, I can customise your theme for a small fee. [Get in touch](http://yjsoon.com/contact) and we’ll work something out.

NYTimes interviews Andrew Luck

I found this line by Luck terribly amusing:

Luck’s ultimate insurance will come from his Stanford degree, and he plans to graduate next spring.

“I’ll look like an idiot if I didn’t,” he said with a laugh.

What a guy, and what a season. I’m glad I managed to catch some of their games online. (Albeit through questionable means — I would have been happy to have paid to watch the Orange Bowl online, but I couldn’t find a single legit source that streamed internationally.)

Zero Punctuation reviews Minecraft

There is no game reviewer I trust more than ZP. He’s especially good in this one, but pardon the Flash video (yes, again with Flash, sigh).

I went and bought [Minecraft](http://minecraft.net) shortly after watching this review (also after hearing countless other positive reviews on Twitter). Thankfully, I’m not addicted… yet. I hope I didn’t just ruin my future by quitting my job and then immediately buying an awfully addictive game.

(Side note: 1 million purchases of an independent game! Wow.)

The Miseducation of the Doodle

Sunni Brown on doodling at [A List Apart](https://alistapart.com/article/the-miseducation-of-the-doodle):

Doodling may be better described as ‘markings to help a person think.’ Most people believe that doodling requires the intellectual mind to shutdown, but this is one misrepresentation that needs correcting. There is no such thing as a mindless doodle. The act of doodling is the mind’s attempt to engage before succumbing to mindlessness.

She goes on to explain why one should engage in “strategic doodling” at work, and introduces a basic doodle vocabulary for people who think they can’t draw. Excellent stuff.

MY FACIAL IMAGE IS TOO BIG

Got this from the Immigration Checkpoints Authority today.

>Dear SOON YIN JIE,
>
>Thank you for using iC Online.
>
>We wish to inform you that your registration is pending due to the following reason(s) :
>
>1. THE FACIAL IMAGE IS TOO BIG
>2. THE PHOTOGRAPH SUBMITTED IS NOT ACCEPTABLE
>
>Please adjust and resubmit your photograph showing more of the shoulder (as in current iC) so as to enable us to process the application. Thank you
>
>Please resubmit the relevant image file(s) using the following iC Online’s URL:
>
>For any clarification, please contact us at 63916361/63916410. Thank You.
>
>
>Yours sincerely,
>iC Online Administrator
>IC Section
>Citizen Services Centre
>Immigration & Checkpoints Authority

So my facial image is too big, and they want me to “show more shoulder” before my photo will be “acceptable”? Awesome. This was my reply.

>Dear IC ONLINE ADMINISTRATOR,
>
>Thank you for your email.
>
>I wish to inform you that your email is annoying due to the following reason(s):
>
>1. YOUR CAPS LOCK KEY IS STUCK.
>
>Please adjust and resubmit your point-form paras showing fewer capital letters (as in the rest of your text) so as to enable us to read it without imagining you shouting. Thank you
>
>For any clarification, please search for “email etiquette” online. Thank You.
>
>Yours sincerely,
>A Citizen

Old counters

I received an email from Facebook a couple of weeks ago, telling me to update my Facebook apps ([Bond Counter](http://apps.facebook.com/bondcounter) and [NS Counter](http://apps.facebook.com/nscounter)) because they called some functions which would be deprecated.

I haven’t been keeping track of developments in the Facebook API, but looking through the changes, I realise Facebook is no longer allowing apps to put themselves on user profiles as little boxes. This move makes sense given the new profile, but renders my apps slightly useless, because they were intended to show off your counters to the world.

I put off making any changes until today, which is apparently the deadline for any changes, because (a) there are too many other more interesting things to work on right now, and (b) I _really_ don’t like looking at my old code. I was even tempted to just pull the plug on the two apps, but then I saw that each still has “monthly users” (20 for Bond Counter, 150 for NS Counter), whatever that means.

So now the two apps are severely crippled — you can see your bond/NS counter from your own app page, and you can still compare counters with friends, but that’s about it. I don’t have the time to figure out how to do an application tab, which is apparently the wall box replacement, but this is good enough for anyone who really still uses these apps.

I also realise now I didn’t write about my bond having ended in August! Well, it did, and I no longer need Bond Counter. Making this little app, and seeing it spread, was really one of the highlights of my indentured service, though.

Pls Revert, Tks

1.     This submission seeks to highlight for readers’ amusement the weblog “PLS REVERT, TKS” (PRT).

2.     Background. PRT is an anthology of civil service lingo, and is suitable for enjoyment by civil servants and other Singaporeans who may have had the misfortune of encountering civil service “writing”.

3.     Assessment. While the site is freaking awesome, it has one critical flaw in that there are not many entries to date. This will doubtlessly be addressed over time. On balance, the site is freaking awesome.

4.     For readers’ consideration pls. Tks.