FatFractal customer forums



Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jonnycools

Pages: 1 ... 3 4 [5]
61
NoServer Questions and Answers / Client side deserializer
« on: January 07, 2014, 10:34:06 PM »
From your documentation i gathered that the deserializer tries to maintain only one pointer to an object regardless of when or where it was queried, what I mean is if I fetch the object in one place but return it via an extension in another, both pointers are pointing to the same object.

What I'm trying to achieve is downloading from an extension a version of an object that includes a subset of the properties. Like the title and info, just enough to create an index. Later I will download all the information as the user requests it. I also plan to include transient properties from the extension that are not stored in the database but are return from the extension in the actual object.

Will the deserializer merge the data based on what values are different or just copy the new into the old. Will the transient properties be replaced completely if the second update does not contain them? Should I consider retiring the transient properties separately?   

62
I've learned to trust them when they say something is coming. This platform has so many cool features that go undocumented, one day i'll see set based queries go up.

My two sources of documentation are:

I've found that w3schools has probably the most comprehensive documentation on the javascript language,.

http://www.w3schools.com/js/default.asp

The ringo is the commonjs implementation they used (not sure if I'm getting that right)

Anyways the point is they provide non standard javascript library for you to use, you just need to write the appropriate require statements.

You'd make your http request through their javascript API.

http://ringojs.org/api/master/index.html

63
NoServer Questions and Answers / Re: Send Email
« on: December 31, 2013, 07:18:34 AM »
You guys are just too good to me!

64
NoServer Questions and Answers / Grabbag Count
« on: December 30, 2013, 10:07:38 AM »
How robust is the grabBagCountObjects method on ff in the cloud. I may be calling this several times a second as i retrieve objects and need to return the counters for the grabbag. Is it better to cache the count in the object via grabbag event handlers or just call this method upon retrieval?

65
NoServer Questions and Answers / Re: Send Email
« on: December 30, 2013, 09:05:20 AM »
I figured out the TLS vs SSL. Clearly i don't understand how email works. I signed up for a mandrill account and i'm getting the same error with their smtp interface. If all else fails i can just default to their API.

66
NoServer Questions and Answers / Re: Send Email
« on: December 29, 2013, 09:29:35 PM »
Currently i use hotmail and iCloud, both failed with the same error.

Does the from field allow me to override the email address of the sender?

Is it possible this is an issue with authentication? SSL vs TLS, I'm just tossing things out. Let me know if I need to call the apple care line

I hope that was a temporary passcode for your @me.com account.

67
NoServer Questions and Answers / Send Email
« on: December 28, 2013, 03:50:28 PM »
I'm having a bit f a problem with the sendEmail function. Its probably just my parameters are off. I've tried with both hotmail and iCloud. I used the ports they gave me.

I have this function to create an email.

function Email()
{
   this.host = "smtp.mail.me.com";
   this.port = 587;
   this.auth = true;
   this.authPort = 587;
   this.username = "****@me.com";
   this.password = "******";
   this.from = "******@me.com";
   this.to = null;
   this.cc = null;
   this.bcc = null;
   this.subject = null;
   this.text = null;
   this.html = null;
}

Then i fill in the content and to fields

var email = new Email();
email.to = user.email;
email.subject = "Blah";
email.text = "blah";
ff.sendEmail(email);

Here's the iCloud article losing the ports:

http://support.apple.com/kb/HT4864

They mention using TLS over SSL, not sure if this is an issue or not.

I'm getting this from the extension - Status message from backend is Could not connect to SMTP host: smtp.mail.me.com, port: 587

68
NoServer Questions and Answers / Re: Query results limitation
« on: December 24, 2013, 08:38:03 PM »
/Conversation/(guid eq 'XXXXXXX')/BackReferences.Message.conversation?sort=createdAt&count=8&start=0

First i would sort by the date created, this will list in ascending order, not sure if that sorts new to old. if not do

/Conversation/(guid eq 'XXXXXXX')/BackReferences.Message.conversation?sort=createdAt desc&count=8&start=0

created at is part of the metadata and you can sort by that property.

69
NoServer Questions and Answers / Re: Query results limitation
« on: December 24, 2013, 12:56:40 PM »
You must use count and start together or it will not work.

/Conversation/(guid eq 'XXXXXXX')/BackReferences.Message.conversation?count=8&start=0

70
NoServer Questions and Answers / Re: Query comparison of substring
« on: December 24, 2013, 12:55:32 PM »
NSArray *chairs = [ff getArrayFromUri:@""/FFUser/(email matches '.+yahoo.com'"];
NSArray *chairs = [ff getArrayFromUri:@""/FFUser/(email contains_any 'yahoo.com'"];

 

71
NoServer Questions and Answers / Re: Posting Text File to Extension
« on: December 19, 2013, 08:22:01 PM »
Three things.

1) You can store the files on the server in the BYTEARRAY if you like.

2) if you are going to convert them into strings why not just send the strings over the extension request.

3) the SDK proves methods for interacting with extensions as well as sending content to it

- iOS

- (void)sendFilesInBackground:(NSArray *)files {

[[FatFractal main] postObj:files toExtension:@"ExtensionName" onComplete:^(NSError *theErr, id theObj, NSHTTPURLResponse *theResponse) {
         
       }];

}

- JS

exports.extensionName = function()
{

   var filesArray = data.httpContent;

//do stuff


   var response = ff.response();

   response.responseCode = 200;

   response.statusMessage = "";

   response.result = "Result";

   response.mimeType = "application/json";

}



72
NoServer Questions and Answers / Alias question
« on: December 17, 2013, 08:23:16 AM »
Is this a valid Alias?

CREATE OBJECTTYPE Subscription ()

CREATE ALIAS ON OBJECTTYPE FFUser GRABBAG BackReferences.Subcription.createdBy AS subscriptions

Right now it isn't returning anything when I use it in a query like this:

"/FFUser/" + guid + "/subscriptions"

MaintainCreatedUpdatedBackReferences is set to false.

73
NoServer Questions and Answers / Re: Float precision in Numeric
« on: December 11, 2013, 12:46:50 PM »
FYI, the FFGeolocation object has built in support for location information. It also has benefits when querying via distance

74
This would be awesome!

Pages: 1 ... 3 4 [5]
Copyright © FatFractal customer forums