Archive for category Uncategorized

How to have some roman numeral page numbers and some arabic page numbers in an existing document in LibreOffice

I needed to format an existing LibreOffice 4.3 document to have some beginning pages with no page numbers, then some pages numbered with roman numerals (i, ii, iii…), then the rest of the pages numbered with arabic numerals (1, 2, 3…). Here’s how you do it.

1. Create a page style that will do roman numeral page numbers in the footer

1.1. Go to Format -> Styles and Formatting (or press F11)…

libreoffice-multiple-footer-styles-1 Read the rest of this entry »

,

Leave a comment

Making an ugly podcast page look better in Drupal OpenChurch

We currently use Drupal OpenChurch for our church website. On the sermon podcast page, any time there was a long sermon title the “play mp3 file” link would overwrite some of the text of the title, looking ugly:
clearnotechurch.com-ugly-podcast-page-01 Read the rest of this entry »

,

Leave a comment

Clearing the cache on Oracle and SQL Server

To clear the cache on Oracle:

ALTER SYSTEM FLUSH BUFFER_CACHE;
ALTER SYSTEM FLUSH SHARED_POOL;

To clear the cache on SQL Server:

CHECKPOINT;
GO
DBCC DROPCLEANBUFFERS;
GO

,

Leave a comment

SQL Server named instance vs. default instance

When you’re installing SQL Server (2008 R2 in my case) and you are prompted whether you want to create a default instance or a named instance, understand that creating a named instance means that you will be required to add that instance name to the server name when you connect via SQL Server Management Studio (SqlServerName\InstanceName). If you want to be able to connect to your instance without having to specify it explicitly, create a default instance. Then you just connect to SqlServerName and it finds the default instance.

Leave a comment

Life, death, and broken software

In a post titled Life, Death, and Splitting Secrets, Jeff Moser presents a software solution for splitting up a password N ways so your loved ones can put the secrets together and get access to critical information from you after your death, using a computer program.

While this shared secret approach is interesting for certain uses, it is unwise for Moser’s stated use… Read the rest of this entry »

Leave a comment

Easy peasy JPGs to PDF conversion

Our scanner at home is an old flatbed that scans to a .jpg file. When you have several pages that you need to scan and send to someone, a pile of JPGs isn’t very nice—you’d rather have one PDF.

If you’re running Linux (at home I’m currently running Fedora 20 – “Heisenbug”), this is easy peasy: with ImageMagick installed, just use the convert command:

convert 1.jpg 2.jpg 3.jpg 1-2-3.pdf

Leave a comment

Mumps-style “dotted do” notation example

FT                                      # A label (for jumping to)
  NEW X,MSG2
  I $$RDVALS^MISC22()=SUCCESS DO QUIT   # The second space between DO and QUIT is significant
  . S X="DO ACTN5^ACTNS"
  . X X                                 # The two Xs mean different things (Cache' is not a context-free language)
  . S MSG2=MSG_" succeeded."            # Expect MSG to float in from somewhere else
  E DO
  . S ERRMSG=INVALIDREADMSG
  . W 1/0

Leave a comment

Follow

Get every new post delivered to your Inbox.