问题列表 - 第41372页

有没有办法将TextView设置为大写所有字母的大写?

我希望能够将xml属性或样式分配给一个TextView将在所有大写字母中生成任何文本的属性或样式.

属性android:inputType="textCapCharacters"并且android:capitalize="characters"什么也不做,看起来像是用户输入的文本,而不是TextView.

我想这样做,所以我可以将风格与内容分开.我知道我可以在程序上做到这一点,但我想再次保持内容和代码的风格.

android capitalization textview

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

"马歇尔"还是"元帅"?"编组"还是"编组"?

在编程环境中它是哪一个?有区别吗?我已经看到了两种方式,我不想在我的代码中拼写错误.

terminology marshalling

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

从postgresql数据库定期运行查询(ala crontab)

我试图在postgresql数据库表中复制(一个最小的)crontab功能,具有类似crontab的语义,如下所示(索引未显示,为simiplicity):

create table schedule (
id int not null primary key,
command text
);

create table schedule_detail(
schedule_id int not null references schedule(id),
sd_minute smallint not null,
sd_hour smallint not null,
sd_day smallint not null,
sd_month smallint not null,
sd_year smallint not null,
sd_dayofweek smallint not null
);
Run Code Online (Sandbox Code Playgroud)

我只有架构设计.我想了解如何实现这一点.特别是,如何实现:

  1. 计划表的"定期轮询"
  2. 如何确定要运行的计划

postgresql是否具有我可以构建的任何本机(内置)功能来实现此行为?

sql postgresql

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

以编程方式确定Qt样式表选项?

是否可以在Qt中运行时查找样式表值?

我正在开发一个自定义按钮,QPushButton该按钮具有一些样式表属性集.我想能够查询像边框宽度的一些样式设置,margin,padding-top,padding-left,padding-right,等这是在所有可能做到,而无需调用widget->getStyleSheet()和分析了自己的价值观?

c++ qt qtstylesheets

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

WCF是否适合现实世界?

我在这里阅读http://arunatennakoon.blogspot.com/2010/11/things-i-learn-new-this-week.html

Friday, November 12, 2010
Things I learn new this week
1. Never ever use WCF.
---------------------

here is why
1. IIS 7 doesn't support .svc file format by default. So you need to
Run Code Online (Sandbox Code Playgroud)

安装一些扩展文件.所以新产品的工作量很大.

2. I found it very hard to configure security settings. when i
Run Code Online (Sandbox Code Playgroud)

试图配置它第一次抛出所有类型的错误.

3. After installing WCF in IIS, sometimes it's trowing an exception
Run Code Online (Sandbox Code Playgroud)

指的是temp目录.要解决此问题,您必须重新编译应用程序并重新分发

and a lot more...
Run Code Online (Sandbox Code Playgroud)

那么你会冒风险使用WCF吗?

我想知道每年有数百至数十亿的真实世界的例子.

asp.net wcf

0
推荐指数
2
解决办法
743
查看次数

启用持久性时,WF4中的多个接收活动失败

我有一个具有多个接收功能的WF4工作流程.

工作流运行正常,直到我添加持久性.我创建了持久性表,并将以下内容添加到web.config的\ configuration\system.serviceModel\behaviors\serviceBehaviors部分:

    <behavior>
      <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
      <serviceMetadata httpGetEnabled="true" />
      <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
      <serviceDebug includeExceptionDetailInFaults="true" />
      <sqlWorkflowInstanceStore connectionStringName="InstanceStore"
        instanceCompletionAction="DeleteAll"
        instanceLockedExceptionAction= "NoRetry"
        instanceEncodingOption="None"
        hostLockRenewalPeriod="00:01:00" 
      />
    </behavior>
Run Code Online (Sandbox Code Playgroud)

工作流接受一个参数,该参数是我定义的WorkflowInstanceDTO POCO的实例.

当我使用以下代码运行工作流程时

    var wfi = new WFService.WorkflowInstanceDTO()
    {
        Id = 1,
        InstanceId …
Run Code Online (Sandbox Code Playgroud)

workflow persistence workflow-foundation-4

5
推荐指数
1
解决办法
843
查看次数

使用数据库存储配置而不是配置文件

不幸的是,搜索这种材料会给我带来很多噪音,所以我想知道是否有人知道如果有人希望学习如何使用数据库来存储网站配置信息而不是文件,那么这里有一个很好的资源.

我想我感兴趣的一些要点是:1)如何存储数据.一个像e107的阵列?每个可配置的单独行?2)如何获取配置数据.全球阵列?

php mysql sql database configuration

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

是否可以创建具有不同大小子节点的GridView?

那么让我们试着解释一下我想做什么......

我的设计看起来像这样 -

![替代文字] [1]

为此,我创建了两个GridView,如下所示:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:orientation="vertical"
              android:layout_width="match_parent"
              android:layout_height="wrap_content">

    <LinearLayout android:orientation="vertical"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content">

        <TextView style="@style/GroupName"
                  android:text="@string/currency_badges"/>

        <GridView android:id="@+id/currency_grid"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:columnWidth="90dp"
                  android:numColumns="auto_fit"
                  android:verticalSpacing="10dp"
                  android:horizontalSpacing="10dp"
                  android:stretchMode="columnWidth"
                  android:gravity="left"/>

    </LinearLayout>

    <LinearLayout android:orientation="vertical"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content">

        <TextView style="@style/GroupName"
                  android:text="@string/foursquare_badges"/>

        <GridView android:id="@+id/foursquare_grid"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:columnWidth="90dp"
                  android:numColumns="auto_fit"
                  android:verticalSpacing="10dp"
                  android:horizontalSpacing="10dp"
                  android:stretchMode="columnWidth"
                  android:gravity="left"/>

    </LinearLayout>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)

我对此并不满意,因为你可以看到右上方图标的标签是隐藏的.我可以点击并滚动,但这不是我想要的.更大的问题是每个人都GridView拥有自己的滚动条.再也不是我想要的.所以我想我想用一个GridView来完成这个.如何使用a GridView来显示图标,然后在图标中间显示GroupName.我知道我可以创建一个BaseAdapter返回不同类型的视图,但我需要有一个项目,水平占据整个空间.这可能吗?

编辑:

我想一个更好的问题是如何创建分组GridView?

android

7
推荐指数
1
解决办法
1456
查看次数

我怎样才能在jQuery中操作这个对象

jQuery(function () {
    $('#square a').click(function(e) {  
    // How is the e object structured
    }); 
})
Run Code Online (Sandbox Code Playgroud)

我有一个id为square的div和链接.单击链接时,它们会触发游戏循环功能.我需要知道点击来自哪个ID.广场内有五个链接,每个链接都有一个id.有没有更好的方法来跟踪这一点.或者我应该为每个具有自己ID的链接提供一个函数,但这对我来说似乎并不干净.

javascript jquery

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

为什么不同版本的Silverlight程序集具有相同的版本号?

为什么不同版本的Silverlight程序集具有相同的版本号?

Location: ...\Silverlight\v3.0\System.Core.dll 
Name: System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e 

Location: ...\Silverlight\v4.0\System.Core.dll 
Name: System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e 

Location: ...\Silverlight\v4.0\Profile\WindowsPhone\System.Core.dll 
Name: System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e 
Run Code Online (Sandbox Code Playgroud)

虽然标准.net有不同的版本号

Location: ...\Framework\v4.0.30319\System.dll 
Name: System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 

Location: ...\Framework\v2.0.50727\System.dll 
Name: System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 
Run Code Online (Sandbox Code Playgroud)

.net versioning silverlight

12
推荐指数
1
解决办法
1054
查看次数