我正在使用mrt add accounts-ui-bootstrap-dropdown并mrt add accounts-password在我的应用程序上运行一个简单的登录页面.
帐户用户给了我一个很好的哈希,包含id,createdAt,电子邮件等.
如果我想在此哈希中添加其他字段,以便稍后可以使用它们,我该怎么做?例如,我想要输入他们的名字和姓氏:
"given_name":"John","姓":"Doe"
我有一个与nginx上的乘客一起运行的临时rails应用程序.我想保护与SSL的连接.我已经在网上阅读了很多资源,但我还没有让它在SSL上运行.
到目前为止,我在nginx.conf上的服务器块是:
server {
listen 80;
listen 443 default deferred;
server_name example.com;
root /home/deploy/app/public;
passenger_enabled on;
passenger_set_cgi_param HTTP_X_FORWARDED_PROTO https;
ssl on;
ssl_ciphers ECDH+AESGCM:ECDH+AES256:ECDH+AES128:DH+3DES:RSA+3DES:!ADH:!AECDH:!MD5;
ssl_prefer_server_ciphers on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_certificate /etc/ssl/server.crt;
ssl_certificate_key /etc/ssl/server.key;
}
Run Code Online (Sandbox Code Playgroud)
该网站正在运行,但不在HTTPS上.
假设您有一组如下数字:
[A,B,C]
[6, 4.5, 6]
[7, 6, 5]
[9, 4.5, 6]
Run Code Online (Sandbox Code Playgroud)
每个集合中只有一个数字和类别(A,B或C)可用于查找最大总和.在这种情况下,A = 9,B = 6和C = 6将产生21的最大总和.最大的总和不能是22(9 + 7 + 6),因为9和7都是A类冲突.
我怎么能用Java做到这一点?
我无法找到最大的金额,因为在每个类别中选择最大值并不能保证最大的金额.某些类别可能会被强制为较小的值,从而减少总和.请记住,每个集合和类别中只能选择一个数字.
我在ubuntu服务器上的nginx上运行了一个完全正常工作的Rails应用程序.我在我的应用上添加了Cloudflare.然后,我在需要登录的页面上收到此错误:
SSL connection error
Unable to make a secure connection to the server. This may be a problem with the server, or it may be requiring a client authentication certificate that you don't have.
Error code: ERR_SSL_PROTOCOL_ERROR
Run Code Online (Sandbox Code Playgroud)
我的网站可以从登录页面和其他非交互式静态页面访问.
我还注意到,当它重定向到错误页面时,DNS成为URL上的IP地址,然后是相应的目录.
我不知道接下来要去哪儿.
此外,当我查看有关URL的网站信息时,它说
The identity of this website has not been verified.
Ghost博客平台有一个生产版本,其服务器上的内容和样式已更改。我将博客的应用程序文件夹下载到了本地计算机上。这些说明似乎很直接。
快速开始:npm install -g grunt-clinpm installgrunt init(grunt prod如果要在生产模式下运行Ghost)npm start但是当我运行时,grunt init我得到以下信息:
Running "shell:bower" (shell) task
module.js:340
throw err;
^
Error: Cannot find module 'q'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/Users/steelcollar/workspace/blog/node_modules/.bin/bower:6:9)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
Warning: Command failed:
module.js:340
throw err;
^
Error: Cannot find module 'q'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load …Run Code Online (Sandbox Code Playgroud) nginx ×2
ssl ×2
algorithm ×1
cloudflare ×1
ghost-blog ×1
java ×1
javascript ×1
meteor ×1
node.js ×1
passenger ×1
set ×1
sqlite ×1