Our Blog, Filemaker only, Xojo only, Archive, Follow us on Twitter or Facebook.


DynaPDF PDF/A

Friday 21 November 2014 at 9:28 pm
As you may know DynaPDF can write PDF/A and PDF/X files. For that you need have a Pro version and use a couple of special functions. First when writing a PDF you use SetPDFFunction to set the PDF Version to one of the PDF/A versions.

First you call CreateStructureTree function to start a tagged PDF. Next you can set flag ifPrepareForPDFA for import flags to tell DynaPDF you plan to create a PDF/A file. Next you can run CheckConformance to check and fix the plugin for PDF/A conformance. Finally you use AddOutputIntent to required color profiles.

The PDF above are okay when you don't import existing PDF files. For existing PDF, you can use CheckConformance. If you have our extra addition PDF/A extension for DynaPDF, the DynaPDF library can fix most of the issues with existing PDF/A to convert them to the required format. But this extension costs extra (599 Euro). So not everyone needs it, but some will certainly.

All the functions mentioned above are available for MBS Plugin users for Filemaker, Xojo and Real Studio.

More SSL Trouble

Thursday 20 November 2014 at 11:29 am
Today we had a client who wants to use our MBS Plugins to list a directory on a FTP server. It works well without encryption, but fails with SSL. The questions why?

First thing was to enable verbose (OptionVerbose) to see log and got those messages:

AUTH SSL
500 This security scheme is not implemented
AUTH TLS
234 AUTH TLS OK.
SSLv3, TLS handshake, Client hello (1):
SSLv3, TLS alert, Server hello (2):
error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure

So the server does not support SSL, but only TLS. And for TLS we got a handshake error, probably because we started with SSLv2. Because with OptionSSLCipherList set to "SSLv3", we got further a step:

SSLv3, TLS handshake, Client hello (1):
SSLv3, TLS handshake, Server hello (2):
SSLv3, TLS handshake, CERT (11):
SSLv3, TLS alert, Server hello (2):
SSL certificate problem: unable to get local issuer certificate

Now we just need to disable verification of peer and host or provide the right certificate and it works!
Just one of the new challenges we got recently. Due to bugs in SSL, a lot of servers disable SSL and only allow via TLS.

CURL with GoDaddy

Tuesday 18 November 2014 at 10:43 pm
If you want to use CURL plugins with GoDaddy ftp service, you may see the message in the log like this: "SSL certificate problem: unable to get local issuer certificate".

Now normally we just recommend to get the cacert.pem from curl website and use it with the CAInfo option. But here this fails and gives again the same error message.

To solve it, we need the certificates from GoDaddy, but not just one, but the root and an intermediate one. So on the repository website I downloaded the gd-class2-root.crt and gd_intermediate.crt files. Now I converted them with openssl and joined both pem files into one:

openssl x509 -inform PEM -in gd_intermediate.crt -out gd_intermediate.pem -text
openssl x509 -inform PEM -in gd-class2-root.crt -out gd-class2-root.pem -text
cat gd_intermediate.pem gd-class2-root.pem > gd-bundle.pem

That got me this pem file: gd-bundle.pem

Now you can use CURL with security checks (OptionVerifyPeer and OptionVerifyHost on) and the log shows:

Server certificate:
subject: O=*.senior-systems.com; OU=Domain Control Validated; CN=*.senior-systems.com
start date: 2012-05-02 23:33:25 GMT
expire date: 2017-05-02 23:33:25 GMT
subjectAltName: ftp.senior-systems.com matched
issuer: C=US; ST=Arizona; L=Scottsdale; O=GoDaddy.com, Inc.; OU=http://certificates.godaddy.com/repository; CN=Go Daddy Secure Certification Authority; serialNumber=07969287
SSL certificate verify ok.

Works in FileMaker, Xojo and Real Studio via MBS Plugins.

Connecting to Microsoft Visual FoxPro

Monday 17 November 2014 at 8:54 pm
If you ever need to connect to a Microsoft Visual FoxPro database from FileMaker, Xojo or Real Studio, you can use our MBS Plugin to do this.

We simply use the built in ODBC driver from Microsoft to connect. Our connection string is configured to work without setting up a data source. This avoids users to configure their system and just provide the path to the database file.

The connection string looks like this:

"Driver={Microsoft Visual FoxPro Driver};SourceType=DBC;SourceDB=c:\test.dbc;Exclusive=No;NULL=NO;Collate=Machine;BACKGROUNDFETCH=NO;DELETED=NO;"

So we provide the name of there drive, the type of source (database file), the path to the database file and a few options. Maybe you don't need all those options.

Below the FIleMaker script to connect. Please notice that we pass empty username and password after the connection string. And the last parameter is the client type which is always "ODBC" here.

Set Variable [$Connection; Value: MBS("SQL.NewConnection")]
Set Variable [$result; Value: MBS("SQL.Connect"; $Connection; "Driver={Microsoft Visual FoxPro Driver};SourceType=DBC;SourceDB=c:\test.dbc"; ""; ""; "ODBC")]

In Xojo (or Real Studio) with SQL Connection we simply set database connections string and type to connect:

dim con as new SQLConnectionMBS
const db = "ODBC:Driver={Microsoft Visual FoxPro Driver};SourceType=DBC;SourceDB=c:\test.dbc"
con.Connect(db,"","",SQLConnectionMBS.kODBCClient)


In Xojo (or Real Studio) with SQL Database we have to prefix the connection string with "ODBC:" to

dim db as new SQLDatabaseMBS
db.DatabaseName = "ODBC:Driver={Microsoft Visual FoxPro Driver};SourceType=DBC;SourceDB=c:\test.dbc"
if db.Connect then


So the next time you have a client with a FoxPro Database where you need import/export from FileMaker, Xojo or Real Studio, our plugin may come to rescue!

Detect and remove Byte order mark

Wednesday 12 November 2014 at 5:28 pm
Sometimes you download a text from the web and see that there are hidden or strange characters in front. That is often the byte order mark. It tells you what type of text encoding you have. e.g. the byte sequence EF, BB, BF for UTF-8 (written as hex characters). If you use wrong encoding, they look like this: Ôªø (MacRoman) or  (Windows ANSI). So when you see those characters, you have a Text which should be decoded as UTF-8 and not with the encodings you used!

So in FileMaker, you can read text as UTF-8, detect the BOM character and remove it for further processing:

# Read text as UTF-8
Set Variable [$text; Value: MBS("CURL.GetResultAsText"; $curl; "UTF-8")]

# get first character
Set Variable [$c; Value:Code(Left($text; 1))]
# is it the UTF-8 BOM?
If [$c = 65279]
# remove it
Set Variable [$text; Value:Middle($text; 2; Length($text)-1)]
End If

# now use the text
Set Field [CURL Test::Text; $text]


At any time you can create the BOM character for UTF-8 with Character(65279) and put it in front of text, before sending it via plugin functions to a file, a socket, a server or a serial port.

[ANN] MonkeyBread Software Releases the MBS Xojo / Real Studio plug-ins in version 14.4

Wednesday 12 November 2014 at 3:49 pm
NICKENICH, Germany (November 11th, 2014) -- Monkeybread Software releases version 14.4 of the MBS plug-in for Xojo and Real Studio.

The MBS plug-in comprises a collection of several plug-in parts which extend the Real Studio development environment with 2,100 classes featuring over 54,000 documented functions. Our plugins support all three platforms Mac OS X, Windows and Linux with all project types desktop, web and console.

Some of the highlights on the 14.4 update:

Our functions to send emails got a major upgrade. Now we are fully compatible and tested with Microsoft Outlook. Also you can now specify the text encoding for the case you don't want to send UTF-8 emails.

For our Windows users with a telephone system, we have now a plugin for the telephone API. This allows you for example to show a customer record for a matching phone call. Or to dial automatically for your application user.

More windows features include new clipboard functions to get/set pictures and a new function WinOpenFolderAndSelectItemsMBS. This function can open an explorer window and select a file. For Mac OS X a similar function is available in NSWorkSpaceMBS class.

On the Mac side, we added a new QTMovieModernizerMBS class to use QTKit to translate movies in older QuickTime formats to modern MPEG 4 files. As OS X Yosemite added new features for AVFoundation, we got new methods there on a few classes. If you like to print HMTLViewer in a Cocoa application, please use the new NSPrintOperationMBS methods. For CoreWLAN we got new function to handle keychain and store WLAN passwords.

For ChartDirector we updated our controls example for retina compatibility on Mac OS X. Our AUPlayerMBS class for playing sounds got new overlap and peak locking option. Our UDP Socket can now work better on Windows and got a new ReusePort property.

Finally we updated DynaPDF to version 3.0.36.104, EyeOne plugin to latest SDK, Sparkle plugin to version 1.6.1. For SQLite we added new method for SQLite3MBS class to enable extension loading.

See release notes for a complete list of changes.
If you have questions, please don't hesitate to contact us.

[ANN] MBS FileMaker Plugin 4.4 for OS X/Windows - More than 2800 Functions In One Plugin

Tuesday 11 November 2014 at 2:19 pm
Nickenich, Germany - (November 11th, 2014) -- MonkeyBread Software today is pleased to announce MBS FileMaker Plugin 4.4 for Mac OS X or Windows, the latest update to their product that is easily the most powerful plugin currently available for FileMaker Pro. As the leading database management solution for Windows, Mac, and the web, the FileMaker Pro Integrated Development Environment supports a plugin architecture that can easily extend the feature set of the application. MBS FileMaker Plugin 4.4 has been updated and now includes over 2800 different functions, and the versatile plugin has gained more new functions:

If you work often with lists, we have a couple of list functions for you like reverse, sort and logical operations like and, or, not and xor. For processing large lists with thousands of entries, the QuickList functions can give a great speed improvement.

Users of the EyeOne color measurement devices from X-Rite can now use our plugin in combination with the EyeOne SDK to measure colors. So you can build powerful color management solutions in FileMaker.

For our Windows users with a telephone system, we have now functions for the telephone API. This allows you for example to show a customer record for a phone call. Or to dial automatically for your application user.

Fans of regular expressions can now use them to match text in FileMaker. In combinations with our list functions you can query a list for matching entries. If you need more details, you can also compile a regular expression and run it with a text. Than you can query details on the result like the position of matched sub patterns.

We updated DynaPDF library to 3.0.36.104 and included more functions in our plugin: You can now create PDF/A files with checking conformance, applying improvements and add output intents. We have new font functions, functions to work with checkbox fields and functions to create named destinations for links within the document.

Our functions to send emails got a major upgrade. Now we are compatible and tested with Microsoft Outlook. Also you can now specify the text encoding and a custom message ID.

The Mac functions for rich text can now write to file/container and replace text. We got a new function to format JSON texts, GraphicsMagick now writes TIFF files directly to container and we can decode base64 text to file in container.

More details in the release notes. Please take the time to check our 300 example databases and check where you can use our plugin features in your solutions.

App Wrapper 3

Monday 10 November 2014 at 9:47 pm
Bob Keeney just wrote a nice review about App Wrapper 3, an useful tool for code signing and packaging your application.

See blog entry:
bkeeneybriefs.com/2014/11/app-wrapper-3/

This app can be used both for FileMaker runtimes and applications created with Xojo. This way you can get your app into Mac App Store or simply avoid the Gate Keeper warning after downloading unsigned applications.

The 2015 Xojo Developer Conference

Sunday 09 November 2014 at 2:05 pm
Just three weeks left to save $250 on a ticket with the early bird offer. Already over 40 people signed up for the conference, so it may sell out like last year :-)

The good news on the hotel is that plenty of rooms are still available. The bad news is that you have to call and ask for the rate for the conference. It's $169 per room and the website doesn't find it. Also there seem to be no suites available for discounted rates, just the regular ones. Anyway, as we can cancel room up to 2 days before conference, you should make your reservation early and later modify or cancel it.

The 2015 Xojo Developer Conference will take place April 29 - May 1, 2015 at the Radisson hotel in fabulous downtown Austin!

XDC is the best place for Xojo users to learn from the experts, network with other Xojo users from around the world and meet the Xojo engineers. We will have sessions for everyone wanting to get the most out of their tool - from topics for those who are just getting their feet wet, to sessions for the most advanced Xojo developer.

MBS Filemaker Plugin, version 4.4pr10

Saturday 08 November 2014 at 7:45 pm
New in this prerelease of the 4.4 plugins:
  • Added TAPI.CreateCall function.
  • Added Container.DecodeFromBase64 function.
  • Added DynaPDF.GetCheckBoxChar, DynaPDF.GetCheckBoxCharEx, DynaPDF.GetCheckBoxDefState, DynaPDF.SetCheckBoxChar, DynaPDF.SetCheckBoxDefState and DynaPDF.SetCheckBoxState for checkbox fields.
  • Added option to SendMail.CreateEmail to specify text encoding.
Download at monkeybreadsoftware.de/filemaker/files/Prerelease/ or ask for being added to the dropbox shared folder.

MBS Xojo / Real Studio Plugins, version 14.4pr10

Saturday 08 November 2014 at 1:14 pm
New in this prerelease of the 14.4 plugins:
  • Added GetPicture/SetPicture methods to WindowsClipboardMBS class.
  • Added TAPI plugin.
  • Deprecated DarwinPingMBS class.
  • Changed CFDictionary conversion code to support CGPathMBS class.
  • Fixed bugs in various text functions (e.g. FileListMBS class) introduced in pr8.
  • Added option to CURLEmailMBS Constructor to specify text encoding.
  • Added new NSPrintOperationMBS methods for printing HTMLViewer in Cocoa apps.
Download: macsw.de/plugin/Prerelease. Or ask us to be added to our shared Dropbox folder.

Upcoming events in the next weeks

Thursday 06 November 2014 at 11:12 am
FileMaker
6th November 2014, tonight the monthly meeting of Rhein/Main area FileMaker developers in Lorsbach (near Frankfurt/Main, Germany).

Xojo
10th November 2014, Xojo Users Group in Atlanta, USA.
13th/14th November 2014, the Xojo event in Birmingham (UK)
2nd December 2014, the London Xojo User group meeting.

I'll be tonight in Lorsbach and next week in Birmingham.

MBS Filemaker Plugin, version 4.4pr9

Wednesday 05 November 2014 at 5:02 pm
New in this prerelease of the 4.4 plugins:
  • Improved SendMail functions to work with Microsoft Outlook correctly.
  • Added SQL.SQLite3.EnableLoadExtension function.
  • Added option to SendMail.CreateEmail to use ISO Latin1 instead of UTF-8 for encoding.
  • Added DynaPDF.AddOutputIntent and DynaPDF.AddOutputIntentEx functions.
  • Fixed a bug in Path.FilemakerPathToNativePath introduced in earlier prerelease.
  • Added RegEx.MatchList, List.RegExMatch and QuickList.RegExMatch function.
  • Added DynaPDF.CheckConformance function.
Download at monkeybreadsoftware.de/filemaker/files/Prerelease/ or ask for being added to the dropbox shared folder.

MBS Xojo / Real Studio Plugins, version 14.4pr9

Wednesday 05 November 2014 at 3:59 pm
New in this prerelease of the 14.4 plugins:
  • Fixed an issue with ImageMagick plugin LoadLibrary call for Windows.
  • Updated Sparkle Plugin classes for version 1.6.1.
  • Improved CURLEmailMBS class to work with Microsoft Outlook correctly.
  • Added SQLite3MBS.EnableLoadExtension method.
  • Added NSImageMBS.imageWithHandle.
  • Added option to CURLEmailMBS Constructor to use ISO Latin1 instead of UTF-8 for encoding.
Download: macsw.de/plugin/Prerelease. Or ask us to be added to our shared Dropbox folder.

FileMaker Magazin - MBS Artikel

Wednesday 05 November 2014 at 12:41 pm

For our Germans speaking users:

Wir haben die Artikel zum MBS Plugin aus dem FileMaker Magazin gesammelt hier online gestellt: FileMaker Magazin Artikel:

Wir empfehlen allen FileMaker Anwender ein Abo vom Magazin und den Kauf der alten Ausgaben. Das FileMaker Magazin ist eine excellente Quelle von Informationen, Anleitungen und Profitips.


xDev Magazine Issue 12.6

Tuesday 04 November 2014 at 10:15 am
The November/December 2014 (12.6) issue of xDev Magazine is now available.
Here's a quick preview of what's inside:

* More Yosemite Tricks * by Sam Rowlands
Mac OS Yosemite is now available, but not all your users will upgrade right away. Sam shows how to code your software in Xojo so it works well in both Mavericks and Yosemite operating systems.

* Writing Apps for Game Center: Part 3 * by Tom Baumgartner
In Part 3, Tom explains how to create and play turn-by-turn games.

* Protect Your Software * by Harold Halbleib
If you want to make money selling your software, you need a way to enforce your license. One option is using third-party software to protect your software. Harold explains how to use Excel Software's AppProtect and other products to do just that.

* Cheap Web Hosting * by Kevin Cully
Are you interested in experimenting with Xojo web apps, but hesitant to commit to a high monthly bill? Kevin's found an incredibly cheap web host and shows how to you can use it with Xojo for just pennies a day.

Columns topics include creating a simple web photo gallery creator app, handy type conversion tips, encouragement from an older Xojo developer, Common Table Expressions in SQL, making RegEx more readable, Craig continues his database design series, and so much more.

MBS Xojo / Real Studio Plugins, version 14.4pr8

Sunday 02 November 2014 at 08:33 am
New in this prerelease of the 14.4 plugins:
  • Updated DynaPDF to version 3.0.36.104.
  • Fixed a problem with SQLDatabaseMBS.ColumnType not being correct for all types.
  • Added LoadRaw/SaveRaw using memoryblock to XLBookMBS class to avoid conversion to/from string.
Download: macsw.de/plugin/Prerelease. Or ask us to be added to our shared Dropbox folder.

MBS Filemaker Plugin, version 4.4pr8

Saturday 01 November 2014 at 11:40 pm
New in this prerelease of the 4.4 plugins:
  • Added TAPI functions.
  • Updated DynaPDF to version 3.0.36.104.
  • Fixed problem in XL.LoadBook introduced in pr5.
  • Fixed container reading to work on Windows with network paths.
  • Errors from file functions now include file path. e.g. when opening/creating a file failed.
Download at monkeybreadsoftware.de/filemaker/files/Prerelease/ or ask for being added to the dropbox shared folder.

64-bit Ready

Friday 31 October 2014 at 5:33 pm
Yesterday someone asked the state of our 64-bit preparation. Well, while Xojo does not have 64-bit support, we can already build our plugins for 64-bit. Of course without a Xojo version to test and a SDK supporting 64-bit this is more a challenge and not very useful.

For FileMaker, we already ship 64-bit plugin for FileMaker 13 Server as well as Web Publishing on FileMaker 12 Server. We also are prepared for the time when FileMaker may support 64-bit on client.

So we await the first Xojo and Filemaker Pro alpha/beta versions with 64-bit support.

Code Signing FileMaker Runtimes

Thursday 30 October 2014 at 11:19 pm
We just verified today:

Our code signing script and instructions for signing FileMaker runtimes work for Mac OS X 10.10 Yosemite and Xcode 6.

For steps, please check old article:
Code Signing FileMaker Runtimes

So for the next time, we are save. Now just hope that FileMaker will continue to allow people to make runtimes in the next years.
The up to date script is included with our MBS FileMaker Plugin download.

Older blog entries:

2014-10-29 Xojo UK User Group Event - Birmingham, November 13-14 2014
2014-10-28 Conference offer ending soon
2014-10-28 Conferences
2014-10-27 MBS Xojo / Real Studio Plugins, version 14.4pr7
2014-10-27 MBS Filemaker Plugin, version 4.4pr7
2014-10-25 My Case Study
2014-10-25 ExecuteSQL and getting error details
2014-10-24 Xojo for iOS
2014-10-24 Greetings from FileMaker conference in France
2014-10-22 The 2015 Xojo Developer Conference
2014-10-21 iOS will require 32/64bit apps
2014-10-20 New for Mac OS X 10.10 in MBS Xojo Plugins
2014-10-20 Mac OS X 10.10: 64-bit only Frameworks
2014-10-20 MBS Filemaker Plugin, version 4.4pr6
2014-10-20 MBS Xojo / Real Studio Plugins, version 14.4pr6
2014-10-18 Tip of the day: Quickly query image size
2014-10-18 Sending files from Finder to FileMaker
2014-10-15 Xojo Meeting in Winterthur
2014-10-12 MBS Xojo / Real Studio Plugins, version 14.4pr5
2014-10-12 MBS Filemaker Plugin, version 4.4pr5

Archives

Nov 2014
Oct 2012
Sep 2012
Aug 2012
Jul 2012
Jun 2012
May 2012
Apr 2012
Mar 2012
Feb 2012
Jan 2012
Dec 2011
Nov 2011
Oct 2011
Sep 2011
Aug 2011
Jul 2011
Jun 2011
May 2011
Apr 2011
Mar 2011
Feb 2011
Jan 2011
Dec 2010
Nov 2010
Oct 2010
Sep 2010
Aug 2010
Jul 2010
Jun 2010
May 2010
Apr 2010
Mar 2010
Feb 2010
Jan 2010
Dec 2009
Nov 2009
Oct 2009
Sep 2009
Aug 2009
Jul 2009
Apr 2009
Mar 2009
Feb 2009
Dec 2008
Nov 2008
Oct 2008
Aug 2008
May 2008
Apr 2008
Mar 2008
Feb 2008
XML: RSS Feed XML: Atom Feed