刚安装El Capitan并且无法安装gem eventmachine 1.0.7.openssl在1.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) 在微软的网站上,他们声称简单的doctype声明就足够了.但即使是像这样简短的文档又回归到IE7模式:
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
是否有快捷方式或命令在Sublime Text或Atom中选择光标下的单词?我想要一个替换双击.所以我可以按快捷方式,然后选择当前单词并开始输入以替换它或获取引号等...
症状:
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 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) 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) 有没有办法在Sublime Text中一次性关闭所有选项卡,但是保持当前项目打开的窗口?当我只想关闭所有打开的文件并开始Cmd-W逐个启动新任务时,真的很烦人.如果我这样做Cmd-Opt-W将关闭所有选项卡和当前项目.
keyboard-shortcuts shortcut sublimetext sublimetext2 sublimetext3
这是对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-没有任何帮助.
我有一个带有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模式
我正在尝试添加"关闭其他"选项卡的快捷方式,但似乎无法找到命令,这是我正在尝试的:
{ "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中关闭所有选项卡,但不关闭窗口 "
谢谢!
sublimetext ×3
sublimetext2 ×3
git ×2
homebrew ×2
macos ×2
mysql ×2
atom-editor ×1
autocomplete ×1
brackets ×1
command ×1
doctrine ×1
doctrine-1.2 ×1
editing ×1
eventmachine ×1
github ×1
openssl ×1
php ×1
ruby ×1
selection ×1
shortcut ×1
sql-mode ×1
sublimetext3 ×1
windows ×1
windows-8 ×1