Thursday, 9 April 2015

Access 2010 - Report text truncated when exported to text file

I have an MS Access report that looks fine in View mode and exports as a PDF with no problems but when exported to Text file some of the text gets truncated. When viewed in vim it seemed like the truncation was happening at the 140 character mark with a newline added and some characters missing before the rest of the text continued on the next line.

Very strange.

Did a google search and found nothing useful.

The fact that the truncations were all at the 140 char mark seemed weird but seemed to point to a width issue. So I made the report wider and increased the width of the text boxes. Problem has resolved with the text now displaying as expected and newlines being added in sensibly at word breaks in the text.

My guess: page setup was using landscape mode, report width well short of landscape width and so text was hitting the report width before the page width and the text wrapping algorithm wasn't kicking in in time and so a brute-force linebreak was happening. Increasing the report width to be in alignment with the landscape width is now allowing the text wrapping to work as it should.

Monday, 5 May 2014

Google map rendering problem

To self: Next time google map tiles don't display properly in a Plone site page (or anywhere actually) - check to see if you have set the width and height for the map container.

*doh*

Tuesday, 29 April 2014

Setting up a VNC Server on a CentOS 6.5 NeCTAR instance

How to get a GUI interface to a virtual machine. These instructions are written for the NeCTAR Centos 6.5 image.

Tuesday, 4 February 2014

Script for publishing ingest status

There are two scripts:
  • rdsi_ingest.sh - output is in TiB
  • rdsi_ingest-iso.sh - output is in TB
Both scripts use df -P --total to get data from the system. rdsi_ingest.sh uses the -h flag to get output in TiB and rdsi_ingest-iso.sh uses -H to get the TB iso output.

Reminder for next time I need to find the right cron file:

The cron job to run the ingest status scripts was set up on login2 (shows up as n030 when logged).

Monday, 16 December 2013

8 Weeks without D: Week 6

Days 26-30: 16-20/12/2013

Monday morning

  • J back from holidays for a week. He has noticed that a new service is down and he doesn't have access to the machine to restart. Restart machine and add J to access list.
  • F arrives in office; Portfolio site down again. Restart system - all good for about 2 minutes and then stylesheets and images stop being served. No useful log messages that I can find. Spend 30 minutes trying to work out what is wrong - no luck. Give up and restart web server in desperation - all good.

8 Weeks without D: Week 5

Days 21-25: 9-11/12/2013

Week of the Plone update: all went well

Also the week I have been diagnosed with hypertension and placed on medication.

Some shibboleth configuration files needed updating.

Don't think I had to restart the portfolio site but can't remember for sure.


8 Weeks without D: Week 4

Days 16-20: 2-6/12/2013


All a blur - no memory of disasters......