问题列表 - 第42914页

使用PHP自定义字体颜色导出为CSV

在我的应用程序中,我能够成功地将数据导出到CSV文件,但我需要CSV文件的某些内容为"粗体"和"颜色".这样做可能吗?如果是这样,请帮助我.

php csv

6
推荐指数
1
解决办法
1万
查看次数

什么是ASP.Net中的CSS,主题和皮肤?

我是ASP.Net的初学者.我想知道ASP.Net中的CSS,主题和皮肤是什么?以及如何在ASP.Net中创建和使用这些东西?请用简单的例子来解释.谢谢.

css c# asp.net themes skin

2
推荐指数
1
解决办法
4238
查看次数

UIWebView loadHTMLString显示空白屏幕

我对UIWebView的loadHTMLString有一个奇怪的问题,当我用我的内容HTML字符串调用loadHTMLString时,它只会显示一个空白视图.htmlstring的内容无关紧要,它什么都不做.

奇怪的是,几周前我曾经在模拟器和设备上进行测试.我的代码如下:

NSMutableString *sHtmlBuf = [NSMutableString stringWithString:@"<body style=\"background-color: #000000; color: #FFFFFF; font-family: Helvetica; font-size: 10pt; width: 300px; word-wrap: break-word;\">"];

if ([m_oCallArray count] > 0 || [m_oPutArray count] > 0) {
    [sHtmlBuf appendString:sWarrTitle];

    if ([m_oCallArray count] > 0) {
        NSString *formattedCall = [NSString stringWithFormat:@"%@ %@<br />",sCallTitle,[self arrayToString:m_oCallArray]];
        [sHtmlBuf appendFormat:@"%@ ",formattedCall];
    }

    if ([m_oPutArray count] > 0) {
        NSString *formattedPut = [NSString stringWithFormat:@"%@ %@<br />",sPutsTitle,[self arrayToString:m_oPutArray]];
        [sHtmlBuf appendFormat:@"%@ ",formattedPut];
    }

}

if ([m_oBullArray count] > 0 || [m_oBearArray count] > 0) { …
Run Code Online (Sandbox Code Playgroud)

iphone uiwebview ios4

19
推荐指数
2
解决办法
4万
查看次数

ASP.Net webservices中的JSON数组类型解析

所以我已经研究了如何将我的自定义对象传递到ASP.Net json webservices.有魅力.

我遇到的问题是传递自定义对象的直接数组,或者传入作为自定义对象参数的数组.

所以例如......

Public Class WebService1
    Inherits System.Web.Services.WebService

    <WebMethod()> _
    <ScriptMethod(ResponseFormat:=ResponseFormat.Json)> _
    Public Function AddPersonList(ByVal PersonList As PersonList) As String
        Debug.Assert(False)
    End Function

    Public Class Person
        Public Sub New()
        End Sub

        Public Property FirstName As String
        Public Property LastName As String
    End Class

    Public Class PersonList
        Inherits List(Of Person)

    End Class
End Class

<script>
        $(function () {
            $.ajax({
                type: "POST",
                url: "WebService1.asmx/AddPersonList",
                data: " { PersonList: [ { FirstName: 'Max', LastName: 'Gershkovich' }, { FirstName: 'Test1', LastName: 'Test2' …
Run Code Online (Sandbox Code Playgroud)

javascript vb.net asp.net jquery webservice-client

9
推荐指数
1
解决办法
2581
查看次数

在shell脚本中求和

为什么我不能在这个脚本中创建总单词的总和?我得到的结果如下:

 120+130
Run Code Online (Sandbox Code Playgroud)

但它不是250(正如我所料)!有什么缘故吗?

#!/bin/bash

while [ -z "$count" ] ;
do
    echo -e "request :: please enter file name "
    echo -e "\n\tfile one : \c"
    read count

    itself=counter.sh

    countWords=`wc -w $count |cut -d ' ' -f 1`
    countLines=`wc -l $count |cut -d ' ' -f 1`
    countWords_=`wc -w $itself |cut -d ' ' -f 1`

    echo "Number of lines: " $countLines
    echo "Number of words: " $countWords
    echo "Number of words -script: " $countWords_

    echo "Number of words -total …
Run Code Online (Sandbox Code Playgroud)

linux shell sum

0
推荐指数
1
解决办法
1584
查看次数

将mySQL Column数据类型从text更改为timestamp

如何将列的数据类型从文本更改为时间戳.当前文本列以以下格式存储日期:'2010-08-15'(yyyy-mm-dd sql格式)

mysql

8
推荐指数
1
解决办法
2万
查看次数

数据库设计问题 - 存储国际人名

据我所知,FirstName LastName"问题"经常引起使用美国人设计网站的人的抱怨.您认为哪种系统更适合更多国家/地区?您建议使用哪些字段来存储名称可能需要访问,理解或显示的各种方式?

根据系统的用途,我将根据美国FirstName MiddleName和LastName的想法提出以下字段.中间名在美国几乎未被使用,但大多数人都有一个.它可以帮助区分共享相同组合FirstName LastName的许多人.

FirstName   : George
MiddleName  : Henry
LastName    : Davis
DisplayName : George D.
Alias       : Kidd1985
LegalName   : George Henry Davis
Run Code Online (Sandbox Code Playgroud)

显然,我的设计可能存在一些缺陷,因为LegalName包含与其他字段相同的数据.但是,我怀疑存在无法从其他字段派生LegalName的情况.

但现在我很好奇你们为国际观众推荐的系统是什么?

database-design

9
推荐指数
1
解决办法
1289
查看次数

NServiceBus - 发布后回复消息

我有一个成功处理消息的订阅者,然后订阅者继续成功发布另一个消息以声明某个事件已经发生,我的问题是我在发布后尝试将消息返回给初始消息的发送者并且系统因以下消息而失败

没有为消息NServiceBus.Unicast.Transport.CompletionMessage指定目标.消息无法发送.检查配置文件中的UnicastBusConfig部分,并确保消息类型存在MessageEndpointMapping.

返回码如下所示:

 Bus.Publish(orderMessage);

 Bus.Return((int)MySendBus.Core.ErrorCode.Ok);
Run Code Online (Sandbox Code Playgroud)

app.config如下:

<configuration>
  <configSections>
    <section name="MsmqTransportConfig" type="NServiceBus.Config.MsmqTransportConfig, NServiceBus.Core"/>
  </configSections>

  <MsmqTransportConfig InputQueue="MyServerInputQueue" ErrorQueue="error" NumberOfWorkerThreads="1" MaxRetries="5"/>
</configuration>
Run Code Online (Sandbox Code Playgroud)

我添加了一个单播部分,仍然得到相同的错误.我的理解是NServicebus知道如何回复消息,我不应该为app.config中找到的MsmqTransportConfig输入队列指定除了回复的队列.

是否可以让订阅者发布消息然后响应消息的发送位置?

c# nservicebus

4
推荐指数
1
解决办法
3136
查看次数

即使与libole32链接,外部库中的未定义OLE引用也是如此

使用MINGW,我试图将我的C代码链接到执行一些OLE操作的静态C++库:

mingw32-gcc main.o resources.o -o mbcom.exe -L../../Lib/Iup -liup -liupole -lole32 -lcomctl32 -lstdc++ -mwindows
Run Code Online (Sandbox Code Playgroud)

不幸的是,我得到了这个:

../../Lib/Iup/libiupole.a(tOleHandler.o):tOleHandler.cpp:(.text+0x341): undefined reference to `IID_IOleControl'
../../Lib/Iup/libiupole.a(tOleHandler.o):tOleHandler.cpp:(.text+0x9b0): undefined reference to `IID_IViewObject2'
../../Lib/Iup/libiupole.a(tOleHandler.o):tOleHandler.cpp:(.text+0xcb5): undefined reference to `IID_IUnknown'
../../Lib/Iup/libiupole.a(tOleHandler.o):tOleHandler.cpp:(.text+0xce8): undefined reference to `IID_IPersistStorage'
../../Lib/Iup/libiupole.a(tOleHandler.o):tOleHandler.cpp:(.text+0xd1b): undefined reference to `IID_IOleObject'
../../Lib/Iup/libiupole.a(tOleHandler.o):tOleHandler.cpp:(.text+0xd9d): undefined reference to `IID_IUnknown'
../../Lib/Iup/libiupole.a(tOleHandler.o):tOleHandler.cpp:(.text+0xdbf): undefined reference to `IID_IOleClientSite'
../../Lib/Iup/libiupole.a(tOleHandler.o):tOleHandler.cpp:(.text+0xde1): undefined reference to `IID_IOleWindow'
../../Lib/Iup/libiupole.a(tOleHandler.o):tOleHandler.cpp:(.text+0xe03): undefined reference to `IID_IOleControlSite'
../../Lib/Iup/libiupole.a(tOleHandler.o):tOleHandler.cpp:(.text+0xe25): undefined reference to `IID_IDispatch'
../../Lib/Iup/libiupole.a(tOleHandler.o):tOleHandler.cpp:(.text+0xe51): undefined reference to `IID_IOleInPlaceSite'
../../Lib/Iup/libiupole.a(tOleHandler.o):tOleHandler.cpp:(.text+0x1129): undefined reference to `GUID_NULL'
../../Lib/Iup/libiupole.a(tOleHandler.o):tOleHandler.cpp:(.text+0x124d): undefined reference to `GUID_NULL'
../../Lib/Iup/libiupole.a(tOleInPlaceSite.o):tOleInPlaceSite.cpp:(.text+0xc8): …
Run Code Online (Sandbox Code Playgroud)

c c++ ole mingw undefined-reference

9
推荐指数
1
解决办法
5409
查看次数

mapview刷新

我的appn中有一个mapview.当页面加载时,我会在地图上显示一些点.我在该页面中也有一个搜索按钮.因此,在我提供搜索内容并单击搜索按钮后,地图不会刷新.只有当我们触摸地图上的任何地方时,它才会刷新.我也给了mapview.invalidate().还是行不通...

知道为什么会出现这个问题吗?

android google-maps android-mapview

3
推荐指数
1
解决办法
8376
查看次数