Technology Tales

Adventures & experiences in contemporary technology

Work locally, update remotely

4th December 2008

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.

Dispensing with temptation

26th January 2012

The compact system camera arena is a burgeoning one with many manufacturers having followed Olympus into the fray. In latter months of last year, Nikon finally took the plunge though Canon have yet to do the same. Seeing offers on Olympus E-PL1 kits with a 14-42 mm zoom lens had me tempted, particularly with a price tag of the order of £250. In fact, I even got to looking into the competition too and a shortlist emerged. This also featured the Samsung NX-11 and the Sony NEX-C3 as well as the big brother of the latter, the NEX-5N.

Dispensing with temptation

What eventually countered the allure of shiny objects was the question as to why I needed such an item. After all, I already possess a Pentax K10D DSLR and a Canon Powershot G11 and these have been satisfying my photographic needs for a while now. The DSLR may date from 2007 but it is still working well for me and, if it ever needed replacing, I’d be going for another Pentax with the K-5 being a strong contender. The Canon is doing what’s asked of it so the recent launching of the G1 X isn’t so tempting either.

The whole dalliance has me wondering about how photographic equipment changeovers come about. After all, it was around a decade ago with the DSLR revolution was in the offing if not in progress. Until then, film photography was predominant but it looks as if it got as far as it could from a technological point of view when I look back at what happened. The digital photography area was new and untapped so moving there offered new possibilities and purchases more easily justified. The end result is that very few film cameras are being made nowadays. Ironically, it’s film photography that now is untrammelled terrain for many and it is holding its own too in an era when digital photography predominates.

The same sort of newness that came with digital photography also applies to CSC‘s to a certain extent. From the heritage of half-frame 35 mm film photography, Olympus has fashioned a different type of digital camera: essentially a compact with interchangeable lenses. Was it the fact that I have no CSC that caused me to be tempted and has it happened to others too? Also, is that what got digital photography going in the first place?

It almost feels as if camera manufacturers have to keep bringing to market new models and new types of camera in order to stay in business. After all, Minolta had to sell its camera division to Sony when they failed to get going in the DSLR market quickly enough. The same thing might have happened to Pentax too with the marque passing to first to Hoya, and then to Ricoh after the firm lost its independence.

What doesn’t help is the lack of longevity of camera models. The coming of digital photography has exacerbated this situated with models being launched at a frenetic rate. In the days of film photography, a model could last on the market for a few years and there was once a time when a twenty year lifetime wouldn’t have looked so ridiculous though there were incremental improvements made over that time too. For instance, a Pentax K1000 wouldn’t be exactly the same at the end of its production run as it was at the start though the model number may be the same. That world is gone.

Camera types have done better with the SLR design lasting around 50 years so far. However, mirror-less camera technology is adding pressure like never before. Even compact cameras allow live TTL type viewing and Olympus dug into its film camera heritage to add an interchangeable lens mount to give us the first E-P1. The original PEN cameras were half-frame 35 mm affairs and, appropriately enough, their descendants have small sensors in the micro four thirds mould. Then, there’s Sony’s efforts with translucent mirrors that do not move like their SLR counterparts. Canon tried this in the 1980’s with film cameras but never pursued the genre. After that, there are mirror-less SLR-style cameras from Samsung and Panasonic that make you wonder if a full size equivalent is in the offing with live viewing and an electronic viewfinder. Olympus is doing a teaser advertising campaign at the moment and it has some wondering if an OM-D is in the offing.

Dispensing with temptation

In parallel with all this, Sony is making a good impression with their CSC’s, the NEX series. These have APS-C sized sensors like many DSLR’s and in compact bodies as well. However, the feel very much is that of a compact camera and some have complained of a like of buttons on them though the photographic quality is very good. Samsung have gone for the same sensor size in their NX-11 thought they have gone for SLR styling. That may be more suitable for some than having to find settings buried in menus.

In summary, we are in an exciting if unnerving time in camera technology at the moment. On one hand, we are seeing a great deal of miniaturisation and what formerly were still cameras can do movie making as well. The latter may not be an interest of mine and it looks like a time-consuming hobby too. A lot is in flux right now and a recent court case reminded us of the difficulties in doing original work these days with image processing in Photoshop forming the basis of a victorious copyright claim. Because the number of images that are getting created everywhere, it could be hard for some to avoid this one and that could be exacerbated if the government changes the law so that intellectual property claims can be processed in the small claims courts. That sort of thing makes film photography seem attractive and it does seem that it isn’t disappearing either, even if Kodak has its financial problems. Novelty seems to change photographic tastes and it seems that film photography is novel again. It’s a changing world and who knows where it take us. Maybe a new DSLR body might make a good purchase in case CSC’s usurp their place entirely. Photographic technology is interesting yet again.

Assorted Desktop Packages

29th September 2012

Here is some desktop software that is either commonplace in the world of Linux or needs a bit more publicity, at least in my opinion. The list is sorted alphabetically, in case you are left wondering at its first entry. As with everything in this place, it may grow or contract, but change certainly is a feature of the world of Linux anyway. That’s never a bad thing, even if it upsets some from time to time.

Calligra

This suite comes from the KDE project and includes office and graphical software. The latter includes Krita, which is described separately below, so this is an interesting collection of software.

Choqok

Linux does have a choice of Twitter/X clients and this is one of them. It’s a KDE application that also supports Pump.IO, GNU Social and Friendica instances. There are others on the support list too, though Mastodon is a surprising absence given the recent furore surrounding Twitter/X.

Darktable

The name is a play on that of Adobe’s Lightroom, and that gives you an idea of what it is about. This too allows non-destructive editing of images with the added information being kept in associated files with XMP extensions, one for each image. What the software does not have though is an image management interface like that of Lightroom or digiKam.

digiKam

This is more than an organiser, and may be the KDE project’s counterpart to Adobe’s closed source Lightroom. Its photo organising doesn’t mean automated folder creation from EXIF information like F-Spot, Shotwell or Rapid Photo Downloader. It is for that reason that I combine digiKam with the last entry on the preceding list, since I jumped ship from Shotwell. The image processing part of the application is something that I have to explore.

Eclipse

Other IDE’s have taken over me these days, but this had a use for editing PHP scripts once upon a time. It is better known for what it offers Java developers, though.

Emacs

A long-standing UNIX/Linux text editor that has been doing battle with Vi for longer than many can remember. Like the alternative, it has keyboard shortcuts that do anything but make concessions to Windows conventions, add needless steepening of any learning curve unless you find the appropriate option (CUA) that allows for some emulation of mainstream keyboard shortcuts. Nevertheless, there also is a GUI variant that makes life easier, and I have to concede that it has a history that is longer than even Microsoft itself. As if that weren’t enough compensation, it is a powerful piece of software whose functionality goes much further than text editing, whose surface I have only barely begun to scratch. The logic of the interface may differ from that to which many are accustomed, but it is consistent and well-thought-out nonetheless.

F-Spot

For a while, this was my photo organiser of choice, but it has not seen a new release since December 2010. Maybe that’s because it works well enough as it is, yet you cannot help thinking that a project with no new releases is a dead one, even if that sometime reflects how right they got things at the time.

FileZilla

Before my quest for added automation took over, this was my FTP client of choice, and its advent has made the need to buy such software extinct. That it works on both Windows and Linux is a bonus.

GIMP

The ubiquitous Photoshop challenger is maturing nicely, though its interface may not please some.

GraphicsMagick

This is very like ImageMagick (see below) with its main selling point being that it’s faster than its parent for the purpose of command line image editing; my own testing seems to support this so far. The commands that you use are similar to ImageMagick too, apart mainly from adding the gm command before the likes of convert and others. Speaking of convert, the GraphicsMagick version has yet to support the -annotate switch, so -draw needs to be used in its place.

ImageMagick

Using a command line tool for image processing may seem counter-intuitive, but there are operations where you need not have much user intervention. Included among these is image resizing and conversion between file formats, and yours truly has done both. Processing many files at a stroke comes naturally to this very useful and talented piece of software, too.

KODI

Software media centres lie largely beyond my purview, but this seems to be one of the better known of the breed. It overlays the desktop when it is running and caters for consumption of music, movies, TV, photo slideshows and games. Controversially, there even is PVR capability for recording live broadcasts as well.

Krita

For those with a more artistic bent, this is a digital drawing and illustration package that will work not only on Linux but also on Windows or OS X. The results can be striking, so it looks as if your talent may be the only limitation with this tool.

LibreOffice

Oracle’s takeover of Sun Microsystems meant that some feathers were ruffled in the open-source and free software community, and one example of a change coming from this is the forking of OpenOffice. It is that act that has brought LibreOffice into being, and it then gained so much ground that it eclipsed its parent.

LibreWolf

Mozilla may promote their wares as bing privacy-friendly, yet others are not sure, so Firefox has been forked to give LibreWolf. This removes telemetry, adds a content blocker along with other enhancements.

Mozilla Firefox

There’s no way that I could not include what once was the de facto standard web browser for Linux, though there’s competition from Chrome/Chromium now too. There is also a mobile version for phones running the Android OS.

Mozilla SeaMonkey

The original Mozilla suite still lives on, and this is what it’s called nowadays.

Mozilla Thunderbird

This has replaced Evolution on Linux systems that I use, and it comes close to eclipsing Microsoft Outlook everywhere else, too.

MythTV

The main function of this piece of software is to record broadcast TV, hence that part of the name. It also has media playback capability, and that is what makes it more of a media centre than the digital video recording functionality may suggest.

NEdit

UNIX/Linux offers plenty of text editors, so here’s another of the less well-known ones that I have encountered. Syntax highlighting is part of the offer and some menu customisation is possible too. In essence, it is a straightforward text editor that works with Windows keyboard shortcuts, but that can be no bad thing.

NetBeans

You cannot feature Eclipse in a software listing without having NetBeans too. In fact, it was NetBeans that I first encountered, and that was many moons ago. There is a PHP variant available, but that seemed very sluggish when I tried it and turned back to Eclipse, with which I have stuck ever since. That poor performance may have been caused by the variant of Java that was available to it, so I may give it another ago when I have the time.

OBS Studio

Here, OBS stands for Open Broadcaster Software, and that somewhat says what it does. In essence, we are talking about video recording and live-streaming. With the increasing pervasiveness of video like what once was the case with photography, it is easy to see the use case for this kind of software.

OpenOffice.org

Is this the office suite of choice for Linux? It certainly felt that way before Oracle bought Sun Microsystems and upset a few open-source developers. Now, the appearance of LibreOffice is going to make things look a little more interesting.

PlayOnLinux

This is a far more user-friendly way to run Windows software on Linux, using the WINE libraries in the background. The name seems to originate from game playing, though web browsers like Internet Explorer and Safari are available too, along with a selection of other software. For the adventurous, there also is the possibility of installing something you have yourself.

Privoxy

Here’s the description from the website:

Privoxy is a non-caching web proxy with advanced filtering capabilities for enhancing privacy, modifying web page data and HTTP headers, controlling access, and removing ads and other obnoxious Internet junk.

It’s available for a number of platforms, including Linux and UNIX, and offers a way of blocking ads in Google Chrome, which is how I got to hear about it. Ubuntu users can snag a copy from the usual repositories too.

Configuration is by editing text files, but the default settings have sufficient so far. Setting a browser to use it means searching through settings for the means of making it use IP address 127.0.0.1 and port 8118 for ordinary and secure HTTP connections.

Rapid Photo Downloader

When Shotwell, started to fail to download photos from ever larger memory cards, it was time to look at something else and this became the replacement. You can use it to copy images from any card reader into the directory structure of your choosing. It does nothing more than downloading, and it does it so well that it merits a mention on here.

Shotwell

This was my photo library manager of choice until its limitations when it came to handling large data volumes came to light. It is written for the GNOME desktop environment and worked well for a few years before technology overtook it. Still, it also offers limited photo editing capabilities to go with its organising skills.

UFRaw

This reader and manipulator of raw digital camera image formats acts either alone or as a plugin. It can be used via the command line or using a GUI. That makes it flexible for those times when you need things to happen without much input from yourself.

VirtualBox

All in all, this is an excellent piece of virtualisation software that makes you wonder why you’d pay for something like VMware Workstation. There is a closed source variant, but the open-source equivalent has what you’d want for personal use anyway. Windows 11 support took a while to come into place because of its TPM requirements, but that is steady these days.

VSCodium

Since the widely used VSCode is so available and appears to be open-source in nature, one does wonder why this project exists. Here is their take on that conundrum:

Microsoft’s VSCode source code is open source (MIT-licensed), but the product available for download (Visual Studio Code) is licensed under this not-FLOSS licence and contains telemetry/tracking. According to this comment from a Visual Studio Code maintainer:

When Microsoft builds Visual Studio Code, we do exactly this. They clone the VSCode repository, they lay down a customized product.json that has Microsoft-specific functionality (telemetry, gallery, logo, etc.), and then produce a build that we release under their licence.

When you clone and build from the VSCode repo, none of these endpoints are configured in the default product.json. Therefore, you generate a “clean” build, without the Microsoft customisations, which is by default licensed under the MIT licence.

The VSCodium project exists so that you don’t have to download and build from source. This project includes special build scripts that clone Microsoft’s VSCode repo, run the build commands, and upload the resulting binaries for you to GitHub releases. These binaries are licensed under the MIT licence. Telemetry is disabled.

If you want to build from source yourself, head over to Microsoft’s VSCode repo and follow their instructions. VSCodium exists to make it easier to get the latest version of MIT-licensed VS Code.

Waterfox

This is a fork of Firefox that claims to be faster and more private. From my brief test, it certainly feels faster, though I was not as able to test things on the privacy end.

Relocating the Apache web server document root directory in Fedora 12

9th April 2010

So as not to deface anything that is available online on the web, I have a tendency to set up an offline Apache server on a home PC to do any tinkering away from the eyes of the unsuspecting public. Though Ubuntu is my mainstay for home computing, I do have a PC with Fedora installed and I have been trying to get an Apache instance starting automatically on there without success for a few months. While I can start it by running the following command as root, I’d rather not have more manual steps than is necessary.

httpd -k start

The command used by the system when it starts is different and, even when manually run as root, it failed with messages saying that it couldn’t find the directory while the web server files are stored. Here it is:

service httpd start

The default document root location on any Linux distribution that I have seen is /var/www and all is very well with this but it isn’t a safe place to leave things if ever a re-installation is needed. Having needed to wipe /var after having it on a separate disk or partition for the sake of one installation, it doesn’t look so persistent to me. In contrast, you can safeguard /home by having it on another disk or in a dedicated partition and it can be retained even when you change the distro that you’re using. Thus, I have got into the habit of having the root of the web server document root folder in my home area and that is where I have been seeing the problem.

Because of the access message, I tried using chmod and chgrp but to no avail. The remedy has to do with reassigning the security contexts used by SELinux. In Fedora, Apache will not work with the context user_home_t that is usually associated with home directories but needs httpd_sys_content_t instead. To find out what contexts are associated with particular folders, issue the following command:

ls -Z

The final solution was to create a user account whose home directory hosts the root of the web server file system, called www in my case. Then, I executed the following command as root to get things going:

chcon -R -h -t httpd_sys_content_t /home/www

It seems that even the root of the home directory has to have an appropriate security context (/home has home_root_t so that might do the needful too). Without that, nothing will work even if all is well at the next level down. The switches for chcon command translate as follows:

-R : recursive; applies changes to all files and folders within a directory.

-h : changes apply only to symbolic links and not to where they refer in the file system.

-t : alters context type.

It took a while for all of this stuff about SELinux security contexts to percolate through to the point where I was able to solve the problem. A spot of further inspiration was needed too and even guided my search for the information that I needed. It’s well worth trying Linux Home Networking if you need more information. There are references to an earlier release of Fedora but the content still applies to later versions of Fedora right up to the current release if my experience is typical.

Installing FreeBSD in a VirtualBox Virtual Machine

2nd March 2014

With UNIX being the basis of Linux, I have a soft spot for trying out any UNIX that can be installed on a PC. For a while, I had OpenSolaris on the go and even vaguely recall having a look at one of the BSD’s. However, any recent attempt to install one of the latter, and there are quite a few around now, got stymied by some sort of kernel panic caused by using AMD CPU’s. With the return to the Intel fold arising from the upgrade of my main home PC last year, it perhaps was time to try again.

The recent release of FreeBSD 10.0 was the cue and I downloaded a DVD image for a test installation in a VirtualBox virtual machine with 4 GB of memory and a 32 GB virtual hard drive attached (expanding storage was chosen so not all the allocated space has been taken so far). The variant of FreeBSD chosen was the 64-bit x86 one and I set to installing it in there. Though not as pretty in appearance as those in various Linux distros, the installer was not that user unfriendly to me. Mind you, I have experience of installing Arch Linux so that might have acclimatised me somewhat.

Those installation screens ask about the keyboard mapping that you want and I successfully chose one of the UK options. There was limited opportunity for adding extras though there was a short list of few from which I made some selections. User account set up also was on offer and I would have been better off knowing what groups to assign for my personal user account so as to have to avoid needing to log in as root so often following system start up later. Otherwise, all the default options were sufficient.

When the installation process was complete, it was time to boot into the new system and all that was on offer was a command line log in session. After logging in as root, it was time to press pkg into service in order to get a desktop environment in place. The first step was to install X:

pkg install xorg

Then, it was time to install a desktop environment. While using XFCE or KDE were alternatives, I chose GNOME 2 due to familiarity and more extensive instructions on the corresponding FreeBSD handbook page. Issuing the following command added GNOME and all its helper applications:

pkg install gnome2

So that GNOME starts up at the next reboot, some extra steps are needed. The first of these is to add the following line into /etc/fstab:

proc /proc procfs rw 0 0

Then, two lines were needed in /etc/rc.conf:

gdm_enable=”YES”
gnome_enable=”YES”

The first enables the GNOME display manager and the second activates other GNOME programs that are needed for a desktop session to start. With each of these in place, I got a graphical login screen at the next boot time.

With FreeDSB being a VirtualBox Guest, it was time to consult the relevant FreeBSD manual page. Here, there are sections for a number of virtual machine tools so a search was needed to find the one for VirtualBox. VirtualBox support for FreeBSD is incomplete in that there is no installation media for BSD systems though Linux and Solaris are supported along with Windows. Therefore, it is over to the FreeBSD repositories for the required software:

pkg install virtualbox-ose-additions

Aside from the virtual machine session not capturing and releasing the mouse pointer automatically, that did everything that was needed even if it was the open source edition of the drivers and their proprietary equivalents. To resolve the mouse pointer issue, I needed to temporarily disable the GNOME desktop session in /etc/rc.conf to drop down to a console only session where xorg. conf could be generated using the following commands:

Xorg -configure
cp xorg.conf.new /etc/xorg.conf

In the new xorg.conf file, the mouse section needs to be as follows:

Section “InputDevice”
Identifier  “Mouse0”
Driver      “vboxmouse”
EndSection

If it doesn’t look like the above and it wasn’t the case for me then it needs changing. Also, any extra lines from the default set up also need removing or the mouse will not function as it should. The ALT+F1 (for accessing GNOME menus) and ALT+F2 (for running commands) keyboard shortcuts then become crucial when your mouse is not working as it should and could avert a panic too; knowing that adjusting a single configuration file will fix a problem when doing so is less accessible is not a good feeling as I discovered to my own cost. The graphics settings were fine by default but here’s what you should have in case it isn’t for you:

Section “Device”
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: “True”/”False”,
### <string>: “String”, <freq>: “<f> Hz/kHz/MHz”
### [arg]: arg optional
Identifier  “Card0”
Driver      “vboxvideo”
VendorName  “InnoTek Systemberatung GmbH”
BoardName   “VirtualBox Graphics Adapter”
BusID       “PCI:0:2:0”
EndSection

The next step is to ensure that your HAL settings are as they should. I needed to create a file in /usr/local/etc/hal/fdi/policy called 90-vboxguest.fdi that contains the following:

<?xml version=”1.0″ encoding=”utf-8″?>
<!--
# Sun VirtualBox
# Hal driver description for the vboxmouse driver
# $Id: chapter.xml,v 1.33 2012-03-17 04:53:52 eadler Exp $
Copyright (C) 2008-2009 Sun Microsystems, Inc.
This file is part of VirtualBox Open Source Edition (OSE, as
available from http://www.virtualbox.org. This file is free software;
you can redistribute it and/or modify it under the terms of the GNU
General Public License (GPL) as published by the Free Software
Foundation, in version 2 as it comes in the “COPYING” file of the
VirtualBox OSE distribution. VirtualBox OSE is distributed in the
hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
Clara, CA 95054 USA or visit http://www.sun.com if you need
additional information or have any questions.
-->
<deviceinfo version=”0.2″>
<device>
<match key=”info.subsystem” string=”pci”>
<match key=”info.product” string=”VirtualBox guest Service”>
<append key=”info.capabilities” type=”strlist”>input</append>
<append key=”info.capabilities” type=”strlist”>input.mouse</append>
<merge key=”input.x11_driver” type=”string”>vboxmouse</merge>
<merge key=”input.device” type=”string”>/dev/vboxguest</merge>
</match>
</match>
</device>
</deviceinfo>

With all that set, it is time to ensure that the custom user account is added to the wheel and operator groups using this command:

pw user mod [user name] -G wheel operator

Executing the above as root means that the custom account can run the su command so that logging in as root at the start of a desktop session no longer is needed. That is what being in the wheel group allows and the anyone in the operator group can shut down or restart the system. Both are facilities readily available in Linux so I fancied having them in FreeBSD too.

Being able to switch to root in a terminal session meant that I could go on to add software like Firefox, Libreoffice, GIMP, EMACS, Geany, Netbeans, Banshee and so on. There may be a line of opinion that FreeBSD is a server operating system but all of these make it more than passable for serving as a desktop one too. There may be no package management GUI as such and the ones that come with GNOME do not work either but anyone familiar with command line working will get around that.

FreeBSD may be conservative but that has its place too and being able to build up a system one item at a time teaches far more than getting everything already sorted in one hit. So far, there is enough documentation to get me going and I hope to see where else things go too. So far, the OS hasn’t been that intimidating and that’s good to see.

Some online writing tools

15th October 2021

Every week, I get an email newsletter from Woody’s Office Watch. This was something to which I started subscribing in the 1990’s but I took a break from it for a good while for reasons that I cannot recall and returned to it only in recent years. This week’s issue featured a list of online paraphrasing tools that are part of what is offered by Quillbot, Paraphraser, Dupli Checker and Pre Post Seo. Each got their own reviews in the newsletter so I will just outline other features in this posting.

In Quillbot’s case, the toolkit includes a grammar checker, summary generator, and citation generator. In addition to the online offering, there are extensions for Microsoft Word, Google Chrome, and Google Docs. In addition to the free version, a paid subscription option is available.

In spite of the name, Paraphraser is about more than what the title purports to do. There is article rewriting, plagiarism checking, grammar checking and text summarisation. Because there is no premium version, the offering is funded by advertising and it will not work with an ad blocker enabled. The mention of plagiarism suggests a perhaps murkier side to writing that cuts both ways: one is to avoid copying other work while another is the avoidance of groundless accusations of copying.

It was appear that the main role of Dupli Checker is to avoid accusations of plagiarism by checking what you write yet there is a grammar checker as well as a paraphrasing tool on there too. When I tried it, the English that it produced looked a little convoluted and there is a lack of fluency in what is written on its website as well. Together with a free offering that is supported by ads that were not blocked by my ad blocker, there are premium subscriptions too.

In web publishing, they say that content is king so the appearance of an option using the acronym for Search Engine Optimisation in it name may not be as strange as it might as first glance. There are numerous tools here with both free and paid tiers of service. While paraphrasing and plagiarism checking get top billing in the main menu on the home page, further inspection reveals that there is a lot more to check on this site.

In writing, inspiration is a fleeting and ephemeral quantity so anything that helps with this has to be of interest. While any rewriting of initial content may appear less smooth than the starting point, any help with the creation process cannot go amiss. For that reason alone, I might be tempted to try these tools from time to time and they might assist with proof reading as well because that can be a hit and miss affair for some.

 

Snippets

15th September 2012

There are times when I feel the need to share some snippets with a longer lifespan than a tweet. This is a place for those and some yet may even turn into longer articles themselves. That already has happened for one of them, so there is something of a digital scrapbook in operation here.

13:08 January 8, 2024

Now that ownCloud has been acquired by Kiteworks, there is some uncertainty about what happens next. So far, there is an offer for ownCloud and Nextcloud users to move to Kiteworks’ proprietary platform. Nextcloud itself has been busy making use of the uncertainty to promote their own product line.

19:15 November 19, 2023

The open-source section of the website got a lot of tweaking in the last few weeks. The recipient of the attention was the operating system subsection. That got a full reorganisation with all the listings seeing new entries too. The desktop software also got a bit of attention, and other areas could get altered yet.

11:35 January 20, 2023

Recently, I have been having trouble with Nvidia drivers following a kernel update in Linux Mint (21.1 is the version that I am using). The kernel version has been rolled back from 5.19.x to 5.15.x, and I installed an old AMD graphics card as well. Things still are not perfect, though, so I will be looking out for a way to make things smoother. For now, all is good enough for the moment.

14:28 July 1, 2022

Here are some web apps for video recording for work purposes:

Loom

CloudApp

10:30 February 12, 2022

Google Analytics appears to be losing favour in the EU, if Matomo is to be believed. First, Austria outlawed its usage and no France follows suit. This naturally suits Matomo, a self-hosted open-source alternative for collecting website metrics, so it should not be any surprise that they are forthcoming with these details.

16:20 October 9, 2021

Here is the sequence of commands to use when upgrading from OpenMediaVault 4.x to 5.x. All need to be executed with elevated access privileges:

wget -O - https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/upgrade4to5 | sudo bash

reboot

Once your system has restarted and you have logged in again, then you execute these:

apt-get purge openmediavault-omvextrasorg resolvconf

wget -O - https://github.com/OpenMediaVault-Plugin-Developers/packages/raw/master/install | bash

apt-get update

apt-get dist-upgrade

omv-salt deploy run nginx

omv-salt deploy run phpfpm

apt-get install usrmerge

omv-confdbadm migrate conf 5.0.0

15:19 October 9, 2021

Here are some North American online emporia fro buying computers, their components or peripherals:

Best Buy

Micro Center

Newegg

PC-Canada

Tech-America

09:06 September 24, 2021

Here are boilerplate commands for banning and unbanning IP addresses using Fail2ban:

fail2ban-client set <JAIL> banip <IP>
fail2ban-client set <JAIL> unbanip <IP>

13:09 July 27, 2020

If you ever need to install Linux kernel headers on an openSUSE instance in order to install VirtualBox Guest Additions, the following command should be executed in order to do the needful:

sudo zypper in kernel-source

10:37 February 5, 2017

Here is a possible way of resetting the CSS definition for a HTML element, class or ID:

#reset-this-parent {
all: initial;
* {
all: unset;
}
}

Browser support for the above may vary though.

10:39 November 23, 2016

After seeing messages like “The authenticity of host ‘hostname’ can’t be established” during ssh connections, I decided to investigate more and came up with the following solution:

sudo chown -v $USER ~/.ssh/known_hosts

My known_hosts file had gained root ownership so i could not write to it so changing the ownership to that of my own user account sorted the problem. An alternative could be to change the group assignment using chgrp and setting permissions using chmod but what I did sufficed for my needs.

06:30 November 23, 2016

When I ran into trouble with accessing my own websites using my broadband, I found that the solution was to change DNS Lookup Service to what Google offers. This was done on the router side and the IP addresses used were 8.8.8.8 and 8.8.8.4.

22:33 June 4, 2016

Here’s a way to convert DNG files to JPEG ones:

find -type f | grep DNG | parallel mogrify -format jpg {}

10:51 September 16, 2015

Here is a way to recursively delete folders and their contents in PowerShell:

Remove-Item .\foldertodelete -Force -Recurse

The Force switch silences any messages that otherwise would appear and the Recurse switch is what gets directories removed.

23:38 August 18, 2015

Thomson Reuters is changing over Open Calais at the end of August.

11:05 July 29, 2015

Motorola now selling phones direct to the public through its own store. Customisation options are available for more expensive models like Moto X and Nexus 6 too.

10:18 April 12, 2015

Devuan (pronounced like dev-one) is a fork of Debian that does not use systemd as Debian, like so many other distros, is doing. Part of the name must come from a collective calling itself Veteran UNIX Admin (VUA). There is no actual release just but one is intended for around the same time as Debian 8.0 gets released and donations are being solicted via the website.

18:51 February 20, 2015

Here is a handy way to get PowerShell to show files larger than a certain size:

get-childitem | where-object {$_.length -gt 10000}
|ft fullname, length -auto

19:40 December 1, 2014

When a VirtualBox upgrade broke the networking on a Windows 8.1, it was time to look at System Restore to see what it would do. It reverted version 4.3.20 to 4.3.15 and the network disconnection stopped. For now, I will remain with that older version after the misstep with the latest one. Sometimes it is best to stick with what is known to work.

20:38 October 30, 2014

With my deciding to try doing about my waistline during the summer (a bike got put on a trainer and around 30 minutes is spent on it most evenings while I also catch up some reading; now, I feel fitter and incursions into the countryside have an added air of confidence about them), an interest in fitness monitors has developed and the Pulse Ox from Withings has taken my eye due its being price of around £100. That makes it less than alternatives and it isn’t the only health gadget that the company does either with there being a blood pressure monitor in its range too. The Pulse Ox monitors such things as heart rate, activity such as walking and running, sleeping and weight too. It should work with your smartphone as well, which is a bonus. It is one of several like it with Samsung and Apple going in for phone apps and Microsoft releasing their Band device as well. This appears to be a growing area where I never expected to see mainstream technology companies having a role for themselves.

12:44 October 30, 2014

Ergotech now have useful desktop stands for tablet computers. There is one for a full size iPad and another for any other type of tablet. A standalone one on wheels also is available though I cannot see myself ever needing such an item.

20:24 October 20, 2014

Here are some more specialist information sources with search facilities:

Infoplease

ScienceDirect

18:53 October 7, 2014

Here is the test for the “Shellshock” vulnerability in the bash shell:

env x='() { :;}; echo vulnerable’ bash -c “echo this is a test”

It should not return the following:

vulnerable
this is a test

This would be acceptable:

bash: warning: x: ignoring function definition attempt
bash: error importing function definition for `x’
this is a test

Also, just having this might be fine too:

this is a test

In case you need it, Redhat has more information on the bug that caused scare stories everywhere. Now, it is over to system administrators everywhere to do their bit now that bash has been patched.

21:36 August 24, 2014

Sometimes you need to create more than one directory level in a hierarchy at once and mkdir has the -p option for this purpose. That gets it to create any missing levels in a folder path and avoids warnings that would be issued otherwise.

16:18 August 21, 2014

Debian 8 is under development and has its first beta ready for download. XFCE is now the default desktop environment though it remains possible to install GNOME and GNOME Shell too. In fact, I successfully have given that a go in a VirtualBox installation and will keeping an eye on development so long as no system meltdowns occur. The version of the X Window system already is incompatible with VirtualBox 4.3.14 so we need to await a new version of the virtualisation software before we get access to advanced functions like full window desktop expansion. What we have at the moment works well enough to keep eye on development so we can wait for that full support.

18:31 August 6, 2014

Perfect Resize from onOne Software caught my eye for scaling up images after seeing it mentioned in a Outdoor Photography review of Avanquest PhotoZoom Professional. With a library of 6″ x 4″ prints, I am limited in how large I can make scanned images without they looking blurred and pixelated so that’s why my interest was aroused. There may be a free moment spent seeing what it might do in that situation yet.

16:24 August 2, 2014

Nvidia has a useful page on the difference between DVI-D and DVI-I. It came in handy when transitioning from VGA to DVI on my home PC’s. That made what appears on my Iiyama screen much sharper and allowed me to rid myself of a suspect VGA cable too.

21:42 June 11, 2014

Here are some interesting articles about EFI and UEFI that I uncovered during a recent episode of setting up dual booting of Windows 8.1 and Linux Mint 17 on a PC with EFI:

UEFI

UEFI Dual-Boot -- Ubuntu 12.04.3 + Windows 8.1 (One GPT HDD)

Managing EFI Boot Loaders for Linux

The rEFInd Boot Manager: Getting rEFInd

11:53 May 3, 2014

In the U.K., BT allows you to divert your phone calls for a fee and I have made good use of it over the past year. The service is called Call Diversion and Eircom, Ireland’s counterpart to BT, offers Call Forwarding in Éire. Both are handy because redirecting a call to a mobile phone means that you know you are not missing any calls and that there is nothing lurking on an answering machine when you do get to your home or office. Landline telephony may seem less exciting these days than other forms of communication yet it still has its place and I would not get any nasty surprises along the path of life either. If only I had started doing this kind of thing earlier than I did…

20:12 April 4, 2014

Here’s a useful article about the ever useful locate command. Whether it is FreeBSD or Ubuntu that you are running, this article has a use and that especially when the locate database needs updating with the updatedb command.

20:54 March 12, 2014

A recent website redesign was well helped by modern.IE‘s collection of virtual machine appliances containing different versions of Windows and Internet Explorer. Depending on the host operating system that you are using, you have different options. For Linux, it is VirtualBox only while Windows gains VMware and Virtual PC too. It is a matter of just picking out what suits your situation from dropdown lists.

The first one that I picked was Vista with IE 7 and it was an interface that I had not seen for a while. For all the criticism, the operating system did work well though I wonder if it arrived before the computer hardware that it really needed in order to run smoothly. The dark theme cannot have helped its cause either, especially when compared with the much brighter Windows 7 or Windows 8.x. A Windows XP appliance with IE 6 was grabbed before it gets yanked and support for the elderly OS does finish in April. IE 6 probably is on its last legs so I probably can ignore it now but IE 7 might live longer yet. Window 7 appliances with IE 9 and IE 10 also were downloaded and confirmed that all was well in recent versions of IE when it came to the website. The Vista virtual machine allowed me to ensure that all looks acceptable on IE 7 too. The VM’s themselves contain evaluation versions of enterprise variants of Windows and have a limited lifespan though it is little trouble to reimport an appliance again to rest the clock if so required. In most cases, you extend the evaluation periods too through re-arming and there only are so many times that you can do that anyway. With Windows 8.x, it isn’t even a possibility anyway.

22:05 March 9, 2014

Today, I found an interesting article on CSS media queries and put it to some use for a website redesign that has been keeping me busy over the weekend. Twitter’s Bootstrap came in handy for this too. Now, it’s on to ridding the new design of any rough edges that remain in there. That can be an ongoing task and the site is here if you fancy a look to see what my efforts have produced.

16:20 February 26, 2014

Adding a new Zalman ZM450-GS power supply did little to sort the buzzing in my speakers but it has made the PC where it was installed so much quieter; a much larger fan spinning slower helps while still moving the required amount of air. It is 450W too and I am wondering if my main PC would benefit from a similar upgrade. That may be quieter than the other one was but the case was not a deluxe model so the change should do no harm. As for the speakers, moving them was the only way to get rid of the buzzing. Looking back on this now, it seems that one of them was far too close to a PC.

20:33 February 15, 2014

Currently, the spare PC appears to be causing buzzing on my main PC speakers and with my landline telephone when it is placed right under these.  Removing it helps to cut it down but I fancy having a better fix and am wondering if a new power supply might help. Also, I am wondering if there are other sources too. In the meantime, I would like to share an article on the subject that I recently found: Kill Studio Hum and Buzz at the Source.

22:14 February 12, 2014

Applying latest set of updates to LMDE worked to get to Update 8 worked smoothly unlike some predecessors. This brought the latest version of Cinnamon so GNOME now is redundant. It will be interesting to see where things go next.

16:24 February 8, 2014

During the week, I discovered that Twitter is not a benign place to go ruminating. A sharp riposte in an unnecessary tone of voice was enough to bring on a sense of extra caution. Wherever you get humanity, you are likely to encounter and one had a go at me so some thoughts are going to be kept away from there from this point forward. Sometimes, you own website is a far better place to go ponder happenings in the world around you. After all, an ugly comment can be deleted and a rogue IP address blocked if things need to go that far. Of course. more civility would be best. Polite correction is the best course whenever it is warranted since we all are human and no one is beyond making mistakes.

16:15 February 8, 2014

On my outdoors website, I have been using a PHP script from Detect Mobile Browsers but this does not distinguish between Android running on a tablet and that running on a phone. Therefore, I have turned to another source of such scripting and that is working better so far. In fact, this offers more than just PHP but also Python, JavaScript and other scripting languages along with configuration files for web servers too. Apache, Nginx and IIS all have something for them. The logic essentially is based on Perl regular expression matching of user agent strings, not an infallible means but good enough for me along with a smattering of responsive design.

14:30 February 1, 2014

For anyone lost when faced with the changes Microsoft brought in with the launch of Windows 8 and largely retained in Windows 8.1, TechRadar has a useful article: 62 Windows 8 tips, tricks and secrets. What will prove especially interesting is where Microsoft goes next when many of their customers prefer the Windows 7 interface and are sticking with the elderly Windows XP. You only can get so far by telling your customers that they are wrong all of the time and the is competition in the form of Apple’s OS X and Google’s Chrome now.

14:23 February 1, 2014

TechRadar has a round-up of Best free photo editing software: 10 top image editors you should try. Usual options like GIMP, Paint.Net and IrfanView get a mention along with other less well known ones. Interestingly, Google’s Picasa is excluded from the list but that might be because it largely is an image file management tool even if it has some image editing capabilities too.

21:28 January 27, 2014

Late last week, I found out about the image file sorting tool PhotoSift via an article on the software. It looks interesting though I have yet to try it.

17:52 January 27, 2014

Here are some interesting reviews from TechRadar:

Best compact system camera 2014: the top models reviewed

Best tripod and camera support: 13 tested

Best tripod head: 8 reviewed

The tripod heads review really caught my eye more than the others. After all, 2013 was the year that I got a CSC and a Manfrotto tripod has sat reproachingly in the corner far more often than it should.

19:41 January 16, 2014

Today, I spotted two interesting articles to which I want to retain links on here:

Managing the future of complex business and IT landscapes

Send large files to clients with these 8 free tools

Both of these ring bells for me for different reasons. The first is a reminder of a slow and painful system project with which I was involved and of an ineffective IT support service that pained us at the time. The second is ever present in my current job with its need to send data and output files to clients as well as receiving specifications from them.

19:36 January 4, 2014

In recent weeks, I have been having trouble with the onboard network controller on a spare PC that I have at home. It connects to the network fine for a few minutes and then struggles. Making use of an old PCI ethernet card that I had from another machine solved the problem. Does anyone know of issues with ASRock motherboards and onboard network ports at all? It isn’t something that I have seen before and this motherboard never had good networking capability as long as I have had it.

19:33 January 4, 2014

After Christmas, I took delivery of an HTC One mini mobile phone that I got free as part of a contract renewal with O2. It also is known as the M4 and I have been getting used to it since I got it. A lot is familiar and there are some little differences too. Some of these leave me asking why what worked well before got changed to something that is less smooth. Of course, that can be the course of things and it applies to buying a new car as much as getting a phone upgrade. All in all, the phone works well and battery life appears much improved over the HTC Desire S so far, never a bad thing to notice.

19:25 January 4, 2014

This morning, the hosting provider for this website had an outage that lasted over three hours. The provider was Fasthosts and the cause was a power failure. They usually are good so this thankfully does not happen too often. However, we have been getting a lot of stormy weather crossing Britain and Ireland this winter so I suspect that there should be little in the way of surprise when something like this happens. Weather is not due to settle during this month so there may be more power failures, hopefully elsewhere, before things settle down again.

17:20 January 3, 2014

On one WordPress website that I have, the refresh rate for RSS widgets wasn’t the quickest and the remedy was to add this line into the themes functions.php file:

add_filter( ‘wp_feed_cache_transient_lifetime’, create_function(‘$a’, ‘return 600;’) );

It creates a custom function that is attached to the widget and the refresh time is set to 600 seconds or 10 minutes. So far, this seems to be doing what I needed.

17:56 December 19, 2013

What I didn’t realise is that TRIM currently is not enabled in Ubuntu by default. That is set to change in Ubuntu 14.04 and here is some advice on the matter until then.

20:41 December 14, 2013

This weekend, I had visions of needing a new hard drive when all files on one in my main home PC (runs Ubuntu GNOME 13.10 64-bit) went read only. The cure was to re-seat the SATA cables and all was well again. Sometimes, inexpensive remedies are best and I need not to forget this one.

20:54 October 29, 2013

Here are two interesting articles that I spotted: the first is on new features in GNOME 3.10  and the second about getting DRM-protected Flash media playing on Ubuntu 13.10. For now, I am sticking with Ubuntu GNOME 13.04 in spite of a pop-up dialogue encouraging an upgrade to 13.10; the potential for even a little disruption is something that I am delaying for now.

20:34 October 16, 2013

While editing a file in Nano on an virtual Arch Linux web server that I have, I noticed that a file had DOS newline characters instead of UNIX ones so conversion using the dos2unix command was in order. There is more on this to be found on nixCraft and there are other options such as sed described in there too.

21:51 September 7, 2013

Following a look at Webmin, I have to say that it seems a worthy tool for remote management of servers. My trial so far has been on my Ubuntu virtual web server and it works on port 10000 without interfering with the operation of the actual web server. Being able to run system updates and deletion of MySQL databases without resorting to the command will seem a bonus for some. There’s more to it than these though and I have seen the possibility of managing virtual servers located within a real being mooted. It was an issue of Linux User & Developer than inspired me so my Linux magazine reading is seeing its uses.

20:30 September 4, 2013

Here are some interesting articles for anyone thinking about software development and its realities:

The care and feeding of software engineers (or, why engineers are grumpy)

Being an introvert as I am, this article really is something to which I can relate. Whenever I cannot get the space for undisturbed work, it takes from how I enjoy my job.

How designers and engineers can play nice (and still run with scissors)

We all have to work cross-functionally so you cannot have it all your own way…

Six reasons why the NHS National Programme for IT failed

Having been involved in system design, development and implementation myself, I have something to share that fits into the same topic area. Too many cooks can spoil a broth.

Queensland Government Bans IBM from IT Contracts

My past experiences of IBM have not been good and it wasn’t just where I worked either so this is not exactly a surprise. Service organisations need to ensure that they are sufficient responsive and flexible with empowered and enthusiastic staff who do the needful.

23:09 August 11, 2013

Vagrant and Puppet look like very interesting tools for working with virtual machines. They work with VirtualBox or VMware’s Fusion and Workstation so there’s a choice of virtualisation tool.

20:52 April 18, 2013

Crash reports have been appearing after logging into an Ubuntu session for /usr/share/hplip/config_usb_printer.py and it repeating has been reinstalling HPLIP software for my HP LaserJet 1018 printer too. Leaving the printer off until I need it would be one solution and saves some electricity too but it is best to try to sort an issue when you keep getting it. The first step was to download the latest HP software and install it. That wasn’t a complete solution so I altered the latest send_message function call in /usr/share/hplip/config_usb_printer.py from the following:

send_message( device_uri, printer_name, EVENT_DIAGNOSE_PRINTQUEUE, username, 0,”)

to:

send_message( device_uri, printer_name, EVENT_DIAGNOSE_PRINTQUEUE, ”, 0,”)

So far that alteration appears to have addressed the problem but I’ll be keeping an eye on things anyway. If you’re wondering, the inspiration came from a bug discussion on Launchpad and it was the queue clearing section of the Python script that I went and edited.

20:40 April 16, 2013

Recently, I have been having bother with WordPress Jetpack comment form submission. This was caused by the Bad Behaviour plugin and allowing cross site form submission sorted the problem. The setting to change is in Settings > Bad Behaviour on the Dashboard.

17:31 March 16, 2013

Here’s a quick way to make Faenza and Faience icons available to Ubuntu and maybe Linux Mint too:

sudo add-apt-repository ppa:tiheum/equinox
sudo apt-get update && sudo apt-get install faenza-icon-theme faience-*

20:53 February 19, 2013

During a look at a Fedora 18 Live DVD, I found a user name was needed to get to the desktop and root did the trick for me. What I didn’t notice was an install to hard drive option for the GNOME variant that I tried. Maybe it was hidden on the desktop and not displayed. If so, it looks like an oversight.

16:02 February 14, 2013

Here’s the way to find the version of PROC CDISC that came with the version of SAS that you are using:

proc cdisc version;
run;

14:00 February 14, 2013

Here’s robustness principal for software design that otherwise is known as Postel’s Law after TCP pioneer Jon Postel:

Be conservative in what you do, be liberal in what you accept from others

08:10 February 14, 2013

Here’s a command for removal of orphaned packages in Arch Linux and its derivatives (CinnArch and ArchBang come to mind but there may be others):

sudo pacman -Rns $(pacman -Qqtd)

15:11 January 26, 2013

Cinnarch looks very interesting. It’s based on Arch Linux so it’s a rolling distro but has Cinnamon as its desktop environment. Currently, it’s still in beta but I am tempted to give it a go in a virtual machine.

20:55 December 15, 2012

Having decided that my ever sluggish system needed a fresh operating system installation, I set to trying to get on Linux Mint 14. However, not remembering that the disk and not the partition needs specifying for GRUB installation cost me some time. Later, adding on GNOME Shell resulted in a system conflict between MDM and GDM so I now am running Ubuntu GNOME Remix instead. All feels fresher so far though a spot bother was had with the lock screen that caused me to turn off the feature. VMware Player installed without any of the trickery needed to get in its forbear and runs without a hitch so far too. Other bits and pieces need instating yet but the basis of a refreshed computing platform is in place now.

20:56 November 19, 2012

A look at Linux Mint 14 64-bit release candidate in a VirtualBox virtual machine confronted me with irritating mouse pointer behaviour. The pointer constantly darts to the left when you need it not to do that and it seriously affects usability. The final version will be awaited to see if there is an improvement because it’s not very usable as things stand. GNOME Shell can be installed in working order after a spot of fiddling. Installing the software from the Software Store doesn’t add gnome-session as well so the command line alternative remains best:

sudo apt-get install gnome-shell && sudo apt-get install gnome-session

These two really need packaging together as dependencies. Cinnamon is looking as nice as ever and in need of a plug-in that makes virtual desktops behave as they do in GNOME, even if that’s a minority interest now.

12:07 September 30, 2012

Here are commands for adding Cinnamon to Ubuntu:

sudo add-apt-repository ppa:gwendal-lebihan-dev/cinnamon-stable
sudo apt-get update
sudo apt-get install cinnamon

14:39 September 29, 2012

Had a look at GNOME 3.6 in Ubuntu GNOME Remix 12.10 Beta 1 release. Not all extensions are supported yet but GNOME 3.6 only launched officially yesterday anyway. Will take a little while for those extension developers to catch up with it. No hurry in moving from GNOME 3.4 until they do so.

20:24 September 22, 2012

Picked up Netgear ethernet switcher at PC World today. Working without a hitch so far. Some network reorganisation may follow suit.

20:14 September 22, 2012

Initially, I needed to use the command “modprobe vboxdrv” to get VirtualBox going on Sabayon 10. However, there seems to be a better remedy: adding the line ‘modules=”vboxdrv vboxnetflt vboxnetadp”‘ (removing the outer single quotes, by the way) to /etc/conf.d/modules and restarting the system. That seems to have done the trick though I wonder it wasn’t added for me automatically.

13:08 September 22, 2012

Until recently, I hadn’t realised that most if not all SSD’s come in 2.5″ form factor. An extra bracket is needed for installing into 3.5″ drive bays. While tempting, this remains a nice to have upgrade for me.

20:02 September 21, 2012

Found out why my proftpd daemon wasn’t working on Linux Mint. Needed to set it as standalone and not inetd operation. It’s the ServerType setting in /etc/proftpd/proftpd.conf.

21:53 September 18, 2012

Given the site a new appearance. The cause was getting microblogging going on this page. Clashes with zeeDisplay theme and Twitter Tools made for replacements that now power what you see here. Jetpack plugin added too. All looking good to my eyes so far. More tinkering may happen yet.

21:36 September 15, 2012

Here are a few places where you will find Linux version information stored: /etc/issue, /etc/issue.net, /etc/lsb-release.

17:30 September 15, 2012

Desktop swapping can be done in Ubuntu and here’s the command for Xubuntu:

sudo apt-get install xubuntu-desktop

17:22 September 15, 2012

Here’s a set of commands that I once used to get GNOME Shell going for a Sabayon 9 installation in a VirtualBox virtual machine:

su
equo install --ask linux-sources
cd /run/media/john/VBOXADDITIONS_4.1.16_78094
./VBoxLinuxAdditions.run
mv /usr/libexec/gnome-session-check-accelerated-helper /usr/libexec/gnome-session-check-accelerated-helper.bak
ln -s /bin/true /usr/libexec/gnome-session-check-accelerated-helper

Hope they have a use though VirtualBox has gone through a few versions since I discovered that these had the desired effect though the login screen behaved a little oddly. Otherwise, everything worked as it should.

14:16 September 15, 2012

Pondering purchase of NAS. QNAP TS-412 looking promising but need to think about my home networking set up first. Might need an ethernet switch but plan to look into it more first, especially with uplink capability needed.

14:11 September 15, 2012

Appearance of Sabayon 10 caused a bit of disturbance to my Sabayon installation that needed installation from a DVD to resolve. Tried GRUB repairs before the non-loading of an Nvidia kernel module caused bother. Went for old fashioned approach for sake of saving a little troubleshooting time.

13:52 September 15, 2012

This has been added using the Live Blogging plugin and it’s good for pages too, unlike Automattic’s own Liveblog plugin. Maybe they’ll add that sort of functionality in time.

Ditching PC Plus?

28th June 2007

When I start to lose interest in the features in a magazine that I regularly buy, then it’s a matter of time before I stop buying the magazine altogether. Such a predicament is facing PC Plus, a magazine that I been buying every month over the last ten years. The fate has already befallen titles like Web Designer, Amateur Photographer and Trail, all of which I now buy sporadically. Returning to PC Plus, I get the impression that it feels more of a lightweight these days. What Future Publishing has been doing over the last decade is add titles to its portfolio that take actually from its long established stalwart; Linux Format and .Net are two that come to mind and there are titles covering Windows Vista and computer music as well. Being a sucker for punishment, I did pick up this month’s PC Plus and the issue is as good an example of the malaise as any. Reviews, once a mainstay of the title, are now less prominent than they were. In place of comparison tests, we now find discussions of topics like hardware acceleration with some reviews mixed in. Topics such as robotics and artificial intelligence do rear their heads in feature articles and I cannot say that I have a great deal of time for such futurology. The tutorials section is still there but has been hived off into a separate mini-magazine and I am not so sure that it has escaped the lightweight revolution. All this is leading me to dump PC Plus in favour of PC Pro from Dennis Publishing. This feels reassuringly more heavyweight and, while the basic format has remained unchanged over the years, it still managed to remain fresh. Reviews, of both software and hardware, are very much in evidence and it manages to have those value-adding feature articles; this month, digital photography and rip-off Britain come under the spotlight. Add the Real Word Computing section and it all makes a good read in these times of behemoths like Microsoft, Apple and Adobe delivering new things on the technology front. I don’t know if I have changed but PC Pro does seem better than PC Plus these days.

Tidying dynamic URL’s

15th June 2007

A few years back, I came across a very nice article discussing how you would make a dynamic URL more palatable to a search engine and I made good use of its content for my online photo gallery. The premise was that URL’s that look like that below are no help to search engines indexing a website. Though this is received wisdom in some quarters, it doesn’t seem to have done much to stall the rise of WordPress as a blogging platform.

http://www.mywebsite.com/serversidescript.php?id=394

That said, WordPress does offer a friendlier URL display option too and you can see this in use on this blog; they look a little like the example URL that you see below, and the approach is equally valid for both Perl and PHP. I have been using the same approach for the Perl scripts powering my online phone gallery and now want to apply the same thinking to a gallery written in PHP:

http://www.mywebsite.com/serversidescript.pl/id/394

The way that both expressions work is that a web server will chop pieces from a URL until it reaches a physical file. For a query URL, the extra information after the question mark is retained in its QUERY_STRING variable while extraneous directory path information is passed in the variable PATH_INFO. For both Perl and PHP, these are extracted from the entries in an array; for Perl, this array is called is $ENV and $_SERVER is the PHP equivalent. Thus, $ENV{QUERY_STRING} and $_SERVER{‘QUERY_STRING’} traps what comes after the “?” while $ENV{PATH_INFO} and $_SERVER{‘PATH_INFO’} picks up the extra information following the file name (the “/id/394/” in the example). From there on, the usual rules apply regarding cleaning of any input but changing from one to another should be too arduous.

Adding a new hard drive to Ubuntu

19th January 2009

This is a subject that I thought that I had discussed on this blog before but I can’t seem to find any reference to it now. I have discussed the subject of adding hard drives to Windows machines a while back so that might explain what I was under the impression that I was. Of course, there’s always the possibility that I can’t find things on my own blog but I’ll go through the process.

What has brought all of this about was the rate at which digital images were filling my hard disks. Even with some housekeeping, I could only foresee the collection growing so I went and ordered a 1TB Western Digital Caviar Green Power from Misco. City Link did the honours with the delivery and I can credit their customer service with regard to organising delivery without my needing to get to the depot to collect the thing; it was a refreshing experience that left me pleasantly surprised.

For the most of the time, hard drives that I have had generally got on with the job there was one experience that has left me wary. Assured by good reviews, I went and got myself an IBM DeskStar and its reliability didn’t fill me with confidence and I will not touch their Hitachi equivalents because of it (IBM sold their hard drive business to Hitachi). This was a period in time when I had a hardware faltering on me with an Asus motherboard putting me off that brand around the same time as well (I now blame it for going through a succession of AMD Athlon CPU’s). The result is that I have a tendency to go for brands that I can trust from personal experience and both Western Digital falls into this category (as does Gigabyte for motherboards), hence my going for a WD this time around. That’s not to say that other hard drive makers wouldn’t satisfy my needs since I have had no problems with disks from Maxtor or Samsung but Ill stick with those makers that I know until they leave me down, something that I hope never happens.

GParted running on Ubuntu

GParted running on Ubuntu

Anyway, let’s get back to installing the hard drive. The physical side of the business was the usual shuffle within the PC to add the SATA drive before starting up Ubuntu. From there, it was a matter of firing up GParted (System -> Administration -> Partition Editor on the menus if you already have it installed). The next step was to find the new empty drive and create a partition table on it. At this point, I selected msdos from the menu before proceeding to set up a single ext3 partition on the drive. You need to select Edit -> Apply All Operations from the menus set things into motion before sitting back and waiting for GParted to do its thing.

After the GParted activities, the next task is to set up automounting for the drive so that it is available every time that Ubuntu starts up. The first thing to be done is to create the folder that will be the mount point for your new drive, /newdrive in this example. This involves editing /etc/fstab with superuser access to add a line like the following with the correct UUID for your situation:

UUID=”32cf775f-9d3d-4c66-b943-bad96049da53″ /newdrive ext3 defaults,noatime,errors=remount-ro

You can can also add a comment like “# /dev/sdd1” above that so that you know what’s what in the future. To get the actual UUID that you need to add to fstab, issue a command like one of those below, changing /dev/sdd1 to what is right for you:

sudo vol_id /dev/sdd1 | grep “UUID=” /* Older Ubuntu versions */

sudo blkid /dev/sdd1 | grep “UUID=” /* Newer Ubuntu versions */

This is the sort of thing that you get back and the part beyond the “=” is what you need:

ID_FS_UUID=32cf775f-9d3d-4c66-b943-bad96049da53

Once all of this has been done, a reboot is in order and you then need to set up folder permissions as required before you can use the drive. This part gets me firing up Nautilus using gksu and adding myself to the user group in the Permissions tab of the Properties dialogue for the mount point (/newdrive, for example). After that, I issued something akin to the following command to set global permissions:

chmod 775 /newdrive

With that, I had completed what I needed to do to get the WD drive going under Ubuntu. After that IBM DeskStar experience, the new drive remains on probation but moving some non-essential things on there has allowed me to free some space elsewhere and carry out a reorganisation. Further consolidation will follow but I hope that the new 931.51 GiB (binary gigabytes or 1024*1024*1024 rather the decimal gigabytes (1,000,000,000) preferred by hard disk manufacturers) will keep me going for a good while before I need to add extra space again.

  • 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.