小编Thi*_*nne的帖子

如何使用angularjs(1.x)动态设置HTML元素的id属性?

提供了一个类型的HTML元素div,如何设置其id属性的值,这是范围变量和字符串的串联?

javascript string-concatenation angularjs angularjs-scope

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

使用Symfony2更加冗长地记录错误

我使用以下配置进行生产日志记录:

monolog:
    handlers:
        mail:
            type:         fingers_crossed
            action_level: error
            handler:      grouped
        grouped:
            type:    group
            members: [streamed, buffered]
        streamed:
            type:  stream
            path:  %kernel.logs_dir%/%kernel.environment%.log
            level: debug
        # buffered is used to accumulate errors and send them as batch to the email address
        buffered: 
            type:    buffer
            handler: swift
        swift:
            type:       swift_mailer
            from_email: info@....com
            to_email:   info@....com
            subject:    Error Occurred!
            level:      debug
Run Code Online (Sandbox Code Playgroud)

这会发送如下电子邮件:

[2012-03-21 21:24:09] security.DEBUG:从session [] []中读取SecurityContext

[2012-03-21 21:24:09] security.DEBUG:从用户提供商处重新加载用户.[] []

[2012-03-21 21:24:09] security.DEBUG:用户名"jakob.asdf"已从用户提供程序重新加载.[] [] [2012-03-21 21:24:09] request.INFO:匹配路由"_user_settings"(参数:"_ control":"... Bundle\Controller\UserController :: settingsAction","username": "Jakob.asdf","_ lute":"_ user_settings")[] …

php logging symfony

20
推荐指数
2
解决办法
7941
查看次数

如何使用命令行禁用VirtualBox网络接口?

列出虚拟网络接口时,不再需要其中一些:

vboxnet1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    ether 0a:00:27:00:00:01 
vboxnet8: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    ether 0a:00:27:00:00:08 
vboxnet9: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    ether 0a:00:27:00:00:09 
vboxnet11: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    ether 0a:00:27:00:00:0b 
vboxnet12: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    ether 0a:00:27:00:00:0c 
Run Code Online (Sandbox Code Playgroud)

我怎样才能让他们永远禁用它们?

networking virtualbox network-interface

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

为什么需要使用docker将`pam_loginuid`设置为`optional`值?

为了运行ssh守护程序服务,pam_loginuid必须在/etc/pam.d/sshd中将条目设置为可选,如Ubuntu 13.10 的官方示例中所述.

以前的Ubuntu版本是否可以选择此条目?它甚至在Ubuntu 13.10之前存在吗?

什么是设置pam_loginuidoptional的意思是,无论如何?

在这方面,我的ssh配置是不是很安全?

ubuntu docker

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