我遇到了以下问题,我创建了一个带有图库的表单,而不是包含图像的图库包含来自我的某个类的项目,图库中每个项目内的所有内容都显示完美.我删除了图像之间的空间:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<Gallery android:id="@+id/galleryid"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:spacing="0dip"
android:padding="0dip"
android:layout_weight="1" />
Run Code Online (Sandbox Code Playgroud)
画廊的项目:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:id="@+id/LinearLayout01"
android:layout_width="75dip" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="wrap_content" android:orientation="vertical" android:gravity="center_horizontal" android:background="#ffffff">
<TextView android:id="@+id/frame_number" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="-" android:textSize="12dip" android:textColor="#ffffff" android:background="#000000" android:gravity="center" />
<LinearLayout android:id="@+id/LinearLayout01"
android:layout_width="fill_parent"
android:layout_height="fill_parent" android:orientation="horizontal" android:gravity="center_horizontal">
<TextView android:id="@+id/frame_shot1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="-" android:textSize="18dip" android:textColor="#000000" />
<TextView android:id="@+id/frame_shot2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="-" android:textSize="18dip" android:textColor="#000000" />
</LinearLayout>
<TextView android:id="@+id/frame_total" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="---" android:textSize="38dip" android:textColor="#000000"/>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
buuuuuuuuuuuuuuuut,我遇到了问题,画廊的开头和结尾都有一些空白区域,没有任何物品.问题是我的画廊上面有许多物品,你可以实际上水平滚动,但我想摆脱那些空间,所以画廊左边的第一件事是第一件事,最后是当你滚动最右边是正确的项目.
编辑08/16仍然在项目中回到同样的问题,在这里我留下一个图像,正是我想要摆脱的是那个开头的黑色空间(也就是在画廊的尽头)另一边)

我对 Spark 还是比较陌生,但我已经能够创建 Spark 应用程序我需要能够使用 JDBC 驱动程序从我们的 SQL Server 重新处理数据(我们正在删除昂贵的 SP),该应用程序从 Sql Server 加载一些表通过 JDBC 进入数据帧,然后我做了一些连接、一个组和一个过滤器,最后通过 JDBC 将一些数据重新插入到不同的表中。所有这些在 Amazon Web Services 中的 Spark EMR 中执行得很好,在 m3.xlarge 中有 2 个内核,大约一分钟。
我的问题如下: 1. 现在我在集群上有 1 个主节点和 2 个内核,但是每次我启动一个新步骤时,从我从历史服务器中看到的情况来看,似乎只有 1 个执行程序被用作我可以看到列出了 2 个执行程序,驱动程序根本没有使用,一个 id 为 1 的执行程序处理大约 1410 个任务。我完全不确定如何进行。
这也是 AWS 特有的,但我不想发布 2 个问题,因为它们有某种关联,有什么办法可以同时运行 2 个步骤?这意味着能够同时运行这个进程的 2 个 spark-submits,因为我们每天多次运行这个进程(它处理客户端数据)。我知道我可以通过该步骤启动一个新集群,但我希望能够快速进行处理,而只是启动一个新集群需要很长时间。谢谢!!!
我做了一个项目,我必须对网站进行一些修复,我在尝试将数据库从备份导入到本地计算机时遇到了一些问题.
我收到的消息如下:
附加信息:
System.Data.SqlClient.SqlError:数据库已在运行12.00.2000版的服务器上备份.该版本与运行版本11.00.3000的此服务器不兼容.在支持备份的服务器上还原数据库,或使用与此服务器兼容的备份.(Microsoft.SqlServer.SmoExtended)
问题是我正在运行SQL Server 2014 Management Studio,它是一个12.2000.8版本,因此它应该可以工作,但事实并非如此.
作为第二个选项,我尝试生成脚本(因为我可以连接到远程数据库),但它也不允许我.它只是在脚本创建过程中的某处出现错误.
任何想法我可能会缺少什么或我可以做些什么来解决这个问题?
我正在与win 8.1,VS 2014和SQL Server 2014 Management Studio一起工作.