Diversions

      Comments Off on Diversions

Doing an install of Solaris 9 on a new server this morning and there’s a bit of downtime while CDs load ….

Turns out corgis are quite popular in Japan (although I see they’re called Welsh Corgi Pembroke over there)…

Japanese Corgi Web Ring

Divine Wind Corgi

Speaking of diversions this one is probably dangerous for insecure people…

AIM Fight

AIM fight gives you a score that is the sum of the current number of people online who have you listed as a buddy, out to three degrees. Basically you enter your screen name & the AIM screen name of the person you want to fight…and get a score back that shows you either that you’re more popular than your opponent or that you really need to stop doing things like AIM Fight and get out more…

How about this one….

Microsoft’s new mapping service (Virtual Earth) seems to have a problem finding Apple’s corporate headquarters….

That’s the view of Cupertino with Microsoft at the controls…think I’ll continue to rely on google (google maps image shown below):

WordPress to the rescue

      Comments Off on WordPress to the rescue

Spent about 30 minutes trying to identify a replacement for Apple’s blog server…needed to move the blog off the XServe (to free up a development/test environment). Not knowing much about blogs other than how to read a few of them, I think I was fortunate to stumble onto WordPress…installed it on our Opteron-powered 64-bit SUSE Linux box (timesync) and now it seems to be working fine. Many more features than Apple’s offering (based on Blojsom).

Tied the RSS feed back to the LSO home page & tweaked MARS news to update the change as well.

Mac annoyances….

      Comments Off on Mac annoyances….

The sort of thing that stymies a relatively recent “switcher”…

I installed Adobe Acrobat 7.x the other day..and it took over my default PDF reader setting. I prefer using Preview as it’s much faster to load & uses less screen real estate…couldn’t figure out how to get “preview” back as my default reader.

Here’s the answer:

choose a file you want opened with Apple Preview, control-click on it and choose “Get Info” from the pop-up menu. In the window that opens go down to the third section called “Open With”, choose “Apple Preview” and press the “Change All” button.

There is likely a .plist file or something that you can hand edit to make this kind of fix but I haven’t yet found it.

Thanks to macosx.com for that helpful tidbit…

Welcome Dorothea

      Comments Off on Welcome Dorothea

Just a short update to let you know that Dorothea Salo has now joined our MARS project. Dorothea’s email address is dsalo *at* gmu.edu. She’s temporarily based in the Systems Office at 229D in the Johnson Center Library but will move over to Fenwick in the Fall.

Moving a DSpace collection

      1 Comment on Moving a DSpace collection

Found out how you can move a collection from one community to another with just a couple of commands. This came up when we decided to make a sub-community under “University Libraries” to hold our collections from “Special Collections and Archives”

You need to find out the ID numbers for the community and the collection, then issue this command to postgres…

Say you want to move collection 34 from community 3 to community 7:

update community2collection set community_id=7 where community_id=3 and collection_id=34;

Then a /dspace/bin/index-all should fix all of the browse caches and search indices.

Thanks to Dave Stuve at HP for that bit of wisdom…

Still have to test whether all “pieces” of DSpace function after this process but that’s why we have a test server. Will update this post when testing is complete.

Update Testing shows that it works well.

Deep link to an object on MARS

      Comments Off on Deep link to an object on MARS

While the MARS system uses handles to give a persistent address to items in the collection, it is also possible to build a URL that goes directly to the bitstream of interest. Using this method you lose the features of the handle (finding an item even if the physical server changes) but you do get right to the object you’re trying to view/read/hear etc.

thumbnail

This handle takes you to a record detailing a photograph of the original deed for George Mason University’s Fairfax campus:

http://hdl.handle.net/1920/198

To link directly to the photograph, you’d use this URL:

http://u2.gmu.edu:8080/dspace/bitstream/1920/198/1/40th_12.jpg

Notice the 2nd entry uses the server’s real name…and you have to know to put bitstream in the URL and you have to know the handle value (198) and which bitstream we’re talking about (both by number (1 in this case) and filename (40th_12.jpg).

I imagine this would be used for people who want to link into MARS for a specific bitstream but don’t want to bother their reader with the intervening stop at the MARS system that merely using a handle would require. Handles resolve to the item record in the database–then you must select the bitstream you’re interested in examining.

RSS to your webpage…

      Comments Off on RSS to your webpage…

I recently decided to freshen the Library Systems Office website, planning to integrate a few headlines from this weblog & add a few new RSS feeds. I was using some old PHP code to display a couple of RSS feeds from the Sophos anti-virus sites and thought it would just be a matter of cut & paste to add a few more feeds. Wrong.

The code I was using wasn’t handling the XML correctly…well, it was handling it OK but HTML code was passing through and displaying as non-functional markup. So I had to update my RSS parsing software…which lead me to google which sent me on to SourceForge where I found magpieRSS.

If you have PHP enabled on your webserver, it’s a piece of cake to install. One very nice feature is that the magpie parser will cache results when drawn from an RSS feed…so until it changes, you reduce latency on the feeds you’re displaying (e.g., the page loads faster!).

Firefox->Greasemonkey->Amazon->Mason

      Comments Off on Firefox->Greasemonkey->Amazon->Mason

If you’re using Firefox (I’ve tested this using Mac OS X but it surely works with Windows), here’s an interesting experiment…

First, go to http://greasemonkey.mozdev.org/ and install the Greasemonkey extension. It makes it easy to DHTML extensions to your browser.

Then, go to this page: deskbox.gmu.edu/amazon2mason.user.js and when the javascript file fills your browser, click on Tools and “Install User Script”

Then go to amazon…you should see a little yellow and green M . If you click that, you’ll run a search on Mason’s catalog for the item (an ISBN search). Also works whenever any other site has a link pointing to Amazon for a title…

Might help collection development people a bit…of course, it has limitations (click on the paperback version and even if we own the hardback, it won’t match…different ISBNs).

Here’s a Quicktime movie (4MB) of how it looks once you’re set up.

Thanks to Ryan Shaw at UC Berkeley for the idea and logic behind this extension.

Tiger Server Upgrade

      Comments Off on Tiger Server Upgrade

Now that I managed to upgrade the server hosting the MARS system from 10.3.9 to 10.4 I thought I’d share some notes on the experience…not because they’ll interest very many readers but because I may want to refer back to it this time next year (when memory of how it was done has faded). There may also be one or two intrepid souls trying to google “DSpace” and “MacOS” and this could prove useful…

The upgrade in place failed miserably…2/3 of the way in and the process bombed–leaving me with an unbootable drive–one that still contained the production DSpace installation, production Postgres database and the mac-os specific version of PostgreSQL that was installed when the machine was new…but a weird hybrid of 10.4 and 10.3.9 for an operating system—stuck in an endless loop of rebooting then asking for disk #2 again.

I took that drive out of slot 1 on the XServe and moved it to slot 2. The disk that was in slot 2 had a bootable (blessed) image of the boot drive on it (I had “cloned” it from the production disk about 3 weeks ago, using CarbonCopyCloner) so I booted from that…then the now semi-upgraded disk mounted as an “extra” drive in slot 2–which meant the data was intact (since it wasn’t stored in any directory that Mac OS X planned to upgrade).

I tarred up the /usr/local/pgsql/data directory from drive that failed updating and extracted it into the /usr/local/pgsql/data directory on the (cloned) boot drive. Restarted postgres and the original data was now up & running. I did a pg_dump of that data and made a couple of copies…both done with the -C create database switch set (enables you to create the database from the psql < xxxx.dmp command). I next shut the server down, removed the two drives and inserted a blank 2nd drive from the other XServe in the office. Did a fresh install of Mac OS X tiger server on that drive...naming the machine with the original server's name (U2) and IP address and admin user name/password combination and so on. Created the same users giving them the same user ID number (important for moving files from one machine to another and perserving proper permissions). Installed XCode (developer) tools on the newly installed server disk and then pulled down the latest 7.x source version of postgres SQL. Compiled it. ./configure --enable-multibyte --enable-UNICODE --with-java make make install voila! Shut server down and reinstalled the original (failed upgrade) disk into slot 2. Rebooted off newly installed Tiger OS on disk 1. Moved the tarball of the original Postgres data (/usr/local/pgsql/data/*) over from the 2nd drive to the newly created /usr/local/pgsql/data directory on the new disk. Moved the DSpace source directory tree off the old machine to the new and did a quick: ant -Dconfig=/dspace/cfg update which rebuilt the *.war files. Moved them to /Library/JBoss/3.2/deploy started Appserver from the Server Admin program... Production DSpace now running under a clean install of 10.4 server. Luckily the assetstore is kept on the XServe RAID machine which is hardware raid and shows up ready for action on any machine I plug the fibre-channel cables into so the actual "bitstreams" of the DSpace installation were never in jeopardy...of course, without a functioning Postgres database linking the metadata to the indecipherable directory structure & filenames given the bitstreams it would be pretty useless. A nice project would be a SQL command that ran through the Postgres database and built a list of objects and what the bitstream for each object is called in the assetstore...that could be printed or saved outside the postgres database so if you absolutely had to find a bitstream after a catastrophic failure of the metadata database, you could. Will work on that when I next remember it...

Images from Amazon

      Comments Off on Images from Amazon

Stumbled upon a website that explains the syntax needed to pull images from Amazon…with nothing more than an ISBN number (for a book, anyway):

http://aaugh.com/imageabuse.html

Should be able to write a routine in the OPAC to pull in these images based on isbn number. Of course, Amazon might take exception to the server drain…maybe you could code the image to deliver the “clicker” to Amazon’s doorstep for a purchase…be sure to sign up for the associate’s program before you implement that.

Here’s a URL for a thumbnail image of a book with this isbn: 0-7645-4716-X

http://images.amazon.com/images/P/076454716X.01.THUMBZZZ

does it work?

inside php

If you’re looking at a thumbnail of PHP4 bible, then it’s working. Just remember to omit the dashes in the ISBN.