小编mga*_*aia的帖子

Atom git-diff在Mac计算机中不起作用

我在Mac中使用Atom。每当我按下alt+g up/down它时,它只会插入©符号,而不显示下一个差异。我做错了什么吗?

git-diff atom-editor

5
推荐指数
1
解决办法
545
查看次数

从 AndroidManifest.xml 访问 config.properties

我创建了一个 Android 项目,该项目作为公共存储库存储在 GitHub 上。该项目包含不应向公众公开的 API 密钥。为了防止公众看到密钥,我将它放在了 config.properties 文件中。在 AndroidManifest.xml 中,键值包含虚拟数据。为了运行该应用程序以进行测试,我目前正在将密钥粘贴到清单中,然后再启动,并在向 GitHub 提交任何更改之前将其替换为虚拟数据。

我的问题是,如何api.key从 AndroidManifest.xml访问config.properties 中的属性?理想情况下,当 gradle 文件构建项目时,api.key 值被插入到 AndroidManifest.xml 中,但从未在 GitHub 上看到,因为 .gitignore 文件不允许提交 .properties 文件。

java xml android properties-file

5
推荐指数
0
解决办法
180
查看次数

修改时commit.template不被尊重?

我有一个~/.commitmessage如下所示的文件:

# If applied, this commit will...
Run Code Online (Sandbox Code Playgroud)

我已经运行了git config --global commit.template ~/.commitmessage,所以现在如果我运行git commit,它会vim使用这个缓冲区触发:

#
# If applied, this commit will...

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch master
#
# Initial commit
#
Run Code Online (Sandbox Code Playgroud)

太棒了,但是如果我运行git commit --amend,我会得到标准提交模板:

My previous commit message

# Please enter the commit message for your changes. …
Run Code Online (Sandbox Code Playgroud)

git

5
推荐指数
1
解决办法
815
查看次数

以编程方式打开IBM Sametime聊天窗口

考虑Sametime聊天已在运行的场景.可以与其他人从另一个程序中打开聊天吗?你能告诉我程序吗?

非常感谢,Omkar

java chat lotus-notes sametime

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

如何避免在Common Lisp中完成脚本?

我正在尝试学习Common Lisp,并找到了一个简单的webserver示例:

#!/usr/local/bin/sbcl --script
;;; The following lines added by ql:add-to-init-file:
#-quicklisp
(let ((quicklisp-init (merge-pathnames "quicklisp/setup.lisp"
                                       (user-homedir-pathname))))
  (when (probe-file quicklisp-init)
    (load quicklisp-init)))

(ql:quickload "cl-who")
(ql:quickload "hunchentoot")
(ql:quickload "parenscript")

(defpackage :vote
             (:use :cl :cl-who :hunchentoot :parenscript))

(in-package :vote)

(hunchentoot:start (make-instance 'hunchentoot:easy-acceptor :port 8080))

(hunchentoot:define-easy-handler (say-yo :uri "/yo") (name)
  (setf (hunchentoot:content-type*) "text/plain")
  (format nil "Hey~@[ ~A~]!" name))
Run Code Online (Sandbox Code Playgroud)

我正在运行它,--script所以我可以迭代代码并继续测试它.

问题是 - 脚本在启动服务器后立即完成,所以我无法测试它.

我怎么能让程序继续运行直到我CTRL+D/ CTRL+C它?

可以使用类似loopsleep,但它是太麻烦了-即,积极的等待.

lisp common-lisp

1
推荐指数
1
解决办法
110
查看次数