我想在我的静态HTML项目中使用Sass和Compass,但按照说明操作不起作用.这就是我做的:
$ gem install compass
$ cd <myproject>
$ compass install compass .
Run Code Online (Sandbox Code Playgroud)
等待的是:
directory ./sass/
directory ./stylesheets/
create ./sass/screen.scss
create ./sass/print.scss
create ./sass/ie.scss
create ./stylesheets/screen.css
create ./stylesheets/ie.css
create ./stylesheets/print.css
Run Code Online (Sandbox Code Playgroud)
但是当我开始观看scss时sass --watch sass:stylesheets,我收到一个错误:
error sass/screen.scss (Line 6: File to import not found or unreadable: compass/reset.
Run Code Online (Sandbox Code Playgroud)
这个msg与@import"指南针/重置"相关;
我在Ubuntu上做什么才能看到罗盘进口?
我在使用Google翻译时遇到谷歌控制台API的问题.当我从本地计算机运行测试时,它运行良好,但是当我尝试在我的远程测试虚拟服务器上运行它时,它返回上面的403.
我在控制台API访问中使用Server键的Simple API访问,并且我的密钥配置为本地和测试计算机IP地址.
调试:
lynx --dump "checkip.dyndns.org";
Run Code Online (Sandbox Code Playgroud)
- 与Google API控制台中的API密钥设置中的IP匹配
curl -v "https://www.googleapis.com/language/translate/v2?q=hello&target=de&source=en&key=MYAPIKEY"
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured"
}
],
"code": 403,
"message": "Access Not Configured"
}
}
Run Code Online (Sandbox Code Playgroud)
就像我说的,同样适用于我的本地机器.在Google API控制台中为两个IP配置了API密钥
更新:当我使用附加到url referrer而不是IP的"浏览器密钥"时,它可以工作.所以问题需要以某种方式在IP中,但我无法得到它.任何"whatsmyip"服务都会确认我的IP匹配.
我有:
如果用户是facebook中的应用程序管理员,我可以以某种方式得到这个吗?
我需要与mysql5一起建立PHP4环境,当我尝试连接到mysql时我遇到了这个问题.
谢谢你的任何痕迹.
我在Capistrano v2.8.0上通过非常新鲜的方式部署有问题 - 这是我的第一次capistrano/capifony部署.
我已经成功完成了帽子部署:设置,现在我需要执行cap deploy:cold.SSH通信运行良好,但由于ssh权限,它无法执行git clone命令:
* executing "git clone -q git@github.com:palmic/www.myproject.com.git /home/palmic/web/hostik.cz/palmic/releases/20110823122821 && cd /home/palmic/web/hostik.cz/palmic/releases/20110823122821 && git checkout -q -b deploy 7407672c0a59ad631ea2f1f1d71fb15c2f68ac30 && (echo 7407672c0a59ad631ea2f1f1d71fb15c2f68ac30 > /home/palmic/web/hostik.cz/palmic/releases/20110823122821/REVISION)"
servers: ["hostik.cz"]
[hostik.cz] executing command
** [hostik.cz :: err] Permission denied (publickey).
** fatal: The remote end hung up unexpectedly
command finished in 3123ms
*** [deploy:update_code] rolling back
* executing "rm -rf /home/palmic/web/hostik.cz/palmic/releases/20110823122821; true"
servers: ["hostik.cz"]
[hostik.cz] executing command
command finished in 164ms
Run Code Online (Sandbox Code Playgroud)
当我登录ssh会话并调用此manualy时,它请求ssh密码.当我填写我喜欢的相同密码:deploy.rb中的scm_passphrase,然后克隆成功完成.因此看起来capistrano无法在我的设置中填写密码.
BTW.ssh_options [:forward_agent] = true/false几乎没有人知道为什么?(我的〜/ .ssh/config允许代理转发): …
我有一个问题是找到在弹性搜索中查询Unicode特殊字符的解决方案.
当我创建这个索引时:
curl -XPUT http://localhost:9200/index/type/1 -d '{"name" : "Vrba u ?eky"}'
Run Code Online (Sandbox Code Playgroud)
然后我试图搜索"řeky"短语,一切都OK:
curl -XGET 'http://localhost:9200/index/type/_search?pretty=1' -d '{"query" : {"text" :
{ "_all" : "?eky" }}}'
{
"took" : 1,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 1,
"max_score" : 0.10848885,
"hits" : [ {
"_index" : "index",
"_type" : "type",
"_id" : "1",
"_score" : 0.10848885, "_source" : {"name" : "Vrba u ?eky"}
} ]
} …Run Code Online (Sandbox Code Playgroud)