在我对具有服务堆栈的服务器进行跨域调用之前,我已成功通过身份验证并获取我的令牌.
现在我想再做一次调用来检索数据:
$.ajax({
beforeSend: function(xhr) {
xhr.setRequestHeader('Authorization', 'Basic ' + getToken());
},
type: "GET",
url: requestUrl,
xhrFields: {
withCredentials: true
},
async: true,
dataType: 'json',
crossDomain: true
})
Run Code Online (Sandbox Code Playgroud)
当我查看我的谷歌chrome dev工具控制台时,我看到了这个:
OPTIONS http://MyPc.company:82//customers 404 (Not Found)
OPTIONS http://MyPc.company:82//customers Invalid HTTP status code 404
XMLHttpRequest cannot load http://MyPc.company:82//customers.
Invalid HTTP status code 404 (index):1
Run Code Online (Sandbox Code Playgroud)
当我看到小提琴手时,我看到了这个要求:
Inspectors => Auth:没有授权标头.
检查员=>原始:
OPTIONS http://MyPc.company:82//customers HTTP/1.1
Host: MyPc.company:82
Connection: keep-alive
Cache-Control: no-cache
Pragma: no-cache
Access-Control-Request-Method: GET
Origin: http://MyPc.company
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, …
Run Code Online (Sandbox Code Playgroud) 我想基于频率分析来破译文本.编程不是问题,但存在一些数学上的困难.
(不用担心,不是为了黑客攻击,我想要去Zodiac 340密码,但问题只是解释http://zodiackillerciphers.com/wiki/images/7/7d/340-cipher-hi -resolution.jpg,而不是关于密码的其他问题.)
我把它分解为5个与成本函数相关的简短问题,以显示我的努力,简短的答案很好,任何帮助赞赏.我的问题是成本函数中的值的差异非常小.
有关频率分析的问题:
如果不感兴趣,请跳过.我不想在这里详细介绍,有几种方法可以使用.粗略草图:
成本函数如何?一般可以表达为:
w1 * letterCost + w2 * pairCost + w3 * tripletCost + w4 * wordCost
并且所有轮动的总和是一个:
w1 + w2 + w3 + w4 = 1
关于成本函数的问题
现在用简单的频率忽略单词(w4 = 0)你可以计算频率并取平方差(这就是我现在正在做的事情).我想知道的是:w1 = w2 = w3或w1 = 27*w2 = 27*27*w3更合理吗?
如何处理条件概率?
你如何结合关于单词的知识?只计算有多少真正的英语单词,可能按它们的长度加权,还是有更聪明的方法?
我想使用jquery禁用下拉列表项.索引值为-1,值为-------内部-------.我逐一尝试了以下语法(解决方案是类似问题的答案).他们都没有工作.我使用的是IE8.
var value="------- Internal -------";
$("[id*='ChildOrganizationDropDownList'] option[value=" + value + "]").prop('disabled','disabled');
$("#ChildOrganizationDropDownList option[value=" + value + "]").prop('disabled','disabled');
$("[id*='ChildOrganizationDropDownList']").option('------- Internal -------').prop('disabled',true);
$("id*='ChildOrganizationDropDownList' option[value='------- Internal -------']").prop('disabled','disabled');
$("[id*='ChildOrganizationDropDownList']").option("[value*='------- Internal -------']").prop('disabled', true);
$("[id*='ChildOrganizationDropDownList']").attr("disabled",$(_this.CustomerNameDropDownList).find("option[value='------- Internal -------']"));
Run Code Online (Sandbox Code Playgroud)
设计师:Aspx
<div class="selectionControls">
<asp:CheckBox ID="chkSubcontracting" runat="server" Text="Subcontracting" Enabled="true" />
<asp:HiddenField ID="SubcontractingHiddenField" runat="server" />
<div class="subSelectionControl" id="AllowSubcotractingSelection" style="display: none;">
<div class="subContractingControls">
Parent BU:
<span>
<div class="subContractingControls">
Supplier <em class="mandatoryIndicator">*</em>:
<span>
<asp:DropDownList ID="ChildOrganizationDropDownList" runat="server" Width="200px" />
<asp:HiddenField ID="IxChildOrganizationHiddenField" runat="server" />
</span>
</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
Aspx.cs
public Dictionary<int, string> ChildOrganizations
{
set …
Run Code Online (Sandbox Code Playgroud) 假设我有一个事件列表.例如A, D, T, H, U, A, B, F, H, ...
.
我需要的是找到完整序列中出现的频繁模式.在这个问题中,我们不能使用传统算法,如先验或fp增长,因为它们需要单独的项集.并且,我无法将此流分解为更小的集合.
知道哪种算法对我有用吗?
编辑
例如,对于序列A, D, T, H, U, A, D, T, H, T, H, U, A, H, T, H
和with min_support = 2
.
频繁的模式将是
Of length 1 --> [A, D, T, H, U]
Of length 2 --> [AD, DT, TH, HU, UA, HT]
Of length 3 --> [ADT, DTH, THU, HUA]
Of length 4 --> [ADTH, THUA]
No sequences of length 5 and further
Run Code Online (Sandbox Code Playgroud) algorithm ×2
frequency ×2
jquery ×2
analysis ×1
asp.net ×1
cors ×1
data-mining ×1
encryption ×1
servicestack ×1
text ×1