小编fir*_*dev的帖子

gem eventmachine致命错误:找不到'openssl/ssl.h'文件

刚安装El Capitan并且无法安装gem eventmachine 1.0.7.openssl1.0.2a-1.试图使用--with-ssl-dir但似乎被忽略了.

报告给他们的github回购也.

任何建议都非常感谢.谢谢.

$ ls /usr/local/Cellar/openssl/1.0.2a-1/include/openssl/ssl.h
/usr/local/Cellar/openssl/1.0.2a-1/include/openssl/ssl.h

$ gem install eventmachine -v '1.0.7' -- --with-ssl-dir=/usr/local/Cellar/openssl/1.0.2a-1/include
/Users/pain/.rbenv/versions/2.1.2/bin/ruby -r ./siteconf20150612-56154-1hsjz2n.rb extconf.rb --with-ssl-dir=/usr/local/Cellar/openssl/1.0.2a-1/include
checking for rb_trap_immediate in ruby.h,rubysig.h... no
checking for rb_thread_blocking_region()... yes
checking for ruby/thread.h... yes
checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
checking for inotify_init() in sys/inotify.h... no
checking for __NR_inotify_init in sys/syscall.h... no
checking for writev() in sys/uio.h... yes
checking for rb_thread_fd_select()... yes
checking for rb_fdset_t in ruby/intern.h... yes …
Run Code Online (Sandbox Code Playgroud)

ruby macos homebrew openssl eventmachine

265
推荐指数
10
解决办法
6万
查看次数

IE10以IE7模式呈现.如何强制标准模式?

在微软的网站上,他们声称简单的doctype声明就足够了.但即使是像这样简短的文档又回归到IE7模式:

<!DOCTYPE html>
<html>
<head>
   <title></title>
</head>
<body>

</body>
</html>
Run Code Online (Sandbox Code Playgroud)

http://d.pr/i/fvzb+

windows internet-explorer windows-8 internet-explorer-10

121
推荐指数
3
解决办法
10万
查看次数

在Sublime Text,Atom中是否有在光标下选择单词的快捷方式

是否有快捷方式或命令在Sublime Text或Atom中选择光标下的单词?我想要一个替换双击.所以我可以按快捷方式,然后选择当前单词并开始输入以替换它或获取引号等...

keyboard-shortcuts selection sublimetext atom-editor

86
推荐指数
4
解决办法
4万
查看次数

Git:错误:RPC失败; result = 22,HTTP代码= 411

症状:

Git突然拒绝推送存储库(在我的情况下为github):

$ git push
Counting objects: 9292, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (2136/2136), done.
error: RPC failed; result=22, HTTP code = 411
fatal: The remote end hung up unexpectedly
Writing objects: 100% (8222/8222), 1.27 MiB | 837 KiB/s, done.
Total 8222 (delta 6060), reused 8181 (delta 6033)
fatal: The remote end hung up unexpectedly
Everything up-to-date
Run Code Online (Sandbox Code Playgroud)

git runtime-error github

66
推荐指数
1
解决办法
3万
查看次数

Git:致命:当前的分支主机有多个上游分支,拒绝推送

我有这个奇怪的问题,每当我这样做git push时都拒绝做任何事情:

fatal: The current branch master has multiple upstream branches, refusing to push.

当我这样做git push -u origin master时似乎将其设置为跟踪分支:

Branch master set up to track remote branch master from origin.

但是下次我尝试git push它再次拒绝这样做.我试图谷歌,但似乎问题是相当新的,我找不到任何解释这种行为.想法?

更新: ./git/config

[remote "origin"]
    fetch = +refs/heads/*:refs/remotes/origin/*
    url = gitosis@xxxx.xx:milk.git
[branch "master"]
    remote = origin
    merge = refs/heads/master
Run Code Online (Sandbox Code Playgroud)

UPDATE2:与解决git config remote.origin.push HEAD下面一行出现在.git/config[remote "origin"]节:

    push = HEAD
Run Code Online (Sandbox Code Playgroud)

UPDATE3:

$ git branch -vv
  billing      633c796 [origin/billing: behind …
Run Code Online (Sandbox Code Playgroud)

git

65
推荐指数
3
解决办法
3万
查看次数

如何防止Sublime Text 2吞下关闭括号,引号和括号?

Sublime有这种行为,当你必须输入带有很多括号的结构时,这种行为有时很烦人.当你键入(它并添加()并将光标放在中间时,一切正常,如果你输入)它会默默地吞下结束括号.

键入长正则表达式时这非常烦人,因为括号变得非常平衡,这让我发疯.所以你最终会得到类似的结构(([a-z]).

所以问题是 - 有没有办法禁用它?如果我键入一个结束括号,我希望它留下来,不要被吞下.

我已通过Sublime配置检查,谷歌搜索,但没有人似乎在意这种行为.我用错了吗?

更新

您可能想要查看Sublime:跳出匹配的括号快捷方式.

允许您输入的完整版本,()但如果输入了任何文本,则不会吞下结束符号:

  { "keys": ["\""], "command": "insert", "args": {"characters": "\""}, "context":
      [
          { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
          { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
          { "key": "following_text", "operator": "regex_contains", "operand": "^\"", "match_all": true },
          { "key": "preceding_text", "operator": "regex_contains", "operand": "[^\"]$", "match_all": true }
      ]
  },
  { "keys": [")"], "command": "insert", "args": {"characters": ")"}, "context": …
Run Code Online (Sandbox Code Playgroud)

brackets autocomplete editing sublimetext2

62
推荐指数
2
解决办法
1万
查看次数

在Sublime Text中关闭所有选项卡,但不关闭窗口

有没有办法在Sublime Text中一次性关闭所有选项卡,但是保持当前项目打开的窗口?当我只想关闭所有打开的文件并开始Cmd-W逐个启动新任务时,真的很烦人.如果我这样做Cmd-Opt-W将关闭所有选项卡和当前项目.

keyboard-shortcuts shortcut sublimetext sublimetext2 sublimetext3

59
推荐指数
6
解决办法
3万
查看次数

如何在MySQL中摆脱STRICT SQL模式

这是对MYSQL这个问题的跟进,DATETIME格式不正确

如何一劳永逸地摆脱STRICT_TRANS_TABLES?

mysql --help 报告以下配置:

Default options are read from the following files in the given order:
/etc/my.cnf /etc/mysql/my.cnf /usr/local/etc/my.cnf ~/.my.cnf

$ ls  /etc/my.cnf /etc/mysql/my.cnf /usr/local/etc/my.cnf ~/.my.cnf
ls: /Users/pain/.my.cnf: No such file or directory
ls: /etc/mysql/my.cnf: No such file or directory
ls: /usr/local/etc/my.cnf: No such file or directory
/etc/my.cnf

$ cat /etc/my.cnf
[mysqld]
sql_mode=NO_ENGINE_SUBSTITUTION
Run Code Online (Sandbox Code Playgroud)

但这没有用.我有一些遗留代码,每次重新启动计算机时我都要启动mysql并更改sql_mode.

更新

所以我放弃了Homebrew安装的MySQL并从mysql.com下载它.但这也没有帮助.这里的答案如下:如何修复`未知变量'sql-mode = ANSI'`?我曾尝试不同的变化/etc/my.cnf:[mysql],[mysqld],sql_mode,sql-mode-没有任何帮助.

mysql macos configuration homebrew sql-mode

24
推荐指数
4
解决办法
3万
查看次数

MYSQL不正确的DATETIME格式

我有一个带有Doctrine 1的应用程序,我通过生成update_datetime对象的字段new Zend_Date->getIso().它工作得很好多年,但现在我得到了一个新的笔记本和Doctrine尝试插入DATETIME字段作为字符串"2013-07-12T03:00:00+07:00"而不是正常的MySQL日期时间格式"2013-07-12 00:00:00",这是完全奇怪的.

同样的代码在另一台计算机上运行得很好.一切都几乎相同 - 两者都是MySQL 5.6.12,PHP 5.3.15.知道我应该在哪里看?

Fatal error: Uncaught exception 'Doctrine_Connection_Mysql_Exception' with message 'SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value: '2013-07-12T03:00:00+07:00' for column 'nextrun' at row 1' in library/Doctrine/Connection.php:1083

UPDATE

好的,在StackOverflow社区的帮助下,我终于解决了它.问题STRICT_TRANS_TABLES在于sql_mode变量.但是改变它/etc/my.cnf似乎还不够,所以我必须运行mysql -uroot并键入以下内容:

set sql_mode=NO_ENGINE_SUBSTITUTION; set global sql_mode=NO_ENGINE_SUBSTITUTION;

因此删除 STRICT_TRANS_TABLES

UPDATE2 如何永远摆脱STRICT?如何在MySQL中摆脱STRICT SQL模式

php mysql doctrine zend-framework doctrine-1.2

22
推荐指数
1
解决办法
2万
查看次数

Sublime Text 2中的"关闭其他"命令快捷方式

我正在尝试添加"关闭其他"选项卡的快捷方式,但似乎无法找到命令,这是我正在尝试的:

{ "keys": ["super+alt+w"], "command": "close_others" }
Run Code Online (Sandbox Code Playgroud)

Cmd+ Option+ W- 在OS X中有点像Cmd+ Option+ H,关闭当前选项卡以外的所有选项,请参阅?

无论如何,close_others似乎没有做任何事情.我已经试过close_other_windows,close_other_tabs,没有什么工作.这样做的正确命令是什么?

虽然我们正在使用它,但您如何知道可用的命令?我的下一个将是Cmd+ Option+ Shift+ W- "向右关闭标签".

对于Sublime窗口管理的一些改进,请参阅" 在Sublime Text中关闭所有选项卡,但不关闭窗口 "

谢谢!

command keyboard-shortcuts sublimetext sublimetext2

20
推荐指数
2
解决办法
5019
查看次数