我有这个工作流程:
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks
grunt.initConfig({
sass: {
options: {
sourceMap: true
},
dist: {
}
},
watch: {
files: ['src/*.scss'],
tasks: ['sass']
}
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default', ["sass"]);
};
Run Code Online (Sandbox Code Playgroud)
运行grunt watch并更改src/*.scss文件后,我得到:
文件"src/main.scss"已更改.运行"sass:dist"(sass)任务
完成,没有错误.2016年2月2日星期二02:25:11 GMT + 0100(CET)完成0.949秒 - 等待...
我的问题:生成的文件在哪里?如何指定目标文件?
我也尝试过使用这个工作流程:
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks
grunt.initConfig({
sass: {
options: {
sourceMap: true
},
dist: {
files: [{
expand: true,
cwd: 'src',
src: ['*.scss'],
dest: '.', …Run Code Online (Sandbox Code Playgroud) 我在请求时得到这个sorial/app_dev.php:
Not Found
The requested URL /app_dev.php/ was not found on this server.
Run Code Online (Sandbox Code Playgroud)
请求时sorial/app.php:
注销(); $ apcLoader->寄存器(真);*/$ kernel = new AppKernel('prod',false); $内核级> loadClassCache(); // $ kernel = new AppCache($ kernel); //当使用HttpCache,你需要调用方法前端控制器,而不是依赖于配置参数//支持:: enableHttpMethodParameterOverride的(); $ request = Request :: createFromGlobals(); $ response = $ kernel-> handle($ request); $响应 - >发送(); $ kernel-> terminate($ request,$ response);
我在Ubuntu 14.04和Apache 2.4上
编辑:这是我的虚拟主机:
<VirtualHost *:80>
ServerName sorial
#ServerAlias sorial.es
DocumentRoot /var/www/sorial/web
DirectoryIndex app.php
#SetEnv SYMFONY__DATABASE__PASSWORD jander
<Directory /var/www/sorial/web/>
# Options Indexes …Run Code Online (Sandbox Code Playgroud) 我希望该命令显示1/1在生成的pdf的尾部,但不...有什么想法吗?
wkhtmltopdf --footer-center [page]/[topage] www.google.com /tmp/foobar.pdf
Run Code Online (Sandbox Code Playgroud)
版本:Linux上的0.12.2.4
我试图创建一个打开文件的脚本,并用'hello'替换每个'hola'.
f=open("kk.txt","w")
for line in f:
if "hola" in line:
line=line.replace('hola','hello')
f.close()
Run Code Online (Sandbox Code Playgroud)
但我得到这个错误:
回溯(最近一次调用最后一次):
文件"prueba.py",第3行,输入f中的行:IOError:[Errno 9]错误的文件描述符
任何的想法?
哈维
我的代码中有这一行:
<label style="font-weight: bold" for="sedii18n_codice_paese_indirizzo">Codice paese indirizzo</label>
Run Code Online (Sandbox Code Playgroud)
但标签显示正常.
如果我转到Chrome Inspector,我可以看到:
font-weight: normal !important;
Run Code Online (Sandbox Code Playgroud)
如果我font-weight在检查器中更改,则会正常修改字体的重量.
当我向上或向下移动光标并且它到达视图的第一行/最后一行(显示的文件部分)时,它"跳转",因此它显示视图的前/后半页而不是仅显示前/下一行(如在vi中).
那我怎么才能展示下一行呢?
问候
哈维
我用这种方式创建了我的存储库:
sudo svnadmin create/svn
重新启动apache后,我收到此错误:
/etc/apache2/mods-enabled/dav_svn.conf第16行的语法错误:此处不允许使用DAV
# dav_svn.conf - Example Subversion/Apache configuration
#
# For details and further options see the Apache user manual and
# the Subversion book.
#
# NOTE: for a setup with multiple vhosts, you will want to do this
# configuration in /etc/apache2/sites-available/*, not here.
# <Location URL> ... </Location>
# URL controls how the repository appears to the outside world.
# In this example clients access the repository as http://hostname/svn/
# Note, a literal …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用jquery以下方式添加iframe,但是当我点击链接时它不会发生任何事情.
<head>
<script type="text/javascript"
src='//ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.js'></script>
<script type="text/javascript">
function fun(){
$('<iframe />'); // Create an iframe element
$('<iframe />', {
name: 'frame1',
id: 'frame1',
src: 'http://www.programmingfacts.com'
}).appendTo('body');
</script>
</head>
<body>
<a href="#" onclick="fun()">clica</a>
</body>
</html>
Run Code Online (Sandbox Code Playgroud) 我收到这个错误:
CREATE TABLE `libro`
(
`id` INTEGER NOT NULL AUTO_INCREMENT,
`autor_id` INTEGER(11),
`titulo` VARCHAR(255),
`paginas` VARCHAR(255) NOT NULL,
PRIMARY KEY (`id`),
INDEX `libro_FI_1` (`autor_id`),
CONSTRAINT `libro_FK_1`
FOREIGN KEY (`autor_id`)
REFERENCES `autor` (`id`)
)Type=InnoDB
[propel-sql-exec] SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Type=InnoDB' at line 12
Run Code Online (Sandbox Code Playgroud)
任何的想法?
问候
哈维
我有这个代码:
<span class="total white bold" style="background: #C2C555">TOTAL:</span>
<span style="background: #C2C555; margin: 0;">1 night</span>
<span class="cost">€ 120.00</span>
Run Code Online (Sandbox Code Playgroud)
我预计三个跨度会在一起,但它们之间有一个空间.
如何删除该空间?
我正在使用Chrome.
问候
哈维