simonb.com: blog > articles from 2007

skip to content
You are here: 

In 2007 we wrote…

Tuesday, 18 December 2007

Tuesday, 11 December 2007

Google Chart API

Google have released their chart API. Here’s a few alternatives for Python:

See also vtk and MayaVi

read more

Tags: 

   

Tuesday, 27 November 2007

Tweaking Words NumPages Field

How to change the number of pages (NumPages) displayed in Word documents. Edit those field codes.

read more

Tags: 

 

Tuesday, 27 November 2007

China Moon Pictures

China has published pictures from its first moon orbiter.

read more

Tags: 

 

Sunday, 25 November 2007

DTrace

Interesting talk by Bryan Cantrill on DTrace. At the beginning he rips into Dreaming in Code by Scott Rosenberg. Scott’s talk at Google is here.

read more

Tags: 

 

Wednesday, 21 November 2007

Mac Cups Print file was not accepted (client-error-document-format-not-supported)!

“Print file was not accepted (client-error-document-format-not-supported)!”

Is the error line appearing in /var/log/cups/error_log on the Mac

The reason was this line:

application/octet-stream application/vnd.cups-raw 0 -

in file /etc/cups/mime.convs on the server being commented out.

To enable raw printing of octet streams (what the mac sends with foomatic etc.) - the line needs to be uncommented. Otherwise the job will be rejected. You can only see this in the cups error_log file on the server with the cups LogLevel set to debug:

print_job: request file type is application/octet-stream.
Print-Job client-error-document-format-not-supported: Unsupported format ‘application/octet-stream’!

Remember Luke.

read more

Tags: 

 

Tuesday, 30 October 2007

google apps gmail smtp pop quirks

Google Apps is a marv thing. And free too. Since looping our email through Google we’ve been getting much less spam. But I’ve noticed the following quirks:

1. smtp.gmail.com is clever about the From field. The user I authenticate as is the one that shows up in the From field when the message is received. So even if I set the From field to be info@..., if I login as simonb@… The receiver sees email From simonb@… Once you’ve authenticated most services let you set the From field to whatever you like.

2. Mail from me to…

read more

Tags: 

   

Tuesday, 30 October 2007

Mac Postfix sasl_passwd

Here’s a page explaining how to make the sasl_passwd.db file used by Postfix when SMTP relaying mail.

read more

Tags: 

   

Wednesday, 24 October 2007

Mac Quickbooks International Currency Symbol

We like to print invoices in a variety of currencies. There’s no setting in QuickBooks for this - it takes the system default… Well, most of the time. If you have your Region (International PreferencePane, System Preferences) set to one where the little yellow triangle shows up with the message about Unicode and WorldScript, the currency symbol is ignored. So, say I have China selected for no other reason than say I’m in China and billing in Yuan QuickBooks will use the $ (USD) symbol. I have to set the Region to ‘United States’ (not the Unicode one,…

read more

Tags: 

 

Thursday, 18 October 2007

Symbol not found: _Perl_atfork_unlock

I’m re-installing the latest in a line of sick iMacs after it has returned to us with new hard disk. I keep getting “perl crashed” messages appearing in the console when doing a software update and when trying to print with cups. The perl crash log tells us why:

Link (dyld) error:

Symbol not found: _Perl_atfork_unlock
Referenced from: /usr/bin/perl
Expected in: /System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE/libperl.dylib

This is fixed by copying over a version of libperl.dylib which does have the symbol ‘atfork’ (available on every other Mac in the office) But the question is why does this happen. I got the iMac back…

read more

Tags: