TechnologyTales.com

Adventures in the world of digital and computer technology

Keep up to date, subscribe to the feed
  • Home
  • Get in Touch
  • More on Ubuntu
  • Open Source Software
  • Photo Equipment Retailers
  • Web Development Resources
  • Log in

Working with the ODS templates and styles when batch processing

Monday, December 8th 2008   
Topics: Programming    Tags: batch mode, batch processing, ODS, RSASUSER, SAS
Leave a Comment

I ran into some trouble with creating new templates and styles while running a SAS job in batch mode. The cause was the user of the RSASUSER switch on the SAS command. This sets the SASUSER library to be read-only and that is what is used to store new templates and styles by default. The fix is to switch these to another library to which there is write access, WORK, for example. Here’s the line of code that achieves the manoeuvre:

ODS PATH work.templat(update) sasuser.templat(read) sashelp.tmplmst(read);

Apparently, the same change might be needed for stored processes too so it’s one to keep in mind.

Work locally, update remotely

Thursday, December 4th 2008   
Topics: Blogging, Web Development    Tags: Apache, backup, Blog, database backup, directory structures, file system, Gedit, Linux, PHP, regular expression, Ubuntu, web server, website, WordPress
Leave a Comment

Here’s a trick that might have its uses: using a local WordPress instance to update your online blog (yes, there are plenty of applications that promise to edit your online blog but these need file permissions to the likes of xmlrpc.php to be opened up). Along with the right database access credentials and the ability to log in remotely, adding the following two lines to wp-config.php does the trick:

define(’WP_SITEURL’, ‘http://localhost/blog’);

define(’WP_HOME’, ‘http://localhost/blog’);

These two constants override what is in the database and allow to update the online database from your own PC using WordPress running on a local web server (Apache or otherwise). One thing to remember here is that both online and offline directory structures are similar. For example, if your online WordPress files are in blog in the root of the online web server file system (typically htdocs for Linux), then they need to be contained in the same directory in the root of the offline server too. Otherwise, things could get confusing and perhaps messy. Another thing to consider is that you are modifying your online blog so the usual rules about care and attention apply, particularly with respect to using the same version of WordPress both locally and remotely. This is especially a concern if you, like me, run development versions of WordPress to see if there are any upheavals ahead of us like the overhaul that is coming in with WordPress 2.7.

An alternative use of this same trick is to keep a local copy of your online database in case of any problems while using a local WordPress instance to work with it. I used to have to edit the database backup directly (on my main Ubuntu system), first with GEdit but then using a sed command like the following:

sed -e s/www\.onlinewebsite\.com/localhost/g backup.sql > backup_l.sql

The -e switch uses regular expression substitution that follows it to edit the input with the output being directed to a new file. It’s slicker than the interactive GEdit route but has been made redundant by defining constants for a local WordPress installation as described above.

An early glimpse of Ubuntu 9.04

Thursday, November 27th 2008   
Topics: Linux    Tags: alpha release, development, Linux, linux distribution, OpenOffice, private area, Ubuntu, Virtual Machine, VirtualBox
1 Comment

Ubuntu development is so gradual these days that there’s almost no point getting too excited about new versions. Its being a mature Linux distribution means that updates aren’t that much of an upheaval and I must admit to liking it than way. Taking a look at the first alpha release of Ubuntu 9.04, otherwise known as “Jaunty Jackalope”, it seems that there isn’t a change to that gradual, some may call it glacial, approach. The biggest change that I noted was the addition of an encrypted private area to your home user area. In the times in which we live, I can certainly see that coming in useful though it may not set pulses racing in some quarters. OpenOffice is still at 2.4 and things don’t appear very different on the surface at all. Of course, things like kernel changes and such like could be going on under the bonnet without many of us noticing it.Saying that, it played well with VirtualBox and I seem to remember virtual machine trouble with early builds of 8.10 so that can be taken as a plus point. I suppose that it is a case of wait and see before there is anything more obviously defining about 9.04. Anyway, they’ve got until April next year…

No disruption here

Wednesday, November 12th 2008   
Topics: Linux, Software    Tags: Linux, Ubuntu, upgrade, Windows, Windows XP
Leave a Comment

It was just over a year ago that I gave Linux a go after Windows XP gave me a torrid time of it. Since then, I have been able to work more than happily with it and have picked a few new and useful tricks along the way too. All in all, it has been a good experience and I have been able to resolve most of the issues that I have seen. The various Ubuntu upgrades along the way have been taken in their stride too. Version 7.04 was the first one with 7.10 following on immediately afterwards. 8.04 went in equally seamlessly as did 8.10. Some may decry what they might perceive as the glacial nature of any changes but the flip-side is that change can cause disruption so my vote is for the more gradual approach, whatever others might think. In line with this, I haven’t noticed too many changes in Ubuntu’s latest release and any that I have seen have been of the pleasant kind. Saying that, it’s so much better than the contortions surrounding Windows upgrades. All in all, Linux is being kind to me and I hope that it stays that way.

On Photoshop Elements 7

Monday, November 10th 2008   
Topics: Graphics, Imaging, Linux, Software, Virtualisation, Windows    Tags: Adobe, Blue Skies, Pentax K10D, Photoshop, Photoshop Elements, Ubuntu, Unwanted Objects, Virtual Machine, VirtualBox, White Balance, Windows, Windows XP
Leave a Comment

In recent days, I have been playing around with Photoshop Elements 7, doing the same sort of things that I have been doing with Elements 5. Reassuringly, I can still find my way around, even if the screen furniture has been moved about a little. My Pentax K10D is recognised and I am able to set white balance to get sensible results. On the images that I was testing, things started to look too warm in the Cloudy and Shade settings but that’s all part and parcel of processing photos taken in early November. The results of my exertions look decent enough and you can see them in a post on my hillwalking blog.

I realise that Adobe has been promoting the ability to easily airbrush unwanted objects from images and enhance blue skies but there’s no point having all of that if functionality available in previous versions does not work as expected. Thankfully, this is largely the case but there are a few niggles. I have working the new Elements on a Windows XP SP3 virtual machine running in VirtualBox 2.04 on Ubuntu 8.10 so I don’t know if that contributed in any way to what I encountered. One gigabyte of memory is allocated to the VM. The files were stored in the Ubuntu file system and accessed using VirtualBox’s functionality for connecting through to the host file system. File access was fine but I was unable to directly open a file for full editing from the Organiser, something that I have doing very happily with Elements 5. I also noted a certain instability in the application and using the hand tool to get to the top left hand corner of an image sent the thing into a loop, again something that Elements 5 never does. Otherwise, things work as they should but what I saw points to the need for an update to correct any glitches like these and I hope that there is one. For now, I will persevere and see if I can make use of any additional functionality along the way.

Adobe Photoshop Elements 7 Editor
Adobe Photoshop Elements 7 Organiser

Remove Revisions 2.2

Monday, November 3rd 2008   
Topics: Blogging, Web Development    Tags: plugin, revisions, WordPress
Leave a Comment

There is already a post on here devoted to version 1.0 of this plugin and that very much tells you what it does. The new version will work with the forthcoming WordPress 2.7 (itself a release that’s had a development cycle with such upheavals that it would make you want to watch from the relative safety of the sidelines) and has been made to be a little more user friendly in its actions; in fact, it behaves more like any other plugin now.

Download Remove Revisions 2.2

« Older Entries
  • Tags

    Adobe Apache Blog Blogging Books Canon Command Line CSS DSLR Firefox Google Hardware HTML IE7 Installation Internet Explorer JavaScript Linux Microsoft MySQL Opera Operating System Oracle Perl Photoshop Photoshop Elements PHP Safari SAS SQL Ubuntu UNIX VirtualBox Virtualisation Virtual Machine Vista VMware Web Browsers Windows Windows XP WordPress WordPress.com WordPress plugins XHTML XP
  • Categories

    • Audio
    • Blogging
    • Books
    • Databases
    • Forums
    • Graphics
    • Hardware
    • Imaging
    • Internet
    • Linux
    • Mac
    • Operating Systems
    • PC Magazines
    • Photographic Equipment
    • Programming
    • Scripting
    • Security
    • Site News
    • Software
    • UNIX
    • Video
    • Virtualisation
    • Web 2.0
    • Web Development
    • Web Technologies
    • Web Tools
    • Windows
  • January 2009
    S M T W T F S
    « Dec    
     123
    45678910
    11121314151617
    18192021222324
    25262728293031
  • Monthly Archives

  • Photo Gallery

    Here are a few teaser photos from my online photo gallery.

    Ross Castle, Killarney, Co. Kerry, Eire Ha'penny Bridge, Dublin, Éire Stob Ban, Glen Nevis, Lochaber, Scotland Gars-bheinn and Sgurr na Stri, Strath, Isle of Skye, Scotland Crib Goch, Llanberis, Gwynedd, Wales Great Orme, Conwy, Wales Pott Shrigley, Cheshire, England Ribblehead Viaduct and Whernside, North Yorkshire, England
©2007-2009 TechnologyTales.com

Valid XHTML   |   Valid CSS