我最近发布了一个关于我无法让Delphi 2010使用远程调试的问题.我没有取得任何成功,并决定发布一个简单的逐步测试技术,可能突出我做错了什么.这对我来说真的很重要 - 我从V1.0开始就使用Delphi并以此为生.像这样被困住是一种痛苦,它使我保持在Delphi 7上.
无论如何,这里去了.
确保Delphi 2010具有更新4和5.
启动Delphi 2010,然后启动File | 新的| VCL表格应用程序.在表单上放一个按钮,在按钮OnClick事件中放入'ShowMessage('hello').将项目及其单位保存在本地文件夹"C:\ scratch"中.构建项目,运行它,单击按钮,出现'hello',一切正常.
在联网的PC(194.168.1.64)上,创建一个新文件夹"c:\ DebugTest"并与R/W访问共享.
在194.168.1.64上,从Embarcadero网站(RemoteDebugger_upd2.exe)上的最新下载安装远程调试器.点击rmtdbg140.exe即可运行.接受来自防火墙的"解除阻止"消息.
使用Output directory =\192.168.1.64\DebugTest和unit output directory = c:\ scratch编辑DEBUG构建配置编译器设置 - 请参阅

编辑链接设置以设置Debug Information = True,包括远程调试符号= True.看到
将编译设置保留为默认值.看到
做一个完整的构建.相关项目exe'project2.exe'和'project2.rsm'出现在远程文件夹\ 192.168.1.64\DebugTest中.IDE中的Unit2中可以看到蓝点.
在"ShowMessage"行(按钮OnClick事件)上设置断点.
使用'运行'| "加载进程"使用远程路径= c:\ DebugTest\Project2.exe,远程主机= 192.168.1.64和工作目录= c:\ DebugTest参见
点击"加载".可见断点立即被禁用,项目开始运行并打开CPU窗口并停止.按f9导致exe在远程机器上完全运行,按钮工作,你只是无法调试它.
我尝试了各种"明显"的东西,比如防火墙关闭,但都无济于事.某个善良的人可以提出进一步的想法
非常感谢.
情况
我有两个时间戳.
一个是开始时间,一个是结束时间.
开始时间是:04:43:37
结束时间是:11 :59:59
现在我想尝试区分这样的日期:
//define timestamps
$start_time = 1297698217;
$end_time = 1297724399;
$time_diff = $end_time - $start_time;
//display times and difference
echo
'<b>Start time:</b> ' . date('d-m-Y h:i:s', $start_time) . '<br />' .
'<b>End time:</b> ' . date('d-m-Y h:i:s', $end_time) . '<br />' .
'<b>Time difference::</b> ' . date('h:i:s', $time_diff);Run Code Online (Sandbox Code Playgroud)
结果
Start time: 14-02-2011 04:43:37
End time: 14-02-2011 11:59:59
Time difference: 08:16:22
问题
现在的问题是结果应该是07:16:22.我已经尝试了不同的时间,但每次我得到相同的结果.一小时差异太大了.
有专家愿意帮忙吗?
这是我必须实现的一个水平菜单.这个菜单应该用左右箭头平滑地滚动,就像这个福克斯新闻应用程序https://market.android.com/details?id=com.foxnews.android与第一个应用程序屏幕截图.
通过在这个论坛上使用谷歌和其他帖子我使用horizontalScrollView来实现它,但不知道如何用箭头设置左右透明图像,以指示根据滚动有更多的元素向左或向右.
无论我编码什么,实现滚动运动,但它的速度慢,并努力用箭头显示左右图像.
请告诉我你是否有任何解决方案.
这个布局我正在使用
<HorizontalScrollView
android:id="@+id/hor_svID"
android:layout_width="wrap_content"
android:layout_height="35dip"
android:scrollbars="none"
android:fillViewport="false"
android:focusable="false"
android:background="@drawable/submenu_bg">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:orientation="horizontal"
android:focusable="false"
android:background="#FFFFFF"
android:gravity="center">
<TextView android:id="@+id/TechnologyTxtVId"
android:text="TECHNOLOGY"
android:textColor="#342D7E"
android:textSize="12sp"
android:textStyle="bold"
android:gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content"></TextView>
<TextView android:id="@+id/SportsTxtVId"
android:text="SPORTS"
android:textColor="#342D7E"
android:textStyle="bold"
android:textSize="12sp"
android:gravity="center"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:paddingLeft="15dip"></TextView>
<TextView android:id="@+id/EntntTxtVId"
android:text="ENTERTAINMENT"
android:textStyle="bold"
android:paddingLeft="15dip"
android:textSize="12sp"
android:gravity="center"
android:textColor="#342D7E"
android:layout_width="wrap_content"
android:layout_height="wrap_content"></TextView>
<TextView android:id="@+id/LocalTxtVId"
android:text="LOCAL"
android:textStyle="bold"
android:paddingLeft="15dip"
android:textSize="12sp"
android:textColor="#342D7E"
android:layout_width="wrap_content"
android:layout_height="wrap_content"></TextView>
<TextView android:id="@+id/WorldTxtVId"
android:text="WORLD"
android:textStyle="bold"
android:textSize="12sp"
android:paddingLeft="15dip"
android:gravity="center"
android:textColor="#342D7E"
android:layout_width="wrap_content"
android:layout_height="wrap_content"></TextView>
<TextView android:id="@+id/FeaturesTxtVId"
android:text="FEATURES"
android:textStyle="bold"
android:textSize="12sp"
android:paddingLeft="15dip"
android:gravity="center"
android:textColor="#342D7E"
android:layout_width="wrap_content"
android:layout_height="wrap_content"></TextView> …Run Code Online (Sandbox Code Playgroud) iOS应用必须具有全球唯一名称吗?在iTunes Connect发者指南暗示,他们这样做,但不那么直接说.它最接近的是(p71):
由于此删除[在120天内未提供二进制文件],您的应用名称将能够被其他开发人员使用
如果某个应用程序已重命名,那么旧名称是否会再次可用?
我希望将jqGrid用于我正在处理的当前Web项目.问题是,我似乎无法通过网格显示JSON数据.这是网格的初始化代码:
$.fn.loadjqgrid = function(httpposturl){
$(this).jqGrid({
url: httpposturl,
datatype: "json",
mtype: "GET",
colNames: ["Video Title", "Description", "Date Taken", "Date Uploaded"],
colModel: [
{name:"videoTitle", index:"videoTitle", width:150},
{name:"videoDescription", index:"videoDescription", width:200},
{name:"dateTaken", index:"dateTaken", width:150, sortable:true},
{name:"dateUploaded", index:"dateUploaded", width:150, sortable:true}
],
pager: "#gridpager",
rowNum: 10,
viewrecords: true,
caption: "Video Grid"
});
};
Run Code Online (Sandbox Code Playgroud)
Java servlet返回的JSON:
[{"dateTaken":"Wed Feb 16 00:00:00 UTC 2011","videoDescription":"This is a test","videoTitle":"Test Video","dateUploaded":""}]
Run Code Online (Sandbox Code Playgroud)
JSON的格式化方式或网格初始化方式是否有问题?谢谢您的帮助!
我System.Double最近询问过,并被告知计算可能因平台/架构而异.不幸的是,我找不到任何信息告诉我是否同样适用System.Decimal.
我是否保证在独立于平台/架构的情况下获得与任何特定计算完全相同的结果decimal?
我想使用boost将日期/时间格式化为字符串.
从当前日期/时间开始:
ptime now = second_clock::universal_time();
Run Code Online (Sandbox Code Playgroud)
并以包含此格式的日期/时间的wstring结束:
%Y%m%d_%H%M%S
Run Code Online (Sandbox Code Playgroud)
你能告诉我实现这个的代码吗?谢谢.
我正在使用64位MongoDB进行测试.如果我配置大容量备份,那么MongoDB内存利用率似乎很高.
是否有可能降低MongoDB的内存利用率.
我想在同一级别找到元素的下一个实例.
<div id="foo"></div>
<some html />
<span></span>
<div id="foo2"></div>
<span></span>
Run Code Online (Sandbox Code Playgroud)
什么jQuery选择器允许我为foo和foo2定位下一个跨度.我看了下一个,兄弟姐妹和最近的,但我无法得到任何工作.
我正在运行Windows XP并希望运行进程并打印其退出代码.我没有C编译器,也不想使用它.我确实有Python,所以我认为这可能是最简单的方法.
如何编写快速python脚本来运行进程并打印其退出代码?