Skip to content

Instantly share code, notes, and snippets.

<cfcomponent name="CustomerConfig" entityname="CustomerConfig"
table="CustomerConfigs" persistent="true" output="false">
<cfproperty name="customerConfigID" type="numeric" fieldtype="id"/>
<cfproperty name="systemConfigs" singular="systemConfig" lazy="false" fieldtype="one-to-many" cfc="SystemConfig" fkcolumn="customerConfigID" inverse="true"/>
</cfcomponent>
@iotashan
iotashan / Analytics.js
Created September 14, 2011 20:14
Neat file that combines TestFlight and Google Analytics into one easy-to-use Module
exports.Analytics = function() {
// testflight
if (Ti.Platform.osname !== 'android') {
this.testflight = require("ti.testflight");
this.testflight.token('teamtokengoeshere');
Ti.API.debug("module is => " + this.testflight);
}
// Google
Titanium.include('/lib/analytics.js');
06-10 13:34:03.623 12757 12776 E TiDownloadManager: (pool-2-thread-2) [24,243257] Exception downloading http://beerimages.pintley.com/12304/hades_mobileThumb.png
06-10 13:34:03.623 12757 12776 E TiDownloadManager: java.io.FileNotFoundException: /mnt/sdcard/com.pintley.Pintley/remote-image-cache/c4893e90ebeefd672ccd1b9fad902b7b8eec0e8e.hdr (Permission denied)
06-10 13:34:03.623 12757 12776 E TiDownloadManager: at org.apache.harmony.luni.platform.OSFileSystem.open(Native Method)
06-10 13:34:03.623 12757 12776 E TiDownloadManager: at dalvik.system.BlockGuard$WrappedFileSystem.open(BlockGuard.java:232)
06-10 13:34:03.623 12757 12776 E TiDownloadManager: at java.io.FileOutputStream.<init>(FileOutputStream.java:94)
06-10 13:34:03.623 12757 12776 E TiDownloadManager: at java.io.FileOutputStream.<init>(FileOutputStream.java:66)
06-10 13:34:03.623 12757 12776 E TiDownloadManager: at java.io.FileWriter.<init>(FileWriter.java:42)
06-10 13:34:03.623 12757 12776 E TiDownloadManager: at org.appcelerator.titanium.util