我正在尝试安装Command-T插件.
我按照本评论中的说明编译了vim:使用ruby支持安装vim(+ ruby)
所以现在有+ ruby标志,但是当我尝试使用插件时,我得到了这个错误:
command-t.vim could not load the C extension
Please see INSTALLATION and TROUBLE-SHOOTING in the help
For more information type: :help command-t
Run Code Online (Sandbox Code Playgroud)
我的系统上有红宝石:
> ruby -v
> ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
Run Code Online (Sandbox Code Playgroud)
建议?
我正在使用zsh和Robby Russell 的oh-my-zsh框架.如何创建快捷方式或重复命令的最后部分?
例如,如果我输入:
mv something in/this/difficult/to/type/directory
Run Code Online (Sandbox Code Playgroud)
有没有办法轻松搞定:in/this/difficult/to/type/directory?
在阅读了Laravel4测试版的发布后,我第一次尝试Laravel.
我按照这些步骤安装了composer和laravel以及它所需的所有依赖项.我把laravel放在我的~/public_html目录中 - 因为我习惯用Codeigniter 来做,但我觉得这里有些不对劲.
如果我指向浏览器http://localhost/~carlo/laravel-develop/,它只显示目录的内容.
然后,在文件系统上我有一个laravel-develop/public文件夹,它没有出现在浏览器上.
我发现改变了.htaccess这样的:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
Run Code Online (Sandbox Code Playgroud)
我尝试访问公用文件夹时导致错误.错误:
ErrorException:警告:file_put_contents(/ home/carlo/public_html/laravel-develop/app/config /../ storage/meta/services.json):无法打开流:/ home/carlo/public_html/laravel-中的权限被拒绝 - develop/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php第77行
另一个:
/home/carlo/public_html/laravel-develop/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php第77行
然后是一长串的错误.最后一个是:
/home/carlo/public_html/laravel-develop/public/index.php第53行中的require_once('/ home/carlo/public_html/laravel-develop/start.php')
我使用git来跟踪我正在处理的网站.我在我的机器上工作并将提交推送到按照本指南配置的远程服务器:使用Git管理网站.
上周我尝试使用Git子模块来管理一些第三方库,今天我尝试推送到服务器,发现在服务器中所有子模块目录都是空的.
我尝试添加并提交对本地子模块的更改,确实git status说工作目录是干净的.
我能做什么?
我正在尝试使用Chrome devtools时间轴来改善动画效果,但我找不到了Paint Profiler.我记录了几秒钟的动画,然后点击时间线中的绘画事件,如此处所述,基本上是:https://developers.google.com/web/tools/chrome-devtools/profile/evaluate-performance/timeline-工具#轮廓,画
但我没有看到任何Paint Profiler标签.
这是我看到控制台窗口的方式:
我在Mac上使用Google Chrome版本51.0.2704.106(64位)
我正在一个网站上工作,虽然在Firefox上显示它很好,在IE上我遇到了很多问题.我使用了w3c验证器,我遇到了很多奇怪的错误.
这是该网站的链接:http://misenplacecatering.it/
我认为最相关的第一个验证错误是:
Byte-Order Mark found in UTF-8 File. The Unicode Byte-Order Mark (BOM) in UTF-8 encoded files is known to cause problems for some text editors and older browsers. You may want to consider avoiding its use until it is better supported.
Run Code Online (Sandbox Code Playgroud)
和
Line 1, Column 1: Non-space characters found without seeing a doctype first. Expected <!DOCTYPE html>.
Run Code Online (Sandbox Code Playgroud)
我已经阅读了有关此问题的其他主题,因此我尝试使用不同的编辑器打开该文件(无论如何我总是使用Vim),但在doctype定义之前我没有看到任何空格或任何其他内容.我甚至使用notepad ++并使用了一个选项来删除bom,但没有.
有什么建议?
无论如何,
昨天我升级到Yosemite,现在我的本地Web开发配置不再适用了.
我设法建立了一个用户目录/Users/user/public_html,我可以访问所有的网站localhost/~user/websitename.没什么特别的,但我花了一段时间来配置.
查看apache目录,我看到许多文件被替换,保留备份.我尝试再次使用我的设置放回文件,但仍然无法正常工作.也许我错过了一些我不记得的文件.
这是httpd-userdir.conf:
# Settings for user home directories
#
# Required module: mod_userdir
#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received. Note that you must also set
# the default access control for these directories, as in the example below.
#
UserDir public_html
#
# Users might not be in /Users/*/Sites, so use user-specific config files.
#
Include /private/etc/apache2/users/*.conf …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用div创建一个2x2网格.某些div可能包含图像,但可能会将其设置为背景,并带有选项background-size: cover.
这是我创建的笔:http://codepen.io/qarlo/pen/vLEprq
.container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin: auto;
max-width: 960px;
width: 80%;
}
.container__item {
align-content: center;
border: 1px solid #333;
display: flex;
flex-basis: 1;
font-size: 3em;
justify-content: center;
height: 100%;
margin-bottom: 1em;
min-height: 300px;
width: 47%;
}Run Code Online (Sandbox Code Playgroud)
<div class="container">
<div class="container__item">?</div>
<div class="container__item">?</div>
<div class="container__item">?</div>
<div class="container__item">?</div>
</div>Run Code Online (Sandbox Code Playgroud)
我想在调整大小时强制div为正方形并保持纵横比.我错误地希望这对Flexbox来说很简单,但除非我遗漏了什么,否则我错了.
我正在使用tmux和tmuxinator来配置它.我总是打开不同的窗格,打开两个或更多编辑器会话和其他东西.每次我必须关闭整个tmux会话,因为我关闭了计算机,这需要时间,因为在各种tmux窗格中有进程处于活动状态.所以我必须手动退出每个Vim实例,因为如果我只是杀死包含它的窗格,那么我将最终拥有vim交换文件.
那么,有没有办法退出整个tmux会话(不仅仅是分离它)并自动关闭其中运行的所有进程?
vim ×3
php ×2
tmux ×2
apache ×1
aspect-ratio ×1
color-scheme ×1
css ×1
css3 ×1
flexbox ×1
git ×1
grid-layout ×1
html ×1
laravel ×1
laravel-4 ×1
localhost ×1
macos ×1
osx-yosemite ×1
plugins ×1
ruby ×1
tmuxinator ×1
utf-8 ×1
zsh ×1