我正在使用:https://github.com/angular-ui/ui-grid.info/tree/gh-pages/release/3.0.0-RC.18
<div ui-grid="gridOptions" style="height:765px"></div>
Run Code Online (Sandbox Code Playgroud)
当我对值进行硬编码时,如上所示,网格展开,一切都按预期工作.
但是,如果我做以下事情......
$scope.gridStyle = 'height:'+numRows*rowHeight+'px' //(765px);
<div ui-grid="gridOptions" style="{{gridStyle}}"></div>
Run Code Online (Sandbox Code Playgroud)
高度打印在div和div加宽,但内容本身扩大到只有340px左右.剩下的空间是空白的,所以不是25行我只看到8.我必须向下滚动,而网格中有400px的空闲.ui-grid-viewport和ui-grid-canvas都没有使用这个空间......
为什么ui-grid-viewport不能使用那个空间?
我有以下问题
我的主机文件如下:
127.0.0.1 localhost
127.0.1.1 barbala4o-HP-ProBook-4530s
127.0.1.1 mysite.localhost
Run Code Online (Sandbox Code Playgroud)
我的文件/etc/apache2/sites-available/mysite.localhost.conf
如下:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName mysite.localhost
DocumentRoot /var/www/mysite
<Directory /var/www/mysite/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog /var/log/apache2/mysite-error.log
CustomLog /var/log/apache2/mysite-access.log common
</VirtualHost>
Run Code Online (Sandbox Code Playgroud)
在sudo a2ensite mysite.localhost.conf
mysite.localhost /上执行并重新启动apache 之后,只在localhost上执行以下操作(如列出没有索引文件的目录):
Index of /
[ICO] Name Last modified Size Description
[DIR] apache_logs/ 2013-09-24 10:15 -
[DIR] mysql/ 2013-10-22 10:05 -
[DIR] tools/ 2013-10-22 10:05
Run Code Online (Sandbox Code Playgroud)
在目录中的任何其他文件夹,/var/www/
例如test,当我输入localhost/test
而不是加载index.php
文件时,它显示:
Not Found
The requested URL /adlantic was …
Run Code Online (Sandbox Code Playgroud) 我已经安装了清漆并且准备了设置它的确切指令,但是,它没有按预期工作.
我的/ etc/default/varnish设置是:
DAEMON_OPTS="-a :80 \
-T localhost:1234 \
-f /etc/varnish/default.vcl \
-S /etc/varnish/secret \
-s malloc,256m"
Run Code Online (Sandbox Code Playgroud)
我的/etc/varnish/default.vlc设置是
backend default {
.host = "localhost";
.port = "8080";
}
Run Code Online (Sandbox Code Playgroud)
我的apache port.conf设置是:
NameVirtualHost 127.0.0.1:8080
Listen 127.0.0.1:8080
<IfModule ssl_module>
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
Run Code Online (Sandbox Code Playgroud)
我用Apache 2.4.10运行ubuntu 15.04.当我开始清漆并检查过程时,我得到了休息:
0:00 /usr/sbin/varnishd -a :6081 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s malloc,256m
Run Code Online (Sandbox Code Playgroud)
似乎监听地址或管理界面都不像/etc/varnish/default.vcl中设置的那样工作.我的虚拟机都不能正常工作.我怎么解决这个问题?
enter code here
我在 .htaccess 文件中得到了这段代码:
RewriteEngine On
RewriteBase /projFolder
### Canonicalize codeigniter URLs
# If your default controller is something other than
# "welcome" you should probably change this
RewriteRule ^(mycontrol(/index)?|index(\.php)?)/?$ / [L,R=301]
RewriteRule ^(.*)/index/?$ $1 [L,R=301]
# Removes trailing slashes (prevents SEO duplicate content issues)
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ $1 [L,R=301]
# Enforce www
# If you have subdomains, you can add them to
# the list using the "|" (OR) regex operator
RewriteCond %{HTTP_HOST} !^(www|subdomain) [NC] …
Run Code Online (Sandbox Code Playgroud) 我正在尝试创建一个表:
queryInterface.createTable('MyTable', {
id: {
type: Sequelize.INTEGER,
primaryKey: true,
autoIncrement: true
},
SomeTableId: {
type: Sequelize.INTEGER,
references: { model: 'static.SomeTable', key: 'id'},
allowNull: false
},
}, t);
Run Code Online (Sandbox Code Playgroud)
问题是当我运行迁移时抛出了这个错误:
'Unhandled rejection SequelizeDatabaseError: relation "static.SomeTable" does not exist'
Run Code Online (Sandbox Code Playgroud)
所以,基本上,问题是:
当我在“公共”模式中创建表时,如何在该表中指定一个外键列,该列引用“静态”模式中的表。
我想从level = 1的表中选择4个随机行,并从同一个表中选择4个随机行,其中level = 2.我如何在1个查询中执行此操作?
.htaccess ×1
angular-ui ×1
angularjs ×1
apache ×1
apache2.4 ×1
codeigniter ×1
foreign-keys ×1
mysql ×1
php ×1
random ×1
schema ×1
sequelize.js ×1
systemd ×1
ubuntu-13.10 ×1
ubuntu-15.04 ×1
varnish ×1
varnish-vcl ×1