Tue 25th Apr 2006
Posted in the evening, filed under
World of Warcraft.
If anyone in Adelaide has downloaded the Macintosh version of the WoW 1.10 patch, and would be kind enough to pop it onto a CD for me (WoW-1.10.0-enUS-patch.app), I will gladly collect it from you, and pay you in beer, wine or your chosen liquor.
I’m stuck behind a 56k modem, and the wait is killing me. 360Mb before I can even think about playing WoW, and I’m only at 7.13Mb. According to the Blizzard Downloader: About 38 hours remaining.
Tue 25th Apr 2006
Posted early evening, filed under
General ,
Humour.
Just spent four full days in Melbourne. It was cold.
Went over there to catch up with some old school friends of mine, whose birthdays parties we’d missed in the past 12 or so months. Was drunk pretty much non-stop for three days. Used to be able to do that without blinking. Have to blink now.
Bought World of Warcraft after having a bit of a play over there. So, you may never hear from me again, apparently…
Oh, and this one, from xkcd.com is for Wayne:

Wed 19th Apr 2006
Posted late in the morning, filed under
Asides ,
Humour.
I just came across the webcomic xkcd, and laughed all of the way back to the start of the series.
This one in particular is fantastic.

But I actually think he’s pretty talented, too, as an artist:

Wed 19th Apr 2006
Posted in the wee hours, filed under
Rants and Raves.
Yet another eBay phishing site. This time located at (line broken deliberately):
http://hyper6.amuser-net.ne.jp/~sphzion/dzb/random_msg/ws/
signin.ebay/eBayISAPI.dll/SignIn&pUserId/index.html
Again, looks very convincing. However, the start of the URL is always a dead giveaway.

The interesting thing about this scam is that when you try to login, it fails (naturally, as the site doesn’t know your real password), but then passes you through to the real site, so that if you try again, you’ll succeed. Naturally, I entered a few fake details in, just to let him know he’s been caught.
What this loser doesn’t realise is that he’s hosted this on his homepage.
http://hyper6.amuser-net.ne.jp/~sphzion/dzb/index2.htm
Which also has a couple of email addresses:
- sph@x.age.ne.jp
- ohkawa@mb.gallery.ne.jp
Make no mistake. This guy is a scammer!
As per usual, this is being forwarded to spoof@ebay.com as we speak.
Tue 18th Apr 2006
Posted late at night, filed under
Blogsome ,
Smarty Templates.
I’m trying to get Search terms from within the Blog’s search engine to be highlighted. I’ve got the following code:
{if $smarty.request.s == ""}
{$content}
{else}
{assign var=hilite value="<span class='hilite'>"|cat:$smarty.request.s|cat:"</span>"}
{$content|replace:$smarty.request.s:$hilite}
{/if}
This works fine, as long as the search term isn’t in a URL, or something like that. In that case, it breaks the URL.
To get around this, I need to only replace if it’s not inside an HTML tag. regex_replace to the rescue. This took me about 30 minutes to eventually figure out, a tipoff to wfinn at yakasha dot net, and the comment he made on the PHP documentation pages:
{if $smarty.request.s == ""}
{$content}
{else}
{assign var=hilite value="<span class='hilite'>"|cat:$smarty.request.s|cat:"</span>"}
{assign var=regex value="/(?![^< ]*?>)"|cat:$smarty.request.s|cat:"/"}
{$content|regex_replace:$regex:$hilite}
{/if}
Obviously, you’ll need to have some sort of CSS styling for the search term.
.hilite {color:red; border:1px dashed; padding:0 3px; 0 3px;}
Tue 18th Apr 2006
Posted late evening, filed under
Blogsome ,
Smarty Templates.
This is actually a bug I’ve come across in other contexts, but the tag {wp_title} has a bit of a bug. When a category is selected, it returns a reasonable value (the title of the category). Ditto for an individual post.
However, with a date archive, the value is not as expected. A daily archive is fine, although I don’t like the format:
Captain Obvious » 2005 » October » 16.10.05
It doesn’t seem to be possible to alter this, other than the separator:
{wp_title sep="•"}
But it gets worse. If a monthly or yearly archive is chosen, the date of the last post to be displayed will also be presented:
Captain Obvious » 2005 » 13.08.05
Note that this is the last post on the page, not the first post. IIRC, normal Wordpress would be the other way around.
Instead, what I use is:
<title>
{bloginfo show="name"}
{single_post_title prefix=" » "}
{single_cat_title prefix=" » Category: "}
{if $smarty.request.name == ""}
{single_month_title prefix=" » "}
{/if}
{if $smarty.request.s != ""}
» Search: {$smarty.request.s}
{/if}
</title>
This has the bonus of also noting when it’s a Search.
Tue 18th Apr 2006
Posted in the evening, filed under
Blogsome ,
Smarty Templates.
It’s possible to create a private post within Blogsome, but not a whole private blog.
However, if you turn off allowing registration, you can make your blog private.
In your Main Page template, find the line that has {$content} on it.
Just before the line, insert the following lines:
{capture name=loginout}{wp_loginout}{/capture}
{if $smarty.capture.loginout|strip_tags:'0' == "Logout"}
And then, after it, insert the following lines:
{else}
<p>This Blog is Private. Please {wp_loginout} before continuing</p>
{/if}
This will then prevent non logged-in users from viewing your posts.
Tue 18th Apr 2006
Posted late in the morning, filed under
Blogsome.
There are still a couple of issues with the XMLRPC interface.
- ecto seems to work nearly fine. It publishes posts without escaping, and allows for the setting of categories. This is with MetaWeblog API as the account type.
- Performancing publishes wrong unless using MetaWeblog API, but even when doing this, categories are not set.
- Flock appears to be the same as Performancing, when set to Wordpress, or MetaWeblog API.
- Qumana is the same - it autodetects it’s a Wordpress blog.
- MarsEdit - works, but presents an error message.
Thanks to kreaper, who’s been a big help in the testing. Anyone with any other results can leave a comment.
Tue 18th Apr 2006
Posted mid-morning, filed under
General.
This is a test post using Performancing for Firefox editor.
This is a single quote ‘
This is a double quote “
Mon 17th Apr 2006
Posted in the evening, filed under
Rants and Raves.
I’m having a bad evening.
I’ve been trying to print several pages of an Excel document to a PDF file, so I can send it off. What it’s doing, however, is not printing them to one PDF, but seperate files.
Now, that’s not too bad, but each file has the same name, so only the most recent one is actually being left on the disk.
What I’ve had to do is print each one seperately, and combine them in Adobe Acrobat. What would have happened if I didn’t have Acrobat?
Fuck Microsoft.