惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

罗磊的独立博客
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Visual Studio Blog
MyScale Blog
MyScale Blog
M
MIT News - Artificial intelligence
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
The Blog of Author Tim Ferriss
Martin Fowler
Martin Fowler
博客园 - 【当耐特】
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
宝玉的分享
宝玉的分享
Engineering at Meta
Engineering at Meta
WordPress大学
WordPress大学
Google DeepMind News
Google DeepMind News
C
Check Point Blog
Last Week in AI
Last Week in AI
F
Fortinet All Blogs
博客园 - 聂微东
Blog — PlanetScale
Blog — PlanetScale
H
Help Net Security
GbyAI
GbyAI
云风的 BLOG
云风的 BLOG

博客园 - Jake Lin

在Objective C中定义私有的成员变量 解决Azure “Failed to start Storage Emulator: the SQL Server instance `.\' could not be found.” - Jake Lin 从Windows到Android开发 UITableViewController与UIViewController中使用UITableView 解决An attempt was made to load a program with an incorrect format.问题 在Heroku上部署Node.js 重命名Heroku的app 如何在cocoapods中使用更新版本的pod 在iOS5或者以上修改Navigation bar的颜色 iOS 5解决Could not instantiate class named NSLayoutConstraint问题 四步开始使用Heroku 解决Azure中COULD NOT LOAD FILE OR ASSEMBLY问题 The copy of Windows is not genuine-微软自己用盗版 Azure:不能把同一个certificate同时用于Azure Management和RDP 解决Azure publish “the remote desktop configuration was not generated by windows azure Tools”问题 Xcode 4.5解决Storyboards are unavailable on iOS 4.3 and prior问题 Storyboard只支持iOS5.0或者以上的版本 Xcode4.4以后定义@property时可以省去@synthesize iOS处理Orientation
一个跨设备的云数据平台parse.com
Jake Lin · 2013-01-08 · via 博客园 - Jake Lin

这是一个云数据平台,其包含了几个产品,Parse Data,Parse Push,Parse Social和Cloud Code。顾名思义,Parse Data用于存储数据,其支持把不同设备的数据同步存储到Cloud中。目前基本支持所有主流的设备。使用也非常方便,例如下面的代码:

Ios_128

iOS

Osx_128

OS X

PFObject *testObject = [PFObject objectWithClassName:@"TestObject"];
[testObject setObject:@"bar" forKey:@"foo"];
[testObject save];

Android_128

Android

ParseObject testObject = new ParseObject("TestObject");
testObject.put("foo", "bar");
testObject.saveInBackground();

Js_128

JavaScript

var TestObject = Parse.Object.extend("TestObject");
var testObject = new TestObject();
testObject.save({foo: "bar"}, {
  success: function(object) {
    alert("yay! it worked");
  }
});

Windows_128

Windows 8

Windows_phone_128

Windows Phone 8

var testObject = new ParseObject("TestObject");
testObject["foo"] = "bar";
await testObject.SaveAsync();
 
微软也有类似的服务,叫做Azure Mobile Services。目前支持iOS, Windows 8和Windows Phone平台,后台是SQL Azure,有兴趣可以了解下。我可能在下一个app使用parse.com,如果有什么经验会在blog中更新。