问题列表 - 第12849页

在C#中将Windows密钥用于其他目的

有没有办法禁用Windows-Key的标准内置函数(打开开始菜单)并激活而不是该函数,例如C#中的委托或事件?我想将它用作全屏应用程序中的附加键.

c# windows delegates windows-key

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

从Fluent Nhibernate模式生成中排除一些表

我在旧版数据库中有一些现有的asp.net成员资格和角色表,并使用Fluent Nhibernate将它们映射到新实体。

我还直接从Fluent Nhibernate生成架构,然后手动调整生成的sql脚本以排除现有表。

是否可以说Fluent Nhibernate从某些表中排除某些表?

nhibernate fluent-nhibernate s#arp-architecture

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

我使用 Xpath 时命名空间和 libxml 的问题

当我在 XPath 中使用 libxml 时遇到问题。我想解析一个 youtube 播放列表:

<?xml version='1.0' encoding='UTF-8'?>
<feed xmlns='http://www.w3.org/2005/Atom'
  xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/'
  xmlns:media='http://search.yahoo.com/mrss/'
  xmlns:batch='http://schemas.google.com/gdata/batch'
  xmlns:yt='http://gdata.youtube.com/schemas/2007'
  xmlns:gd='http://schemas.google.com/g/2005'
  gd:etag='W/&quot;Dk8DRn47eCp7ImA9WxRQGEk.&quot;'>
  <id>tag:youtube,2008:user:andyland74:playlists</id>
  <updated>2008-07-21T16:43:25.232Z</updated>
  <category scheme='http://schemas.google.com/g/2005#kind'
    term='http://gdata.youtube.com/schemas/2007#playlistLink'/>
  <title>Playlists of andyland74</title>
  <logo>http://www.youtube.com/img/pic_youtubelogo_123x63.gif</logo>
  <link rel='related' type='application/atom+xml'
    href='http://gdata.youtube.com/feeds/api/users/andyland74?v=2'/>
  <link rel='alternate' type='text/html'
    href='http://www.youtube.com/profile_play_list?user=andyland74'/>
  <link rel='http://schemas.google.com/g/2005#feed'
    type='application/atom+xml'
    href='http://gdata.youtube.com/feeds/api/users/andyland74/playlists?v=2'/>
  <link rel='http://schemas.google.com/g/2005#post'
    type='application/atom+xml'
    href='http://gdata.youtube.com/feeds/api/users/andyland74/playlists?v=2'/>
  <link rel='http://schemas.google.com/g/2005#batch'
    type='application/atom+xml'
    href='http://gdata.youtube.com/feeds/api/users/andyland74/playlists/batch?v=2'/>
  <link rel='self' type='application/atom+xml'
    href='http://gdata.youtube.com/feeds/api/users/andyland74/playlists?...'/>
  <link rel='service' type='application/atomsvc+xml'
    href='http://gdata.youtube.com/feeds/api/users/andyland74/playlists?alt=...'/>
  <author>
    <name>andyland74</name>
    <uri>http://gdata.youtube.com/feeds/api/users/andyland74</uri>
  </author>
  <generator version='2.0'
    uri='http://gdata.youtube.com/'>YouTube data API</generator>
  <openSearch:totalResults>3</openSearch:totalResults>
  <openSearch:startIndex>1</openSearch:startIndex>
  <openSearch:itemsPerPage>25</openSearch:itemsPerPage>
  <entry gd:etag='W/&quot;Dk8DRn47eCp7ImA9WxRQGEk.&quot;'>
    <id>tag:youtube,2008:user:andyland74:playlist:8BCDD04DE8F771B2</id>
    <published>2007-11-04T17:30:27.000-08:00</published>
    <updated>2008-07-15T12:33:20.000-07:00</updated>
    <app:edited xmlns:app='http://www.w3.org/2007/app'>2008-07-15T12:33:20.000-07:00</app:edited>
    <category scheme='http://schemas.google.com/g/2005#kind'
      term='http://gdata.youtube.com/schemas/2007#playlistLink'/>
    <title>My New Playlist …
Run Code Online (Sandbox Code Playgroud)

xpath libxml2

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

6
推荐指数
2
解决办法
5047
查看次数

jpa 如何创建与父实体具有相同 id 的新实体(JOINED 继承)

我的问题与更改保留其 ID 的实体的类型非常相似,但我使用的是 InheritanceType.JOINED 而不是 Table_per_class。

这意味着我不会更改任何表,只是创建一个新的子类,其 ID 与超类相同。

总而言之,我有一个 Person 类和一个 Doctor,它扩展了 Person 并具有相同的 id。我需要从数据库中检索一个 Person 并将其设置为 Doctor,保留 Person 实体中的所有数据,但为 Doctor 实体创建一些额外的数据。

尝试合并医生会生成一个新 ID,这对我无效。

这是我首先尝试过的

private Person getDoctor(Person person) {
            // Person already a doctor ==> OK
    if (person instanceof Doctor) {
        return person;
    }
            // Transient Person ==> //Transient Doctor OK
    if (person == null) {
        return new Doctor();
    }
            // Creates a Doctor from the person (only setting id...),
            // and merges it ==>
            fails …
Run Code Online (Sandbox Code Playgroud)

inheritance hibernate jpa joined-subclass

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

.NET CLR何时评估安全属性?

我刚刚在关于方法调用的SecurityExceptions的CLI规范中阅读了以下内容:

当CIL转换为本机代码而不是运行时,可能会发生安全检查.

Microsoft的实现如何处理这个问题?

例如,如果只允许某个用户组访问某个类,并且我已为此组安排了安全属性检查.

如果用户运行应用程序,则进行jitted,并且可能在那时执行安全检查而不是在运行时.

如果是这样,抖动是否会缓存本机映像,以便在以后更改用户的组时(例如缓存的本机映像不反映其更新的权限)可能会出现问题?或者除非我预先安装原生图像,否则它每次运行时都会被jitted?我还不太确定原生图像缓存是如何工作的.

.net security clr attributes

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

Visual Studio 2008 - 移动解决方案文件(sln,suo)

如果最初使用Web应用程序项目创建VS2008项目,并添加了类项目,结构如下所示:

Parent Folder
    Web App Project Folder - (solution Files in this folder)
    Class Project 1
    Class Project 2
    ...
Run Code Online (Sandbox Code Playgroud)

你看到将.sln和.suo文件移动到父目录有什么问题吗?

Parent Folder - (solution Files in this folder)
    Web App Project Folder 
    Class Project 1
    Class Project 2
    ...
Run Code Online (Sandbox Code Playgroud)

我调整了.sln项目目录,解决方案似乎工作正常,但我想知道这个动作是否会破坏我没想到的东西.

vs-web-application-project visual-studio-2008 visual-studio

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

忽略Doxygen的项目文件夹中的文件

你怎么能像Git那样忽略Doxygen的文件.git/info/exclude

Doxygen根据第三方代码为我生成文档,例如Email -component和我的Git -repo,我不想要.我需要将文件保存在原来的位置.

doxygen ignore

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

MySQL COUNT()和nulls

我是否正确地说:

COUNT(expr)
WHERE expr IS NOT *  
Run Code Online (Sandbox Code Playgroud)

只计算非空值吗?

COUNT(*)始终统计所有行?如果所有列都为空怎么办?

mysql

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

如何使用纯JavaScript将字符转换为HTML实体

我有以下内容:

var text = "Übergroße Äpfel mit Würmern";
Run Code Online (Sandbox Code Playgroud)

我正在搜索一个Javascript函数来转换文本,以便每个特殊字母由其HTML实体序列表示,如下所示:

var newText = magicFunction(text);
...
newText = "&Uuml;bergro&szlig;e &Auml;pfel mit W&uuml;rmern";
Run Code Online (Sandbox Code Playgroud)

该函数不仅应该转义此示例的字母,应该转义所有这些字母.

你会如何实现这一目标?那里有现成的功能吗?(简单,因为没有框架的解决方案是首选)

顺便说一句:是的,我已经看到了这个问题,但它没有解决我的需要.

javascript escaping html-entities

54
推荐指数
5
解决办法
10万
查看次数