我刚刚升级到我的python应用程序的App Engine 1.7.6 SDK,并意识到使用new时断点不再适用于PyDev(Eclipse插件)dev_appserver.py.
有谁知道再次启用它们的方法?我假设新服务器正在为Web服务器生成一个新进程,并且调试器没有附加到该服务器.我不知道如何配置它来做到这一点.
在此期间我正在使用old_dev_appserver.py服务器.
我正在尝试将PayPal MPL库集成到iOS应用程序中.我有一个UIViewController创建PayPal按钮,如下所示:
- (void)viewDidLoad
{
[PayPal initializeWithAppID:SANDBOX_API_KEY
forEnvironment:ENV_SANDBOX];
UIButton* paypalButton = [[PayPal getPayPalInst] getPayButtonWithTarget:self andAction:@selector(checkoutPayment) andButtonType:BUTTON_294x43];
[self.view addSubview:paypalButton];
[super viewDidLoad];
}
Run Code Online (Sandbox Code Playgroud)
在打开ViewController后,应用程序会在控制台上打印以下错误消息.
Checking Error********************
Posting Error: 2147483647
DEVELOPER ERROR: This app isn’t using a supported version of the PayPal library.
Run Code Online (Sandbox Code Playgroud)
我在Google上找不到任何关于此错误的信息,所以我在这里.关于如何修复它的任何想法?
我正在使用xcode 4.5和iOS 6 beta进行测试,以及MPL库的1_5_5_070_iPhone_DevelopersPackage版本(网站上的最新版本).
我有一个水平的LinearLayout,里面有三个视图.每个都将其layout_width设置为0dp,并设置不同的权重.它们都为layout_height设置了wrap_content.
我的问题是,当他们中的一个包裹,别人不再填写的LinearLayout的全高(他们有背景,所以这看起来丑陋).
我想让所有这些填充LinearLayout中的任何剩余垂直空间,同时还允许它们在需要时包装内容.基本上,我希望他们都拥有最高的兄弟姐妹的身高.
我已经尝试将layout_gravity设置为"fill"和"fill_vertical",但这没有任何作用.
这是布局的一个例子:
<LinearLayout
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/background_dark"
android:orientation="horizontal" >
<Button
android:id="@+id/job"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="fill"
android:layout_margin="1dp"
android:layout_weight="4"
android:background="@drawable/btn_bkgnd_dark_grey"
android:drawableLeft="@drawable/icon_plus"
android:onClick="jobPressed"
android:padding="5dp"
android:text="Add to Job fgh dfhfg "
android:textAppearance="@style/rowitem_notes"
android:textColor="@android:color/white" />
<ImageButton
android:id="@+id/bookmark"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="fill"
android:layout_margin="1dp"
android:layout_weight="2"
android:background="@drawable/btn_bkgnd_dark_grey"
android:onClick="bookmarkPressed"
android:padding="5dp"
android:src="@drawable/icon_bookmark" />
<Button
android:id="@+id/itemDetailsButton"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="fill"
android:layout_margin="1dp"
android:layout_weight="4"
android:background="@drawable/btn_bkgnd_dark_grey"
android:drawableRight="@drawable/icon_info"
android:onClick="itemDetailsPressed"
android:padding="5dp"
android:text="Item Details"
android:textAppearance="@style/rowitem_notes"
android:textColor="@android:color/white" />
</LinearLayout>
Run Code Online (Sandbox Code Playgroud) 是否可以根据KeyProperty的祖先(父)进行查询?
EG,类似于以下内容:
class Foo(ndb.Model):
bar = ndb.KeyProperty()
Foo.query().filter(Foo.bar.parent == some_key)
Run Code Online (Sandbox Code Playgroud)
也就是说,我想找到所有具有条形键的foos,其中条形键的父级是some_key.
我希望避免必须将父项存储bar为单独的键属性(如果可能).基本上我想在KeyProperty上做一个祖先查询,但看不出你怎么做,如果可能的话.
我目前的解决方案是使用ComputedProperty提取bar的父级并将其存储为单独的字段.这有效,但似乎没必要,因为我已经将父键存储为条形键的一部分.
是否有地理空间数据的云托管解决方案?我目前正在编写一个目录样式的应用程序,企业可以注册,然后用户可以找到附近的应用程序.
我正在考虑使用谷歌应用程序引擎,但据我所知,自谷歌更新App Engine的定价以来,GeoModel代码相当昂贵(每年高达数万美元).App Engine的数据库似乎并不适合这种查询(尽管SQL解决方案可能是一个答案).
我希望找到一个服务,我可以发送一个HTTP请求来将数据(一个业务的id,名称和图标url)添加到数据库,然后另一个服务找到一个给定点附近的业务列表.服务是可取的,因为这是为客户完成的工作,我们希望通过尽可能少的来自我们或客户的交互来管理解决方案.
编辑:我刚刚发现使用PostgreSQL的cartodb.com,价格合理.还有其他选择吗?
android ×1
breakpoints ×1
cloud ×1
database ×1
eclipse ×1
geospatial ×1
ios ×1
paypal ×1
pydev ×1
python-2.7 ×1