我可以在Windows 10 IOT运行设备(R-PI 3)上创建Web应用程序吗?
在其他PI上,我已经使Debian与LightHttpd一起运行,但在Win10 IOT设备上的网络服务器上似乎找不到任何东西。
我确实看到了一些有关自我创建非常简单的Web服务器(例如,侦听端口)的示例,但是应该有更多的示例吗?
PS我添加了2个标记:Windows IOT和Windows-10-IOT-Core ....这些相同吗?
我认为标题有点神秘,这就是我想要做的......
我在我的表格中有两个日期时间字段.现在我想选择最大(即未来最远)日期大于'今天'的行
few examples: (today is 6-22)
date1: null, date2: null : no match, all lower than now
date1: null, date2: 5-31: no match, all lower than now
date1: null, date2: 6-23: match, 6-23 is larger than now
date1: 5-31, date2: 7-23: match, 6-23 is larger than now
date1: 7-21, date2: 1-23: match, 7-21 is larger than now
date1: 7-21, date2: null: match, 7-21 is larger than now
Run Code Online (Sandbox Code Playgroud)
所以在一些伪代码中:
select*from table where(max(date2,date2))> now
此致,米歇尔
我希望有人包含我的JS文件,它做了一些整洁的事情.我认为我就像谷歌一样把它放了:你在源代码中加了一个脚本标签,google js会处理所有事情.在我的php文件中是这样的:
echo '<script type="text/javascript"
src="http://www.site.com/gadget.js">
</script>';
Run Code Online (Sandbox Code Playgroud)
我是gadget.js,我写了一个范围:
document.write('<span id="GadgetPicture>');
document.write('</span>');
window.setTimeout('refreshImage();', 2000);
Run Code Online (Sandbox Code Playgroud)
在refreshImage函数中,我想引用我的span:
document.getElementById("GadgetPicture");
Run Code Online (Sandbox Code Playgroud)
但它让我无效......有人知道为什么吗?
另外,document.getElementById("body")也给null.
米歇尔
我有一个网站,其中一个子文件夹是/谢谢.
因此(一个)页面的完整URI将是
/thanks/index.php
Run Code Online (Sandbox Code Playgroud)
现在当我输入
/thanks/ 我得到200返回状态,它选择(默认)页面 index.php
但是,当我输入时,
/thanks我会获得301重定向/thanks/
<address>Apache/2.2.8 (Linux/SUSE) Server at www.mydomain.net Port 80</address>
Run Code Online (Sandbox Code Playgroud)
虽然行为是正确的,但我想直接/thanks提供/thanks/文件夹,没有301.
那可能吗?
顺便说一下,看起来apache正在自动生成301',我想知道:当你打电话/thanks代替时,实际调用了什么页面或来源/thanks/
我想我有一个小问题,但我不确定,因为它是我错了或.Net是错的,通常它不是.Net :)
但在我的测试场景中,我这样做了:
DateTime.DaysInMonth(2000,2)
Run Code Online (Sandbox Code Playgroud)
它返回29.
但据我所知,400年(0,400,800,1200等)不是闰年?
我的单元测试因此而失败,所以我想知道我是否使用了正确的数据类型?
阅读双重的规格,我认为应该没问题,但这就是发生的事情:
我正在从一个带有值的文件中读取一个字符串0,0175(逗号为十进制sep.)
然后我将它转换为double然后乘以10000.
执行乘法的函数是:
private static double? MultiplyBy10000(double? input)
{
if (!input.HasValue)
{
return null;
}
return input.Value*10000;
}
Run Code Online (Sandbox Code Playgroud)
接下来是来自眼前的窗口:
input.Value
0.0175
input.Value*10000
175.00000000000003
Run Code Online (Sandbox Code Playgroud)
这就是我的单元测试失败的原因,因为我期望175.
双重不够准确吗?
检查其他值:
input.Value*1
0.0175
input.Value*10
0.17500000000000002
input.Value*100
1.7500000000000002
input.Value*1000
17.5
input.Value*10000
175.00000000000003
Run Code Online (Sandbox Code Playgroud)
奇怪的是,我有12个测试用例0,0155 0,0225 0,016 0,0175 0,0095 0,016 0,016 0,0225 0,0235 0,0265
并断言其中4个,其他3个没有这种行为