Category Archives: Applications

Setting up Joomla on Windows

I had to do this recently. It’s not excessively difficult.

You can use this thing, but it’s really for dev environments.

WampServer installs Apache, MySQL and PHP. Easy.

Once it’s running, go into PhpMyAdmin and change the root password from the default (blank). You’ll need to update the PhpMyAdmin config too: this is in C:\wamp\apps\phpmyadmin2.10.1\config.inc.php — remember that this, like most of the files, is in Unix format, so you need to use a Unix-aware file editor. (Wordpad seems to be okay for this if you have nothing else installed, at least on Windows Server 2003.)

Download Joomla and chuck it into the root directory (default is c:\wamp\www)

Browse to http://localhost/

If Joomla tells you to change anything in the PHP setup, you’ll find it in C:\wamp\bin\php\php5.2.5\php.ini — though it seemed to take no notice when I changed magic_quotes_gpc as requested. Odd. I eventually found you can reset it using the WAMP5 tray icon: Left-click, PHP, PHP Settings. It then automatically restarts Apache to make it take effect. Neato.

The rest is easy… go through the Joomla install pages and it does it all for you. Then start figuring out your template and structure.

Still to figure out:

  • Contact page/email doesn’t work. Probably some hiccup with Apache not figuring out how to send emails from Windows… maybe I need to make sure the Windows IIS SMTP server is running or something.
  • Issues with .htaccess, needed to switch on friendly URLs (well, friendlier than those default Joomla/Mambo monstrousities)

Finding the found

I don’t think it’s that my eyesight’s going. I think it’s an ever-growing trend to use more subtle text highlighting and cursors. Sometimes when I search for a word, particularly a short word, within a web page or other document, I just can’t see what it’s found.

Sometimes it’s because the idiots programming it haven’t thought about what happens when the text found is underneath the search box. I’ve seen that happen when searching within an email’s text in Outlook 2003, for instance. Easily fixed the way most applications do it: by moving the search box if necessary, or by scrolling the document so the text isn’t underneath.

But sometimes it’s just that the screen is so busy with words that the highlighted term just doesn’t stick out. It happens to me when, for instance, in Word I’m searching for plain apostrophes and quotes that I want converted to their “smart” versions (because they look better on the printed page). In Word, particularly in Word 2007, the highlighting is tiny, and on a busy page, almost invisible.

Seriously, just try and find it in the text below.

Word 2007 found

This is made worse in Word 2007 because of the severely limited customisable colour schemes. But other applications have similar problems.

Either the highlighting needs some more emphasis, or (and I think this would work better, especially if your search term is short) a big arrow should appear pointing to it, or a circle or some other kind of highlighting should appear if, within X seconds, the user doesn’t do anything which indicates they can see where the text is.

Otherwise you have to find the found term. It’s not my idea of fun.

Lotus Notes email

What idiot designed the email component of Lotus Notes? How is it possible that something so broken can be so popular?

Who decided that replying to an email with an attachment inside it should send the attachment back to the original sender? It’s in my Sent Mail; I don’t need to see it again. Waste of space and bandwidth!

And who decided that when replying it should ignore the From address and use the Sender address instead? Yeah sure I sent it from my Gmail, but it was on behalf of xyz; replies should go to xyz!

And why does it sometimes screw up email names and addresses? I’ve just seen something CCd (unsuccessfully, I assume) to John.Smith@company.comJohn.Smith — WTF?!

(And elsewhere in Lotus Notes… have you seen the state of the permalinks it produces in web sites?! I mean really, does anybody think something like http://www.doi.vic.gov.au/DOI/Internet/transport.nsf/AllDocs/CF55EBCAB40CEB3DCA2571F80004823E?OpenDocument is a sensible URL to present to human beings?)

Read/write Photoshop PSD files in Paint.Net

Pondering switching from expen$ive Photoshop to free Paint.Net, but want to be able to read all your Photoshop files?

Just download this plugin, unzip and copy the DLL into the Paint.Net Filetypes folder. Easy.

Caveat: it doesn’t support absolutely everything in PSD files flawlessly. Discussion here. But the files I’ve been dabbling with (actually converted from CPT to PSD using an ancient copy of Corel Photopaint) work fine.

Outlook 2007 irritations

Why do I keep getting these? They rarely happened in Outlook 2003.

A data file did not close properly
I promise you, I did close Outlook properly. Just like I do every time. It’s good that this version can do the integrity check in the background, but I don’t see why it’s needed at all.

A connection to the server cannot be established
IMAP performance in this version is appalling. It rarely seems to stay connected to the IMAP server for more than a few seconds at a time. Just about all the time I need to keep reconnecting and/or do the Mark For Download / Process Marked Headers thing, which gets old really fast.

I like a lot of the other stuff in the new Outlook, but these are very irritating.

Twitter to WordPress to Facebook

(Skip the lecture, go straight to the instructions — but note the update.)

I’m yet to be convinced that microblogging (eg Twitter, or those status updates in Facebook) is genuinely useful. Maybe, maybe not. But I’m willing to try it out.

Problem is of course that if you use multiple services, you don’t want to be having to update them all individually. If such a concept is going to work, you’ve got to be able to update once and have it cascade to everywhere.

Facebook has an app to push updates out to Twitter. Which would be fine, but for those outside North America, you can’t update your Facebook status from anywhere except within Facebook. (North Americans can use SMS from a mobile, but others can’t.) Okay, so maybe you’d want to do it mostly when in front of a computer anyway, but I do like about Twitter than you can update from anywhere… anybody can SMS a number (it’s based in the UK, so for me it’s costing 50 cents… so I’d better not go mad using it) so no fiddling with mobile web access just to post an update. Twitter also takes updates via IM (such as GTalk and Jabber). I also like that it’s open; people can see what’s going on without registering.

I normally hate words like synergy and leverage and convergence, but that’s what’s gone on here. Alex King has written code that updates WordPress from Twitter every 15 minutes. Christian Flickinger has written code that updates Facebook using PHP, with a hack using the Curl library (since Facebook doesn’t actually accept inputs like this) that logs into Facebook’s mobile web page and does the business.

And Blake Brannon has put the two together, so a Tweet (that’s Web 2.0 talk for a Twitter post) will cascade to your WordPress blog, and then on to your Facebook status.

Neato, huh? Now that really is leverage. If it works. Which it does for many people, but it didn’t for me. I was having problems with Blake’s code; probably an issue with my Web ISP’s configuration. I ended up splitting it off to a separate WP plugin, which was messy, but allowed me to use the code in isolation, and figure out the problem.

It may be an issue that only affects particular versions of PHP or Apache or something — I’m no expert — but the problem was the Curl call couldn’t write to the cookies file. Creating the my_cookies.txt file and making it writable (777) and modifying the code slightly to specify where the file lived solved it. Another issue involved Curl being unable to use the FollowLocation flag, but it turned out this wasn’t needed.

I also ended up with Blake’s (modified) code in a separate file to Alex’s, rather than inserted into it as Blake intended.

So in summary

Update 2007-08-31: Blake’s been told that automated access into Facebook is against the Terms of Service. It’s unclear if Facebook will actively go chasing those who use or distribute code like this, but it would seem to pay to be cautious. Sorry.

  1. Download Alex King’s Twitter Tools and put in your wp-content/plugins directory
  2. Download twitter-wp-fb.txt. Put your Facebook details in where shown, then put it into your wp-content/plugins directory
  3. Create an empty wp-content/plugins/my_cookies.txt file and make it writable (777)
  4. Go into your WP Plugins page and activate both Twitter Tools and WP/Twitter to Facebook
  5. Go into the Twitter Tools config page and enter your Twitter credentials
  6. Cross your fingers and post something in Twitter

I think that’s all the steps. Good luck.

Thanks to Blake for his assistance on this. And to Alex and Christian, whose code this is all built on.

Office 2007 first impressions

Admittedly I’ve only been using it for a short time, but here are my initial thoughts about Office 2007.

What I like about Office 2007

What I don’t like about Office 2007

  • the new navigation means there’s a learning curve… and half the time old-style dialogue boxes and such popup, showing that really the redesign is only half complete
  • severely limited colour schemes that break the Windows preferences
  • Outlook seems slower – clunky, in fact, sometimes. And keeps complaining it was closed unexpectedly, even sometimes when it wasn’t.
  • Outlook does strange things while writing emails, for instance removing a signature from the text when changing the account you’ll send it from.
  • have to save in the old format when sending files around, as I can’t assume others have the compatibility pack

Office 2007 title bars

I’ve ranted before about applications which decide to implement their own standards for colours. iTunes is the classic example. In order to make it look all cool and hip and skivvy-wearing-Apple-like, it has subtle shades of grey on the title bar to indicate (ha!) whether it’s active or inactive.

So I’ve been playing around with Office 2007, and now I find they’ve done the same damn thing.

Here is Word 2007 when it’s active.

Word 2007

And here it is when it’s inactive.

Word 2007

Actually, no, wait, I might have got those mixed up. Which is precisely my point.

WinXP’s default colour scheme gives me nice bold title bars, which clearly prompt me as to what’s got focus, and what hasn’t. Office 2007 overrides this, ignoring any preferences I might have set in Windows.

Digging around the Office 2007 help, and sure enough there is a way to change it. Well, almost. Well, not quite. Actually no, there isn’t. All they give you is the option of three different colour schemes: Blue (default, pictured above), silver (which is so close to blue it might as well be the same) and black.

Black, as it happens, gives the most contrast between active and inactive title bars. But it’s not only ugly, it also totally grates against every other window under the XP colour scheme. Do I have to change my XP colour scheme to be equally ugly just so I don’t have clashing window colours? The only benefit is it appears to almost match Media Player 11.

I know MS wanted to break the mould with Office 2007, to radically change the user interface. And I kinda like the big goofy buttons. But this bloody title bar thing is very, VERY irritating.