刚刚在我的iPhone 3GS上切换到iOS 4,我的一些应用程序破了.
我遇到的一个问题是我有一个带有一些按钮的UIToolbar,有点粉红色,在3.1.3操作系统上运行良好.升级到iOS 4后,工具栏仍然有色,但它包含的按钮不再受色调的影响.工具栏是粉红色的,而按钮是常规蓝色.
在网上环顾四周,但没有发现这样的事情的参考.
谁知道这个过程中发生了什么?
我正在尝试编写一个简单的网站(ASP.NET v4),它将调用Windows搜索,找到一个特定的文件并将其返回给用户.我将以下内容放在一起作为示例:它在"remoteserver"上调用Windows Search服务,并返回"somefile.txt"的路径:
OleDbConnection conn = new OleDbConnection();
conn.ConnectionString = "Provider=Search.CollatorDSO;Extended Properties='Application=Windows';";
OleDbCommand cmd = conn.CreateCommand();
cmd.CommandText = string.Format(
"SELECT System.ItemPathDisplay, System.ItemType FROM " +
" sytelhp.systemindex WHERE SCOPE='file://remoteserver/archive' AND CONTAINS(\"System.FileName\", " +
" '\"*{0}*\"')", "somefile.txt");
conn.Open();
OleDbDataReader rdr = cmd.ExecuteReader();
string result=rdr[0].ToString();
Run Code Online (Sandbox Code Playgroud)
..这在Visual Studio 2010开发环境中效果很好,"结果"包含文件的路径.但是,如果我将其部署到本地IIS7服务器(在Server 2008上运行),我会收到此错误:
The parameter is incorrect.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in …Run Code Online (Sandbox Code Playgroud) 我试图使用一个没有安装在我的本地操作系统上的字体JasperReports.碧玉报告以这种方式使用:
<textField>
<reportElement x="0" y="0" width="137" height="20"/>
<textElement>
<font fontName="Corbel" size="12"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{something}]]></textFieldExpression>
</textField>
Run Code Online (Sandbox Code Playgroud)
命名的字体Corbel导出为字体扩展名(使用iReport),并包含在我的系统上的文件夹中的文件(Corbel.jar)中.我将此扩展添加到应用程序的类路径中,使用如下代码:
ClassLoader cl = new URLClassLoader(new URL[] {new URL("file:///D:/path/to/Corbel_jar_folder/")});
param = new HashMap();
param.put(JRParameter.REPORT_CLASS_LOADER, cl);
jasperReport = JasperCompileManager.compileReport("d:/path/to/Report_with_Corbel_font.jrxml");
jasperPrint = JasperFillManager.fillReport(jasperReport, param, new JREmptyDataSource());
Run Code Online (Sandbox Code Playgroud)
填写报告后,我使用a导出它JRPdfExporter.但是,在结果pdf文件中,元素没有Corbel应用字体.我没有包含pdf导出,因为我认为问题出在填充的某个地方.我搜索并阅读了许多与使用/包含字体(iefont扩展)相关的帖子和问题JasperReports; 我仍然不知道错误或问题存在于何处.任何帮助将不胜感激.
先感谢您!(对不起代码缩进,我希望我已经包含了足够的细节)
例如,我有这个表:
CREATE TABLE perarea
(
id_area INT primary key,
nombre VARCHAR2(200),
id_areapadre INT references perarea(id_area)
);
Run Code Online (Sandbox Code Playgroud)
而不是显示:
1 IT null
2 Recursos Humanos null
3 Contabilidad 2
4 Legal 2
Run Code Online (Sandbox Code Playgroud)
我想要:
1 IT
2 Recursos Humanos
3 Contabilidad Recursos Humanos
4 Legal Recursos Humanos
Run Code Online (Sandbox Code Playgroud)
有帮助吗?
我不能为我的生活弄清楚这个选择会是怎样的.
编辑:
此SQL查询有效,但不会提取NAME,只会提取父级的ID.有帮助吗?
select * from PerArea
connect by id_area = id_areapadre;
Run Code Online (Sandbox Code Playgroud) 在过去,大多数人在一个80字符宽的终端上编码.在许多语言中,如果不是圣洁的话,它就会变得接近它.
但现在很多人都有20英寸+显示器(或双显示器),所以屏幕空间不像以前那么重要.
所以我的问题是:在Visual Basic代码中,代码应该限制为80个字符,是否应该没有限制,或者它是否真的是一个主观的东西,取决于你的工作地点和你自己的喜好?
我一直在使用OpenCV,我见过的一些示例代码使用以下内容来读取文件名.我知道argc是传递的命令行参数的数量,而argv是参数字符串的向量,但有人可以澄清下一行的每个部分的作用吗?我试过搜索这个,但没有找到很多结果.谢谢.
const char* imagename = argc > 1 ? argv[1] : "lena.jpg";
Run Code Online (Sandbox Code Playgroud)
谢谢.
在我的网页中,我使用的是组合框和搜索按钮.
当我从组合框中选择一个值然后我单击搜索按钮时,组合框第一个匹配值正在显示
例如
搜索代码点击按钮:
cmd2 = new OdbcCommand("Select * from table where id = '" + combobox1.Text + "' ", con);
ada2 = new OdbcDataAdapter(cmd2);
ds1 = new DataSet();
ada2.Fill(ds1);
gridview1.DataSource = ds1;
gridview1.DataBind();
Run Code Online (Sandbox Code Playgroud)
我该如何解决这个问题?
让我们想象我有这样的事情:
<html>
...
<div>
<iframe src="test.html" hash="r4d5f7"></iframe>
<iframe src="test.html" hash="8f7x97"></iframe>
<iframe src="test.html" hash="gg4v5e"></iframe>
<iframe src="test.html" hash="e54f87"></iframe>
</div>
...
</html>
Run Code Online (Sandbox Code Playgroud)
test.html是空页面,自定义hash属性始终具有不同的值,出于安全原因,两个页面都位于同一个域中,iframe元素的数量和顺序是随机的.
我的问题是:有没有办法从内页(test.html)使用Javascript到其正确的iframe元素?让我们说,我在第三个iframe的页面,我需要得到它的iframe元素和alert()哈希值(在这种情况下是"gg4v5e").
更具体.如果您熟悉Firefox的Firebug,它可以看到这种情况:
<html>
...
<div>
<iframe src="test.html" hash="r4d5f7">
<html>
...
</html>
</iframe>
<iframe src="test.html" hash="8f7x97">
<html>
...
</html>
</iframe>
<iframe src="test.html" hash="gg4v5e">
<html>
...
</html>
</iframe>
<iframe src="test.html" hash="e54f87">
<html>
...
</html>
</iframe>
</div>
...
</html>
Run Code Online (Sandbox Code Playgroud)
<iframe>当我<html>在内页中的元素上使用Javascript时,是否可以调用"something"来获取父元素()?
我已经编程了一只手并将其扔在我主机的服务器上但是在这里得到了错误
致命错误:允许的内存大小为536870912字节耗尽(试图分配4294967296字节)
这是我的代码
<?php
require 'opsatning/top.php';
?>
<!--[if IE]>
<style>
.arrow { top: 100%; };
</style>
<![endif]-->
<div id="content_indhold">
<?php
$mysql = connect();
$stmt = $mysql->prepare("SELECT id,billed_sti,overskrift,indhold,brugernavn,dato FROM nyheder ORDER BY id DESC LIMIT 3");
$stmt->bind_result($id, $billed_sti, $overskrift, $indhold, $brugernavn, $dato);
$stmt->execute();
while($stmt->fetch()) {
?>
<div class="nyhederRamme2">
<h1><a href="vis.nyheder.php?id=<?php echo $id; ?>"><?php echo $overskrift; ?></a><span class="arrow"></span></h1>
<br />
<a href="vis.nyheder.php?id=<?php echo $id; ?>"><img style="float:left; margin-right:5px;" src="images/nyheder/<?php echo $billed_sti; ?>" /></a>
<a href="vis.nyheder.php?id=<?php echo $id; ?>"><?php echo substr($indhold,0,700); ?></a>
</div><!-- ramme …Run Code Online (Sandbox Code Playgroud) 我怎么能得到行动,我在恢复后暂停我的线程(抱歉我的英文不好),我会用代码解释
function mythreadf(p:Pointer):DWORD stdcall;
var i:Integer;
begin
for i:=0 to 1000000 do begin
if myevent.WaitFor(INFINITE)=wrsignaled
then
begin
if Form1.RadioButton1.Checked then ShowMessage('Checked');
Form1.Label1.Caption:=IntToStr(i);
end;
end;
end;
Run Code Online (Sandbox Code Playgroud)
我暂停和恢复我的线程使用resetevent和setevent后我通过点击resetevent按钮暂停我的线程,然后我检查radiobotton1后,再次使用setevent恢复我的线程.dont发送错误发生和应用程序关闭:(
任何人都可以在这个问题上帮助我
关于编辑1:错误图像 http://i49.tinypic.com/11r7nkn.jpg