Technology Tales

Adventures & experiences in contemporary technology

A throwback to the past: an appearance of MACROGEN

4th October 2007

Recently, I was reviewing a log of a program being run by SAS 9.1.3 on a Solaris system and spotted lines like the following:

MACROGEN(MACRO1):   OPTIONS NOMPRINT NOMPRINTNEST

NOTE: PROCEDURE DISPLAY used (Total process time):
real time           0.73 seconds
cpu time            0.50 seconds

MPRINT(MACRO1):   SOURCE SOURCE2 NOTES;

The appearance of the word MACROGEN made me wonder if there was another system option that I had missed. A quick search of the SAS website threw up a support note that shed some light on the situation. Apparently, MACROGEN is the SAS v5 forbear of today’s MPRINT, MLOGIC, and SYMBOLGEN options and would seem to be obsolete in these days. Having started programming SAS in the days of version 6, I had missed out on MACROGEN and so use its replacements instead, hence my never coming across the option. Quite what it’s doing showing up in a SAS 9 log is another story: and there I was thinking that SAS 9 was the result of a full rewrite… Now, I am not so sure but at least I know what MACROGEN is if someone ever takes the time to ask me.

Turning those ads off…

2nd October 2007

I had a recent problem with InternetNews.com: its adverts were causing Firefox to lock up my CPU. While I do put my CPU through its paces, I’d rather that others didn’t decide to do the same and with things that do not add a great deal of value. So it was time to set ZoneAlarm loose by cranking up its ad blocking to the max. There are occasions where exceptions are needed and right-clicking on a domain name in the site list in the Privacy area allows you to relax things on a site by site basis. Obviously, you need to know the website well but I don’t ever remember having this sort of control with Norton Personal Firewall when I had it on my main PC.

Quoshing WordPress 2.3 upgrade gremlins…

26th September 2007

Primarily because of the WordPress plugins that I use, a few inconsistencies have leaped out of the woodwork that needed to be fixed. Here are the issues that I encountered:

Database errors appearing in web pages

This was a momentary discovery along the upgrade trail, entirely caused by the way in which I was doing things. As usual, I went and copied over the WordPress 2.3 files to my web server so I saw these errors before I ran the upgrade script. Then, they were banished, confirming that WordPress 2.3 code was trying to access a WordPress 2.2 type database; 2.3 has made some database changes in order to incorporate tagging.

Dashboard Editor no longer fully functional

The move to JQuery meant that some of the things for which its was looking had changed. They also changed the incoming links provider from Technorati to Google, now that the former is having a tougher time of it. It took a while to track down why I was unable to remove components from the front page of my dashboard as before but a quick comparison of 2.3 code with its 2.2.3 forbear revealed all. I can make a copy of the updated code available for those who need it.

WordPress Admin Themer

The plugin works as before and does its job so well that you end up applying an old stylesheet (in the blog’s theme folder) to the latest release. It only took a spot of tweaking to put everything in order.

I am not complaining about any of these, partly because they were easy to resolve and, in any event, I don’t mind a spot of code cutting. However, I can foresee some users being put out by them, hence my sharing my experiences.

Update: Dashboard Editor has since been updated by the author. Even so, I will stick with my own version of the plugin.

An upgrade threadmill starts again…

25th September 2007

No sooner have we passed the CS3 circus than Adobe and Corel start bringing out new releases of their consumer digital imaging software. This autumn has brought us Paint Shop Pro X2 and Photoshop Elements 6. I’ll wait for the reviews but I can’t say that very much about the new Elements strikes me as making it a compelling upgrade and I definitely have left the PSP fold, even if the latest release seems to have some interesting features on offer. In any case, I am not sure who is going to upgrade their software on an annual basis. With so many other calls on my cash, I definitely am not of that ilk.

Running SQL scripts with MySQL

23rd September 2007

Here’s another of those little things that you forget if you aren’t using them every day: running MySQL scripts using the Windows command line. Yes, you can also run SQL commands interactively but there’s a certain convenience about scripts. I am putting an example here so that it can be found again easily:

mysql -u username -p databasename < script.sql

I wouldn’t be at all surprised if the same line worked under Linux and UNIX but I haven’t needed to give it a try.

Trying out WordPress 2.3 RC1

21st September 2007

The final release of the next version of WordPress is due out on Monday and, because there are sure to be security fixes included, I have been giving the release candidate a go on my offline blogs. 2.3 is another major release so I have been doing some preparation.  In fact, WordPress have a blog entry dedicated to such things for this release. Thankfully, I think that my hillwalking blog should emerge unscathed by this upgrade; I still need to have a go with an offline version of this blog.

The special feature in the new release is tagging and it is good to see that it has had no impact on legacy set ups. I had the same reservations about 2.2 with its inclusion of sidebar widgets but the backward compatibility was enough to see me through without any hiccups. Tagging is not something that I see myself using with categories fulfilling much the same type of role; I am unconvinced by the idea of tag clouds, the type of thing that it powers. However, there are some useful extras here and the filtering of posts by edit status is one of these. Having pending review as a publishing status sounds like a tweak that I might use to allow myself a cooling off period before I publish a post for all of the world to see. Revisiting something with a fresher pair of eyes might stop typographical howlers from emerging into public view…

Update: Another 2.3 feature discovered! I have picked up on multiple category widgets by virtue of the fact that category styling disappeared with the upgrade of the offline version of this blog to 2.3 RC1. Adding "-1" to the relevant CSS class definitions soon sorted things out. It does support the idea of testing before implementation even if no other unexpected changes were spotted. I still am not sure why anyone would have multiple category listings, though.

Twelve months of WordPress

18th September 2007

It was on this date several months ago that I moved my hillwalking blog into the world of WordPress. It’s a self-hosted WordPress instance and has been for all that time. Because of the move, I was taken into the world of MySQL, a world that intrudes still to this day. Most of the time for the migration was spent setting up a theme to fit in with the rest of the website of which it forms a very important part. The matter of importing all the old posts took up time too, especially when it came to fixing glitches with the XML import. Still, it was all done within a weekend and my website hasn’t looked back since. More people now have a reason to visit, and the blog may even have surpassed the photo gallery as the site’s main attraction. I kept up the old blog for a while but have dispensed with that by now; I was keeping both blogs synchronised and that became a tiring manoeuvre. Another upshot of the whole experience is that I have become more aware of the UK outdoor scene and learnt a thing or two too. It might even have encouraged me to go from day tripping to multi-day backpacking, a real-world change that is well removed from the world of technology.

Another side to hardening WordPress

7th September 2007

A little while back, I took to using the wonders of .htaccess directives to make my WordPress deployments more secure. It does work but has the disadvantage that desktop blog editors like Windows Live Writer, Word 2007 and w.bloggar cannot be used to update your blog. I must have a look at getting around this but I am sticking with using WordPress itself to do the editing for now (Dean Lee’s port of FckEditor for WordPress is working out very well, spurious codes notwithstanding).

iTunes: a resource hog?

1st August 2007

When I first started to use iTunes, it very much played well with other software applications running. Then, a few versions later, the playback began to suffer with iTunes running in any way other than on its own. A solution that I have is to fire up the Windows Task Manager, go to the Processes tab and find iTunes.exe in the list. The next thing is to right-click on this, select the Set Priority and change the setting to Above Normal. Windows will warn you about what you are doing but it usually doesn’t cause any other problem. Yes, it sounds a bit extreme but it always solves the playback problem.

So long as iTunes is merely playing music, all is well. However, when it starts ripping CD’s, it’s a wholly different matter. That is a CPU intensive operation and setting the process priority to Low is a very good idea. I recently got caught out by a default setting of ripping any music CD inserted into the PC and, at Above Normal priority, the PC got locked up. Eventually, I got things back under control and lowered the priority. Needless to say, iTunes will just list the contents of an inserted CD from now on. I have learnt my lesson; keeping the command line open to get at command line process tools would be a very good idea for the future, especially as I know where to find these on the web.

FCKEditor for WordPress

26th July 2007

The standard WordPress post editor got broken on this blog so my mind turned to replacing and I spied plugins for adding FCKEditor to the thing. Dean Lee’s is the one that I am using and it seems to work well so far too. As this is FCKEditor, there are more editing options than those offered by the WordPress standard and that’s even with the advanced options made visible with the Alt+V/Alt+Shift+V keyboard shortcuts; the former is for IE and the latter for Firefox. We’ll see how it goes from here…

  • All the views that you find expressed on here in postings and articles are mine alone and not those of any organisation with which I have any association, through work or otherwise. As regards editorial policy, whatever appears here is entirely of my own choice and not that of any other person or organisation.

  • Please note that everything you find here is copyrighted material. The content may be available to read without charge and without advertising but it is not to be reproduced without attribution. As it happens, a number of the images are sourced from stock libraries like iStockPhoto so they certainly are not for abstraction.

  • With regards to any comments left on the site, I expect them to be civil in tone of voice and reserve the right to reject any that are either inappropriate or irrelevant. Comment review is subject to automated processing as well as manual inspection but whatever is said is the sole responsibility of the individual contributor.